From b800b4239a8d8b63963d86436dd0414e3d0f2d70 Mon Sep 17 00:00:00 2001 From: Atheesh Thirumalairajan Date: Fri, 8 Nov 2024 18:34:54 -0500 Subject: [PATCH] Updated Stats, New Highlights API --- ...ctor-BG9gjKtA.js => Attractor-Bgi7YHYf.js} | 2 +- ...ctor-cK3ZBMRe.js => Attractor-CQdel4Fu.js} | 2 +- ...over-C1fuzGId.js => BaseMover-DHnoQY2c.js} | 2 +- ...ouncer-6wC7AxvL.js => Bouncer-BFBk-ddf.js} | 2 +- ...ubbler-DBb423FI.js => Bubbler-D3Q8Q7o4.js} | 2 +- ...ls-DQ_CMgM7.js => CanvasUtils-DvqPZfvK.js} | 2 +- ...r-DUM8-Gh5.js => CircleDrawer-2c1i4lI_.js} | 2 +- ...lider-DqsnJ90f.js => Collider-CSRYd96m.js} | 2 +- ...r-8gej-bYz.js => ColorUpdater-D9uYGMD0.js} | 2 +- ...ctor-DFByauI0.js => Connector-CUk_Iy0P.js} | 2 +- ...iner-CwQSRyJL.js => Container-DgfTSijT.js} | 2 +- ...er-ObwpP6eH.js => EmojiDrawer-Ddr8tlYS.js} | 2 +- ...rabber-CexBlJXm.js => Grabber-74PbJGjC.js} | 2 +- ...er-CROZpBOi.js => ImageDrawer-Dz1A0m-I.js} | 2 +- ...er-DvmeYpZG.js => LifeUpdater-_A1XjI5y.js} | 2 +- ...e-CRubKpxS.js => LinkInstance-B8PRDNBZ.js} | 2 +- ...{Linker-i7yvafQ3.js => Linker-CD0yKFxt.js} | 2 +- ...in-DPL_ttiq.js => LinksPlugin-DugPkvP4.js} | 4 +- ...CRT-YDRC.js => OpacityUpdater-DjS42osQ.js} | 2 +- ...r-Ceq0kCZC.js => OptionsColor-39-7GBLs.js} | 2 +- ...ESy_.js => OutOfCanvasUpdater-Aq4RApMk.js} | 2 +- ...-BA-dpb0_.js => ParallaxMover-B8zWFvWV.js} | 2 +- ...-DbYV5apv.js => PolygonDrawer-DhiAQhcG.js} | 2 +- ...Z5jWk.js => PolygonDrawerBase-CNzqjENl.js} | 2 +- ...{Pusher-DzZsxRS5.js => Pusher-VTV1xu9a.js} | 2 +- ...{Ranges-DOcs18nu.js => Ranges-Cgpup9mk.js} | 2 +- ...emover-DLF4yMCL.js => Remover-Ckgil0zK.js} | 2 +- ...ulser-C9Ls11wj.js => Repulser-CC8e7fmU.js} | 2 +- ...-Bl8CCIRL.js => RotateUpdater-BDZGNKYU.js} | 2 +- ...er-BqQzkQ-Q.js => SizeUpdater-CS0MnJFd.js} | 2 +- ...{Slower-BLi7O0I-.js => Slower-CalyVoYw.js} | 2 +- ...wer-BGWkxu61.js => StarDrawer-o68z3SAe.js} | 2 +- ...HVHf.js => StrokeColorUpdater-DKgLaWa7.js} | 2 +- ...lfOOwZVf.js => TriangleDrawer-gXtLT6rl.js} | 2 +- .../{Utils-BkPzvLhO.js => Utils-BtXoLE8f.js} | 4 +- ...su4V_5I.js => ValueWithRandom-BsNMdqfS.js} | 2 +- .../{index-sGc9p_8U.js => index-B-eNKEuG.js} | 4 +- .../{index-Hv8I8PQE.js => index-B1uaaKWk.js} | 4 +- .../{index-DZeCeBqW.js => index-B9x42VQJ.js} | 2 +- dist/assets/index-BGxGhBke.js | 7 +++ dist/assets/index-BTkuQGA5.js | 7 --- .../{index-CGJZHg63.js => index-B_a7NW2Q.js} | 4 +- dist/assets/index-BagHnuxb.js | 7 +++ dist/assets/index-BpVT3pP3.js | 7 --- .../{index-CU9ntlVE.js => index-Bsb0ODzd.js} | 4 +- .../{index-_cpfFoC0.js => index-Bv4Ri9Dl.js} | 4 +- .../{index-Bx4LgAhS.js => index-C4gw71pV.js} | 2 +- dist/assets/index-C5Yrt80Z.js | 7 +++ dist/assets/index-CMiNQEXp.js | 7 +++ .../{index-LDb9jKip.js => index-COUjS28G.js} | 4 +- .../{index-BbPL1Txh.js => index-CShsFACI.js} | 52 +++++++++---------- dist/assets/index-CZxBByzA.js | 7 --- .../{index-DLULLknW.js => index-CbvRTKHC.js} | 2 +- dist/assets/index-Chj5qFiT.js | 7 --- dist/assets/index-Cj3Eb7FU.js | 7 --- .../{index-DzgRBc1Z.js => index-CmOj1iTh.js} | 4 +- .../{index-BGyF8PgE.js => index-CpYebIb2.js} | 4 +- .../{index-Dxcs0UKz.js => index-Cyi3q7NY.js} | 4 +- .../{index-DR0baXpM.js => index-CyymV-gL.js} | 4 +- .../{index-jKKFtAuZ.js => index-CzzyTFZc.js} | 4 +- .../{index-D0mBiceO.js => index-D4B8HC_p.js} | 4 +- dist/assets/index-D5dHnt_J.js | 7 --- .../{index-BRlKzsgu.js => index-DeJl6bSD.js} | 4 +- .../{index-kWzwevuU.js => index-DieO57wC.js} | 4 +- .../{index-CueqtFgO.js => index-DmxnH_zU.js} | 4 +- dist/assets/index-DtOIm4kO.js | 7 +++ .../{index-DpxouOhY.js => index-DtthGcYK.js} | 4 +- dist/assets/index-DvFJ0GAq.js | 7 +++ .../{index-Dex8x5sq.js => index-H2xFEDUi.js} | 4 +- dist/assets/index-SbQKj88b.js | 7 +++ dist/assets/index-Uy2IqHz2.js | 7 --- .../{index-DTnviRFa.js => index-XfIYD3kU.js} | 4 +- dist/assets/index-n6cAyR6z.js | 7 --- .../{index-DAZDQalY.js => index-qvjFb8Na.js} | 4 +- dist/assets/index-wa-izovl.js | 7 +++ .../{index-4z1oJj1v.js => index-xhEDNmcn.js} | 2 +- dist/assets/interaction-TJRqQwCj.js | 7 --- dist/assets/interaction-aCMNmKPM.js | 7 +++ dist/assets/plugin-CNYMRRjJ.js | 7 +++ dist/assets/plugin-CZBYx9Lq.js | 7 --- dist/index.html | 2 +- .../HighlightsContainer.tsx | 47 ++++++----------- .../HighlightsContainer/interfaces.ts | 2 +- src/integrals/WebLandingPage.tsx | 2 +- 84 files changed, 194 insertions(+), 211 deletions(-) rename dist/assets/{Attractor-BG9gjKtA.js => Attractor-Bgi7YHYf.js} (91%) rename dist/assets/{Attractor-cK3ZBMRe.js => Attractor-CQdel4Fu.js} (92%) rename dist/assets/{BaseMover-C1fuzGId.js => BaseMover-DHnoQY2c.js} (96%) rename dist/assets/{Bouncer-6wC7AxvL.js => Bouncer-BFBk-ddf.js} (93%) rename dist/assets/{Bubbler-DBb423FI.js => Bubbler-D3Q8Q7o4.js} (96%) rename dist/assets/{CanvasUtils-DQ_CMgM7.js => CanvasUtils-DvqPZfvK.js} (97%) rename dist/assets/{CircleDrawer-DUM8-Gh5.js => CircleDrawer-2c1i4lI_.js} (86%) rename dist/assets/{Collider-DqsnJ90f.js => Collider-CSRYd96m.js} (96%) rename dist/assets/{ColorUpdater-8gej-bYz.js => ColorUpdater-D9uYGMD0.js} (88%) rename dist/assets/{Connector-DFByauI0.js => Connector-CUk_Iy0P.js} (90%) rename dist/assets/{Container-CwQSRyJL.js => Container-DgfTSijT.js} (99%) rename dist/assets/{EmojiDrawer-ObwpP6eH.js => EmojiDrawer-Ddr8tlYS.js} (91%) rename dist/assets/{Grabber-CexBlJXm.js => Grabber-74PbJGjC.js} (84%) rename dist/assets/{ImageDrawer-CROZpBOi.js => ImageDrawer-Dz1A0m-I.js} (93%) rename dist/assets/{LifeUpdater-DvmeYpZG.js => LifeUpdater-_A1XjI5y.js} (92%) rename dist/assets/{LinkInstance-CRubKpxS.js => LinkInstance-B8PRDNBZ.js} (98%) rename dist/assets/{Linker-i7yvafQ3.js => Linker-CD0yKFxt.js} (89%) rename dist/assets/{LinksPlugin-DPL_ttiq.js => LinksPlugin-DugPkvP4.js} (50%) rename dist/assets/{OpacityUpdater-CRT-YDRC.js => OpacityUpdater-DjS42osQ.js} (80%) rename dist/assets/{OptionsColor-Ceq0kCZC.js => OptionsColor-39-7GBLs.js} (76%) rename dist/assets/{OutOfCanvasUpdater-rgraESy_.js => OutOfCanvasUpdater-Aq4RApMk.js} (98%) rename dist/assets/{ParallaxMover-BA-dpb0_.js => ParallaxMover-B8zWFvWV.js} (88%) rename dist/assets/{PolygonDrawer-DbYV5apv.js => PolygonDrawer-DhiAQhcG.js} (56%) rename dist/assets/{PolygonDrawerBase-BwGZ5jWk.js => PolygonDrawerBase-CNzqjENl.js} (88%) rename dist/assets/{Pusher-DzZsxRS5.js => Pusher-VTV1xu9a.js} (81%) rename dist/assets/{Ranges-DOcs18nu.js => Ranges-Cgpup9mk.js} (94%) rename dist/assets/{Remover-DLF4yMCL.js => Remover-Ckgil0zK.js} (78%) rename dist/assets/{Repulser-C9Ls11wj.js => Repulser-CC8e7fmU.js} (94%) rename dist/assets/{RotateUpdater-Bl8CCIRL.js => RotateUpdater-BDZGNKYU.js} (91%) rename dist/assets/{SizeUpdater-BqQzkQ-Q.js => SizeUpdater-CS0MnJFd.js} (88%) rename dist/assets/{Slower-BLi7O0I-.js => Slower-CalyVoYw.js} (87%) rename dist/assets/{StarDrawer-BGWkxu61.js => StarDrawer-o68z3SAe.js} (87%) rename dist/assets/{StrokeColorUpdater-C04wHVHf.js => StrokeColorUpdater-DKgLaWa7.js} (83%) rename dist/assets/{TriangleDrawer-lfOOwZVf.js => TriangleDrawer-gXtLT6rl.js} (55%) rename dist/assets/{Utils-BkPzvLhO.js => Utils-BtXoLE8f.js} (96%) rename dist/assets/{ValueWithRandom-Dsu4V_5I.js => ValueWithRandom-BsNMdqfS.js} (93%) rename dist/assets/{index-sGc9p_8U.js => index-B-eNKEuG.js} (52%) rename dist/assets/{index-Hv8I8PQE.js => index-B1uaaKWk.js} (75%) rename dist/assets/{index-DZeCeBqW.js => index-B9x42VQJ.js} (67%) create mode 100644 dist/assets/index-BGxGhBke.js delete mode 100644 dist/assets/index-BTkuQGA5.js rename dist/assets/{index-CGJZHg63.js => index-B_a7NW2Q.js} (53%) create mode 100644 dist/assets/index-BagHnuxb.js delete mode 100644 dist/assets/index-BpVT3pP3.js rename dist/assets/{index-CU9ntlVE.js => index-Bsb0ODzd.js} (75%) rename dist/assets/{index-_cpfFoC0.js => index-Bv4Ri9Dl.js} (59%) rename dist/assets/{index-Bx4LgAhS.js => index-C4gw71pV.js} (70%) create mode 100644 dist/assets/index-C5Yrt80Z.js create mode 100644 dist/assets/index-CMiNQEXp.js rename dist/assets/{index-LDb9jKip.js => index-COUjS28G.js} (88%) rename dist/assets/{index-BbPL1Txh.js => index-CShsFACI.js} (84%) delete mode 100644 dist/assets/index-CZxBByzA.js rename dist/assets/{index-DLULLknW.js => index-CbvRTKHC.js} (87%) delete mode 100644 dist/assets/index-Chj5qFiT.js delete mode 100644 dist/assets/index-Cj3Eb7FU.js rename dist/assets/{index-DzgRBc1Z.js => index-CmOj1iTh.js} (58%) rename dist/assets/{index-BGyF8PgE.js => index-CpYebIb2.js} (72%) rename dist/assets/{index-Dxcs0UKz.js => index-Cyi3q7NY.js} (69%) rename dist/assets/{index-DR0baXpM.js => index-CyymV-gL.js} (51%) rename dist/assets/{index-jKKFtAuZ.js => index-CzzyTFZc.js} (51%) rename dist/assets/{index-D0mBiceO.js => index-D4B8HC_p.js} (68%) delete mode 100644 dist/assets/index-D5dHnt_J.js rename dist/assets/{index-BRlKzsgu.js => index-DeJl6bSD.js} (70%) rename dist/assets/{index-kWzwevuU.js => index-DieO57wC.js} (75%) rename dist/assets/{index-CueqtFgO.js => index-DmxnH_zU.js} (54%) create mode 100644 dist/assets/index-DtOIm4kO.js rename dist/assets/{index-DpxouOhY.js => index-DtthGcYK.js} (58%) create mode 100644 dist/assets/index-DvFJ0GAq.js rename dist/assets/{index-Dex8x5sq.js => index-H2xFEDUi.js} (55%) create mode 100644 dist/assets/index-SbQKj88b.js delete mode 100644 dist/assets/index-Uy2IqHz2.js rename dist/assets/{index-DTnviRFa.js => index-XfIYD3kU.js} (50%) delete mode 100644 dist/assets/index-n6cAyR6z.js rename dist/assets/{index-DAZDQalY.js => index-qvjFb8Na.js} (56%) create mode 100644 dist/assets/index-wa-izovl.js rename dist/assets/{index-4z1oJj1v.js => index-xhEDNmcn.js} (72%) delete mode 100644 dist/assets/interaction-TJRqQwCj.js create mode 100644 dist/assets/interaction-aCMNmKPM.js create mode 100644 dist/assets/plugin-CNYMRRjJ.js delete mode 100644 dist/assets/plugin-CZBYx9Lq.js diff --git a/dist/assets/Attractor-BG9gjKtA.js b/dist/assets/Attractor-Bgi7YHYf.js similarity index 91% rename from dist/assets/Attractor-BG9gjKtA.js rename to dist/assets/Attractor-Bgi7YHYf.js index 1a9038f..1129511 100644 --- a/dist/assets/Attractor-BG9gjKtA.js +++ b/dist/assets/Attractor-Bgi7YHYf.js @@ -1 +1 @@ -import{P as x}from"./ParticlesInteractorBase-vfDeBun3.js";import{H as f,W as p}from"./index-BbPL1Txh.js";const l=1e3,g=1;class q extends x{constructor(t){super(t)}clear(){}init(){}interact(t){const o=this.container;t.attractDistance===void 0&&(t.attractDistance=f(t.options.move.attract.distance)*o.retina.pixelRatio);const y=t.attractDistance,i=t.getPosition(),d=o.particles.quadTree.queryCircle(i,y);for(const e of d){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const u=e.getPosition(),{dx:v,dy:m}=p(i,u),r=t.options.move.attract.rotate,c=v/(r.x*l),n=m/(r.y*l),a=e.size.value/t.size.value,s=g/a;t.velocity.x-=c*a,t.velocity.y-=n*a,e.velocity.x+=c*s,e.velocity.y+=n*s}}isEnabled(t){return t.options.move.attract.enable}reset(){}}export{q as Attractor}; +import{P as x}from"./ParticlesInteractorBase-vfDeBun3.js";import{H as f,W as p}from"./index-CShsFACI.js";const l=1e3,g=1;class q extends x{constructor(t){super(t)}clear(){}init(){}interact(t){const o=this.container;t.attractDistance===void 0&&(t.attractDistance=f(t.options.move.attract.distance)*o.retina.pixelRatio);const y=t.attractDistance,i=t.getPosition(),d=o.particles.quadTree.queryCircle(i,y);for(const e of d){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const u=e.getPosition(),{dx:v,dy:m}=p(i,u),r=t.options.move.attract.rotate,c=v/(r.x*l),n=m/(r.y*l),a=e.size.value/t.size.value,s=g/a;t.velocity.x-=c*a,t.velocity.y-=n*a,e.velocity.x+=c*s,e.velocity.y+=n*s}}isEnabled(t){return t.options.move.attract.enable}reset(){}}export{q as Attractor}; diff --git a/dist/assets/Attractor-cK3ZBMRe.js b/dist/assets/Attractor-CQdel4Fu.js similarity index 92% rename from dist/assets/Attractor-cK3ZBMRe.js rename to dist/assets/Attractor-CQdel4Fu.js index ea88549..8475903 100644 --- a/dist/assets/Attractor-cK3ZBMRe.js +++ b/dist/assets/Attractor-CQdel4Fu.js @@ -1 +1 @@ -import{C as v}from"./Ranges-DOcs18nu.js";import{W as M,L as b,X as E,O as g,q as x,t as O,S as d}from"./index-BbPL1Txh.js";import{Attract as A}from"./index-CU9ntlVE.js";import{E as C}from"./ExternalInteractorBase-CIi3zRdK.js";const q=1,D=1,y=0;function h(s,i,t,a,c){const e=s.actualOptions.interactivity.modes.attract;if(!e)return;const o=s.particles.quadTree.query(a,c);for(const r of o){const{dx:f,dy:n,distance:l}=M(r.position,i),m=e.speed*e.factor,p=b(E(e.easing)(D-l/t)*m,q,e.maxSpeed),k=g.create(l?f/l*p:m,l?n/l*p:m);r.position.subFrom(k)}}function P(s,i){s.attract||(s.attract={particles:[]});const{attract:t}=s;if(t.finish||(t.count||(t.count=0),t.count++,t.count===s.particles.count&&(t.finish=!0)),t.clicking){const a=s.interactivity.mouse.clickPosition,c=s.retina.attractModeDistance;if(!c||ci(e))}else t.clicking===!1&&(t.particles=[])}function R(s,i){const t=s.interactivity.mouse.position,a=s.retina.attractModeDistance;!a||ai(c))}const u="attract";class H extends C{constructor(i,t){super(t),this._engine=i,t.attract||(t.attract={particles:[]}),this.handleClickMode=a=>{const c=this.container.actualOptions,e=c.interactivity.modes.attract;if(!(!e||a!==u)){t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0;for(const o of t.attract.particles)this.isEnabled(o)&&o.velocity.setTo(o.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout(()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)},e.duration*x)}}}clear(){}init(){const i=this.container,t=i.actualOptions.interactivity.modes.attract;t&&(i.retina.attractModeDistance=t.distance*i.retina.pixelRatio)}interact(){const i=this.container,t=i.actualOptions,a=i.interactivity.status===O,c=t.interactivity.events,{enable:e,mode:o}=c.onHover,{enable:r,mode:f}=c.onClick;a&&e&&d(u,o)?R(this.container,n=>this.isEnabled(n)):r&&d(u,f)&&P(this.container,n=>this.isEnabled(n))}isEnabled(i){const t=this.container,a=t.actualOptions,c=t.interactivity.mouse,e=((i==null?void 0:i.interactivity)??a.interactivity).events;if((!c.position||!e.onHover.enable)&&(!c.clickPosition||!e.onClick.enable))return!1;const o=e.onHover.mode,r=e.onClick.mode;return d(u,o)||d(u,r)}loadModeOptions(i,...t){i.attract||(i.attract=new A);for(const a of t)i.attract.load(a==null?void 0:a.attract)}reset(){}}export{H as Attractor}; +import{C as v}from"./Ranges-Cgpup9mk.js";import{W as M,L as b,X as E,O as g,q as x,t as O,S as d}from"./index-CShsFACI.js";import{Attract as A}from"./index-Bsb0ODzd.js";import{E as C}from"./ExternalInteractorBase-CIi3zRdK.js";const q=1,D=1,y=0;function h(s,i,t,a,c){const e=s.actualOptions.interactivity.modes.attract;if(!e)return;const o=s.particles.quadTree.query(a,c);for(const r of o){const{dx:f,dy:n,distance:l}=M(r.position,i),m=e.speed*e.factor,p=b(E(e.easing)(D-l/t)*m,q,e.maxSpeed),k=g.create(l?f/l*p:m,l?n/l*p:m);r.position.subFrom(k)}}function P(s,i){s.attract||(s.attract={particles:[]});const{attract:t}=s;if(t.finish||(t.count||(t.count=0),t.count++,t.count===s.particles.count&&(t.finish=!0)),t.clicking){const a=s.interactivity.mouse.clickPosition,c=s.retina.attractModeDistance;if(!c||ci(e))}else t.clicking===!1&&(t.particles=[])}function R(s,i){const t=s.interactivity.mouse.position,a=s.retina.attractModeDistance;!a||ai(c))}const u="attract";class H extends C{constructor(i,t){super(t),this._engine=i,t.attract||(t.attract={particles:[]}),this.handleClickMode=a=>{const c=this.container.actualOptions,e=c.interactivity.modes.attract;if(!(!e||a!==u)){t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0;for(const o of t.attract.particles)this.isEnabled(o)&&o.velocity.setTo(o.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout(()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)},e.duration*x)}}}clear(){}init(){const i=this.container,t=i.actualOptions.interactivity.modes.attract;t&&(i.retina.attractModeDistance=t.distance*i.retina.pixelRatio)}interact(){const i=this.container,t=i.actualOptions,a=i.interactivity.status===O,c=t.interactivity.events,{enable:e,mode:o}=c.onHover,{enable:r,mode:f}=c.onClick;a&&e&&d(u,o)?R(this.container,n=>this.isEnabled(n)):r&&d(u,f)&&P(this.container,n=>this.isEnabled(n))}isEnabled(i){const t=this.container,a=t.actualOptions,c=t.interactivity.mouse,e=((i==null?void 0:i.interactivity)??a.interactivity).events;if((!c.position||!e.onHover.enable)&&(!c.clickPosition||!e.onClick.enable))return!1;const o=e.onHover.mode,r=e.onClick.mode;return d(u,o)||d(u,r)}loadModeOptions(i,...t){i.attract||(i.attract=new A);for(const a of t)i.attract.load(a==null?void 0:a.attract)}reset(){}}export{H as Attractor}; diff --git a/dist/assets/BaseMover-C1fuzGId.js b/dist/assets/BaseMover-DHnoQY2c.js similarity index 96% rename from dist/assets/BaseMover-C1fuzGId.js rename to dist/assets/BaseMover-DHnoQY2c.js index 5351771..74dcaa4 100644 --- a/dist/assets/BaseMover-C1fuzGId.js +++ b/dist/assets/BaseMover-DHnoQY2c.js @@ -1 +1 @@ -import{W as w,J as F,L as z,K as P,H as m,a3 as T}from"./index-BbPL1Txh.js";const r=.5,h=0,f=1,D=60,M=0,S=.01;function V(n){const o=n.initialPosition,{dx:e,dy:i}=w(o,n.position),a=Math.abs(e),t=Math.abs(i),{maxDistance:s}=n.retina,y=s.horizontal,v=s.vertical;if(!y&&!v)return;const d=(y&&a>=y)??!1,u=(v&&t>=v)??!1;if((d||u)&&!n.misplaced)n.misplaced=!!y&&a>y||!!v&&t>v,y&&(n.velocity.x=n.velocity.y*r-n.velocity.x),v&&(n.velocity.y=n.velocity.x*r-n.velocity.y);else if((!y||ao.x&&c.x>h)&&(c.x*=-F()),v&&(x.yo.y&&c.y>h)&&(c.y*=-F())}}function k(n,o,e,i,a,t){E(n,t);const s=n.gravity,y=s!=null&&s.enable&&s.inverse?-f:f;a&&e&&(n.velocity.x+=a*t.factor/(D*e)),s!=null&&s.enable&&e&&(n.velocity.y+=y*(s.acceleration*t.factor)/(D*e));const v=n.moveDecay;n.velocity.multTo(v);const d=n.velocity.mult(e);s!=null&&s.enable&&i>h&&(!s.inverse&&d.y>=h&&d.y>=i||s.inverse&&d.y<=h&&d.y<=-i)&&(d.y=y*i,e&&(n.velocity.y=d.y/e));const u=n.options.zIndex,x=(f-n.zIndexFactor)**u.velocityRate;d.multTo(x);const{position:c}=n;c.addTo(d),o.vibrate&&(c.x+=Math.sin(c.x*Math.cos(c.y)),c.y+=Math.cos(c.y*Math.sin(c.x)))}function A(n,o){const e=n.container;if(!n.spin)return;const i={x:n.spin.direction==="clockwise"?Math.cos:Math.sin,y:n.spin.direction==="clockwise"?Math.sin:Math.cos};n.position.x=n.spin.center.x+n.spin.radius*i.x(n.spin.angle),n.position.y=n.spin.center.y+n.spin.radius*i.y(n.spin.angle),n.spin.radius+=n.spin.acceleration;const a=Math.max(e.canvas.size.width,e.canvas.size.height),t=a*r;n.spin.radius>t?(n.spin.radius=t,n.spin.acceleration*=-f):n.spin.radius=u?"clockwise":"counter-clockwise",angle:n.velocity.angle,radius:v,acceleration:n.retina.spinAcceleration}}const H=2,O=1,B=1;class J{init(o){const e=o.options,i=e.move.gravity;o.gravity={enable:i.enable,acceleration:m(i.acceleration),inverse:i.inverse},C(o)}isEnabled(o){return!o.destroyed&&o.options.move.enable}move(o,e){var l,b;const i=o.options,a=i.move;if(!a.enable)return;const t=o.container,s=t.retina.pixelRatio;(l=o.retina).moveSpeed??(l.moveSpeed=m(a.speed)*s),(b=o.retina).moveDrift??(b.moveDrift=m(o.options.move.drift)*s);const y=I(o),v=o.retina.moveSpeed*t.retina.reduceFactor,d=o.retina.moveDrift,u=T(i.size.value)*s,x=a.size?o.getRadius()/u:O,c=e.factor||B,g=v*x*y*c/H,R=o.retina.maxSpeed??t.retina.maxSpeed;a.spin.enable?A(o,g):k(o,a,g,R,d,e),V(o)}}export{J as BaseMover}; +import{W as w,J as F,L as z,K as P,H as m,a3 as T}from"./index-CShsFACI.js";const r=.5,h=0,f=1,D=60,M=0,S=.01;function V(n){const o=n.initialPosition,{dx:e,dy:i}=w(o,n.position),a=Math.abs(e),t=Math.abs(i),{maxDistance:s}=n.retina,y=s.horizontal,v=s.vertical;if(!y&&!v)return;const d=(y&&a>=y)??!1,u=(v&&t>=v)??!1;if((d||u)&&!n.misplaced)n.misplaced=!!y&&a>y||!!v&&t>v,y&&(n.velocity.x=n.velocity.y*r-n.velocity.x),v&&(n.velocity.y=n.velocity.x*r-n.velocity.y);else if((!y||ao.x&&c.x>h)&&(c.x*=-F()),v&&(x.yo.y&&c.y>h)&&(c.y*=-F())}}function k(n,o,e,i,a,t){E(n,t);const s=n.gravity,y=s!=null&&s.enable&&s.inverse?-f:f;a&&e&&(n.velocity.x+=a*t.factor/(D*e)),s!=null&&s.enable&&e&&(n.velocity.y+=y*(s.acceleration*t.factor)/(D*e));const v=n.moveDecay;n.velocity.multTo(v);const d=n.velocity.mult(e);s!=null&&s.enable&&i>h&&(!s.inverse&&d.y>=h&&d.y>=i||s.inverse&&d.y<=h&&d.y<=-i)&&(d.y=y*i,e&&(n.velocity.y=d.y/e));const u=n.options.zIndex,x=(f-n.zIndexFactor)**u.velocityRate;d.multTo(x);const{position:c}=n;c.addTo(d),o.vibrate&&(c.x+=Math.sin(c.x*Math.cos(c.y)),c.y+=Math.cos(c.y*Math.sin(c.x)))}function A(n,o){const e=n.container;if(!n.spin)return;const i={x:n.spin.direction==="clockwise"?Math.cos:Math.sin,y:n.spin.direction==="clockwise"?Math.sin:Math.cos};n.position.x=n.spin.center.x+n.spin.radius*i.x(n.spin.angle),n.position.y=n.spin.center.y+n.spin.radius*i.y(n.spin.angle),n.spin.radius+=n.spin.acceleration;const a=Math.max(e.canvas.size.width,e.canvas.size.height),t=a*r;n.spin.radius>t?(n.spin.radius=t,n.spin.acceleration*=-f):n.spin.radius=u?"clockwise":"counter-clockwise",angle:n.velocity.angle,radius:v,acceleration:n.retina.spinAcceleration}}const H=2,O=1,B=1;class J{init(o){const e=o.options,i=e.move.gravity;o.gravity={enable:i.enable,acceleration:m(i.acceleration),inverse:i.inverse},C(o)}isEnabled(o){return!o.destroyed&&o.options.move.enable}move(o,e){var l,b;const i=o.options,a=i.move;if(!a.enable)return;const t=o.container,s=t.retina.pixelRatio;(l=o.retina).moveSpeed??(l.moveSpeed=m(a.speed)*s),(b=o.retina).moveDrift??(b.moveDrift=m(o.options.move.drift)*s);const y=I(o),v=o.retina.moveSpeed*t.retina.reduceFactor,d=o.retina.moveDrift,u=T(i.size.value)*s,x=a.size?o.getRadius()/u:O,c=e.factor||B,g=v*x*y*c/H,R=o.retina.maxSpeed??t.retina.maxSpeed;a.spin.enable?A(o,g):k(o,a,g,R,d,e),V(o)}}export{J as BaseMover}; diff --git a/dist/assets/Bouncer-6wC7AxvL.js b/dist/assets/Bouncer-BFBk-ddf.js similarity index 93% rename from dist/assets/Bouncer-6wC7AxvL.js rename to dist/assets/Bouncer-BFBk-ddf.js index 226e0fc..838ff8f 100644 --- a/dist/assets/Bouncer-6wC7AxvL.js +++ b/dist/assets/Bouncer-BFBk-ddf.js @@ -1 +1 @@ -import{Y as E,Z as M,O as m,$ as R,a0 as g,a1 as q,t as D,S as p,a2 as H}from"./index-BbPL1Txh.js";import{C as d,R as b}from"./Ranges-DOcs18nu.js";import{Bounce as O}from"./index-Dex8x5sq.js";import{E as w}from"./ExternalInteractorBase-CIi3zRdK.js";const I=2,l=.5,P=Math.PI*l,h=2,y=10,S=0;function x(c,e,t,o,s){const i=c.particles.quadTree.query(o,s);for(const n of i)o instanceof d?M(R(n),{position:e,radius:t,mass:t**I*P,velocity:m.origin,factor:m.origin}):o instanceof b&&g(n,q(e,t))}function T(c,e,t,o){const s=document.querySelectorAll(e);s.length&&s.forEach(i=>{const n=i,a=c.retina.pixelRatio,r={x:(n.offsetLeft+n.offsetWidth*l)*a,y:(n.offsetTop+n.offsetHeight*l)*a},v=n.offsetWidth*l*a,u=y*a,B=t.type==="circle"?new d(r.x,r.y,v+u):new b(n.offsetLeft*a-u,n.offsetTop*a-u,n.offsetWidth*a+u*h,n.offsetHeight*a+u*h);o(r,v,B)})}function W(c,e,t,o){E(t,e,(s,i)=>T(c,s,i,(n,a,r)=>x(c,n,a,r,o)))}function A(c,e){const t=c.retina.pixelRatio,o=y*t,s=c.interactivity.mouse.position,i=c.retina.bounceModeDistance;!i||ithis.isEnabled(r)):W(this.container,a,f,r=>this.isEnabled(r))}isEnabled(e){const t=this.container,o=t.actualOptions,s=t.interactivity.mouse,i=((e==null?void 0:e.interactivity)??o.interactivity).events,n=i.onDiv;return!!s.position&&i.onHover.enable&&p(f,i.onHover.mode)||H(f,n)}loadModeOptions(e,...t){e.bounce||(e.bounce=new O);for(const o of t)e.bounce.load(o==null?void 0:o.bounce)}reset(){}}export{Y as Bouncer}; +import{Y as E,Z as M,O as m,$ as R,a0 as g,a1 as q,t as D,S as p,a2 as H}from"./index-CShsFACI.js";import{C as d,R as b}from"./Ranges-Cgpup9mk.js";import{Bounce as O}from"./index-H2xFEDUi.js";import{E as w}from"./ExternalInteractorBase-CIi3zRdK.js";const I=2,l=.5,P=Math.PI*l,h=2,y=10,S=0;function x(c,e,t,o,s){const i=c.particles.quadTree.query(o,s);for(const n of i)o instanceof d?M(R(n),{position:e,radius:t,mass:t**I*P,velocity:m.origin,factor:m.origin}):o instanceof b&&g(n,q(e,t))}function T(c,e,t,o){const s=document.querySelectorAll(e);s.length&&s.forEach(i=>{const n=i,a=c.retina.pixelRatio,r={x:(n.offsetLeft+n.offsetWidth*l)*a,y:(n.offsetTop+n.offsetHeight*l)*a},v=n.offsetWidth*l*a,u=y*a,B=t.type==="circle"?new d(r.x,r.y,v+u):new b(n.offsetLeft*a-u,n.offsetTop*a-u,n.offsetWidth*a+u*h,n.offsetHeight*a+u*h);o(r,v,B)})}function W(c,e,t,o){E(t,e,(s,i)=>T(c,s,i,(n,a,r)=>x(c,n,a,r,o)))}function A(c,e){const t=c.retina.pixelRatio,o=y*t,s=c.interactivity.mouse.position,i=c.retina.bounceModeDistance;!i||ithis.isEnabled(r)):W(this.container,a,f,r=>this.isEnabled(r))}isEnabled(e){const t=this.container,o=t.actualOptions,s=t.interactivity.mouse,i=((e==null?void 0:e.interactivity)??o.interactivity).events,n=i.onDiv;return!!s.position&&i.onHover.enable&&p(f,i.onHover.mode)||H(f,n)}loadModeOptions(e,...t){e.bounce||(e.bounce=new O);for(const o of t)e.bounce.load(o==null?void 0:o.bounce)}reset(){}}export{Y as Bouncer}; diff --git a/dist/assets/Bubbler-DBb423FI.js b/dist/assets/Bubbler-D3Q8Q7o4.js similarity index 96% rename from dist/assets/Bubbler-DBb423FI.js rename to dist/assets/Bubbler-D3Q8Q7o4.js index 0e8f5f3..641011d 100644 --- a/dist/assets/Bubbler-DBb423FI.js +++ b/dist/assets/Bubbler-D3Q8Q7o4.js @@ -1 +1 @@ -import{Bubble as S}from"./index-Dxcs0UKz.js";import{L as _,K as E,q as D,a3 as m,t as B,C as j,Q as q,r as T,a4 as H,a5 as P,a6 as w,S as O,Y as L,a2 as W}from"./index-BbPL1Txh.js";import{E as A}from"./ExternalInteractorBase-CIi3zRdK.js";import{C as F,R as I}from"./Ranges-DOcs18nu.js";import"./OptionsColor-Ceq0kCZC.js";function R(y,i,e,n){if(i>=e){const o=y+(i-e)*n;return _(o,y,i)}else if(i{var b;const e=this.container,n=e.actualOptions,o=e.interactivity.mouse.clickPosition,s=n.interactivity.modes.bubble;if(!s||!o)return;e.bubble||(e.bubble={});const t=e.retina.bubbleModeDistance;if(!t||tthis.isEnabled(l)),{bubble:u}=e;for(const l of a){if(!u.clicking)continue;l.bubble.inRange=!u.durationEnd;const c=l.getPosition(),f=E(c,o),d=(new Date().getTime()-(e.interactivity.mouse.clickTime??K))/D;d>s.duration&&(u.durationEnd=!0),d>s.duration*Q&&(u.clicking=!1,u.durationEnd=!1);const p={bubbleObj:{optValue:e.retina.bubbleModeSize,value:l.bubble.radius},particlesObj:{optValue:m(l.options.size.value)*e.retina.pixelRatio,value:l.size.value},type:"size"};this._process(l,f,d,p);const r={bubbleObj:{optValue:s.opacity,value:l.bubble.opacity},particlesObj:{optValue:m(l.options.opacity.value),value:((b=l.opacity)==null?void 0:b.value)??k},type:"opacity"};this._process(l,f,d,r),!u.durationEnd&&f<=t?this._hoverBubbleColor(l,f):delete l.bubble.color}},this._hoverBubble=()=>{const e=this.container,n=e.interactivity.mouse.position,o=e.retina.bubbleModeDistance;if(!o||othis.isEnabled(t));for(const t of s){t.bubble.inRange=!0;const a=t.getPosition(),u=E(a,n),b=x-u/o;u<=o?b>=G&&e.interactivity.status===B&&(this._hoverBubbleSize(t,b),this._hoverBubbleOpacity(t,b),this._hoverBubbleColor(t,b)):this.reset(t),e.interactivity.status===j&&this.reset(t)}},this._hoverBubbleColor=(e,n,o)=>{const s=this.container.actualOptions,t=o??s.interactivity.modes.bubble;if(t){if(!e.bubble.finalColor){const a=t.color;if(!a)return;const u=q(a);e.bubble.finalColor=T(u)}if(e.bubble.finalColor)if(t.mix){e.bubble.color=void 0;const a=e.getFillColor();e.bubble.color=a?H(P(a,e.bubble.finalColor,x-n,n)):e.bubble.finalColor}else e.bubble.color=e.bubble.finalColor}},this._hoverBubbleOpacity=(e,n,o)=>{var c,f;const s=this.container,t=s.actualOptions,a=(o==null?void 0:o.opacity)??((c=t.interactivity.modes.bubble)==null?void 0:c.opacity);if(!a)return;const u=e.options.opacity.value,b=((f=e.opacity)==null?void 0:f.value)??k,l=R(b,a,m(u),n);l!==void 0&&(e.bubble.opacity=l)},this._hoverBubbleSize=(e,n,o)=>{const s=this.container,t=o!=null&&o.size?o.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(t===void 0)return;const a=m(e.options.size.value)*s.retina.pixelRatio,u=e.size.value,b=R(u,t,a,n);b!==void 0&&(e.bubble.radius=b)},this._process=(e,n,o,s)=>{const t=this.container,a=s.bubbleObj.optValue,u=t.actualOptions,b=u.interactivity.modes.bubble;if(!b||a===void 0)return;const l=b.duration,c=t.retina.bubbleModeDistance,f=s.particlesObj.optValue,d=s.bubbleObj.value,p=s.particlesObj.value??Y,r=s.type;if(!(!c||c{const s=this.container,t=document.querySelectorAll(n),a=s.actualOptions.interactivity.modes.bubble;!a||!t.length||t.forEach(u=>{const b=u,l=s.retina.pixelRatio,c={x:(b.offsetLeft+b.offsetWidth*g)*l,y:(b.offsetTop+b.offsetHeight*g)*l},f=b.offsetWidth*g*l,d=o.type==="circle"?new F(c.x,c.y,f):new I(b.offsetLeft*l,b.offsetTop*l,b.offsetWidth*l,b.offsetHeight*l),p=s.particles.quadTree.query(d,r=>this.isEnabled(r));for(const r of p){if(!d.contains(r.getPosition()))continue;r.bubble.inRange=!0;const M=a.divs,h=w(M,b);(!r.bubble.div||r.bubble.div!==b)&&(this.clear(r,e,!0),r.bubble.div=b),this._hoverBubbleSize(r,z,h),this._hoverBubbleOpacity(r,z,h),this._hoverBubbleColor(r,z,h)}})},i.bubble||(i.bubble={}),this.handleClickMode=e=>{e===v&&(i.bubble||(i.bubble={}),i.bubble.clicking=!0)}}clear(i,e,n){i.bubble.inRange&&!n||(delete i.bubble.div,delete i.bubble.opacity,delete i.bubble.radius,delete i.bubble.color)}init(){const i=this.container,e=i.actualOptions.interactivity.modes.bubble;e&&(i.retina.bubbleModeDistance=e.distance*i.retina.pixelRatio,e.size!==void 0&&(i.retina.bubbleModeSize=e.size*i.retina.pixelRatio))}interact(i){const e=this.container.actualOptions,n=e.interactivity.events,o=n.onHover,s=n.onClick,t=o.enable,a=o.mode,u=s.enable,b=s.mode,l=n.onDiv;t&&O(v,a)?this._hoverBubble():u&&O(v,b)?this._clickBubble():L(v,l,(c,f)=>this._singleSelectorHover(i,c,f))}isEnabled(i){const e=this.container,n=e.actualOptions,o=e.interactivity.mouse,s=((i==null?void 0:i.interactivity)??n.interactivity).events,{onClick:t,onDiv:a,onHover:u}=s,b=W(v,a);return b||u.enable&&o.position||t.enable&&o.clickPosition?O(v,u.mode)||O(v,t.mode)||b:!1}loadModeOptions(i,...e){i.bubble||(i.bubble=new S);for(const n of e)i.bubble.load(n==null?void 0:n.bubble)}reset(i){i.bubble.inRange=!1}}export{$ as Bubbler}; +import{Bubble as S}from"./index-Cyi3q7NY.js";import{L as _,K as E,q as D,a3 as m,t as B,C as j,Q as q,r as T,a4 as H,a5 as P,a6 as w,S as O,Y as L,a2 as W}from"./index-CShsFACI.js";import{E as A}from"./ExternalInteractorBase-CIi3zRdK.js";import{C as F,R as I}from"./Ranges-Cgpup9mk.js";import"./OptionsColor-39-7GBLs.js";function R(y,i,e,n){if(i>=e){const o=y+(i-e)*n;return _(o,y,i)}else if(i{var b;const e=this.container,n=e.actualOptions,o=e.interactivity.mouse.clickPosition,s=n.interactivity.modes.bubble;if(!s||!o)return;e.bubble||(e.bubble={});const t=e.retina.bubbleModeDistance;if(!t||tthis.isEnabled(l)),{bubble:u}=e;for(const l of a){if(!u.clicking)continue;l.bubble.inRange=!u.durationEnd;const c=l.getPosition(),f=E(c,o),d=(new Date().getTime()-(e.interactivity.mouse.clickTime??K))/D;d>s.duration&&(u.durationEnd=!0),d>s.duration*Q&&(u.clicking=!1,u.durationEnd=!1);const p={bubbleObj:{optValue:e.retina.bubbleModeSize,value:l.bubble.radius},particlesObj:{optValue:m(l.options.size.value)*e.retina.pixelRatio,value:l.size.value},type:"size"};this._process(l,f,d,p);const r={bubbleObj:{optValue:s.opacity,value:l.bubble.opacity},particlesObj:{optValue:m(l.options.opacity.value),value:((b=l.opacity)==null?void 0:b.value)??k},type:"opacity"};this._process(l,f,d,r),!u.durationEnd&&f<=t?this._hoverBubbleColor(l,f):delete l.bubble.color}},this._hoverBubble=()=>{const e=this.container,n=e.interactivity.mouse.position,o=e.retina.bubbleModeDistance;if(!o||othis.isEnabled(t));for(const t of s){t.bubble.inRange=!0;const a=t.getPosition(),u=E(a,n),b=x-u/o;u<=o?b>=G&&e.interactivity.status===B&&(this._hoverBubbleSize(t,b),this._hoverBubbleOpacity(t,b),this._hoverBubbleColor(t,b)):this.reset(t),e.interactivity.status===j&&this.reset(t)}},this._hoverBubbleColor=(e,n,o)=>{const s=this.container.actualOptions,t=o??s.interactivity.modes.bubble;if(t){if(!e.bubble.finalColor){const a=t.color;if(!a)return;const u=q(a);e.bubble.finalColor=T(u)}if(e.bubble.finalColor)if(t.mix){e.bubble.color=void 0;const a=e.getFillColor();e.bubble.color=a?H(P(a,e.bubble.finalColor,x-n,n)):e.bubble.finalColor}else e.bubble.color=e.bubble.finalColor}},this._hoverBubbleOpacity=(e,n,o)=>{var c,f;const s=this.container,t=s.actualOptions,a=(o==null?void 0:o.opacity)??((c=t.interactivity.modes.bubble)==null?void 0:c.opacity);if(!a)return;const u=e.options.opacity.value,b=((f=e.opacity)==null?void 0:f.value)??k,l=R(b,a,m(u),n);l!==void 0&&(e.bubble.opacity=l)},this._hoverBubbleSize=(e,n,o)=>{const s=this.container,t=o!=null&&o.size?o.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(t===void 0)return;const a=m(e.options.size.value)*s.retina.pixelRatio,u=e.size.value,b=R(u,t,a,n);b!==void 0&&(e.bubble.radius=b)},this._process=(e,n,o,s)=>{const t=this.container,a=s.bubbleObj.optValue,u=t.actualOptions,b=u.interactivity.modes.bubble;if(!b||a===void 0)return;const l=b.duration,c=t.retina.bubbleModeDistance,f=s.particlesObj.optValue,d=s.bubbleObj.value,p=s.particlesObj.value??Y,r=s.type;if(!(!c||c{const s=this.container,t=document.querySelectorAll(n),a=s.actualOptions.interactivity.modes.bubble;!a||!t.length||t.forEach(u=>{const b=u,l=s.retina.pixelRatio,c={x:(b.offsetLeft+b.offsetWidth*g)*l,y:(b.offsetTop+b.offsetHeight*g)*l},f=b.offsetWidth*g*l,d=o.type==="circle"?new F(c.x,c.y,f):new I(b.offsetLeft*l,b.offsetTop*l,b.offsetWidth*l,b.offsetHeight*l),p=s.particles.quadTree.query(d,r=>this.isEnabled(r));for(const r of p){if(!d.contains(r.getPosition()))continue;r.bubble.inRange=!0;const M=a.divs,h=w(M,b);(!r.bubble.div||r.bubble.div!==b)&&(this.clear(r,e,!0),r.bubble.div=b),this._hoverBubbleSize(r,z,h),this._hoverBubbleOpacity(r,z,h),this._hoverBubbleColor(r,z,h)}})},i.bubble||(i.bubble={}),this.handleClickMode=e=>{e===v&&(i.bubble||(i.bubble={}),i.bubble.clicking=!0)}}clear(i,e,n){i.bubble.inRange&&!n||(delete i.bubble.div,delete i.bubble.opacity,delete i.bubble.radius,delete i.bubble.color)}init(){const i=this.container,e=i.actualOptions.interactivity.modes.bubble;e&&(i.retina.bubbleModeDistance=e.distance*i.retina.pixelRatio,e.size!==void 0&&(i.retina.bubbleModeSize=e.size*i.retina.pixelRatio))}interact(i){const e=this.container.actualOptions,n=e.interactivity.events,o=n.onHover,s=n.onClick,t=o.enable,a=o.mode,u=s.enable,b=s.mode,l=n.onDiv;t&&O(v,a)?this._hoverBubble():u&&O(v,b)?this._clickBubble():L(v,l,(c,f)=>this._singleSelectorHover(i,c,f))}isEnabled(i){const e=this.container,n=e.actualOptions,o=e.interactivity.mouse,s=((i==null?void 0:i.interactivity)??n.interactivity).events,{onClick:t,onDiv:a,onHover:u}=s,b=W(v,a);return b||u.enable&&o.position||t.enable&&o.clickPosition?O(v,u.mode)||O(v,t.mode)||b:!1}loadModeOptions(i,...e){i.bubble||(i.bubble=new S);for(const n of e)i.bubble.load(n==null?void 0:n.bubble)}reset(i){i.bubble.inRange=!1}}export{$ as Bubbler}; diff --git a/dist/assets/CanvasUtils-DQ_CMgM7.js b/dist/assets/CanvasUtils-DvqPZfvK.js similarity index 97% rename from dist/assets/CanvasUtils-DQ_CMgM7.js rename to dist/assets/CanvasUtils-DvqPZfvK.js index 5a38502..5a58bb6 100644 --- a/dist/assets/CanvasUtils-DQ_CMgM7.js +++ b/dist/assets/CanvasUtils-DvqPZfvK.js @@ -1 +1 @@ -import{n as P}from"./index-BbPL1Txh.js";const c={x:0,y:0};function W(r,t,a){r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(a.x,a.y),r.closePath()}function T(r,t,a){r.fillStyle=a??"rgba(0,0,0,0)",r.fillRect(c.x,c.y,t.width,t.height)}function A(r,t,a,e){a&&(r.globalAlpha=e,r.drawImage(a,c.x,c.y,t.width,t.height),r.globalAlpha=1)}function O(r,t){r.clearRect(c.x,c.y,t.width,t.height)}function v(r){const{container:t,context:a,particle:e,delta:s,colorStyles:i,backgroundMask:n,composite:l,radius:o,opacity:u,shadow:f,transform:h}=r,m=e.getPosition(),x=0,y=e.rotation+(e.pathRotation?e.velocity.angle:x),p={sin:Math.sin(y),cos:Math.cos(y)},w=1,d={a:p.cos*(h.a??w),b:p.sin*(h.b??w),c:-p.sin*(h.c??w),d:p.cos*(h.d??w)};a.setTransform(d.a,d.b,d.c,d.d,m.x,m.y),n&&(a.globalCompositeOperation=l);const D=e.shadowColor;f.enable&&D&&(a.shadowBlur=f.blur,a.shadowColor=P(D),a.shadowOffsetX=f.offset.x,a.shadowOffsetY=f.offset.y),i.fill&&(a.fillStyle=i.fill);const k=0,b=e.strokeWidth??k;a.lineWidth=b,i.stroke&&(a.strokeStyle=i.stroke);const g={container:t,context:a,particle:e,radius:o,opacity:u,delta:s,transformData:d,strokeWidth:b};S(g),C(g),R(g),a.globalCompositeOperation="source-over",a.resetTransform()}function R(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,transformData:l}=r;if(!e.effect)return;const o=t.effectDrawers.get(e.effect);o&&o.draw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...l}})}function S(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,strokeWidth:l,transformData:o}=r,u=0;if(!e.shape)return;const f=t.shapeDrawers.get(e.shape);f&&(a.beginPath(),f.draw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...o}}),e.shapeClose&&a.closePath(),l>u&&a.stroke(),e.shapeFill&&a.fill())}function C(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,transformData:l}=r;if(!e.shape)return;const o=t.shapeDrawers.get(e.shape);o!=null&&o.afterDraw&&o.afterDraw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...l}})}function M(r,t,a){t.draw&&t.draw(r,a)}function B(r,t,a,e){t.drawParticle&&t.drawParticle(r,a,e)}function I(r,t,a){return{h:r.h,s:r.s,l:r.l+(t==="darken"?-1:1)*a}}export{A as a,B as b,O as c,v as d,M as e,I as f,W as g,T as p}; +import{n as P}from"./index-CShsFACI.js";const c={x:0,y:0};function W(r,t,a){r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(a.x,a.y),r.closePath()}function T(r,t,a){r.fillStyle=a??"rgba(0,0,0,0)",r.fillRect(c.x,c.y,t.width,t.height)}function A(r,t,a,e){a&&(r.globalAlpha=e,r.drawImage(a,c.x,c.y,t.width,t.height),r.globalAlpha=1)}function O(r,t){r.clearRect(c.x,c.y,t.width,t.height)}function v(r){const{container:t,context:a,particle:e,delta:s,colorStyles:i,backgroundMask:n,composite:l,radius:o,opacity:u,shadow:f,transform:h}=r,m=e.getPosition(),x=0,y=e.rotation+(e.pathRotation?e.velocity.angle:x),p={sin:Math.sin(y),cos:Math.cos(y)},w=1,d={a:p.cos*(h.a??w),b:p.sin*(h.b??w),c:-p.sin*(h.c??w),d:p.cos*(h.d??w)};a.setTransform(d.a,d.b,d.c,d.d,m.x,m.y),n&&(a.globalCompositeOperation=l);const D=e.shadowColor;f.enable&&D&&(a.shadowBlur=f.blur,a.shadowColor=P(D),a.shadowOffsetX=f.offset.x,a.shadowOffsetY=f.offset.y),i.fill&&(a.fillStyle=i.fill);const k=0,b=e.strokeWidth??k;a.lineWidth=b,i.stroke&&(a.strokeStyle=i.stroke);const g={container:t,context:a,particle:e,radius:o,opacity:u,delta:s,transformData:d,strokeWidth:b};S(g),C(g),R(g),a.globalCompositeOperation="source-over",a.resetTransform()}function R(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,transformData:l}=r;if(!e.effect)return;const o=t.effectDrawers.get(e.effect);o&&o.draw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...l}})}function S(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,strokeWidth:l,transformData:o}=r,u=0;if(!e.shape)return;const f=t.shapeDrawers.get(e.shape);f&&(a.beginPath(),f.draw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...o}}),e.shapeClose&&a.closePath(),l>u&&a.stroke(),e.shapeFill&&a.fill())}function C(r){const{container:t,context:a,particle:e,radius:s,opacity:i,delta:n,transformData:l}=r;if(!e.shape)return;const o=t.shapeDrawers.get(e.shape);o!=null&&o.afterDraw&&o.afterDraw({context:a,particle:e,radius:s,opacity:i,delta:n,pixelRatio:t.retina.pixelRatio,transformData:{...l}})}function M(r,t,a){t.draw&&t.draw(r,a)}function B(r,t,a,e){t.drawParticle&&t.drawParticle(r,a,e)}function I(r,t,a){return{h:r.h,s:r.s,l:r.l+(t==="darken"?-1:1)*a}}export{A as a,B as b,O as c,v as d,M as e,I as f,W as g,T as p}; diff --git a/dist/assets/CircleDrawer-DUM8-Gh5.js b/dist/assets/CircleDrawer-2c1i4lI_.js similarity index 86% rename from dist/assets/CircleDrawer-DUM8-Gh5.js rename to dist/assets/CircleDrawer-2c1i4lI_.js index 88faaf8..6f7eeff 100644 --- a/dist/assets/CircleDrawer-DUM8-Gh5.js +++ b/dist/assets/CircleDrawer-2c1i4lI_.js @@ -1 +1 @@ -import{j as m,G as c}from"./index-BbPL1Txh.js";const o=2,s=Math.PI*o,g=0,t={x:0,y:0};function x(r){const{context:i,particle:e,radius:a}=r;e.circleRange||(e.circleRange={min:g,max:s});const n=e.circleRange;i.arc(t.x,t.y,a,n.min,n.max,!1)}const d=12,u=360,l=0;class f{draw(i){x(i)}getSidesCount(){return d}particleInit(i,e){const a=e.shapeData,n=(a==null?void 0:a.angle)??{max:u,min:l};e.circleRange=m(n)?{min:c(n.min),max:c(n.max)}:{min:l,max:c(n)}}}export{f as CircleDrawer}; +import{j as m,G as c}from"./index-CShsFACI.js";const o=2,s=Math.PI*o,g=0,t={x:0,y:0};function x(r){const{context:i,particle:e,radius:a}=r;e.circleRange||(e.circleRange={min:g,max:s});const n=e.circleRange;i.arc(t.x,t.y,a,n.min,n.max,!1)}const d=12,u=360,l=0;class f{draw(i){x(i)}getSidesCount(){return d}particleInit(i,e){const a=e.shapeData,n=(a==null?void 0:a.angle)??{max:u,min:l};e.circleRange=m(n)?{min:c(n.min),max:c(n.max)}:{min:l,max:c(n)}}}export{f as CircleDrawer}; diff --git a/dist/assets/Collider-DqsnJ90f.js b/dist/assets/Collider-CSRYd96m.js similarity index 96% rename from dist/assets/Collider-DqsnJ90f.js rename to dist/assets/Collider-CSRYd96m.js index 15a0284..5062941 100644 --- a/dist/assets/Collider-DqsnJ90f.js +++ b/dist/assets/Collider-CSRYd96m.js @@ -1 +1 @@ -import{L as R,Z as m,$ as l,H as h,K as x}from"./index-BbPL1Txh.js";import{P}from"./ParticlesInteractorBase-vfDeBun3.js";const M=.5,v=10,S=0;function u(e,i,n,t,o,s){const d=R(e.options.collisions.absorb.speed*o.factor/v,S,t);e.size.value+=d*M,n.size.value-=d,t<=s&&(n.size.value=0,n.destroy())}function k(e,i,n,t){const o=e.getRadius(),s=i.getRadius();o===void 0&&s!==void 0?e.destroy():o!==void 0&&s===void 0?i.destroy():o!==void 0&&s!==void 0&&(o>=s?u(e,o,i,s,n,t):u(i,s,e,o,n,t))}const f=e=>{e.collisionMaxSpeed===void 0&&(e.collisionMaxSpeed=h(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function b(e,i){m(l(e),l(i)),f(e),f(i)}function z(e,i){!e.unbreakable&&!i.unbreakable&&b(e,i),e.getRadius()===void 0&&i.getRadius()!==void 0?e.destroy():e.getRadius()!==void 0&&i.getRadius()===void 0?i.destroy():e.getRadius()!==void 0&&i.getRadius()!==void 0&&(e.getRadius()>=i.getRadius()?i:e).destroy()}function B(e,i,n,t){switch(e.options.collisions.mode){case"absorb":{k(e,i,n,t);break}case"bounce":{b(e,i);break}case"destroy":{z(e,i);break}}}const q=2;class F extends P{constructor(i){super(i)}clear(){}init(){}interact(i,n){if(i.destroyed||i.spawning)return;const t=this.container,o=i.getPosition(),s=i.getRadius(),d=t.particles.quadTree.queryCircle(o,s*q);for(const a of d){if(i===a||!a.options.collisions.enable||i.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const r=a.getPosition(),c=a.getRadius();if(Math.abs(Math.round(o.z)-Math.round(r.z))>s+c)continue;const g=x(o,r),y=s+c;g>y||B(i,a,n,t.retina.pixelRatio)}}isEnabled(i){return i.options.collisions.enable}reset(){}}export{F as Collider}; +import{L as R,Z as m,$ as l,H as h,K as x}from"./index-CShsFACI.js";import{P}from"./ParticlesInteractorBase-vfDeBun3.js";const M=.5,v=10,S=0;function u(e,i,n,t,o,s){const d=R(e.options.collisions.absorb.speed*o.factor/v,S,t);e.size.value+=d*M,n.size.value-=d,t<=s&&(n.size.value=0,n.destroy())}function k(e,i,n,t){const o=e.getRadius(),s=i.getRadius();o===void 0&&s!==void 0?e.destroy():o!==void 0&&s===void 0?i.destroy():o!==void 0&&s!==void 0&&(o>=s?u(e,o,i,s,n,t):u(i,s,e,o,n,t))}const f=e=>{e.collisionMaxSpeed===void 0&&(e.collisionMaxSpeed=h(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function b(e,i){m(l(e),l(i)),f(e),f(i)}function z(e,i){!e.unbreakable&&!i.unbreakable&&b(e,i),e.getRadius()===void 0&&i.getRadius()!==void 0?e.destroy():e.getRadius()!==void 0&&i.getRadius()===void 0?i.destroy():e.getRadius()!==void 0&&i.getRadius()!==void 0&&(e.getRadius()>=i.getRadius()?i:e).destroy()}function B(e,i,n,t){switch(e.options.collisions.mode){case"absorb":{k(e,i,n,t);break}case"bounce":{b(e,i);break}case"destroy":{z(e,i);break}}}const q=2;class F extends P{constructor(i){super(i)}clear(){}init(){}interact(i,n){if(i.destroyed||i.spawning)return;const t=this.container,o=i.getPosition(),s=i.getRadius(),d=t.particles.quadTree.queryCircle(o,s*q);for(const a of d){if(i===a||!a.options.collisions.enable||i.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const r=a.getPosition(),c=a.getRadius();if(Math.abs(Math.round(o.z)-Math.round(r.z))>s+c)continue;const g=x(o,r),y=s+c;g>y||B(i,a,n,t.retina.pixelRatio)}}isEnabled(i){return i.options.collisions.enable}reset(){}}export{F as Collider}; diff --git a/dist/assets/ColorUpdater-8gej-bYz.js b/dist/assets/ColorUpdater-D9uYGMD0.js similarity index 88% rename from dist/assets/ColorUpdater-8gej-bYz.js rename to dist/assets/ColorUpdater-D9uYGMD0.js index a3b236c..eb31024 100644 --- a/dist/assets/ColorUpdater-8gej-bYz.js +++ b/dist/assets/ColorUpdater-D9uYGMD0.js @@ -1 +1 @@ -import{r as a,ac as t,ad as d}from"./index-BbPL1Txh.js";class u{constructor(n){this.container=n}init(n){const e=a(n.options.color,n.id,n.options.reduceDuplicates);e&&(n.color=t(e,n.options.color.animation,this.container.retina.reduceFactor))}isEnabled(n){const{h:e,s:i,l:s}=n.options.color.animation,{color:o}=n;return!n.destroyed&&!n.spawning&&((o==null?void 0:o.h.value)!==void 0&&e.enable||(o==null?void 0:o.s.value)!==void 0&&i.enable||(o==null?void 0:o.l.value)!==void 0&&s.enable)}update(n,e){d(n.color,e)}}export{u as ColorUpdater}; +import{r as a,ac as t,ad as d}from"./index-CShsFACI.js";class u{constructor(n){this.container=n}init(n){const e=a(n.options.color,n.id,n.options.reduceDuplicates);e&&(n.color=t(e,n.options.color.animation,this.container.retina.reduceFactor))}isEnabled(n){const{h:e,s:i,l:s}=n.options.color.animation,{color:o}=n;return!n.destroyed&&!n.spawning&&((o==null?void 0:o.h.value)!==void 0&&e.enable||(o==null?void 0:o.s.value)!==void 0&&i.enable||(o==null?void 0:o.l.value)!==void 0&&s.enable)}update(n,e){d(n.color,e)}}export{u as ColorUpdater}; diff --git a/dist/assets/Connector-DFByauI0.js b/dist/assets/Connector-CUk_Iy0P.js similarity index 90% rename from dist/assets/Connector-DFByauI0.js rename to dist/assets/Connector-CUk_Iy0P.js index 5084d98..38cdf80 100644 --- a/dist/assets/Connector-DFByauI0.js +++ b/dist/assets/Connector-CUk_Iy0P.js @@ -1 +1 @@ -import{Connect as x}from"./index-BGyF8PgE.js";import{g as C}from"./CanvasUtils-DQ_CMgM7.js";import{a5 as R,g as m,L as P,n as S,S as O}from"./index-BbPL1Txh.js";import{E as k}from"./ExternalInteractorBase-CIi3zRdK.js";const y=0,v=1,w=0;function D(i,t,n,o){const e=Math.floor(n.getRadius()/t.getRadius()),s=t.getFillColor(),a=n.getFillColor();if(!s||!a)return;const d=t.getPosition(),r=n.getPosition(),l=R(s,a,t.getRadius(),n.getRadius()),c=i.createLinearGradient(d.x,d.y,r.x,r.y);return c.addColorStop(y,m(s,o)),c.addColorStop(P(e,y,v),S(l,o)),c.addColorStop(v,m(a,o)),c}function E(i,t,n,o,e){C(i,o,e),i.lineWidth=t,i.strokeStyle=n,i.stroke()}function L(i,t,n,o){const e=i.actualOptions,s=e.interactivity.modes.connect;if(s)return D(t,n,o,s.links.opacity)}function F(i,t,n){i.canvas.draw(o=>{const e=L(i,o,t,n);if(!e)return;const s=t.getPosition(),a=n.getPosition();E(o,t.retina.linksWidth??w,e,s,a)})}const H="connect",M=0;class B extends k{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.connect;n&&(t.retina.connectModeDistance=n.distance*t.retina.pixelRatio,t.retina.connectModeRadius=n.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const o=t.interactivity.mouse.position,{connectModeDistance:e,connectModeRadius:s}=t.retina;if(!e||ethis.isEnabled(r));d.forEach((r,l)=>{const c=r.getPosition(),p=1;for(const u of d.slice(l+p)){const f=u.getPosition(),g=Math.abs(e),h=Math.abs(c.x-f.x),b=Math.abs(c.y-f.y);h{const e=L(i,o,t,n);if(!e)return;const s=t.getPosition(),a=n.getPosition();E(o,t.retina.linksWidth??w,e,s,a)})}const H="connect",M=0;class B extends k{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.connect;n&&(t.retina.connectModeDistance=n.distance*t.retina.pixelRatio,t.retina.connectModeRadius=n.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const o=t.interactivity.mouse.position,{connectModeDistance:e,connectModeRadius:s}=t.retina;if(!e||ethis.isEnabled(r));d.forEach((r,l)=>{const c=r.getPosition(),p=1;for(const u of d.slice(l+p)){const f=u.getPosition(),g=Math.abs(e),h=Math.abs(c.x-f.x),b=Math.abs(c.y-f.y);h{const s=new fe;return s.load(i),s})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}class zt{constructor(e,t){this._engine=e,this._container=t}load(e){if(!e||!this._container)return;const t=this._engine.interactors.get(this._container);if(t)for(const i of t)i.loadModeOptions&&i.loadModeOptions(this,e)}}class Me{constructor(e,t){this.detectsOn="window",this.events=new wt,this.modes=new zt(e,t)}load(e){if(!e)return;const t=e.detectsOn;t!==void 0&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}const de=50;class xt{load(e){e&&(e.position&&(this.position={x:e.position.x??de,y:e.position.y??de,mode:e.position.mode??"percent"}),e.options&&(this.options=w({},e.options)))}}class Ot{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=w({},e.options)))}}class Ct{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Pt{constructor(){this.name="",this.default=new Ct}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=w({},e.options)))}}class kt{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}class Rt{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class pe extends Z{constructor(){super(),this.value=1}}class Ee{constructor(){this.horizontal=new pe,this.vertical=new pe}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class St{constructor(){this.absorb=new kt,this.bounce=new Ee,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new Rt}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=b(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class Tt{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(!e)return;const t=e.options;if(t!==void 0)for(const i in t){const s=t[i];s&&(this.options[i]=w(this.options[i]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class Mt{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=b(e.offset)),e.value!==void 0&&(this.value=b(e.value)))}}class Et{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(e&&(e.distance!==void 0&&(this.distance=b(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){const t=e.rotate.x;t!==void 0&&(this.rotate.x=t);const i=e.rotate.y;i!==void 0&&(this.rotate.y=i)}}}class It{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class Dt{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=b(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=b(e.maxSpeed)))}}class Lt{constructor(){this.clamp=!0,this.delay=new Z,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=w(this.options,e.options)))}}class Ft{load(e){e&&(e.color!==void 0&&(this.color=R.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class At{constructor(){this.enable=!1,this.length=10,this.fill=new Ft}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}}class Vt{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class Bt{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=b(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=w({},e.position)))}}class Ht{constructor(){this.angle=new Mt,this.attract=new Et,this.center=new It,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Dt,this.path=new Lt,this.outModes=new Vt,this.random=!1,this.size=!1,this.speed=2,this.spin=new Bt,this.straight=!1,this.trail=new At,this.vibrate=!1,this.warp=!1}load(e){if(!e)return;this.angle.load(ie(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=b(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=ie(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=b(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const t=e.outModes;t!==void 0&&(Fe(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=b(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class Ut extends Se{constructor(){super(),this.destroy="none",this.speed=2}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Wt extends Te{constructor(){super(),this.animation=new Ut,this.value=1}load(e){if(!e)return;super.load(e);const t=e.animation;t!==void 0&&this.animation.load(t)}}class qt{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);const t=e.width;t!==void 0&&(this.width=t);const i=e.height;i!==void 0&&(this.height=i)}}class Gt{constructor(){this.mode="delete",this.value=0}load(e){e&&(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Xt{constructor(){this.density=new qt,this.limit=new Gt,this.value=0}load(e){e&&(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}}class Yt{constructor(){this.blur=0,this.color=new R,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=R.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}class Nt{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(!e)return;const t=e.options;if(t!==void 0)for(const i in t){const s=t[i];s&&(this.options[i]=w(this.options[i]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class $t extends Se{constructor(){super(),this.destroy="none",this.speed=5}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Zt extends Te{constructor(){super(),this.animation=new $t,this.value=3}load(e){if(super.load(e),!e)return;const t=e.animation;t!==void 0&&this.animation.load(t)}}class me{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=F.create(this.color,e.color)),e.width!==void 0&&(this.width=b(e.width)),e.opacity!==void 0&&(this.opacity=b(e.opacity)))}}class jt extends Z{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class Qt{constructor(e,t){this._engine=e,this._container=t,this.bounce=new Ee,this.collisions=new St,this.color=new F,this.color.value="#fff",this.effect=new Tt,this.groups={},this.move=new Ht,this.number=new Xt,this.opacity=new Wt,this.reduceDuplicates=!1,this.shadow=new Yt,this.shape=new Nt,this.size=new Zt,this.stroke=new me,this.zIndex=new jt}load(e){if(!e)return;if(e.groups!==void 0)for(const i of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,i))continue;const s=e.groups[i];s!==void 0&&(this.groups[i]=w(this.groups[i]??{},s))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(F.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=w({},e.interactivity));const t=e.stroke;if(t&&(this.stroke=W(t,i=>{const s=new me;return s.load(i),s})),this._container){const i=this._engine.updaters.get(this._container);if(i)for(const n of i)n.loadOptions&&n.loadOptions(this,e);const s=this._engine.interactors.get(this._container);if(s)for(const n of s)n.loadParticlesOptions&&n.loadParticlesOptions(this,e)}}}function Ie(l,...e){for(const t of e)l.load(t)}function De(l,e,...t){const i=new Qt(l,e);return Ie(i,...t),i}class Jt{constructor(e,t){this._findDefaultTheme=i=>this.themes.find(s=>s.default.value&&s.default.mode===i)??this.themes.find(s=>s.default.value&&s.default.mode==="any"),this._importPreset=i=>{this.load(this._engine.getPreset(i))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new dt,this.backgroundMask=new mt,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new gt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Me(e,t),this.manualParticles=[],this.particles=De(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){var r,o;if(!e)return;e.preset!==void 0&&W(e.preset,h=>this._importPreset(h)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=b(e.delay));const t=e.detectRetina;t!==void 0&&(this.detectRetina=t),e.duration!==void 0&&(this.duration=b(e.duration));const i=e.fpsLimit;i!==void 0&&(this.fpsLimit=i),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const s=e.fullScreen;Ce(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(h=>{const a=new xt;return a.load(h),a})),this.particles.load(e.particles),this.style=w(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const n=this._engine.interactors.get(this._container);if(n)for(const h of n)h.loadOptions&&h.loadOptions(this,e);if(e.responsive!==void 0)for(const h of e.responsive){const a=new Ot;a.load(h),this.responsive.push(a)}if(this.responsive.sort((h,a)=>h.maxWidth-a.maxWidth),e.themes!==void 0)for(const h of e.themes){const a=this.themes.find(c=>c.name===h.name);if(a)a.load(h);else{const c=new Pt;c.load(h),this.themes.push(c)}}this.defaultThemes.dark=(r=this._findDefaultTheme("dark"))==null?void 0:r.name,this.defaultThemes.light=(o=this._findDefaultTheme("light"))==null?void 0:o.name}setResponsive(e,t,i){this.load(i);const s=this.responsive.find(n=>n.mode==="screen"&&screen?n.maxWidth>screen.availWidth:n.maxWidth*t>e);return this.load(s==null?void 0:s.options),s==null?void 0:s.maxWidth}setTheme(e){if(e){const t=this.themes.find(i=>i.name===e);t&&this.load(t.options)}else{const t=Pe("(prefers-color-scheme: dark)"),i=t&&t.matches,s=this._findDefaultTheme(i?"dark":"light");s&&this.load(s.options)}}}function Kt(l,e,t){const i=e[t],s=1;i!==void 0&&(l[t]=(l[t]??s)*i)}function ge(l,e,t=!1){if(!e)return;const i=l;if(!i)return;const s=i.style;if(s)for(const n in e){const r=e[n];r&&s.setProperty(n,r,t?"important":"")}}class ei{constructor(e){this.container=e,this._applyPostDrawUpdaters=t=>{var i;for(const s of this._postDrawUpdaters)(i=s.afterDraw)==null||i.call(s,t)},this._applyPreDrawUpdaters=(t,i,s,n,r,o)=>{var h;for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:c,stroke:u}=a.getColorStyles(i,t,s,n);c&&(r.fill=c),u&&(r.stroke=u)}if(a.getTransformValues){const c=a.getTransformValues(i);for(const u in c)Kt(o,c,u)}(h=a.beforeDraw)==null||h.call(a,i)}},this._applyResizePlugins=()=>{var t;for(const i of this._resizePlugins)(t=i.resize)==null||t.call(i)},this._getPluginParticleColors=t=>{let i,s;for(const n of this._colorPlugins)if(!i&&n.particleFillColor&&(i=se(n.particleFillColor(t))),!s&&n.particleStrokeColor&&(s=se(n.particleStrokeColor(t))),i&&s)break;return[i,s]},this._initCover=async()=>{const t=this.container.actualOptions,i=t.backgroundMask.cover,s=i.color;if(s){const n=V(s);if(n){const r={...n,a:i.opacity};this._coverColorStyle=q(r,r.a)}}else await new Promise((n,r)=>{if(!i.image)return;const o=document.createElement("img");o.addEventListener("load",()=>{this._coverImage={image:o,opacity:i.opacity},n()}),o.addEventListener("error",h=>{r(h.error)}),o.src=i.image})},this._initStyle=()=>{const t=this.element,i=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=w({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const s in i.style){if(!s||!i.style)continue;const n=i.style[s];n&&t.style.setProperty(s,n,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions,i=t.particles.move.trail,s=i.fill;if(!i.enable)return;const n=1,r=n/i.length;if(s.color){const o=V(s.color);if(!o)return;this._trailFill={color:{...o},opacity:r}}else await new Promise((o,h)=>{if(!s.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._trailFill={image:a,opacity:r},o()}),a.addEventListener("error",c=>{h(c.error)}),a.src=s.image})},this._paintBase=t=>{this.draw(i=>st(i,this.size,t))},this._paintImage=(t,i)=>{this.draw(s=>nt(s,this.size,t,i))},this._repairStyle=()=>{const t=this.element;t&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>i.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{const t=this.element,i=this._originalStyle;t&&i&&ge(t,i)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;if(!t)return;ge(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(10),top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,t=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():t.enable&&t.length>0&&i?i.color?this._paintBase(q(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):e.clear&&this.draw(n=>{G(n,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e==null||e.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const t=this._context;if(t)return e(t)}drawAsync(e){const t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const i=e.getRadius();if(i<=0)return;const n=e.getFillColor(),r=e.getStrokeColor()??n;let[o,h]=this._getPluginParticleColors(e);o||(o=n),h||(h=r),!(!o&&!h)&&this.draw(a=>{var I;const c=this.container,u=c.actualOptions,f=e.options.zIndex,m=1,d=m-e.zIndexFactor,p=d**f.opacityRate,y=1,C=e.bubble.opacity??((I=e.opacity)==null?void 0:I.value)??y,P=e.strokeOpacity??C,M=C*p,E=P*p,v={},g={fill:o?ne(o,M):void 0};g.stroke=h?ne(h,E):g.fill,this._applyPreDrawUpdaters(a,e,i,M,g,v),ot({container:c,context:a,particle:e,delta:t,colorStyles:g,backgroundMask:u.backgroundMask.enable,composite:u.backgroundMask.composite,radius:i*d**f.sizeRate,opacity:M,shadow:e.options.shadow,transform:v}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,i){this.draw(s=>rt(s,e,t,i))}drawPlugin(e,t){this.draw(i=>ht(i,e,t))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=Ae(e=>{for(const t of e)t.type==="attributes"&&t.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){B().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,t=e.background,i=this.element;if(!i)return;const s=i.style;if(s){if(t.color){const n=V(t.color);s.backgroundColor=n?q(n,t.opacity):""}else s.backgroundColor="";s.backgroundImage=t.image||"",s.backgroundPosition=t.position||"",s.backgroundRepeat=t.repeat||"",s.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&oe in e.dataset?e.dataset[oe]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=w({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>{this.element&&t.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?(G(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,t=e.retina.pixelRatio,i=e.canvas.size,s={width:this.element.offsetWidth*t,height:this.element.offsetHeight*t};if(s.height===i.height&&s.width===i.width&&s.height===this.element.height&&s.width===this.element.width)return!1;const n={...i};return this.element.width=i.width=this.element.offsetWidth*t,this.element.height=i.height=this.element.offsetHeight*t,this.container.started&&e.particles.setResizeFactor({width:i.width/n.width,height:i.height/n.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>G(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}const _e=2;function O(l,e,t,i,s){if(i){let n={passive:!0};Ce(s)?n.capture=s:s!==void 0&&(n=s),l.addEventListener(e,t,n)}else{const n=s;l.removeEventListener(e,t,n)}}class ti{constructor(e){this.container=e,this._doMouseTouchClick=t=>{const i=this.container,s=i.actualOptions;if(this._canPush){const n=i.interactivity.mouse,r=n.position;if(!r)return;n.clickPosition={...r},n.clickTime=new Date().getTime();const o=s.interactivity.events.onClick;W(o.mode,h=>this.container.handleClickMode(h))}t.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{const i=t,s=this.container,n=s.options,r=n.defaultThemes,o=i.matches?r.dark:r.light,h=n.themes.find(a=>a.name===o);h&&h.default.auto&&s.loadTheme(o)},this._handleVisibilityChange=()=>{const t=this.container,i=t.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const i=this.container.canvas;await(i==null?void 0:i.windowResize())};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*k)},this._manageInteractivityListeners=(t,i)=>{const s=this._handlers,n=this.container,r=n.actualOptions,o=n.interactivity.element;if(!o)return;const h=o,a=n.canvas.element;a&&(a.style.pointerEvents=h===a?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(O(o,re,s.mouseMove,i),O(o,Ve,s.touchStart,i),O(o,Be,s.touchMove,i),r.interactivity.events.onClick.enable?(O(o,he,s.touchEndClick,i),O(o,He,s.mouseUp,i),O(o,Ue,s.mouseDown,i)):O(o,he,s.touchEnd,i),O(o,t,s.mouseLeave,i),O(o,We,s.touchCancel,i))},this._manageListeners=t=>{const i=this._handlers,s=this.container,n=s.actualOptions,r=n.interactivity.detectsOn,o=s.canvas.element;let h=ae;r==="window"?(s.interactivity.element=window,h=Xe):r==="parent"&&o?s.interactivity.element=o.parentElement??o.parentNode:s.interactivity.element=o,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(h,t),document&&O(document,qe,i.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const i=this._handlers,s=Pe("(prefers-color-scheme: dark)");if(s){if(s.addEventListener!==void 0){O(s,"change",i.themeChange,t);return}s.addListener!==void 0&&(t?s.addListener(i.oldThemeChange):s.removeListener(i.oldThemeChange))}},this._manageResize=t=>{const i=this._handlers,s=this.container;if(!s.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){O(window,Ge,i.resize,t);return}const r=s.canvas.element;this._resizeObserver&&!t?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&r&&(this._resizeObserver=new ResizeObserver(o=>{o.find(a=>a.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:i}=t;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=t=>{const i=this.container,s=i.actualOptions,{mouse:n}=i.interactivity;n.inside=!0;let r=!1;const o=n.position;if(!(!o||!s.interactivity.events.onClick.enable)){for(const[,h]of i.plugins)if(h.clickPositionValid&&(r=h.clickPositionValid(o),r))break;r||this._doMouseTouchClick(t),n.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const i=t.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,t.status=ae,i.inside=!1,i.clicking=!1},this._mouseTouchMove=t=>{const i=this.container,s=i.actualOptions,n=i.interactivity,r=i.canvas.element;if(!(n!=null&&n.element))return;n.mouse.inside=!0;let o;if(t.type.startsWith("pointer")){this._canPush=!0;const a=t;if(n.element===window){if(r){const c=r.getBoundingClientRect();o={x:a.clientX-c.left,y:a.clientY-c.top}}}else if(s.interactivity.detectsOn==="parent"){const c=a.target,u=a.currentTarget;if(c&&u&&r){const f=c.getBoundingClientRect(),m=u.getBoundingClientRect(),d=r.getBoundingClientRect();o={x:a.offsetX+_e*f.left-(m.left+d.left),y:a.offsetY+_e*f.top-(m.top+d.top)}}else o={x:a.offsetX??a.clientX,y:a.offsetY??a.clientY}}else a.target===r&&(o={x:a.offsetX??a.clientX,y:a.offsetY??a.clientY})}else if(this._canPush=t.type!=="touchmove",r){const a=t,c=1,u=a.touches[a.touches.length-c],f=r.getBoundingClientRect(),m=0;o={x:u.clientX-(f.left??m),y:u.clientY-(f.top??m)}}const h=i.retina.pixelRatio;o&&(o.x*=h,o.y*=h),n.mouse.position=o,n.status=re},this._touchEnd=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.delete(n.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.delete(n.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.set(n.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class ii{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(const t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){var t;for(const i of this._externalInteractors)(t=i.handleClickMode)==null||t.call(i,e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,t){for(const i of this._externalInteractors)i.clear(e,t);for(const i of this._particleInteractors)i.isEnabled(e)&&i.interact(e,t)}reset(e){for(const t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(const t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}const ye=0,$=2,A=.5,si=2;function ni(l,e,t,i){const s=e.options[l];if(s)return w({close:e.close,fill:e.fill},T(s,t,i))}function oi(l,e,t,i){const s=e.options[l];if(s)return w({close:e.close,fill:e.fill},T(s,t,i))}function ve(l){if(!et(l.outMode,l.checkModes))return;const e=l.radius*$;l.coord>l.maxCoord-e?l.setCb(-l.radius):l.coord{for(const[,d]of i.plugins){const p=d.particlePosition!==void 0?d.particlePosition(s,this):void 0;if(p)return le.create(p.x,p.y,n)}const o=i.canvas.size,h=Ye({size:o,position:s}),a=le.create(h.x,h.y,n),c=this.getRadius(),u=this.options.move.outModes,f=d=>{ve({outMode:d,checkModes:["bounce"],coord:a.x,maxCoord:i.canvas.size.width,setCb:p=>a.x+=p,radius:c})},m=d=>{ve({outMode:d,checkModes:["bounce"],coord:a.y,maxCoord:i.canvas.size.height,setCb:p=>a.y+=p,radius:c})};return f(u.left??u.default),f(u.right??u.default),m(u.top??u.default),m(u.bottom??u.default),this._checkOverlap(a,r)?this._calcPosition(i,void 0,n,r+1):a},this._calculateVelocity=()=>{const i=Ne(this.direction),s=i.copy(),n=this.options.move;if(n.direction==="inside"||n.direction==="outside")return s;const r=ce(x(n.angle.value)),o=ce(x(n.angle.offset)),h={left:o-r*A,right:o+r*A};return n.straight||(s.angle+=$e(b(h.left,h.right))),n.random&&typeof n.speed=="number"&&(s.length*=Ze()),s},this._checkOverlap=(i,s=ye)=>{const n=this.options.collisions,r=this.getRadius();if(!n.enable)return!1;const o=n.overlap;if(o.enable)return!1;const h=o.retries;if(h>=0&&s>h)throw new Error(`${H} particle is overlapping and can't be placed`);return!!this.container.particles.find(c=>ke(i,c.position){if(!i||!this.roll||!this.backColor&&!this.roll.alter)return i;const s=1,n=0,r=this.roll.horizontal&&this.roll.vertical?$*s:s,o=this.roll.horizontal?Math.PI*A:n;return Math.floor(((this.roll.angle??n)+o)/(Math.PI/r))%$?this.backColor?this.backColor:this.roll.alter?at(i,this.roll.alter.type,this.roll.alter.value):i:i},this._initPosition=i=>{const s=this.container,n=x(this.options.zIndex.value),r=0;this.position=this._calcPosition(s,i,je(n,r,s.zLayers)),this.initialPosition=this.position.copy();const o=s.canvas.size,h=0;switch(this.moveCenter={...Re(this.options.move.center,o),radius:this.options.move.center.radius??h,mode:this.options.move.center.mode??"percent"},this.direction=Qe(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=Je.origin},this._engine=e}destroy(e){var n,r,o;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const t=this.container,i=this.pathGenerator,s=t.shapeDrawers.get(this.shape);(n=s==null?void 0:s.particleDestroy)==null||n.call(s,this);for(const[,h]of t.plugins)(r=h.particleDestroyed)==null||r.call(h,this,e);for(const h of t.particles.updaters)(o=h.particleDestroyed)==null||o.call(h,this,e);i==null||i.reset(this),this._engine.dispatchEvent("particleDestroyed",{container:this.container,data:{particle:this}})}draw(e){const t=this.container,i=t.canvas;for(const[,s]of t.plugins)i.drawParticlePlugin(s,this,e);i.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??ue(this.color))}getMass(){return this.getRadius()**si*Math.PI*A}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??ue(this.strokeColor))}init(e,t,i,s){var j,Q,J,K,ee,te;const n=this.container,r=this._engine;this.id=e,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const o=n.retina.pixelRatio,h=n.actualOptions,a=De(this._engine,n,h.particles),c=a.effect.type,u=a.shape.type,{reduceDuplicates:f}=a;this.effect=T(c,this.id,f),this.shape=T(u,this.id,f);const m=a.effect,d=a.shape;if(i){if((j=i.effect)!=null&&j.type){const z=i.effect.type,D=T(z,this.id,f);D&&(this.effect=D,m.load(i.effect))}if((Q=i.shape)!=null&&Q.type){const z=i.shape.type,D=T(z,this.id,f);D&&(this.shape=D,d.load(i.shape))}}this.effectData=ni(this.effect,m,this.id,f),this.shapeData=oi(this.shape,d,this.id,f),a.load(i);const p=this.effectData;p&&a.load(p.particles);const y=this.shapeData;y&&a.load(y.particles);const C=new Me(r,n);C.load(n.actualOptions.interactivity),C.load(a.interactivity),this.interactivity=C,this.effectFill=(p==null?void 0:p.fill)??a.effect.fill,this.effectClose=(p==null?void 0:p.close)??a.effect.close,this.shapeFill=(y==null?void 0:y.fill)??a.shape.fill,this.shapeClose=(y==null?void 0:y.close)??a.shape.close,this.options=a;const P=this.options.move.path;this.pathDelay=x(P.delay.value)*k,P.generator&&(this.pathGenerator=this._engine.getPathGenerator(P.generator),this.pathGenerator&&n.addPath(P.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=Ke(this.options.size,o),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const M=1;this.moveDecay=M-x(this.options.move.decay);const E=n.particles;E.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let v=n.effectDrawers.get(this.effect);v||(v=this._engine.getEffectDrawer(this.effect),v&&n.effectDrawers.set(this.effect,v)),v!=null&&v.loadEffect&&v.loadEffect(this);let g=n.shapeDrawers.get(this.shape);g||(g=this._engine.getShapeDrawer(this.shape),g&&n.shapeDrawers.set(this.shape,g)),g!=null&&g.loadShape&&g.loadShape(this);const I=g==null?void 0:g.getSidesCount;I&&(this.sides=I(this)),this.spawning=!1,this.shadowColor=V(this.options.shadow.color);for(const z of E.updaters)z.init(this);for(const z of E.movers)(J=z.init)==null||J.call(z,this);(K=v==null?void 0:v.particleInit)==null||K.call(v,n,this),(ee=g==null?void 0:g.particleInit)==null||ee.call(g,n,this);for(const[,z]of n.plugins)(te=z.particleCreated)==null||te.call(z,this)}isInsideCanvas(){const e=this.getRadius(),t=this.container.canvas.size,i=this.position;return i.x>=-e&&i.y>=-e&&i.y<=t.height+e&&i.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var e;for(const t of this.container.particles.updaters)(e=t.reset)==null||e.call(t,this)}}const L=.5,hi=2,ai=4;class U{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{const{x:i,y:s}=this.rectangle.position,{width:n,height:r}=this.rectangle.size,{capacity:o}=this;for(let h=0;ht.insert(e))):!1}query(e,t){const i=[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&&ke(e.position,s.position)>s.particle.getRadius()&&(!t||t(s.particle))||i.push(s.particle);if(this._divided)for(const s of this._subs)i.push(...s.query(e,t));return i}queryCircle(e,t,i){return this.query(new ct(e.x,e.y,t),i)}queryRectangle(e,t,i){return this.query(new N(e.x,e.y,t.width,t.height),i)}}const be=4,li=2,ci=1,we=l=>{const{height:e,width:t}=l,i=-.25,s=1.5;return new N(i*t,i*e,s*t,s*e)};class ui{constructor(e,t){this._addToPool=(...s)=>{for(const n of s)this._pool.push(n)},this._applyDensity=(s,n,r)=>{var d;const o=s.number;if(!((d=s.number.density)!=null&&d.enable)){r===void 0?this._limit=o.limit.value:o.limit&&this._groupLimits.set(r,o.limit.value);return}const h=this._initDensityFactor(o.density),a=o.value,c=0,u=o.limit.value>c?o.limit.value:a,f=Math.min(a,u)*h+n,m=Math.min(this.count,this.filter(p=>p.group===r).length);r===void 0?this._limit=o.limit.value*h:this._groupLimits.set(r,o.limit.value*h),mf&&this.removeQuantity(m-f,r)},this._initDensityFactor=s=>{const n=this._container,r=1;if(!n.canvas.element||!s.enable)return r;const o=n.canvas.element,h=n.retina.pixelRatio;return o.width*o.height/(s.height*s.width*h**li)},this._pushParticle=(s,n,r,o)=>{try{let h=this._pool.pop();h||(h=new ri(this._engine,this._container)),h.init(this._nextId,s,n,r);let a=!0;return o&&(a=o(h)),a?(this._array.push(h),this._zArray.push(h),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:h}}),h):void 0}catch(h){B().warning(`${H} adding particle: ${h}`)}},this._removeParticle=(s,n,r)=>{const o=this._array[s];if(!o||o.group!==n)return!1;const h=this._zArray.indexOf(o),a=1;return this._array.splice(s,a),this._zArray.splice(h,a),o.destroy(r),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:o}}),this._addToPool(o),!0},this._engine=e,this._container=t,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new ii(e,t),this._pluginsInitialized=!1;const i=t.canvas.size;this.quadTree=new U(we(i),be),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const e=this._container,t=e.actualOptions;for(const i of t.manualParticles)this.addParticle(i.position?Re(i.position,e.canvas.size):void 0,i.options)}addParticle(e,t,i,s){const n=this._container.actualOptions.particles.number.limit,r=i===void 0?this._limit:this._groupLimits.get(i)??this._limit,o=this.count;if(r>0){if(n.mode==="delete"){const u=o+1-r;u>0&&this.removeQuantity(u)}else if(n.mode==="wait"&&o>=r)return}return this._pushParticle(e,t,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){const t=this._container,i=t.canvas;i.clear(),this.update(e);for(const[,s]of t.plugins)i.drawPlugin(s,e);for(const s of this._zArray)s.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){var s;const e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const[,n]of e.plugins)if(n.particlesInitialization!==void 0&&(i=n.particlesInitialization()),i)break;if(this.addManualParticles(),!i){const n=t.particles,r=n.groups;for(const o in r){const h=r[o];for(let a=this.count,c=0;c<((s=h.number)==null?void 0:s.value)&&athis.count)return;let r=0;for(let o=e;r!i.has(h);this._array=this.filter(o),this._zArray=this._zArray.filter(o);for(const h of i)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:h}});this._addToPool(...i)}this._interactionManager.externalInteract(e);for(const o of this._array){for(const h of this.updaters)h.update(o,e);!o.destroyed&&!o.spawning&&this._interactionManager.particlesInteract(o,e)}if(delete this._resizeFactor,this._needsSort){const o=this._zArray;o.sort((a,c)=>c.position.z-a.position.z||a.id-c.id);const h=1;this._lastZIndex=o[o.length-h].position.z,this._needsSort=!1}}}const ze=1,xe=1;class fi{constructor(e){this.container=e,this.pixelRatio=ze,this.reduceFactor=xe}init(){const e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||tt()?ze:window.devicePixelRatio,this.reduceFactor=xe;const i=this.pixelRatio,s=e.canvas;if(s.element){const o=s.element;s.size.width=o.offsetWidth*i,s.size.height=o.offsetHeight*i}const n=t.particles,r=n.move;this.maxSpeed=x(r.gravity.maxSpeed)*i,this.sizeAnimationSpeed=x(n.size.animation.speed)*i}initParticle(e){const t=e.options,i=this.pixelRatio,s=t.move,n=s.distance,r=e.retina;r.moveDrift=x(s.drift)*i,r.moveSpeed=x(s.speed)*i,r.sizeAnimationSpeed=x(t.size.animation.speed)*i;const o=r.maxDistance;o.horizontal=n.horizontal!==void 0?n.horizontal*i:void 0,o.vertical=n.vertical!==void 0?n.vertical*i:void 0,r.maxSpeed=x(s.gravity.maxSpeed)*i}}function _(l){return l&&!l.destroyed}const Y=60;function di(l,e=Y,t=!1){return{value:l,factor:t?Y/e:Y*l/k}}function S(l,e,...t){const i=new Jt(l,e);return Ie(i,...t),i}class vi{constructor(e,t,i){this._intersectionManager=s=>{if(!(!_(this)||!this.actualOptions.pauseOnOutsideViewport))for(const n of s)n.target===this.interactivity.element&&(n.isIntersecting?this.play():this.pause())},this._nextFrame=s=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&sk){this.draw(!1);return}if(this.particles.draw(n),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(n){B().error(`${H} in animation loop`,n)}},this._engine=e,this.id=Symbol(t),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new fi(this),this.canvas=new ei(this),this.particles=new ui(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=S(this._engine,this),this.actualOptions=S(this._engine,this),this._eventListeners=new ti(this),this._intersectionObserver=it(s=>this._intersectionManager(s)),this._engine.dispatchEvent("containerBuilt",{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&_(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!_(this))return;const t=this.interactivity.element;if(!t)return;const i=(u,f,m)=>{if(!_(this))return;const d=this.retina.pixelRatio,p={x:f.x*d,y:f.y*d},y=this.particles.quadTree.queryCircle(p,m*d);e(u,y)},s=u=>{if(!_(this))return;const f=u,m={x:f.offsetX||f.clientX,y:f.offsetY||f.clientY};i(u,m,1)},n=()=>{_(this)&&(a=!0,c=!1)},r=()=>{_(this)&&(c=!0)},o=u=>{if(_(this)){if(a&&!c){const f=u,m=1;let d=f.touches[f.touches.length-m];if(!d&&(d=f.changedTouches[f.changedTouches.length-m],!d))return;const p=this.canvas.element,y=p?p.getBoundingClientRect():void 0,C=0,P={x:d.clientX-(y?y.left:C),y:d.clientY-(y?y.top:C)};i(u,P,Math.max(d.radiusX,d.radiusY))}a=!1,c=!1}},h=()=>{_(this)&&(a=!1,c=!1)};let a=!1,c=!1;t.addEventListener("click",s),t.addEventListener("touchstart",n),t.addEventListener("touchmove",r),t.addEventListener("touchend",o),t.addEventListener("touchcancel",h)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,i=!1){return!_(this)||!i&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){var s,n;if(!_(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,r]of this.effectDrawers)(s=r.destroy)==null||s.call(r,this);for(const[,r]of this.shapeDrawers)(n=r.destroy)==null||n.call(r,this);for(const r of this.effectDrawers.keys())this.effectDrawers.delete(r);for(const r of this.shapeDrawers.keys())this.shapeDrawers.delete(r);this._engine.clearPlugins(this),this.destroyed=!0;const e=this._engine.dom(),t=e.findIndex(r=>r===this);t>=0&&e.splice(t,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!_(this))return;let t=e;const i=s=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(s)};this._drawAnimationFrame=requestAnimationFrame(s=>i(s))}async export(e,t={}){for(const[,i]of this.plugins){if(!i.export)continue;const s=await i.export(e,t);if(s.supported)return s.blob}B().error(`${H} - Export plugin with type ${e} not found`)}handleClickMode(e){var t;if(_(this)){this.particles.handleClickMode(e);for(const[,i]of this.plugins)(t=i.handleClickMode)==null||t.call(i,e)}}async init(){var r,o,h,a;if(!_(this))return;const e=this._engine.getSupportedEffects();for(const c of e){const u=this._engine.getEffectDrawer(c);u&&this.effectDrawers.set(c,u)}const t=this._engine.getSupportedShapes();for(const c of t){const u=this._engine.getShapeDrawer(c);u&&this.shapeDrawers.set(c,u)}await this.particles.initPlugins(),this._options=S(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=S(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[c,u]of i)this.plugins.set(c,u);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=x(this.actualOptions.duration)*k,this._delay=x(this.actualOptions.delay)*k,this._lifeTime=0;const s=120,n=0;this.fpsLimit=this.actualOptions.fpsLimit>n?this.actualOptions.fpsLimit:s,this._smooth=this.actualOptions.smooth;for(const[,c]of this.effectDrawers)await((r=c.init)==null?void 0:r.call(c,this));for(const[,c]of this.shapeDrawers)await((o=c.init)==null?void 0:o.call(c,this));for(const[,c]of this.plugins)await((h=c.init)==null?void 0:h.call(c));this._engine.dispatchEvent("containerInit",{container:this}),await this.particles.init(),this.particles.setDensity();for(const[,c]of this.plugins)(a=c.particlesSetup)==null||a.call(c);this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){_(this)&&(this._currentTheme=e,await this.refresh())}pause(){var e;if(_(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,t]of this.plugins)(e=t.pause)==null||e.call(t);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!_(this))return;const t=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),t)for(const[,i]of this.plugins)i.play&&i.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(t??!1)}async refresh(){if(_(this))return this.stop(),this.start()}async reset(){if(_(this))return this._initialSourceOptions=void 0,this._options=S(this._engine,this),this.actualOptions=S(this._engine,this,this._options),this.refresh()}async start(){!_(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{const t=async()=>{var i;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,s]of this.plugins)await((i=s.start)==null?void 0:i.call(s));this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void t(),this._delay)}))}stop(){var e;if(!(!_(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)(e=t.stop)==null||e.call(t);for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}}export{vi as Container}; +import{s as b,d as Oe,i as Le,e as W,f as w,h as ie,j as Fe,k as Ce,l as Pe,r as se,m as V,n as q,g as ne,o as Ae,b as B,p as oe,q as k,t as re,u as Ve,v as Be,w as he,x as He,y as Ue,z as We,A as qe,B as Ge,C as ae,D as Xe,V as le,E as Ye,F as Ne,G as ce,H as x,I as $e,J as Ze,c as H,K as ke,L as je,M as Re,N as Qe,O as Je,P as ue,Q as T,R as Ke,S as et,T as tt,U as it}from"./index-CShsFACI.js";import{p as st,a as nt,c as G,d as ot,b as rt,e as ht,f as at}from"./CanvasUtils-DvqPZfvK.js";import{O as R}from"./OptionsColor-39-7GBLs.js";import{A as lt,V as Z,R as Se,a as Te}from"./ValueWithRandom-BsNMdqfS.js";import{R as N,C as ct}from"./Ranges-Cgpup9mk.js";class ut{constructor(e,t){this.position=e,this.particle=t}}class X extends lt{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),e&&e.offset!==void 0&&(this.offset=b(e.offset))}}class ft{constructor(){this.h=new X,this.s=new X,this.l=new X}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}class F extends R{constructor(){super(),this.animation=new ft}static create(e,t){const i=new F;return i.load(e),t!==void 0&&(Oe(t)||Le(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),!e)return;const t=e.animation;t!==void 0&&(t.enable!==void 0?this.animation.h.load(t):this.animation.load(e.animation))}}class dt{constructor(){this.color=new R,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=R.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}class pt{constructor(){this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=R.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.opacity!==void 0&&(this.opacity=e.opacity))}}class mt{constructor(){this.composite="destination-out",this.cover=new pt,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){const t=e.cover,i=Oe(e.cover)?{color:e.cover}:e.cover;this.cover.load(t.color!==void 0||t.image!==void 0?t:{color:i})}e.enable!==void 0&&(this.enable=e.enable)}}}class gt{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}class _t{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}class fe{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(e){e&&(e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type))}}class yt{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}class vt{constructor(){this.enable=!1,this.mode=[],this.parallax=new yt}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}class bt{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}class wt{constructor(){this.onClick=new _t,this.onDiv=new fe,this.onHover=new vt,this.resize=new bt}load(e){if(!e)return;this.onClick.load(e.onClick);const t=e.onDiv;t!==void 0&&(this.onDiv=W(t,i=>{const s=new fe;return s.load(i),s})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}class zt{constructor(e,t){this._engine=e,this._container=t}load(e){if(!e||!this._container)return;const t=this._engine.interactors.get(this._container);if(t)for(const i of t)i.loadModeOptions&&i.loadModeOptions(this,e)}}class Me{constructor(e,t){this.detectsOn="window",this.events=new wt,this.modes=new zt(e,t)}load(e){if(!e)return;const t=e.detectsOn;t!==void 0&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}const de=50;class xt{load(e){e&&(e.position&&(this.position={x:e.position.x??de,y:e.position.y??de,mode:e.position.mode??"percent"}),e.options&&(this.options=w({},e.options)))}}class Ot{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=w({},e.options)))}}class Ct{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Pt{constructor(){this.name="",this.default=new Ct}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=w({},e.options)))}}class kt{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}class Rt{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class pe extends Z{constructor(){super(),this.value=1}}class Ee{constructor(){this.horizontal=new pe,this.vertical=new pe}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class St{constructor(){this.absorb=new kt,this.bounce=new Ee,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new Rt}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=b(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class Tt{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(!e)return;const t=e.options;if(t!==void 0)for(const i in t){const s=t[i];s&&(this.options[i]=w(this.options[i]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class Mt{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=b(e.offset)),e.value!==void 0&&(this.value=b(e.value)))}}class Et{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(e&&(e.distance!==void 0&&(this.distance=b(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){const t=e.rotate.x;t!==void 0&&(this.rotate.x=t);const i=e.rotate.y;i!==void 0&&(this.rotate.y=i)}}}class It{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class Dt{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=b(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=b(e.maxSpeed)))}}class Lt{constructor(){this.clamp=!0,this.delay=new Z,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=w(this.options,e.options)))}}class Ft{load(e){e&&(e.color!==void 0&&(this.color=R.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class At{constructor(){this.enable=!1,this.length=10,this.fill=new Ft}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}}class Vt{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class Bt{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=b(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=w({},e.position)))}}class Ht{constructor(){this.angle=new Mt,this.attract=new Et,this.center=new It,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Dt,this.path=new Lt,this.outModes=new Vt,this.random=!1,this.size=!1,this.speed=2,this.spin=new Bt,this.straight=!1,this.trail=new At,this.vibrate=!1,this.warp=!1}load(e){if(!e)return;this.angle.load(ie(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=b(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=ie(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=b(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const t=e.outModes;t!==void 0&&(Fe(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=b(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class Ut extends Se{constructor(){super(),this.destroy="none",this.speed=2}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Wt extends Te{constructor(){super(),this.animation=new Ut,this.value=1}load(e){if(!e)return;super.load(e);const t=e.animation;t!==void 0&&this.animation.load(t)}}class qt{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);const t=e.width;t!==void 0&&(this.width=t);const i=e.height;i!==void 0&&(this.height=i)}}class Gt{constructor(){this.mode="delete",this.value=0}load(e){e&&(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Xt{constructor(){this.density=new qt,this.limit=new Gt,this.value=0}load(e){e&&(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}}class Yt{constructor(){this.blur=0,this.color=new R,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=R.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}class Nt{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(!e)return;const t=e.options;if(t!==void 0)for(const i in t){const s=t[i];s&&(this.options[i]=w(this.options[i]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class $t extends Se{constructor(){super(),this.destroy="none",this.speed=5}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Zt extends Te{constructor(){super(),this.animation=new $t,this.value=3}load(e){if(super.load(e),!e)return;const t=e.animation;t!==void 0&&this.animation.load(t)}}class me{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=F.create(this.color,e.color)),e.width!==void 0&&(this.width=b(e.width)),e.opacity!==void 0&&(this.opacity=b(e.opacity)))}}class jt extends Z{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class Qt{constructor(e,t){this._engine=e,this._container=t,this.bounce=new Ee,this.collisions=new St,this.color=new F,this.color.value="#fff",this.effect=new Tt,this.groups={},this.move=new Ht,this.number=new Xt,this.opacity=new Wt,this.reduceDuplicates=!1,this.shadow=new Yt,this.shape=new Nt,this.size=new Zt,this.stroke=new me,this.zIndex=new jt}load(e){if(!e)return;if(e.groups!==void 0)for(const i of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,i))continue;const s=e.groups[i];s!==void 0&&(this.groups[i]=w(this.groups[i]??{},s))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(F.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=w({},e.interactivity));const t=e.stroke;if(t&&(this.stroke=W(t,i=>{const s=new me;return s.load(i),s})),this._container){const i=this._engine.updaters.get(this._container);if(i)for(const n of i)n.loadOptions&&n.loadOptions(this,e);const s=this._engine.interactors.get(this._container);if(s)for(const n of s)n.loadParticlesOptions&&n.loadParticlesOptions(this,e)}}}function Ie(l,...e){for(const t of e)l.load(t)}function De(l,e,...t){const i=new Qt(l,e);return Ie(i,...t),i}class Jt{constructor(e,t){this._findDefaultTheme=i=>this.themes.find(s=>s.default.value&&s.default.mode===i)??this.themes.find(s=>s.default.value&&s.default.mode==="any"),this._importPreset=i=>{this.load(this._engine.getPreset(i))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new dt,this.backgroundMask=new mt,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new gt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Me(e,t),this.manualParticles=[],this.particles=De(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){var r,o;if(!e)return;e.preset!==void 0&&W(e.preset,h=>this._importPreset(h)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=b(e.delay));const t=e.detectRetina;t!==void 0&&(this.detectRetina=t),e.duration!==void 0&&(this.duration=b(e.duration));const i=e.fpsLimit;i!==void 0&&(this.fpsLimit=i),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const s=e.fullScreen;Ce(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(h=>{const a=new xt;return a.load(h),a})),this.particles.load(e.particles),this.style=w(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const n=this._engine.interactors.get(this._container);if(n)for(const h of n)h.loadOptions&&h.loadOptions(this,e);if(e.responsive!==void 0)for(const h of e.responsive){const a=new Ot;a.load(h),this.responsive.push(a)}if(this.responsive.sort((h,a)=>h.maxWidth-a.maxWidth),e.themes!==void 0)for(const h of e.themes){const a=this.themes.find(c=>c.name===h.name);if(a)a.load(h);else{const c=new Pt;c.load(h),this.themes.push(c)}}this.defaultThemes.dark=(r=this._findDefaultTheme("dark"))==null?void 0:r.name,this.defaultThemes.light=(o=this._findDefaultTheme("light"))==null?void 0:o.name}setResponsive(e,t,i){this.load(i);const s=this.responsive.find(n=>n.mode==="screen"&&screen?n.maxWidth>screen.availWidth:n.maxWidth*t>e);return this.load(s==null?void 0:s.options),s==null?void 0:s.maxWidth}setTheme(e){if(e){const t=this.themes.find(i=>i.name===e);t&&this.load(t.options)}else{const t=Pe("(prefers-color-scheme: dark)"),i=t&&t.matches,s=this._findDefaultTheme(i?"dark":"light");s&&this.load(s.options)}}}function Kt(l,e,t){const i=e[t],s=1;i!==void 0&&(l[t]=(l[t]??s)*i)}function ge(l,e,t=!1){if(!e)return;const i=l;if(!i)return;const s=i.style;if(s)for(const n in e){const r=e[n];r&&s.setProperty(n,r,t?"important":"")}}class ei{constructor(e){this.container=e,this._applyPostDrawUpdaters=t=>{var i;for(const s of this._postDrawUpdaters)(i=s.afterDraw)==null||i.call(s,t)},this._applyPreDrawUpdaters=(t,i,s,n,r,o)=>{var h;for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:c,stroke:u}=a.getColorStyles(i,t,s,n);c&&(r.fill=c),u&&(r.stroke=u)}if(a.getTransformValues){const c=a.getTransformValues(i);for(const u in c)Kt(o,c,u)}(h=a.beforeDraw)==null||h.call(a,i)}},this._applyResizePlugins=()=>{var t;for(const i of this._resizePlugins)(t=i.resize)==null||t.call(i)},this._getPluginParticleColors=t=>{let i,s;for(const n of this._colorPlugins)if(!i&&n.particleFillColor&&(i=se(n.particleFillColor(t))),!s&&n.particleStrokeColor&&(s=se(n.particleStrokeColor(t))),i&&s)break;return[i,s]},this._initCover=async()=>{const t=this.container.actualOptions,i=t.backgroundMask.cover,s=i.color;if(s){const n=V(s);if(n){const r={...n,a:i.opacity};this._coverColorStyle=q(r,r.a)}}else await new Promise((n,r)=>{if(!i.image)return;const o=document.createElement("img");o.addEventListener("load",()=>{this._coverImage={image:o,opacity:i.opacity},n()}),o.addEventListener("error",h=>{r(h.error)}),o.src=i.image})},this._initStyle=()=>{const t=this.element,i=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=w({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const s in i.style){if(!s||!i.style)continue;const n=i.style[s];n&&t.style.setProperty(s,n,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions,i=t.particles.move.trail,s=i.fill;if(!i.enable)return;const n=1,r=n/i.length;if(s.color){const o=V(s.color);if(!o)return;this._trailFill={color:{...o},opacity:r}}else await new Promise((o,h)=>{if(!s.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._trailFill={image:a,opacity:r},o()}),a.addEventListener("error",c=>{h(c.error)}),a.src=s.image})},this._paintBase=t=>{this.draw(i=>st(i,this.size,t))},this._paintImage=(t,i)=>{this.draw(s=>nt(s,this.size,t,i))},this._repairStyle=()=>{const t=this.element;t&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>i.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{const t=this.element,i=this._originalStyle;t&&i&&ge(t,i)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;if(!t)return;ge(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(10),top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,t=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():t.enable&&t.length>0&&i?i.color?this._paintBase(q(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):e.clear&&this.draw(n=>{G(n,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e==null||e.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const t=this._context;if(t)return e(t)}drawAsync(e){const t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const i=e.getRadius();if(i<=0)return;const n=e.getFillColor(),r=e.getStrokeColor()??n;let[o,h]=this._getPluginParticleColors(e);o||(o=n),h||(h=r),!(!o&&!h)&&this.draw(a=>{var I;const c=this.container,u=c.actualOptions,f=e.options.zIndex,m=1,d=m-e.zIndexFactor,p=d**f.opacityRate,y=1,C=e.bubble.opacity??((I=e.opacity)==null?void 0:I.value)??y,P=e.strokeOpacity??C,M=C*p,E=P*p,v={},g={fill:o?ne(o,M):void 0};g.stroke=h?ne(h,E):g.fill,this._applyPreDrawUpdaters(a,e,i,M,g,v),ot({container:c,context:a,particle:e,delta:t,colorStyles:g,backgroundMask:u.backgroundMask.enable,composite:u.backgroundMask.composite,radius:i*d**f.sizeRate,opacity:M,shadow:e.options.shadow,transform:v}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,i){this.draw(s=>rt(s,e,t,i))}drawPlugin(e,t){this.draw(i=>ht(i,e,t))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=Ae(e=>{for(const t of e)t.type==="attributes"&&t.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){B().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,t=e.background,i=this.element;if(!i)return;const s=i.style;if(s){if(t.color){const n=V(t.color);s.backgroundColor=n?q(n,t.opacity):""}else s.backgroundColor="";s.backgroundImage=t.image||"",s.backgroundPosition=t.position||"",s.backgroundRepeat=t.repeat||"",s.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&oe in e.dataset?e.dataset[oe]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=w({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>{this.element&&t.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?(G(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,t=e.retina.pixelRatio,i=e.canvas.size,s={width:this.element.offsetWidth*t,height:this.element.offsetHeight*t};if(s.height===i.height&&s.width===i.width&&s.height===this.element.height&&s.width===this.element.width)return!1;const n={...i};return this.element.width=i.width=this.element.offsetWidth*t,this.element.height=i.height=this.element.offsetHeight*t,this.container.started&&e.particles.setResizeFactor({width:i.width/n.width,height:i.height/n.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>G(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}const _e=2;function O(l,e,t,i,s){if(i){let n={passive:!0};Ce(s)?n.capture=s:s!==void 0&&(n=s),l.addEventListener(e,t,n)}else{const n=s;l.removeEventListener(e,t,n)}}class ti{constructor(e){this.container=e,this._doMouseTouchClick=t=>{const i=this.container,s=i.actualOptions;if(this._canPush){const n=i.interactivity.mouse,r=n.position;if(!r)return;n.clickPosition={...r},n.clickTime=new Date().getTime();const o=s.interactivity.events.onClick;W(o.mode,h=>this.container.handleClickMode(h))}t.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{const i=t,s=this.container,n=s.options,r=n.defaultThemes,o=i.matches?r.dark:r.light,h=n.themes.find(a=>a.name===o);h&&h.default.auto&&s.loadTheme(o)},this._handleVisibilityChange=()=>{const t=this.container,i=t.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const i=this.container.canvas;await(i==null?void 0:i.windowResize())};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*k)},this._manageInteractivityListeners=(t,i)=>{const s=this._handlers,n=this.container,r=n.actualOptions,o=n.interactivity.element;if(!o)return;const h=o,a=n.canvas.element;a&&(a.style.pointerEvents=h===a?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(O(o,re,s.mouseMove,i),O(o,Ve,s.touchStart,i),O(o,Be,s.touchMove,i),r.interactivity.events.onClick.enable?(O(o,he,s.touchEndClick,i),O(o,He,s.mouseUp,i),O(o,Ue,s.mouseDown,i)):O(o,he,s.touchEnd,i),O(o,t,s.mouseLeave,i),O(o,We,s.touchCancel,i))},this._manageListeners=t=>{const i=this._handlers,s=this.container,n=s.actualOptions,r=n.interactivity.detectsOn,o=s.canvas.element;let h=ae;r==="window"?(s.interactivity.element=window,h=Xe):r==="parent"&&o?s.interactivity.element=o.parentElement??o.parentNode:s.interactivity.element=o,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(h,t),document&&O(document,qe,i.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const i=this._handlers,s=Pe("(prefers-color-scheme: dark)");if(s){if(s.addEventListener!==void 0){O(s,"change",i.themeChange,t);return}s.addListener!==void 0&&(t?s.addListener(i.oldThemeChange):s.removeListener(i.oldThemeChange))}},this._manageResize=t=>{const i=this._handlers,s=this.container;if(!s.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){O(window,Ge,i.resize,t);return}const r=s.canvas.element;this._resizeObserver&&!t?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&r&&(this._resizeObserver=new ResizeObserver(o=>{o.find(a=>a.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:i}=t;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=t=>{const i=this.container,s=i.actualOptions,{mouse:n}=i.interactivity;n.inside=!0;let r=!1;const o=n.position;if(!(!o||!s.interactivity.events.onClick.enable)){for(const[,h]of i.plugins)if(h.clickPositionValid&&(r=h.clickPositionValid(o),r))break;r||this._doMouseTouchClick(t),n.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const i=t.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,t.status=ae,i.inside=!1,i.clicking=!1},this._mouseTouchMove=t=>{const i=this.container,s=i.actualOptions,n=i.interactivity,r=i.canvas.element;if(!(n!=null&&n.element))return;n.mouse.inside=!0;let o;if(t.type.startsWith("pointer")){this._canPush=!0;const a=t;if(n.element===window){if(r){const c=r.getBoundingClientRect();o={x:a.clientX-c.left,y:a.clientY-c.top}}}else if(s.interactivity.detectsOn==="parent"){const c=a.target,u=a.currentTarget;if(c&&u&&r){const f=c.getBoundingClientRect(),m=u.getBoundingClientRect(),d=r.getBoundingClientRect();o={x:a.offsetX+_e*f.left-(m.left+d.left),y:a.offsetY+_e*f.top-(m.top+d.top)}}else o={x:a.offsetX??a.clientX,y:a.offsetY??a.clientY}}else a.target===r&&(o={x:a.offsetX??a.clientX,y:a.offsetY??a.clientY})}else if(this._canPush=t.type!=="touchmove",r){const a=t,c=1,u=a.touches[a.touches.length-c],f=r.getBoundingClientRect(),m=0;o={x:u.clientX-(f.left??m),y:u.clientY-(f.top??m)}}const h=i.retina.pixelRatio;o&&(o.x*=h,o.y*=h),n.mouse.position=o,n.status=re},this._touchEnd=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.delete(n.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.delete(n.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const i=t,s=Array.from(i.changedTouches);for(const n of s)this._touches.set(n.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class ii{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(const t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){var t;for(const i of this._externalInteractors)(t=i.handleClickMode)==null||t.call(i,e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,t){for(const i of this._externalInteractors)i.clear(e,t);for(const i of this._particleInteractors)i.isEnabled(e)&&i.interact(e,t)}reset(e){for(const t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(const t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}const ye=0,$=2,A=.5,si=2;function ni(l,e,t,i){const s=e.options[l];if(s)return w({close:e.close,fill:e.fill},T(s,t,i))}function oi(l,e,t,i){const s=e.options[l];if(s)return w({close:e.close,fill:e.fill},T(s,t,i))}function ve(l){if(!et(l.outMode,l.checkModes))return;const e=l.radius*$;l.coord>l.maxCoord-e?l.setCb(-l.radius):l.coord{for(const[,d]of i.plugins){const p=d.particlePosition!==void 0?d.particlePosition(s,this):void 0;if(p)return le.create(p.x,p.y,n)}const o=i.canvas.size,h=Ye({size:o,position:s}),a=le.create(h.x,h.y,n),c=this.getRadius(),u=this.options.move.outModes,f=d=>{ve({outMode:d,checkModes:["bounce"],coord:a.x,maxCoord:i.canvas.size.width,setCb:p=>a.x+=p,radius:c})},m=d=>{ve({outMode:d,checkModes:["bounce"],coord:a.y,maxCoord:i.canvas.size.height,setCb:p=>a.y+=p,radius:c})};return f(u.left??u.default),f(u.right??u.default),m(u.top??u.default),m(u.bottom??u.default),this._checkOverlap(a,r)?this._calcPosition(i,void 0,n,r+1):a},this._calculateVelocity=()=>{const i=Ne(this.direction),s=i.copy(),n=this.options.move;if(n.direction==="inside"||n.direction==="outside")return s;const r=ce(x(n.angle.value)),o=ce(x(n.angle.offset)),h={left:o-r*A,right:o+r*A};return n.straight||(s.angle+=$e(b(h.left,h.right))),n.random&&typeof n.speed=="number"&&(s.length*=Ze()),s},this._checkOverlap=(i,s=ye)=>{const n=this.options.collisions,r=this.getRadius();if(!n.enable)return!1;const o=n.overlap;if(o.enable)return!1;const h=o.retries;if(h>=0&&s>h)throw new Error(`${H} particle is overlapping and can't be placed`);return!!this.container.particles.find(c=>ke(i,c.position){if(!i||!this.roll||!this.backColor&&!this.roll.alter)return i;const s=1,n=0,r=this.roll.horizontal&&this.roll.vertical?$*s:s,o=this.roll.horizontal?Math.PI*A:n;return Math.floor(((this.roll.angle??n)+o)/(Math.PI/r))%$?this.backColor?this.backColor:this.roll.alter?at(i,this.roll.alter.type,this.roll.alter.value):i:i},this._initPosition=i=>{const s=this.container,n=x(this.options.zIndex.value),r=0;this.position=this._calcPosition(s,i,je(n,r,s.zLayers)),this.initialPosition=this.position.copy();const o=s.canvas.size,h=0;switch(this.moveCenter={...Re(this.options.move.center,o),radius:this.options.move.center.radius??h,mode:this.options.move.center.mode??"percent"},this.direction=Qe(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=Je.origin},this._engine=e}destroy(e){var n,r,o;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const t=this.container,i=this.pathGenerator,s=t.shapeDrawers.get(this.shape);(n=s==null?void 0:s.particleDestroy)==null||n.call(s,this);for(const[,h]of t.plugins)(r=h.particleDestroyed)==null||r.call(h,this,e);for(const h of t.particles.updaters)(o=h.particleDestroyed)==null||o.call(h,this,e);i==null||i.reset(this),this._engine.dispatchEvent("particleDestroyed",{container:this.container,data:{particle:this}})}draw(e){const t=this.container,i=t.canvas;for(const[,s]of t.plugins)i.drawParticlePlugin(s,this,e);i.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??ue(this.color))}getMass(){return this.getRadius()**si*Math.PI*A}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??ue(this.strokeColor))}init(e,t,i,s){var j,Q,J,K,ee,te;const n=this.container,r=this._engine;this.id=e,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const o=n.retina.pixelRatio,h=n.actualOptions,a=De(this._engine,n,h.particles),c=a.effect.type,u=a.shape.type,{reduceDuplicates:f}=a;this.effect=T(c,this.id,f),this.shape=T(u,this.id,f);const m=a.effect,d=a.shape;if(i){if((j=i.effect)!=null&&j.type){const z=i.effect.type,D=T(z,this.id,f);D&&(this.effect=D,m.load(i.effect))}if((Q=i.shape)!=null&&Q.type){const z=i.shape.type,D=T(z,this.id,f);D&&(this.shape=D,d.load(i.shape))}}this.effectData=ni(this.effect,m,this.id,f),this.shapeData=oi(this.shape,d,this.id,f),a.load(i);const p=this.effectData;p&&a.load(p.particles);const y=this.shapeData;y&&a.load(y.particles);const C=new Me(r,n);C.load(n.actualOptions.interactivity),C.load(a.interactivity),this.interactivity=C,this.effectFill=(p==null?void 0:p.fill)??a.effect.fill,this.effectClose=(p==null?void 0:p.close)??a.effect.close,this.shapeFill=(y==null?void 0:y.fill)??a.shape.fill,this.shapeClose=(y==null?void 0:y.close)??a.shape.close,this.options=a;const P=this.options.move.path;this.pathDelay=x(P.delay.value)*k,P.generator&&(this.pathGenerator=this._engine.getPathGenerator(P.generator),this.pathGenerator&&n.addPath(P.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=Ke(this.options.size,o),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const M=1;this.moveDecay=M-x(this.options.move.decay);const E=n.particles;E.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let v=n.effectDrawers.get(this.effect);v||(v=this._engine.getEffectDrawer(this.effect),v&&n.effectDrawers.set(this.effect,v)),v!=null&&v.loadEffect&&v.loadEffect(this);let g=n.shapeDrawers.get(this.shape);g||(g=this._engine.getShapeDrawer(this.shape),g&&n.shapeDrawers.set(this.shape,g)),g!=null&&g.loadShape&&g.loadShape(this);const I=g==null?void 0:g.getSidesCount;I&&(this.sides=I(this)),this.spawning=!1,this.shadowColor=V(this.options.shadow.color);for(const z of E.updaters)z.init(this);for(const z of E.movers)(J=z.init)==null||J.call(z,this);(K=v==null?void 0:v.particleInit)==null||K.call(v,n,this),(ee=g==null?void 0:g.particleInit)==null||ee.call(g,n,this);for(const[,z]of n.plugins)(te=z.particleCreated)==null||te.call(z,this)}isInsideCanvas(){const e=this.getRadius(),t=this.container.canvas.size,i=this.position;return i.x>=-e&&i.y>=-e&&i.y<=t.height+e&&i.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var e;for(const t of this.container.particles.updaters)(e=t.reset)==null||e.call(t,this)}}const L=.5,hi=2,ai=4;class U{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{const{x:i,y:s}=this.rectangle.position,{width:n,height:r}=this.rectangle.size,{capacity:o}=this;for(let h=0;ht.insert(e))):!1}query(e,t){const i=[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&&ke(e.position,s.position)>s.particle.getRadius()&&(!t||t(s.particle))||i.push(s.particle);if(this._divided)for(const s of this._subs)i.push(...s.query(e,t));return i}queryCircle(e,t,i){return this.query(new ct(e.x,e.y,t),i)}queryRectangle(e,t,i){return this.query(new N(e.x,e.y,t.width,t.height),i)}}const be=4,li=2,ci=1,we=l=>{const{height:e,width:t}=l,i=-.25,s=1.5;return new N(i*t,i*e,s*t,s*e)};class ui{constructor(e,t){this._addToPool=(...s)=>{for(const n of s)this._pool.push(n)},this._applyDensity=(s,n,r)=>{var d;const o=s.number;if(!((d=s.number.density)!=null&&d.enable)){r===void 0?this._limit=o.limit.value:o.limit&&this._groupLimits.set(r,o.limit.value);return}const h=this._initDensityFactor(o.density),a=o.value,c=0,u=o.limit.value>c?o.limit.value:a,f=Math.min(a,u)*h+n,m=Math.min(this.count,this.filter(p=>p.group===r).length);r===void 0?this._limit=o.limit.value*h:this._groupLimits.set(r,o.limit.value*h),mf&&this.removeQuantity(m-f,r)},this._initDensityFactor=s=>{const n=this._container,r=1;if(!n.canvas.element||!s.enable)return r;const o=n.canvas.element,h=n.retina.pixelRatio;return o.width*o.height/(s.height*s.width*h**li)},this._pushParticle=(s,n,r,o)=>{try{let h=this._pool.pop();h||(h=new ri(this._engine,this._container)),h.init(this._nextId,s,n,r);let a=!0;return o&&(a=o(h)),a?(this._array.push(h),this._zArray.push(h),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:h}}),h):void 0}catch(h){B().warning(`${H} adding particle: ${h}`)}},this._removeParticle=(s,n,r)=>{const o=this._array[s];if(!o||o.group!==n)return!1;const h=this._zArray.indexOf(o),a=1;return this._array.splice(s,a),this._zArray.splice(h,a),o.destroy(r),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:o}}),this._addToPool(o),!0},this._engine=e,this._container=t,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new ii(e,t),this._pluginsInitialized=!1;const i=t.canvas.size;this.quadTree=new U(we(i),be),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const e=this._container,t=e.actualOptions;for(const i of t.manualParticles)this.addParticle(i.position?Re(i.position,e.canvas.size):void 0,i.options)}addParticle(e,t,i,s){const n=this._container.actualOptions.particles.number.limit,r=i===void 0?this._limit:this._groupLimits.get(i)??this._limit,o=this.count;if(r>0){if(n.mode==="delete"){const u=o+1-r;u>0&&this.removeQuantity(u)}else if(n.mode==="wait"&&o>=r)return}return this._pushParticle(e,t,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){const t=this._container,i=t.canvas;i.clear(),this.update(e);for(const[,s]of t.plugins)i.drawPlugin(s,e);for(const s of this._zArray)s.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){var s;const e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const[,n]of e.plugins)if(n.particlesInitialization!==void 0&&(i=n.particlesInitialization()),i)break;if(this.addManualParticles(),!i){const n=t.particles,r=n.groups;for(const o in r){const h=r[o];for(let a=this.count,c=0;c<((s=h.number)==null?void 0:s.value)&&athis.count)return;let r=0;for(let o=e;r!i.has(h);this._array=this.filter(o),this._zArray=this._zArray.filter(o);for(const h of i)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:h}});this._addToPool(...i)}this._interactionManager.externalInteract(e);for(const o of this._array){for(const h of this.updaters)h.update(o,e);!o.destroyed&&!o.spawning&&this._interactionManager.particlesInteract(o,e)}if(delete this._resizeFactor,this._needsSort){const o=this._zArray;o.sort((a,c)=>c.position.z-a.position.z||a.id-c.id);const h=1;this._lastZIndex=o[o.length-h].position.z,this._needsSort=!1}}}const ze=1,xe=1;class fi{constructor(e){this.container=e,this.pixelRatio=ze,this.reduceFactor=xe}init(){const e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||tt()?ze:window.devicePixelRatio,this.reduceFactor=xe;const i=this.pixelRatio,s=e.canvas;if(s.element){const o=s.element;s.size.width=o.offsetWidth*i,s.size.height=o.offsetHeight*i}const n=t.particles,r=n.move;this.maxSpeed=x(r.gravity.maxSpeed)*i,this.sizeAnimationSpeed=x(n.size.animation.speed)*i}initParticle(e){const t=e.options,i=this.pixelRatio,s=t.move,n=s.distance,r=e.retina;r.moveDrift=x(s.drift)*i,r.moveSpeed=x(s.speed)*i,r.sizeAnimationSpeed=x(t.size.animation.speed)*i;const o=r.maxDistance;o.horizontal=n.horizontal!==void 0?n.horizontal*i:void 0,o.vertical=n.vertical!==void 0?n.vertical*i:void 0,r.maxSpeed=x(s.gravity.maxSpeed)*i}}function _(l){return l&&!l.destroyed}const Y=60;function di(l,e=Y,t=!1){return{value:l,factor:t?Y/e:Y*l/k}}function S(l,e,...t){const i=new Jt(l,e);return Ie(i,...t),i}class vi{constructor(e,t,i){this._intersectionManager=s=>{if(!(!_(this)||!this.actualOptions.pauseOnOutsideViewport))for(const n of s)n.target===this.interactivity.element&&(n.isIntersecting?this.play():this.pause())},this._nextFrame=s=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&sk){this.draw(!1);return}if(this.particles.draw(n),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(n){B().error(`${H} in animation loop`,n)}},this._engine=e,this.id=Symbol(t),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new fi(this),this.canvas=new ei(this),this.particles=new ui(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=S(this._engine,this),this.actualOptions=S(this._engine,this),this._eventListeners=new ti(this),this._intersectionObserver=it(s=>this._intersectionManager(s)),this._engine.dispatchEvent("containerBuilt",{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&_(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!_(this))return;const t=this.interactivity.element;if(!t)return;const i=(u,f,m)=>{if(!_(this))return;const d=this.retina.pixelRatio,p={x:f.x*d,y:f.y*d},y=this.particles.quadTree.queryCircle(p,m*d);e(u,y)},s=u=>{if(!_(this))return;const f=u,m={x:f.offsetX||f.clientX,y:f.offsetY||f.clientY};i(u,m,1)},n=()=>{_(this)&&(a=!0,c=!1)},r=()=>{_(this)&&(c=!0)},o=u=>{if(_(this)){if(a&&!c){const f=u,m=1;let d=f.touches[f.touches.length-m];if(!d&&(d=f.changedTouches[f.changedTouches.length-m],!d))return;const p=this.canvas.element,y=p?p.getBoundingClientRect():void 0,C=0,P={x:d.clientX-(y?y.left:C),y:d.clientY-(y?y.top:C)};i(u,P,Math.max(d.radiusX,d.radiusY))}a=!1,c=!1}},h=()=>{_(this)&&(a=!1,c=!1)};let a=!1,c=!1;t.addEventListener("click",s),t.addEventListener("touchstart",n),t.addEventListener("touchmove",r),t.addEventListener("touchend",o),t.addEventListener("touchcancel",h)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,i=!1){return!_(this)||!i&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){var s,n;if(!_(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,r]of this.effectDrawers)(s=r.destroy)==null||s.call(r,this);for(const[,r]of this.shapeDrawers)(n=r.destroy)==null||n.call(r,this);for(const r of this.effectDrawers.keys())this.effectDrawers.delete(r);for(const r of this.shapeDrawers.keys())this.shapeDrawers.delete(r);this._engine.clearPlugins(this),this.destroyed=!0;const e=this._engine.dom(),t=e.findIndex(r=>r===this);t>=0&&e.splice(t,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!_(this))return;let t=e;const i=s=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(s)};this._drawAnimationFrame=requestAnimationFrame(s=>i(s))}async export(e,t={}){for(const[,i]of this.plugins){if(!i.export)continue;const s=await i.export(e,t);if(s.supported)return s.blob}B().error(`${H} - Export plugin with type ${e} not found`)}handleClickMode(e){var t;if(_(this)){this.particles.handleClickMode(e);for(const[,i]of this.plugins)(t=i.handleClickMode)==null||t.call(i,e)}}async init(){var r,o,h,a;if(!_(this))return;const e=this._engine.getSupportedEffects();for(const c of e){const u=this._engine.getEffectDrawer(c);u&&this.effectDrawers.set(c,u)}const t=this._engine.getSupportedShapes();for(const c of t){const u=this._engine.getShapeDrawer(c);u&&this.shapeDrawers.set(c,u)}await this.particles.initPlugins(),this._options=S(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=S(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[c,u]of i)this.plugins.set(c,u);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=x(this.actualOptions.duration)*k,this._delay=x(this.actualOptions.delay)*k,this._lifeTime=0;const s=120,n=0;this.fpsLimit=this.actualOptions.fpsLimit>n?this.actualOptions.fpsLimit:s,this._smooth=this.actualOptions.smooth;for(const[,c]of this.effectDrawers)await((r=c.init)==null?void 0:r.call(c,this));for(const[,c]of this.shapeDrawers)await((o=c.init)==null?void 0:o.call(c,this));for(const[,c]of this.plugins)await((h=c.init)==null?void 0:h.call(c));this._engine.dispatchEvent("containerInit",{container:this}),await this.particles.init(),this.particles.setDensity();for(const[,c]of this.plugins)(a=c.particlesSetup)==null||a.call(c);this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){_(this)&&(this._currentTheme=e,await this.refresh())}pause(){var e;if(_(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,t]of this.plugins)(e=t.pause)==null||e.call(t);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!_(this))return;const t=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),t)for(const[,i]of this.plugins)i.play&&i.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(t??!1)}async refresh(){if(_(this))return this.stop(),this.start()}async reset(){if(_(this))return this._initialSourceOptions=void 0,this._options=S(this._engine,this),this.actualOptions=S(this._engine,this,this._options),this.refresh()}async start(){!_(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{const t=async()=>{var i;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,s]of this.plugins)await((i=s.start)==null?void 0:i.call(s));this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void t(),this._delay)}))}stop(){var e;if(!(!_(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)(e=t.stop)==null||e.call(t);for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}}export{vi as Container}; diff --git a/dist/assets/EmojiDrawer-ObwpP6eH.js b/dist/assets/EmojiDrawer-Ddr8tlYS.js similarity index 91% rename from dist/assets/EmojiDrawer-ObwpP6eH.js rename to dist/assets/EmojiDrawer-Ddr8tlYS.js index d2eb60c..6dc53a9 100644 --- a/dist/assets/EmojiDrawer-ObwpP6eH.js +++ b/dist/assets/EmojiDrawer-Ddr8tlYS.js @@ -1 +1 @@ -import{v as u}from"./index-DpxouOhY.js";import{S as j,aa as h,e as D,Q as v,a3 as x}from"./index-BbPL1Txh.js";function S(d){const{context:o,particle:e,radius:n,opacity:i}=d,t=e.emojiData,r=2,c=n*r,m=o.globalAlpha;t&&(o.globalAlpha=i,o.drawImage(t,-n,-n,c,c),o.globalAlpha=m)}const g='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class b{constructor(){this._emojiShapeDict=new Map}destroy(){for(const[o,e]of this._emojiShapeDict)e instanceof ImageBitmap&&(e==null||e.close(),this._emojiShapeDict.delete(o))}draw(o){S(o)}async init(o){const e=o.actualOptions;if(!u.find(t=>j(t,e.particles.shape.type)))return;const n=[h(g)],i=u.map(t=>e.particles.shape.options[t]).find(t=>!!t);i&&D(i,t=>{t.font&&n.push(h(t.font))}),await Promise.all(n)}particleDestroy(o){delete o.emojiData}particleInit(o,e){const i=e.shapeData;if(!(i!=null&&i.value))return;const t=v(i.value,e.randomIndexData),r=i.font??g;if(!t)return;const c=`${t}_${r}`,m=this._emojiShapeDict.get(c);if(m){e.emojiData=m;return}const f=x(e.size.value)*2;let p;const l=x(e.size.value);if(typeof OffscreenCanvas<"u"){const s=new OffscreenCanvas(f,f),a=s.getContext("2d");if(!a)return;a.font=`400 ${l*2}px ${r}`,a.textBaseline="middle",a.textAlign="center",a.fillText(t,l,l),p=s.transferToImageBitmap()}else{const s=document.createElement("canvas");s.width=f,s.height=f;const a=s.getContext("2d");if(!a)return;a.font=`400 ${l*2}px ${r}`,a.textBaseline="middle",a.textAlign="center",a.fillText(t,l,l),p=s}this._emojiShapeDict.set(c,p),e.emojiData=p}}export{b as EmojiDrawer}; +import{v as u}from"./index-DtthGcYK.js";import{S as j,aa as h,e as D,Q as v,a3 as x}from"./index-CShsFACI.js";function S(d){const{context:o,particle:e,radius:n,opacity:i}=d,t=e.emojiData,r=2,c=n*r,m=o.globalAlpha;t&&(o.globalAlpha=i,o.drawImage(t,-n,-n,c,c),o.globalAlpha=m)}const g='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class b{constructor(){this._emojiShapeDict=new Map}destroy(){for(const[o,e]of this._emojiShapeDict)e instanceof ImageBitmap&&(e==null||e.close(),this._emojiShapeDict.delete(o))}draw(o){S(o)}async init(o){const e=o.actualOptions;if(!u.find(t=>j(t,e.particles.shape.type)))return;const n=[h(g)],i=u.map(t=>e.particles.shape.options[t]).find(t=>!!t);i&&D(i,t=>{t.font&&n.push(h(t.font))}),await Promise.all(n)}particleDestroy(o){delete o.emojiData}particleInit(o,e){const i=e.shapeData;if(!(i!=null&&i.value))return;const t=v(i.value,e.randomIndexData),r=i.font??g;if(!t)return;const c=`${t}_${r}`,m=this._emojiShapeDict.get(c);if(m){e.emojiData=m;return}const f=x(e.size.value)*2;let p;const l=x(e.size.value);if(typeof OffscreenCanvas<"u"){const s=new OffscreenCanvas(f,f),a=s.getContext("2d");if(!a)return;a.font=`400 ${l*2}px ${r}`,a.textBaseline="middle",a.textAlign="center",a.fillText(t,l,l),p=s.transferToImageBitmap()}else{const s=document.createElement("canvas");s.width=f,s.height=f;const a=s.getContext("2d");if(!a)return;a.font=`400 ${l*2}px ${r}`,a.textBaseline="middle",a.textAlign="center",a.fillText(t,l,l),p=s}this._emojiShapeDict.set(c,p),e.emojiData=p}}export{b as EmojiDrawer}; diff --git a/dist/assets/Grabber-CexBlJXm.js b/dist/assets/Grabber-74PbJGjC.js similarity index 84% rename from dist/assets/Grabber-CexBlJXm.js rename to dist/assets/Grabber-74PbJGjC.js index 98c8b31..6604bfb 100644 --- a/dist/assets/Grabber-CexBlJXm.js +++ b/dist/assets/Grabber-74PbJGjC.js @@ -1 +1 @@ -import{Grab as v}from"./index-D0mBiceO.js";import{g as y}from"./CanvasUtils-DQ_CMgM7.js";import{n as k,t as L,K as O,a7 as h,a8 as C,S as w}from"./index-BbPL1Txh.js";import{E as D}from"./ExternalInteractorBase-CIi3zRdK.js";import"./OptionsColor-Ceq0kCZC.js";const E=0;function M(r,t,n,i,o,e){y(r,n,i),r.strokeStyle=k(o,e),r.lineWidth=t,r.stroke()}function G(r,t,n,i,o){r.canvas.draw(e=>{const s=t.getPosition();M(e,t.retina.linksWidth??E,s,o,n,i)})}const P="grab",q=0,H=0;class A extends D{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.grab;n&&(t.retina.grabModeDistance=n.distance*t.retina.pixelRatio)}interact(){var c;const t=this.container,n=t.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||t.interactivity.status!==L)return;const o=t.interactivity.mouse.position;if(!o)return;const e=t.retina.grabModeDistance;if(!e||ethis.isEnabled(a));for(const a of s){const f=a.getPosition(),l=O(f,o);if(l>e)continue;const b=i.modes.grab.links,d=b.opacity,g=d-l*d/e;if(g<=H)continue;const u=b.color??((c=a.options.links)==null?void 0:c.color);if(!t.particles.grabLineColor&&u){const p=i.modes.grab.links;t.particles.grabLineColor=h(u,p.blink,p.consent)}const m=C(a,void 0,t.particles.grabLineColor);m&&G(t,a,m,g,o)}}isEnabled(t){const n=this.container,i=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return o.onHover.enable&&!!i.position&&w(P,o.onHover.mode)}loadModeOptions(t,...n){t.grab||(t.grab=new v);for(const i of n)t.grab.load(i==null?void 0:i.grab)}reset(){}}export{A as Grabber}; +import{Grab as v}from"./index-D4B8HC_p.js";import{g as y}from"./CanvasUtils-DvqPZfvK.js";import{n as k,t as L,K as O,a7 as h,a8 as C,S as w}from"./index-CShsFACI.js";import{E as D}from"./ExternalInteractorBase-CIi3zRdK.js";import"./OptionsColor-39-7GBLs.js";const E=0;function M(r,t,n,i,o,e){y(r,n,i),r.strokeStyle=k(o,e),r.lineWidth=t,r.stroke()}function G(r,t,n,i,o){r.canvas.draw(e=>{const s=t.getPosition();M(e,t.retina.linksWidth??E,s,o,n,i)})}const P="grab",q=0,H=0;class A extends D{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.grab;n&&(t.retina.grabModeDistance=n.distance*t.retina.pixelRatio)}interact(){var c;const t=this.container,n=t.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||t.interactivity.status!==L)return;const o=t.interactivity.mouse.position;if(!o)return;const e=t.retina.grabModeDistance;if(!e||ethis.isEnabled(a));for(const a of s){const f=a.getPosition(),l=O(f,o);if(l>e)continue;const b=i.modes.grab.links,d=b.opacity,g=d-l*d/e;if(g<=H)continue;const u=b.color??((c=a.options.links)==null?void 0:c.color);if(!t.particles.grabLineColor&&u){const p=i.modes.grab.links;t.particles.grabLineColor=h(u,p.blink,p.consent)}const m=C(a,void 0,t.particles.grabLineColor);m&&G(t,a,m,g,o)}}isEnabled(t){const n=this.container,i=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return o.onHover.enable&&!!i.position&&w(P,o.onHover.mode)}loadModeOptions(t,...n){t.grab||(t.grab=new v);for(const i of n)t.grab.load(i==null?void 0:i.grab)}reset(){}}export{A as Grabber}; diff --git a/dist/assets/ImageDrawer-CROZpBOi.js b/dist/assets/ImageDrawer-Dz1A0m-I.js similarity index 93% rename from dist/assets/ImageDrawer-CROZpBOi.js rename to dist/assets/ImageDrawer-Dz1A0m-I.js index 0f98c34..4987872 100644 --- a/dist/assets/ImageDrawer-CROZpBOi.js +++ b/dist/assets/ImageDrawer-Dz1A0m-I.js @@ -1 +1 @@ -import{r as h}from"./index-LDb9jKip.js";import{drawGif as f}from"./Utils-BkPzvLhO.js";import{c as d}from"./index-BbPL1Txh.js";const c=2,p=1,u=12,_=1;class y{constructor(o){this.loadImageShape=async e=>{if(!this._engine.loadImage)throw new Error(`${d} image shape not initialized`);await this._engine.loadImage({gif:e.gif,name:e.name,replaceColor:e.replaceColor??!1,src:e.src})},this._engine=o}addImage(o){this._engine.images||(this._engine.images=[]),this._engine.images.push(o)}draw(o){const{context:e,radius:t,particle:a,opacity:n}=o,i=a.image,r=i==null?void 0:i.element;if(i){if(e.globalAlpha=n,i.gif&&i.gifData)f(o);else if(r){const s=i.ratio,g={x:-t,y:-t},l=t*c;e.drawImage(r,g.x,g.y,l,l/s)}e.globalAlpha=p}}getSidesCount(){return u}async init(o){const e=o.actualOptions;if(!(!e.preload||!this._engine.loadImage))for(const t of e.preload)await this._engine.loadImage(t)}loadShape(o){if(o.shape!=="image"&&o.shape!=="images")return;this._engine.images||(this._engine.images=[]);const e=o.shapeData;if(!e)return;this._engine.images.find(a=>a.name===e.name||a.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(o)})}particleInit(o,e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const t=this._engine.images,a=e.shapeData;if(!a)return;const n=e.getFillColor(),i=t.find(s=>s.name===a.name||s.source===a.src);if(!i)return;const r=a.replaceColor??i.replaceColor;if(i.loading){setTimeout(()=>{this.particleInit(o,e)});return}(async()=>{let s;i.svgData&&n?s=await h(i,a,n,e):s={color:n,data:i,element:i.element,gif:i.gif,gifData:i.gifData,gifLoopCount:i.gifLoopCount,loaded:!0,ratio:a.width&&a.height?a.width/a.height:i.ratio??_,replaceColor:r,source:a.src},s.ratio||(s.ratio=1);const g=a.fill??e.shapeFill,l=a.close??e.shapeClose,m={image:s,fill:g,close:l};e.image=m.image,e.shapeFill=m.fill,e.shapeClose=m.close})()}}export{y as ImageDrawer}; +import{r as h}from"./index-COUjS28G.js";import{drawGif as f}from"./Utils-BtXoLE8f.js";import{c as d}from"./index-CShsFACI.js";const c=2,p=1,u=12,_=1;class y{constructor(o){this.loadImageShape=async e=>{if(!this._engine.loadImage)throw new Error(`${d} image shape not initialized`);await this._engine.loadImage({gif:e.gif,name:e.name,replaceColor:e.replaceColor??!1,src:e.src})},this._engine=o}addImage(o){this._engine.images||(this._engine.images=[]),this._engine.images.push(o)}draw(o){const{context:e,radius:t,particle:a,opacity:n}=o,i=a.image,r=i==null?void 0:i.element;if(i){if(e.globalAlpha=n,i.gif&&i.gifData)f(o);else if(r){const s=i.ratio,g={x:-t,y:-t},l=t*c;e.drawImage(r,g.x,g.y,l,l/s)}e.globalAlpha=p}}getSidesCount(){return u}async init(o){const e=o.actualOptions;if(!(!e.preload||!this._engine.loadImage))for(const t of e.preload)await this._engine.loadImage(t)}loadShape(o){if(o.shape!=="image"&&o.shape!=="images")return;this._engine.images||(this._engine.images=[]);const e=o.shapeData;if(!e)return;this._engine.images.find(a=>a.name===e.name||a.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(o)})}particleInit(o,e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const t=this._engine.images,a=e.shapeData;if(!a)return;const n=e.getFillColor(),i=t.find(s=>s.name===a.name||s.source===a.src);if(!i)return;const r=a.replaceColor??i.replaceColor;if(i.loading){setTimeout(()=>{this.particleInit(o,e)});return}(async()=>{let s;i.svgData&&n?s=await h(i,a,n,e):s={color:n,data:i,element:i.element,gif:i.gif,gifData:i.gifData,gifLoopCount:i.gifLoopCount,loaded:!0,ratio:a.width&&a.height?a.width/a.height:i.ratio??_,replaceColor:r,source:a.src},s.ratio||(s.ratio=1);const g=a.fill??e.shapeFill,l=a.close??e.shapeClose,m={image:s,fill:g,close:l};e.image=m.image,e.shapeFill=m.fill,e.shapeClose=m.close})()}}export{y as ImageDrawer}; diff --git a/dist/assets/LifeUpdater-DvmeYpZG.js b/dist/assets/LifeUpdater-_A1XjI5y.js similarity index 92% rename from dist/assets/LifeUpdater-DvmeYpZG.js rename to dist/assets/LifeUpdater-_A1XjI5y.js index 75eb62f..fbe0b15 100644 --- a/dist/assets/LifeUpdater-DvmeYpZG.js +++ b/dist/assets/LifeUpdater-_A1XjI5y.js @@ -1 +1 @@ -import{V as w}from"./ValueWithRandom-Dsu4V_5I.js";import{s as a,I as l,H as f,q as d,J as c}from"./index-BbPL1Txh.js";class R extends w{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class L extends w{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class V{constructor(){this.count=0,this.delay=new R,this.duration=new L}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}const u=0,x=-1,y=0,m=0;function F(i,e,s){if(!i.life)return;const n=i.life;let t=!1;if(i.spawning)if(n.delayTime+=e.value,n.delayTime>=i.life.delay)t=!0,i.spawning=!1,n.delayTime=u,n.time=u;else return;if(n.duration===x||i.spawning||(t?n.time=u:n.time+=e.value,n.timey&&i.life.count--,i.life.count===y){i.destroy();return}const T=a(m,s.width),v=a(m,s.width);i.position.x=l(T),i.position.y=l(v),i.spawning=!0,n.delayTime=u,n.time=u,i.reset();const r=i.options.life;r&&(n.delay=f(r.delay.value)*d,n.duration=f(r.duration.value)*d)}const o=0,h=1,g=-1;class D{constructor(e){this.container=e}init(e){const s=this.container,n=e.options,t=n.life;t&&(e.life={delay:s.retina.reduceFactor?f(t.delay.value)*(t.delay.sync?h:c())/s.retina.reduceFactor*d:o,delayTime:o,duration:s.retina.reduceFactor?f(t.duration.value)*(t.duration.sync?h:c())/s.retina.reduceFactor*d:o,time:o,count:t.count},e.life.duration<=o&&(e.life.duration=g),e.life.count<=o&&(e.life.count=g),e.life&&(e.spawning=e.life.delay>o))}isEnabled(e){return!e.destroyed}loadOptions(e,...s){e.life||(e.life=new V);for(const n of s)e.life.load(n==null?void 0:n.life)}update(e,s){!this.isEnabled(e)||!e.life||F(e,s,this.container.canvas.size)}}export{D as LifeUpdater}; +import{V as w}from"./ValueWithRandom-BsNMdqfS.js";import{s as a,I as l,H as f,q as d,J as c}from"./index-CShsFACI.js";class R extends w{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class L extends w{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class V{constructor(){this.count=0,this.delay=new R,this.duration=new L}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}const u=0,x=-1,y=0,m=0;function F(i,e,s){if(!i.life)return;const n=i.life;let t=!1;if(i.spawning)if(n.delayTime+=e.value,n.delayTime>=i.life.delay)t=!0,i.spawning=!1,n.delayTime=u,n.time=u;else return;if(n.duration===x||i.spawning||(t?n.time=u:n.time+=e.value,n.timey&&i.life.count--,i.life.count===y){i.destroy();return}const T=a(m,s.width),v=a(m,s.width);i.position.x=l(T),i.position.y=l(v),i.spawning=!0,n.delayTime=u,n.time=u,i.reset();const r=i.options.life;r&&(n.delay=f(r.delay.value)*d,n.duration=f(r.duration.value)*d)}const o=0,h=1,g=-1;class D{constructor(e){this.container=e}init(e){const s=this.container,n=e.options,t=n.life;t&&(e.life={delay:s.retina.reduceFactor?f(t.delay.value)*(t.delay.sync?h:c())/s.retina.reduceFactor*d:o,delayTime:o,duration:s.retina.reduceFactor?f(t.duration.value)*(t.duration.sync?h:c())/s.retina.reduceFactor*d:o,time:o,count:t.count},e.life.duration<=o&&(e.life.duration=g),e.life.count<=o&&(e.life.count=g),e.life&&(e.spawning=e.life.delay>o))}isEnabled(e){return!e.destroyed}loadOptions(e,...s){e.life||(e.life=new V);for(const n of s)e.life.load(n==null?void 0:n.life)}update(e,s){!this.isEnabled(e)||!e.life||F(e,s,this.container.canvas.size)}}export{D as LifeUpdater}; diff --git a/dist/assets/LinkInstance-CRubKpxS.js b/dist/assets/LinkInstance-B8PRDNBZ.js similarity index 98% rename from dist/assets/LinkInstance-CRubKpxS.js rename to dist/assets/LinkInstance-B8PRDNBZ.js index c4ccdf5..c0a1d75 100644 --- a/dist/assets/LinkInstance-CRubKpxS.js +++ b/dist/assets/LinkInstance-B8PRDNBZ.js @@ -1 +1 @@ -import{K as m,W as q,n as T,m as C,J as S,H as W,a8 as D}from"./index-BbPL1Txh.js";import{g as L}from"./CanvasUtils-DQ_CMgM7.js";function R(l,o,n,i){l.beginPath(),l.moveTo(o.x,o.y),l.lineTo(n.x,n.y),l.lineTo(i.x,i.y),l.closePath()}function O(l){let o=!1;const{begin:n,end:i,maxDistance:e,context:t,canvasSize:s,width:r,backgroundMask:y,colorLine:u,opacity:h,links:d}=l;if(m(n,i)<=e)L(t,n,i),o=!0;else if(d.warp){let a,g;const x={x:i.x-s.width,y:i.y},p=q(n,x);if(p.distance<=e){const k=n.y-p.dy/p.dx*n.x;a={x:0,y:k},g={x:s.width,y:k}}else{const k={x:i.x,y:i.y-s.height},f=q(n,k);if(f.distance<=e){const w=-(n.y-f.dy/f.dx*n.x)/(f.dy/f.dx);a={x:w,y:0},g={x:w,y:s.height}}else{const b={x:i.x-s.width,y:i.y-s.height},w=q(n,b);if(w.distance<=e){const F=n.y-w.dy/w.dx*n.x;a={x:-F/(w.dy/w.dx),y:F},g={x:a.x+s.width,y:a.y+s.height}}}}a&&g&&(L(t,n,a),L(t,i,g),o=!0)}if(!o)return;t.lineWidth=r,y.enable&&(t.globalCompositeOperation=y.composite),t.strokeStyle=T(u,h);const{shadow:c}=d;if(c.enable){const a=C(c.color);a&&(t.shadowBlur=c.blur,t.shadowColor=T(a))}t.stroke()}function z(l){const{context:o,pos1:n,pos2:i,pos3:e,backgroundMask:t,colorTriangle:s,opacityTriangle:r}=l;R(o,n,i,e),t.enable&&(o.globalCompositeOperation=t.composite),o.fillStyle=T(s,r),o.fill()}function E(l){return l.sort((o,n)=>o-n),l.join("_")}function M(l,o){const n=E(l.map(e=>e.id));let i=o.get(n);return i===void 0&&(i=S(),o.set(n,i)),i}const P=0,_=0,v=0,I=.5,K=1;class J{constructor(o){this.container=o,this._drawLinkLine=(n,i)=>{const e=n.options.links;if(!(e!=null&&e.enable))return;const t=this.container,s=t.actualOptions,r=i.destination,y=n.getPosition(),u=r.getPosition();let h=i.opacity;t.canvas.draw(d=>{var k;let c;const a=(k=n.options.twinkle)==null?void 0:k.lines;if(a!=null&&a.enable){const f=a.frequency,b=C(a.color);S(){const t=n.options.links;if(!(t!=null&&t.enable))return;const s=t.triangles;if(!s.enable)return;const r=this.container,y=r.actualOptions,u=i.destination,h=e.destination,d=s.opacity??(i.opacity+e.opacity)*I;d<=P||r.canvas.draw(c=>{const a=n.getPosition(),g=u.getPosition(),x=h.getPosition(),p=n.retina.linksDistance??v;if(m(a,g)>p||m(x,g)>p||m(x,a)>p)return;let k=C(s.color);if(!k){const f=t.id!==void 0?r.particles.linksColors.get(t.id):r.particles.linksColor;k=D(n,u,f)}k&&z({context:c,pos1:a,pos2:g,pos3:x,backgroundMask:y.backgroundMask,colorTriangle:k,opacityTriangle:d})})},this._drawTriangles=(n,i,e,t)=>{var y,u,h;const s=e.destination;if(!((y=n.links)!=null&&y.triangles.enable&&((u=s.options.links)!=null&&u.triangles.enable)))return;const r=(h=s.links)==null?void 0:h.filter(d=>{const c=this._getLinkFrequency(s,d.destination);return s.options.links&&c<=s.options.links.frequency&&t.findIndex(g=>g.destination===d.destination)>=0});if(r!=null&&r.length)for(const d of r){const c=d.destination;this._getTriangleFrequency(i,s,c)>n.links.triangles.frequency||this._drawLinkTriangle(i,e,d)}},this._getLinkFrequency=(n,i)=>M([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,e)=>M([n,i,e],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(o,n){const{links:i,options:e}=n;if(!(i!=null&&i.length))return;const t=i.filter(s=>e.links&&(e.links.frequency>=K||this._getLinkFrequency(n,s.destination)<=e.links.frequency));for(const s of t)this._drawTriangles(e,n,s,t),s.opacity>P&&(n.retina.linksWidth??_)>_&&this._drawLinkLine(n,s)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(o){if(o.links=[],!o.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=o,{distance:e,width:t}=o.options.links;i.linksDistance=e*n,i.linksWidth=t*n}particleDestroyed(o){o.links=[]}}export{J as LinkInstance}; +import{K as m,W as q,n as T,m as C,J as S,H as W,a8 as D}from"./index-CShsFACI.js";import{g as L}from"./CanvasUtils-DvqPZfvK.js";function R(l,o,n,i){l.beginPath(),l.moveTo(o.x,o.y),l.lineTo(n.x,n.y),l.lineTo(i.x,i.y),l.closePath()}function O(l){let o=!1;const{begin:n,end:i,maxDistance:e,context:t,canvasSize:s,width:r,backgroundMask:y,colorLine:u,opacity:h,links:d}=l;if(m(n,i)<=e)L(t,n,i),o=!0;else if(d.warp){let a,g;const x={x:i.x-s.width,y:i.y},p=q(n,x);if(p.distance<=e){const k=n.y-p.dy/p.dx*n.x;a={x:0,y:k},g={x:s.width,y:k}}else{const k={x:i.x,y:i.y-s.height},f=q(n,k);if(f.distance<=e){const w=-(n.y-f.dy/f.dx*n.x)/(f.dy/f.dx);a={x:w,y:0},g={x:w,y:s.height}}else{const b={x:i.x-s.width,y:i.y-s.height},w=q(n,b);if(w.distance<=e){const F=n.y-w.dy/w.dx*n.x;a={x:-F/(w.dy/w.dx),y:F},g={x:a.x+s.width,y:a.y+s.height}}}}a&&g&&(L(t,n,a),L(t,i,g),o=!0)}if(!o)return;t.lineWidth=r,y.enable&&(t.globalCompositeOperation=y.composite),t.strokeStyle=T(u,h);const{shadow:c}=d;if(c.enable){const a=C(c.color);a&&(t.shadowBlur=c.blur,t.shadowColor=T(a))}t.stroke()}function z(l){const{context:o,pos1:n,pos2:i,pos3:e,backgroundMask:t,colorTriangle:s,opacityTriangle:r}=l;R(o,n,i,e),t.enable&&(o.globalCompositeOperation=t.composite),o.fillStyle=T(s,r),o.fill()}function E(l){return l.sort((o,n)=>o-n),l.join("_")}function M(l,o){const n=E(l.map(e=>e.id));let i=o.get(n);return i===void 0&&(i=S(),o.set(n,i)),i}const P=0,_=0,v=0,I=.5,K=1;class J{constructor(o){this.container=o,this._drawLinkLine=(n,i)=>{const e=n.options.links;if(!(e!=null&&e.enable))return;const t=this.container,s=t.actualOptions,r=i.destination,y=n.getPosition(),u=r.getPosition();let h=i.opacity;t.canvas.draw(d=>{var k;let c;const a=(k=n.options.twinkle)==null?void 0:k.lines;if(a!=null&&a.enable){const f=a.frequency,b=C(a.color);S(){const t=n.options.links;if(!(t!=null&&t.enable))return;const s=t.triangles;if(!s.enable)return;const r=this.container,y=r.actualOptions,u=i.destination,h=e.destination,d=s.opacity??(i.opacity+e.opacity)*I;d<=P||r.canvas.draw(c=>{const a=n.getPosition(),g=u.getPosition(),x=h.getPosition(),p=n.retina.linksDistance??v;if(m(a,g)>p||m(x,g)>p||m(x,a)>p)return;let k=C(s.color);if(!k){const f=t.id!==void 0?r.particles.linksColors.get(t.id):r.particles.linksColor;k=D(n,u,f)}k&&z({context:c,pos1:a,pos2:g,pos3:x,backgroundMask:y.backgroundMask,colorTriangle:k,opacityTriangle:d})})},this._drawTriangles=(n,i,e,t)=>{var y,u,h;const s=e.destination;if(!((y=n.links)!=null&&y.triangles.enable&&((u=s.options.links)!=null&&u.triangles.enable)))return;const r=(h=s.links)==null?void 0:h.filter(d=>{const c=this._getLinkFrequency(s,d.destination);return s.options.links&&c<=s.options.links.frequency&&t.findIndex(g=>g.destination===d.destination)>=0});if(r!=null&&r.length)for(const d of r){const c=d.destination;this._getTriangleFrequency(i,s,c)>n.links.triangles.frequency||this._drawLinkTriangle(i,e,d)}},this._getLinkFrequency=(n,i)=>M([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,e)=>M([n,i,e],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(o,n){const{links:i,options:e}=n;if(!(i!=null&&i.length))return;const t=i.filter(s=>e.links&&(e.links.frequency>=K||this._getLinkFrequency(n,s.destination)<=e.links.frequency));for(const s of t)this._drawTriangles(e,n,s,t),s.opacity>P&&(n.retina.linksWidth??_)>_&&this._drawLinkLine(n,s)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(o){if(o.links=[],!o.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=o,{distance:e,width:t}=o.options.links;i.linksDistance=e*n,i.linksWidth=t*n}particleDestroyed(o){o.links=[]}}export{J as LinkInstance}; diff --git a/dist/assets/Linker-i7yvafQ3.js b/dist/assets/Linker-CD0yKFxt.js similarity index 89% rename from dist/assets/Linker-i7yvafQ3.js rename to dist/assets/Linker-CD0yKFxt.js index 661cc6b..5ce232b 100644 --- a/dist/assets/Linker-i7yvafQ3.js +++ b/dist/assets/Linker-CD0yKFxt.js @@ -1 +1 @@ -import{C as y,R as g}from"./Ranges-DOcs18nu.js";import{Links as b}from"./index-Hv8I8PQE.js";import{P as z}from"./ParticlesInteractorBase-vfDeBun3.js";import{a7 as D,W as P}from"./index-BbPL1Txh.js";import"./OptionsColor-Ceq0kCZC.js";const k=2;class M extends y{constructor(i,n,t,s){super(i,n,t),this.canvasSize=s,this.canvasSize={...s}}contains(i){const{width:n,height:t}=this.canvasSize,{x:s,y:e}=i;return super.contains(i)||super.contains({x:s-n,y:e})||super.contains({x:s-n,y:e-t})||super.contains({x:s,y:e-t})}intersects(i){if(super.intersects(i))return!0;const n=i,t=i,s={x:i.position.x-this.canvasSize.width,y:i.position.y-this.canvasSize.height};if(t.radius!==void 0){const e=new y(s.x,s.y,t.radius*k);return super.intersects(e)}else if(n.size!==void 0){const e=new g(s.x,s.y,n.size.width*k,n.size.height*k);return super.intersects(e)}return!1}}const w=2,q=1,p={x:0,y:0},v=0;function L(h,i,n,t,s){const{dx:e,dy:l,distance:r}=P(h,i);if(!s||r<=n)return r;const a={x:Math.abs(e),y:Math.abs(l)},c={x:Math.min(a.x,t.width-a.x),y:Math.min(a.y,t.height-a.y)};return Math.sqrt(c.x**w+c.y**w)}class B extends z{constructor(i){super(i),this._setColor=n=>{if(!n.options.links)return;const t=this.linkContainer,s=n.options.links;let e=s.id===void 0?t.particles.linksColor:t.particles.linksColors.get(s.id);if(e)return;const l=s.color;e=D(l,s.blink,s.consent),s.id===void 0?t.particles.linksColor=e:t.particles.linksColors.set(s.id,e)},this.linkContainer=i}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(i){if(!i.options.links)return;i.links=[];const n=i.getPosition(),t=this.container,s=t.canvas.size;if(n.xs.width||n.y>s.height)return;const e=i.options.links,l=e.opacity,r=i.retina.linksDistance??v,a=e.warp;let c;a?c=new M(n.x,n.y,r,s):c=new y(n.x,n.y,r);const C=t.particles.quadTree.query(c);for(const o of C){const d=o.options.links;if(i===o||!(d!=null&&d.enable)||e.id!==d.id||o.spawning||o.destroyed||!o.links||i.links.some(f=>f.destination===o)||o.links.some(f=>f.destination===i))continue;const u=o.getPosition();if(u.xs.width||u.y>s.height)continue;const x=L(n,u,r,s,a&&d.warp);if(x>r)continue;const m=(q-x/r)*l;this._setColor(i),i.links.push({destination:o,opacity:m})}}isEnabled(i){var n;return!!((n=i.options.links)!=null&&n.enable)}loadParticlesOptions(i,...n){i.links||(i.links=new b);for(const t of n)i.links.load(t==null?void 0:t.links)}reset(){}}export{B as Linker}; +import{C as y,R as g}from"./Ranges-Cgpup9mk.js";import{Links as b}from"./index-B1uaaKWk.js";import{P as z}from"./ParticlesInteractorBase-vfDeBun3.js";import{a7 as D,W as P}from"./index-CShsFACI.js";import"./OptionsColor-39-7GBLs.js";const k=2;class M extends y{constructor(i,n,t,s){super(i,n,t),this.canvasSize=s,this.canvasSize={...s}}contains(i){const{width:n,height:t}=this.canvasSize,{x:s,y:e}=i;return super.contains(i)||super.contains({x:s-n,y:e})||super.contains({x:s-n,y:e-t})||super.contains({x:s,y:e-t})}intersects(i){if(super.intersects(i))return!0;const n=i,t=i,s={x:i.position.x-this.canvasSize.width,y:i.position.y-this.canvasSize.height};if(t.radius!==void 0){const e=new y(s.x,s.y,t.radius*k);return super.intersects(e)}else if(n.size!==void 0){const e=new g(s.x,s.y,n.size.width*k,n.size.height*k);return super.intersects(e)}return!1}}const w=2,q=1,p={x:0,y:0},v=0;function L(h,i,n,t,s){const{dx:e,dy:l,distance:r}=P(h,i);if(!s||r<=n)return r;const a={x:Math.abs(e),y:Math.abs(l)},c={x:Math.min(a.x,t.width-a.x),y:Math.min(a.y,t.height-a.y)};return Math.sqrt(c.x**w+c.y**w)}class B extends z{constructor(i){super(i),this._setColor=n=>{if(!n.options.links)return;const t=this.linkContainer,s=n.options.links;let e=s.id===void 0?t.particles.linksColor:t.particles.linksColors.get(s.id);if(e)return;const l=s.color;e=D(l,s.blink,s.consent),s.id===void 0?t.particles.linksColor=e:t.particles.linksColors.set(s.id,e)},this.linkContainer=i}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(i){if(!i.options.links)return;i.links=[];const n=i.getPosition(),t=this.container,s=t.canvas.size;if(n.xs.width||n.y>s.height)return;const e=i.options.links,l=e.opacity,r=i.retina.linksDistance??v,a=e.warp;let c;a?c=new M(n.x,n.y,r,s):c=new y(n.x,n.y,r);const C=t.particles.quadTree.query(c);for(const o of C){const d=o.options.links;if(i===o||!(d!=null&&d.enable)||e.id!==d.id||o.spawning||o.destroyed||!o.links||i.links.some(f=>f.destination===o)||o.links.some(f=>f.destination===i))continue;const u=o.getPosition();if(u.xs.width||u.y>s.height)continue;const x=L(n,u,r,s,a&&d.warp);if(x>r)continue;const m=(q-x/r)*l;this._setColor(i),i.links.push({destination:o,opacity:m})}}isEnabled(i){var n;return!!((n=i.options.links)!=null&&n.enable)}loadParticlesOptions(i,...n){i.links||(i.links=new b);for(const t of n)i.links.load(t==null?void 0:t.links)}reset(){}}export{B as Linker}; diff --git a/dist/assets/LinksPlugin-DPL_ttiq.js b/dist/assets/LinksPlugin-DugPkvP4.js similarity index 50% rename from dist/assets/LinksPlugin-DPL_ttiq.js rename to dist/assets/LinksPlugin-DugPkvP4.js index 06dad1b..14a50d4 100644 --- a/dist/assets/LinksPlugin-DPL_ttiq.js +++ b/dist/assets/LinksPlugin-DugPkvP4.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/LinkInstance-CRubKpxS.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/CanvasUtils-DQ_CMgM7.js"] + __vite__mapDeps.viteFileDeps = ["assets/LinkInstance-B8PRDNBZ.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/CanvasUtils-DvqPZfvK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as i}from"./index-BbPL1Txh.js";class s{constructor(){this.id="links"}async getPlugin(n){const{LinkInstance:t}=await i(()=>import("./LinkInstance-CRubKpxS.js"),__vite__mapDeps([0,1,2,3]));return new t(n)}loadOptions(){}needsPlugin(){return!0}}export{s as LinksPlugin}; +import{_ as i}from"./index-CShsFACI.js";class s{constructor(){this.id="links"}async getPlugin(n){const{LinkInstance:t}=await i(()=>import("./LinkInstance-B8PRDNBZ.js"),__vite__mapDeps([0,1,2,3]));return new t(n)}loadOptions(){}needsPlugin(){return!0}}export{s as LinksPlugin}; diff --git a/dist/assets/OpacityUpdater-CRT-YDRC.js b/dist/assets/OpacityUpdater-DjS42osQ.js similarity index 80% rename from dist/assets/OpacityUpdater-CRT-YDRC.js rename to dist/assets/OpacityUpdater-DjS42osQ.js index 01a3e67..e13f6bf 100644 --- a/dist/assets/OpacityUpdater-CRT-YDRC.js +++ b/dist/assets/OpacityUpdater-DjS42osQ.js @@ -1 +1 @@ -import{R as a,H as e,ae as s,J as y,ab as p}from"./index-BbPL1Txh.js";class d{constructor(o){this.container=o}init(o){const n=o.options.opacity,i=1;o.opacity=a(n,i);const t=n.animation;t.enable&&(o.opacity.velocity=e(t.speed)/s*this.container.retina.reduceFactor,t.sync||(o.opacity.velocity*=y()))}isEnabled(o){return!o.destroyed&&!o.spawning&&!!o.opacity&&o.opacity.enable&&((o.opacity.maxLoops??0)<=0||(o.opacity.maxLoops??0)>0&&(o.opacity.loops??0)<(o.opacity.maxLoops??0))}reset(o){o.opacity&&(o.opacity.time=0,o.opacity.loops=0)}update(o,n){!this.isEnabled(o)||!o.opacity||p(o,o.opacity,!0,o.options.opacity.animation.destroy,n)}}export{d as OpacityUpdater}; +import{R as a,H as e,ae as s,J as y,ab as p}from"./index-CShsFACI.js";class d{constructor(o){this.container=o}init(o){const n=o.options.opacity,i=1;o.opacity=a(n,i);const t=n.animation;t.enable&&(o.opacity.velocity=e(t.speed)/s*this.container.retina.reduceFactor,t.sync||(o.opacity.velocity*=y()))}isEnabled(o){return!o.destroyed&&!o.spawning&&!!o.opacity&&o.opacity.enable&&((o.opacity.maxLoops??0)<=0||(o.opacity.maxLoops??0)>0&&(o.opacity.loops??0)<(o.opacity.maxLoops??0))}reset(o){o.opacity&&(o.opacity.time=0,o.opacity.loops=0)}update(o,n){!this.isEnabled(o)||!o.opacity||p(o,o.opacity,!0,o.options.opacity.animation.destroy,n)}}export{d as OpacityUpdater}; diff --git a/dist/assets/OptionsColor-Ceq0kCZC.js b/dist/assets/OptionsColor-39-7GBLs.js similarity index 76% rename from dist/assets/OptionsColor-Ceq0kCZC.js rename to dist/assets/OptionsColor-39-7GBLs.js index b79b03a..dbcc927 100644 --- a/dist/assets/OptionsColor-Ceq0kCZC.js +++ b/dist/assets/OptionsColor-39-7GBLs.js @@ -1 +1 @@ -import{d as l,i as o}from"./index-BbPL1Txh.js";class s{constructor(){this.value=""}static create(e,r){const i=new s;return i.load(e),r!==void 0&&(l(r)||o(r)?i.load({value:r}):i.load(r)),i}load(e){(e==null?void 0:e.value)!==void 0&&(this.value=e.value)}}export{s as O}; +import{d as l,i as o}from"./index-CShsFACI.js";class s{constructor(){this.value=""}static create(e,r){const i=new s;return i.load(e),r!==void 0&&(l(r)||o(r)?i.load({value:r}):i.load(r)),i}load(e){(e==null?void 0:e.value)!==void 0&&(this.value=e.value)}}export{s as O}; diff --git a/dist/assets/OutOfCanvasUpdater-rgraESy_.js b/dist/assets/OutOfCanvasUpdater-Aq4RApMk.js similarity index 98% rename from dist/assets/OutOfCanvasUpdater-rgraESy_.js rename to dist/assets/OutOfCanvasUpdater-Aq4RApMk.js index ff26a5a..66bc516 100644 --- a/dist/assets/OutOfCanvasUpdater-rgraESy_.js +++ b/dist/assets/OutOfCanvasUpdater-Aq4RApMk.js @@ -1 +1 @@ -import{H as P,a1 as R,W as M,af as O,O as c,J as g,I as b}from"./index-BbPL1Txh.js";const C=0,v=0;function S(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="left"&&i.direction!=="right")return;i.bounds.righti.canvasSize.width&&i.direction==="right"&&(i.particle.position.x=i.canvasSize.width-i.size-i.offset.x);const o=i.particle.velocity.x;let s=!1;if(i.direction==="right"&&i.bounds.right>=i.canvasSize.width&&o>C||i.direction==="left"&&i.bounds.left<=v&&o=i.canvasSize.width&&i.direction==="right"?i.particle.position.x=i.canvasSize.width-u:i.bounds.left<=v&&i.direction==="left"&&(i.particle.position.x=u),i.outMode==="split"&&i.particle.destroy()}function V(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="bottom"&&i.direction!=="top")return;i.bounds.bottomi.canvasSize.height&&i.direction==="bottom"&&(i.particle.position.y=i.canvasSize.height-i.size-i.offset.y);const o=i.particle.velocity.y;let s=!1;if(i.direction==="bottom"&&i.bounds.bottom>=i.canvasSize.height&&o>C||i.direction==="top"&&i.bounds.top<=v&&o=i.canvasSize.height&&i.direction==="bottom"?i.particle.position.y=i.canvasSize.height-u:i.bounds.top<=v&&i.direction==="top"&&(i.particle.position.y=u),i.outMode==="split"&&i.particle.destroy()}class k{constructor(o){this.container=o,this.modes=["bounce","split"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;let n=!1;for(const[,d]of f.plugins)if(d.particleBounce!==void 0&&(n=d.particleBounce(o,u,s)),n)break;if(n)return;const t=o.getPosition(),e=o.offset,r=o.getRadius(),y=R(t,r),m=f.canvas.size;S({particle:o,outMode:h,direction:s,bounds:y,canvasSize:m,offset:e,size:r}),V({particle:o,outMode:h,direction:s,bounds:y,canvasSize:m,offset:e,size:r})}}const x=0;class _{constructor(o){this.container=o,this.modes=["destroy"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;switch(o.outType){case"normal":case"outside":if(O(o.position,f.canvas.size,c.origin,o.getRadius(),s))return;break;case"inside":{const{dx:n,dy:t}=M(o.position,o.moveCenter),{x:e,y:r}=o.velocity;if(eo.moveCenter.radius||ro.moveCenter.radius||e>=x&&n<-o.moveCenter.radius||r>=x&&t<-o.moveCenter.radius)return;break}}f.particles.remove(o,void 0,!0)}}const z=0;class B{constructor(o){this.container=o,this.modes=["none"]}update(o,s,u,h){if(!this.modes.includes(h)||((o.options.move.distance.horizontal&&(s==="left"||s==="right"))??(o.options.move.distance.vertical&&(s==="top"||s==="bottom"))))return;const f=o.options.move.gravity,n=this.container,t=n.canvas.size,e=o.getRadius();if(f.enable){const r=o.position;(!f.inverse&&r.y>t.height+e&&s==="bottom"||f.inverse&&r.y<-e&&s==="top")&&n.particles.remove(o)}else{if(o.velocity.y>z&&o.position.y<=t.height+e||o.velocity.y=-e||o.velocity.x>z&&o.position.x<=t.width+e||o.velocity.x=-e)return;O(o.position,n.canvas.size,c.origin,e,s)||n.particles.remove(o)}}}const l=0,p=0;class D{constructor(o){this.container=o,this.modes=["out"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;switch(o.outType){case"inside":{const{x:n,y:t}=o.velocity,e=c.origin;e.length=o.moveCenter.radius,e.angle=o.velocity.angle+Math.PI,e.addTo(c.create(o.moveCenter));const{dx:r,dy:y}=M(o.position,e);if(n<=l&&r>=p||t<=l&&y>=p||n>=l&&r<=p||t>=l&&y<=p)return;o.position.x=Math.floor(b({min:0,max:f.canvas.size.width})),o.position.y=Math.floor(b({min:0,max:f.canvas.size.height}));const{dx:m,dy:d}=M(o.position,o.moveCenter);o.direction=Math.atan2(-d,-m),o.velocity.angle=o.direction;break}default:{if(O(o.position,f.canvas.size,c.origin,o.getRadius(),s))return;switch(o.outType){case"outside":{o.position.x=Math.floor(b({min:-o.moveCenter.radius,max:o.moveCenter.radius}))+o.moveCenter.x,o.position.y=Math.floor(b({min:-o.moveCenter.radius,max:o.moveCenter.radius}))+o.moveCenter.y;const{dx:n,dy:t}=M(o.position,o.moveCenter);o.moveCenter.radius&&(o.direction=Math.atan2(t,n),o.velocity.angle=o.direction);break}case"normal":{const n=o.options.move.warp,t=f.canvas.size,e={bottom:t.height+o.getRadius()+o.offset.y,left:-o.getRadius()-o.offset.x,right:t.width+o.getRadius()+o.offset.x,top:-o.getRadius()-o.offset.y},r=o.getRadius(),y=R(o.position,r);s==="right"&&y.left>t.width+o.offset.x?(o.position.x=e.left,o.initialPosition.x=o.position.x,n||(o.position.y=g()*t.height,o.initialPosition.y=o.position.y)):s==="left"&&y.right<-o.offset.x&&(o.position.x=e.right,o.initialPosition.x=o.position.x,n||(o.position.y=g()*t.height,o.initialPosition.y=o.position.y)),s==="bottom"&&y.top>t.height+o.offset.y?(n||(o.position.x=g()*t.width,o.initialPosition.x=o.position.x),o.position.y=e.top,o.initialPosition.y=o.position.y):s==="top"&&y.bottom<-o.offset.y&&(n||(o.position.x=g()*t.width,o.initialPosition.x=o.position.x),o.position.y=e.bottom,o.initialPosition.y=o.position.y);break}}break}}}}const w=(i,o)=>i.default===o||i.bottom===o||i.left===o||i.right===o||i.top===o;class T{constructor(o){this._updateOutMode=(s,u,h,f)=>{for(const n of this.updaters)n.update(s,f,u,h)},this.container=o,this.updaters=[]}init(o){this.updaters=[];const s=o.options.move.outModes;w(s,"bounce")?this.updaters.push(new k(this.container)):w(s,"out")?this.updaters.push(new D(this.container)):w(s,"destroy")?this.updaters.push(new _(this.container)):w(s,"none")&&this.updaters.push(new B(this.container))}isEnabled(o){return!o.destroyed&&!o.spawning}update(o,s){const u=o.options.move.outModes;this._updateOutMode(o,s,u.bottom??u.default,"bottom"),this._updateOutMode(o,s,u.left??u.default,"left"),this._updateOutMode(o,s,u.right??u.default,"right"),this._updateOutMode(o,s,u.top??u.default,"top")}}export{T as OutOfCanvasUpdater}; +import{H as P,a1 as R,W as M,af as O,O as c,J as g,I as b}from"./index-CShsFACI.js";const C=0,v=0;function S(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="left"&&i.direction!=="right")return;i.bounds.righti.canvasSize.width&&i.direction==="right"&&(i.particle.position.x=i.canvasSize.width-i.size-i.offset.x);const o=i.particle.velocity.x;let s=!1;if(i.direction==="right"&&i.bounds.right>=i.canvasSize.width&&o>C||i.direction==="left"&&i.bounds.left<=v&&o=i.canvasSize.width&&i.direction==="right"?i.particle.position.x=i.canvasSize.width-u:i.bounds.left<=v&&i.direction==="left"&&(i.particle.position.x=u),i.outMode==="split"&&i.particle.destroy()}function V(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="bottom"&&i.direction!=="top")return;i.bounds.bottomi.canvasSize.height&&i.direction==="bottom"&&(i.particle.position.y=i.canvasSize.height-i.size-i.offset.y);const o=i.particle.velocity.y;let s=!1;if(i.direction==="bottom"&&i.bounds.bottom>=i.canvasSize.height&&o>C||i.direction==="top"&&i.bounds.top<=v&&o=i.canvasSize.height&&i.direction==="bottom"?i.particle.position.y=i.canvasSize.height-u:i.bounds.top<=v&&i.direction==="top"&&(i.particle.position.y=u),i.outMode==="split"&&i.particle.destroy()}class k{constructor(o){this.container=o,this.modes=["bounce","split"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;let n=!1;for(const[,d]of f.plugins)if(d.particleBounce!==void 0&&(n=d.particleBounce(o,u,s)),n)break;if(n)return;const t=o.getPosition(),e=o.offset,r=o.getRadius(),y=R(t,r),m=f.canvas.size;S({particle:o,outMode:h,direction:s,bounds:y,canvasSize:m,offset:e,size:r}),V({particle:o,outMode:h,direction:s,bounds:y,canvasSize:m,offset:e,size:r})}}const x=0;class _{constructor(o){this.container=o,this.modes=["destroy"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;switch(o.outType){case"normal":case"outside":if(O(o.position,f.canvas.size,c.origin,o.getRadius(),s))return;break;case"inside":{const{dx:n,dy:t}=M(o.position,o.moveCenter),{x:e,y:r}=o.velocity;if(eo.moveCenter.radius||ro.moveCenter.radius||e>=x&&n<-o.moveCenter.radius||r>=x&&t<-o.moveCenter.radius)return;break}}f.particles.remove(o,void 0,!0)}}const z=0;class B{constructor(o){this.container=o,this.modes=["none"]}update(o,s,u,h){if(!this.modes.includes(h)||((o.options.move.distance.horizontal&&(s==="left"||s==="right"))??(o.options.move.distance.vertical&&(s==="top"||s==="bottom"))))return;const f=o.options.move.gravity,n=this.container,t=n.canvas.size,e=o.getRadius();if(f.enable){const r=o.position;(!f.inverse&&r.y>t.height+e&&s==="bottom"||f.inverse&&r.y<-e&&s==="top")&&n.particles.remove(o)}else{if(o.velocity.y>z&&o.position.y<=t.height+e||o.velocity.y=-e||o.velocity.x>z&&o.position.x<=t.width+e||o.velocity.x=-e)return;O(o.position,n.canvas.size,c.origin,e,s)||n.particles.remove(o)}}}const l=0,p=0;class D{constructor(o){this.container=o,this.modes=["out"]}update(o,s,u,h){if(!this.modes.includes(h))return;const f=this.container;switch(o.outType){case"inside":{const{x:n,y:t}=o.velocity,e=c.origin;e.length=o.moveCenter.radius,e.angle=o.velocity.angle+Math.PI,e.addTo(c.create(o.moveCenter));const{dx:r,dy:y}=M(o.position,e);if(n<=l&&r>=p||t<=l&&y>=p||n>=l&&r<=p||t>=l&&y<=p)return;o.position.x=Math.floor(b({min:0,max:f.canvas.size.width})),o.position.y=Math.floor(b({min:0,max:f.canvas.size.height}));const{dx:m,dy:d}=M(o.position,o.moveCenter);o.direction=Math.atan2(-d,-m),o.velocity.angle=o.direction;break}default:{if(O(o.position,f.canvas.size,c.origin,o.getRadius(),s))return;switch(o.outType){case"outside":{o.position.x=Math.floor(b({min:-o.moveCenter.radius,max:o.moveCenter.radius}))+o.moveCenter.x,o.position.y=Math.floor(b({min:-o.moveCenter.radius,max:o.moveCenter.radius}))+o.moveCenter.y;const{dx:n,dy:t}=M(o.position,o.moveCenter);o.moveCenter.radius&&(o.direction=Math.atan2(t,n),o.velocity.angle=o.direction);break}case"normal":{const n=o.options.move.warp,t=f.canvas.size,e={bottom:t.height+o.getRadius()+o.offset.y,left:-o.getRadius()-o.offset.x,right:t.width+o.getRadius()+o.offset.x,top:-o.getRadius()-o.offset.y},r=o.getRadius(),y=R(o.position,r);s==="right"&&y.left>t.width+o.offset.x?(o.position.x=e.left,o.initialPosition.x=o.position.x,n||(o.position.y=g()*t.height,o.initialPosition.y=o.position.y)):s==="left"&&y.right<-o.offset.x&&(o.position.x=e.right,o.initialPosition.x=o.position.x,n||(o.position.y=g()*t.height,o.initialPosition.y=o.position.y)),s==="bottom"&&y.top>t.height+o.offset.y?(n||(o.position.x=g()*t.width,o.initialPosition.x=o.position.x),o.position.y=e.top,o.initialPosition.y=o.position.y):s==="top"&&y.bottom<-o.offset.y&&(n||(o.position.x=g()*t.width,o.initialPosition.x=o.position.x),o.position.y=e.bottom,o.initialPosition.y=o.position.y);break}}break}}}}const w=(i,o)=>i.default===o||i.bottom===o||i.left===o||i.right===o||i.top===o;class T{constructor(o){this._updateOutMode=(s,u,h,f)=>{for(const n of this.updaters)n.update(s,f,u,h)},this.container=o,this.updaters=[]}init(o){this.updaters=[];const s=o.options.move.outModes;w(s,"bounce")?this.updaters.push(new k(this.container)):w(s,"out")?this.updaters.push(new D(this.container)):w(s,"destroy")?this.updaters.push(new _(this.container)):w(s,"none")&&this.updaters.push(new B(this.container))}isEnabled(o){return!o.destroyed&&!o.spawning}update(o,s){const u=o.options.move.outModes;this._updateOutMode(o,s,u.bottom??u.default,"bottom"),this._updateOutMode(o,s,u.left??u.default,"left"),this._updateOutMode(o,s,u.right??u.default,"right"),this._updateOutMode(o,s,u.top??u.default,"top")}}export{T as OutOfCanvasUpdater}; diff --git a/dist/assets/ParallaxMover-BA-dpb0_.js b/dist/assets/ParallaxMover-B8zWFvWV.js similarity index 88% rename from dist/assets/ParallaxMover-BA-dpb0_.js rename to dist/assets/ParallaxMover-B8zWFvWV.js index 573a6da..9f43158 100644 --- a/dist/assets/ParallaxMover-BA-dpb0_.js +++ b/dist/assets/ParallaxMover-B8zWFvWV.js @@ -1 +1 @@ -import{T as x}from"./index-BbPL1Txh.js";const v=.5;class m{init(){}isEnabled(a){return!x()&&!a.destroyed&&a.container.actualOptions.interactivity.events.onHover.parallax.enable}move(a){const e=a.container,y=e.actualOptions,n=y.interactivity.events.onHover.parallax;if(x()||!n.enable)return;const p=n.force,o=e.interactivity.mouse.position;if(!o)return;const s=e.canvas.size,i={x:s.width*v,y:s.height*v},r=n.smooth,c=a.getRadius()/p,l={x:(o.x-i.x)*c,y:(o.y-i.y)*c},{offset:t}=a;t.x+=(l.x-t.x)/r,t.y+=(l.y-t.y)/r}}export{m as ParallaxMover}; +import{T as x}from"./index-CShsFACI.js";const v=.5;class m{init(){}isEnabled(a){return!x()&&!a.destroyed&&a.container.actualOptions.interactivity.events.onHover.parallax.enable}move(a){const e=a.container,y=e.actualOptions,n=y.interactivity.events.onHover.parallax;if(x()||!n.enable)return;const p=n.force,o=e.interactivity.mouse.position;if(!o)return;const s=e.canvas.size,i={x:s.width*v,y:s.height*v},r=n.smooth,c=a.getRadius()/p,l={x:(o.x-i.x)*c,y:(o.y-i.y)*c},{offset:t}=a;t.x+=(l.x-t.x)/r,t.y+=(l.y-t.y)/r}}export{m as ParallaxMover}; diff --git a/dist/assets/PolygonDrawer-DbYV5apv.js b/dist/assets/PolygonDrawer-DhiAQhcG.js similarity index 56% rename from dist/assets/PolygonDrawer-DbYV5apv.js rename to dist/assets/PolygonDrawer-DhiAQhcG.js index fe5b912..430d1fb 100644 --- a/dist/assets/PolygonDrawer-DbYV5apv.js +++ b/dist/assets/PolygonDrawer-DhiAQhcG.js @@ -1 +1 @@ -import{P as n}from"./PolygonDrawerBase-BwGZ5jWk.js";import"./index-BbPL1Txh.js";const o=3.5,s=2.66,a=3;class g extends n{getCenter(t,e){return{x:-e/(t.sides/o),y:-e/(s/o)}}getSidesData(t,e){const r=t.sides;return{count:{denominator:1,numerator:r},length:e*s/(r/a)}}}export{g as PolygonDrawer}; +import{P as n}from"./PolygonDrawerBase-CNzqjENl.js";import"./index-CShsFACI.js";const o=3.5,s=2.66,a=3;class g extends n{getCenter(t,e){return{x:-e/(t.sides/o),y:-e/(s/o)}}getSidesData(t,e){const r=t.sides;return{count:{denominator:1,numerator:r},length:e*s/(r/a)}}}export{g as PolygonDrawer}; diff --git a/dist/assets/PolygonDrawerBase-BwGZ5jWk.js b/dist/assets/PolygonDrawerBase-CNzqjENl.js similarity index 88% rename from dist/assets/PolygonDrawerBase-BwGZ5jWk.js rename to dist/assets/PolygonDrawerBase-CNzqjENl.js index 58cca0b..359aaa7 100644 --- a/dist/assets/PolygonDrawerBase-BwGZ5jWk.js +++ b/dist/assets/PolygonDrawerBase-CNzqjENl.js @@ -1 +1 @@ -import{G as c,H as l}from"./index-BbPL1Txh.js";const d=180,r={x:0,y:0},h=2;function m(s,n,t){const{context:e}=s,a=t.count.numerator*t.count.denominator,o=t.count.numerator/t.count.denominator,g=d*(o-h)/o,u=Math.PI-c(g);if(e){e.beginPath(),e.translate(n.x,n.y),e.moveTo(r.x,r.y);for(let i=0;i{if(n!==h)return;const t=this.container,o=t.actualOptions,r=o.interactivity.modes.push;if(!r)return;const i=p(r.quantity);if(i<=l)return;const s=c([void 0,...r.groups]),u=s!==void 0?t.actualOptions.particles.groups[s]:void 0;t.particles.push(i,t.interactivity.mouse,u,s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.push||(e.push=new a);for(const t of n)e.push.load(t==null?void 0:t.push)}reset(){}}export{O as Pusher}; +import{Push as a}from"./index-DeJl6bSD.js";import{H as p,a9 as c}from"./index-CShsFACI.js";import{E as d}from"./ExternalInteractorBase-CIi3zRdK.js";const h="push",l=0;class O extends d{constructor(e){super(e),this.handleClickMode=n=>{if(n!==h)return;const t=this.container,o=t.actualOptions,r=o.interactivity.modes.push;if(!r)return;const i=p(r.quantity);if(i<=l)return;const s=c([void 0,...r.groups]),u=s!==void 0?t.actualOptions.particles.groups[s]:void 0;t.particles.push(i,t.interactivity.mouse,u,s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...n){e.push||(e.push=new a);for(const t of n)e.push.load(t==null?void 0:t.push)}reset(){}}export{O as Pusher}; diff --git a/dist/assets/Ranges-DOcs18nu.js b/dist/assets/Ranges-Cgpup9mk.js similarity index 94% rename from dist/assets/Ranges-DOcs18nu.js rename to dist/assets/Ranges-Cgpup9mk.js index 6b3796b..d6d0e07 100644 --- a/dist/assets/Ranges-DOcs18nu.js +++ b/dist/assets/Ranges-Cgpup9mk.js @@ -1 +1 @@ -import{K as y}from"./index-BbPL1Txh.js";const r=2;class p{constructor(s,i,e){this.position={x:s,y:i},this.type=e}}class a extends p{constructor(s,i,e){super(s,i,"circle"),this.radius=e}contains(s){return y(s,this.position)<=this.radius}intersects(s){const i=this.position,e=s.position,t={x:Math.abs(e.x-i.x),y:Math.abs(e.y-i.y)},h=this.radius;if(s instanceof a||s.type==="circle"){const n=s,o=h+n.radius,c=Math.sqrt(t.x**r+t.y**r);return o>c}else if(s instanceof x||s.type==="rectangle"){const n=s,{width:o,height:c}=n.size;return Math.pow(t.x-o,r)+Math.pow(t.y-c,r)<=h**r||t.x<=h+o&&t.y<=h+c||t.x<=o||t.y<=c}return!1}}class x extends p{constructor(s,i,e,t){super(s,i,"rectangle"),this.size={height:t,width:e}}contains(s){const i=this.size.width,e=this.size.height,t=this.position;return s.x>=t.x&&s.x<=t.x+i&&s.y>=t.y&&s.y<=t.y+e}intersects(s){if(s instanceof a)return s.intersects(this);const i=this.size.width,e=this.size.height,t=this.position,h=s.position,n=s instanceof x?s.size:{width:0,height:0},o=n.width,c=n.height;return h.xt.x&&h.yt.y}}export{a as C,x as R}; +import{K as y}from"./index-CShsFACI.js";const r=2;class p{constructor(s,i,e){this.position={x:s,y:i},this.type=e}}class a extends p{constructor(s,i,e){super(s,i,"circle"),this.radius=e}contains(s){return y(s,this.position)<=this.radius}intersects(s){const i=this.position,e=s.position,t={x:Math.abs(e.x-i.x),y:Math.abs(e.y-i.y)},h=this.radius;if(s instanceof a||s.type==="circle"){const n=s,o=h+n.radius,c=Math.sqrt(t.x**r+t.y**r);return o>c}else if(s instanceof x||s.type==="rectangle"){const n=s,{width:o,height:c}=n.size;return Math.pow(t.x-o,r)+Math.pow(t.y-c,r)<=h**r||t.x<=h+o&&t.y<=h+c||t.x<=o||t.y<=c}return!1}}class x extends p{constructor(s,i,e,t){super(s,i,"rectangle"),this.size={height:t,width:e}}contains(s){const i=this.size.width,e=this.size.height,t=this.position;return s.x>=t.x&&s.x<=t.x+i&&s.y>=t.y&&s.y<=t.y+e}intersects(s){if(s instanceof a)return s.intersects(this);const i=this.size.width,e=this.size.height,t=this.position,h=s.position,n=s instanceof x?s.size:{width:0,height:0},o=n.width,c=n.height;return h.xt.x&&h.yt.y}}export{a as C,x as R}; diff --git a/dist/assets/Remover-DLF4yMCL.js b/dist/assets/Remover-Ckgil0zK.js similarity index 78% rename from dist/assets/Remover-DLF4yMCL.js rename to dist/assets/Remover-Ckgil0zK.js index 791d2c3..93996af 100644 --- a/dist/assets/Remover-DLF4yMCL.js +++ b/dist/assets/Remover-Ckgil0zK.js @@ -1 +1 @@ -import{Remove as i}from"./index-DzgRBc1Z.js";import{E as a}from"./ExternalInteractorBase-CIi3zRdK.js";import{H as m}from"./index-BbPL1Txh.js";const s="remove";class u extends a{constructor(t){super(t),this.handleClickMode=r=>{const e=this.container,o=e.actualOptions;if(!o.interactivity.modes.remove||r!==s)return;const n=m(o.interactivity.modes.remove.quantity);e.particles.removeQuantity(n)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...r){t.remove||(t.remove=new i);for(const e of r)t.remove.load(e==null?void 0:e.remove)}reset(){}}export{u as Remover}; +import{Remove as i}from"./index-CmOj1iTh.js";import{E as a}from"./ExternalInteractorBase-CIi3zRdK.js";import{H as m}from"./index-CShsFACI.js";const s="remove";class u extends a{constructor(t){super(t),this.handleClickMode=r=>{const e=this.container,o=e.actualOptions;if(!o.interactivity.modes.remove||r!==s)return;const n=m(o.interactivity.modes.remove.quantity);e.particles.removeQuantity(n)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...r){t.remove||(t.remove=new i);for(const e of r)t.remove.load(e==null?void 0:e.remove)}reset(){}}export{u as Remover}; diff --git a/dist/assets/Repulser-C9Ls11wj.js b/dist/assets/Repulser-CC8e7fmU.js similarity index 94% rename from dist/assets/Repulser-C9Ls11wj.js rename to dist/assets/Repulser-CC8e7fmU.js index 9f819ec..77836cd 100644 --- a/dist/assets/Repulser-C9Ls11wj.js +++ b/dist/assets/Repulser-CC8e7fmU.js @@ -1 +1 @@ -import{Repulse as T}from"./index-kWzwevuU.js";import{E as _}from"./ExternalInteractorBase-CIi3zRdK.js";import{C as M,R as D}from"./Ranges-DOcs18nu.js";import{W as O,O as b,X as w,L as S,a6 as C,q as P,t as H,S as g,Y as V,a2 as W}from"./index-BbPL1Txh.js";const h="repulse",F=0,L=6,A=3,I=2,B=0,X=0,Y=1,x=.5;class N extends _{constructor(c,n){super(n),this._clickRepulse=()=>{const t=this.container,i=t.actualOptions.interactivity.modes.repulse;if(!i)return;const e=t.repulse??{particles:[]};if(e.finish||(e.count||(e.count=0),e.count++,e.count===t.particles.count&&(e.finish=!0)),e.clicking){const s=t.retina.repulseModeDistance;if(!s||sthis.isEnabled(l));for(const l of a){const{dx:p,dy:f,distance:m}=O(u,l.position),d=m**I,v=i.speed,k=-r*v/d;if(d<=r){e.particles.push(l);const R=b.create(p,f);R.length=k,l.velocity.setTo(R)}}}else if(e.clicking===!1){for(const s of e.particles)s.velocity.setTo(s.initialVelocity);e.particles=[]}},this._hoverRepulse=()=>{const t=this.container,i=t.interactivity.mouse.position,e=t.retina.repulseModeDistance;!e||e{const r=this.container,u=r.particles.quadTree.query(e,v=>this.isEnabled(v)),o=r.actualOptions.interactivity.modes.repulse;if(!o)return;const{easing:a,speed:l,factor:p,maxSpeed:f}=o,m=w(a),d=((s==null?void 0:s.speed)??l)*p;for(const v of u){const{dx:k,dy:R,distance:y}=O(v.position,t),E=S(m(Y-y/i)*d,X,f),q=b.create(y?k/y*E:d,y?R/y*E:d);v.position.addTo(q)}},this._singleSelectorRepulse=(t,i)=>{const e=this.container,s=e.actualOptions.interactivity.modes.repulse;if(!s)return;const r=document.querySelectorAll(t);r.length&&r.forEach(u=>{const o=u,a=e.retina.pixelRatio,l={x:(o.offsetLeft+o.offsetWidth*x)*a,y:(o.offsetTop+o.offsetHeight*x)*a},p=o.offsetWidth*x*a,f=i.type==="circle"?new M(l.x,l.y,p):new D(o.offsetLeft*a,o.offsetTop*a,o.offsetWidth*a,o.offsetHeight*a),m=s.divs,d=C(m,o);this._processRepulse(l,p,f,d)})},this._engine=c,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=t=>{const i=this.container.actualOptions,e=i.interactivity.modes.repulse;if(!e||t!==h)return;n.repulse||(n.repulse={particles:[]});const s=n.repulse;s.clicking=!0,s.count=0;for(const r of n.repulse.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{n.destroyed||(s.clicking=!1)},e.duration*P)}}clear(){}init(){const c=this.container,n=c.actualOptions.interactivity.modes.repulse;n&&(c.retina.repulseModeDistance=n.distance*c.retina.pixelRatio)}interact(){const c=this.container,n=c.actualOptions,t=c.interactivity.status===H,i=n.interactivity.events,e=i.onHover,s=e.enable,r=e.mode,u=i.onClick,o=u.enable,a=u.mode,l=i.onDiv;t&&s&&g(h,r)?this._hoverRepulse():o&&g(h,a)?this._clickRepulse():V(h,l,(p,f)=>this._singleSelectorRepulse(p,f))}isEnabled(c){const n=this.container,t=n.actualOptions,i=n.interactivity.mouse,e=((c==null?void 0:c.interactivity)??t.interactivity).events,s=e.onDiv,r=e.onHover,u=e.onClick,o=W(h,s);if(!(o||r.enable&&i.position||u.enable&&i.clickPosition))return!1;const a=r.mode,l=u.mode;return g(h,a)||g(h,l)||o}loadModeOptions(c,...n){c.repulse||(c.repulse=new T);for(const t of n)c.repulse.load(t==null?void 0:t.repulse)}reset(){}}export{N as Repulser}; +import{Repulse as T}from"./index-DieO57wC.js";import{E as _}from"./ExternalInteractorBase-CIi3zRdK.js";import{C as M,R as D}from"./Ranges-Cgpup9mk.js";import{W as O,O as b,X as w,L as S,a6 as C,q as P,t as H,S as g,Y as V,a2 as W}from"./index-CShsFACI.js";const h="repulse",F=0,L=6,A=3,I=2,B=0,X=0,Y=1,x=.5;class N extends _{constructor(c,n){super(n),this._clickRepulse=()=>{const t=this.container,i=t.actualOptions.interactivity.modes.repulse;if(!i)return;const e=t.repulse??{particles:[]};if(e.finish||(e.count||(e.count=0),e.count++,e.count===t.particles.count&&(e.finish=!0)),e.clicking){const s=t.retina.repulseModeDistance;if(!s||sthis.isEnabled(l));for(const l of a){const{dx:p,dy:f,distance:m}=O(u,l.position),d=m**I,v=i.speed,k=-r*v/d;if(d<=r){e.particles.push(l);const R=b.create(p,f);R.length=k,l.velocity.setTo(R)}}}else if(e.clicking===!1){for(const s of e.particles)s.velocity.setTo(s.initialVelocity);e.particles=[]}},this._hoverRepulse=()=>{const t=this.container,i=t.interactivity.mouse.position,e=t.retina.repulseModeDistance;!e||e{const r=this.container,u=r.particles.quadTree.query(e,v=>this.isEnabled(v)),o=r.actualOptions.interactivity.modes.repulse;if(!o)return;const{easing:a,speed:l,factor:p,maxSpeed:f}=o,m=w(a),d=((s==null?void 0:s.speed)??l)*p;for(const v of u){const{dx:k,dy:R,distance:y}=O(v.position,t),E=S(m(Y-y/i)*d,X,f),q=b.create(y?k/y*E:d,y?R/y*E:d);v.position.addTo(q)}},this._singleSelectorRepulse=(t,i)=>{const e=this.container,s=e.actualOptions.interactivity.modes.repulse;if(!s)return;const r=document.querySelectorAll(t);r.length&&r.forEach(u=>{const o=u,a=e.retina.pixelRatio,l={x:(o.offsetLeft+o.offsetWidth*x)*a,y:(o.offsetTop+o.offsetHeight*x)*a},p=o.offsetWidth*x*a,f=i.type==="circle"?new M(l.x,l.y,p):new D(o.offsetLeft*a,o.offsetTop*a,o.offsetWidth*a,o.offsetHeight*a),m=s.divs,d=C(m,o);this._processRepulse(l,p,f,d)})},this._engine=c,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=t=>{const i=this.container.actualOptions,e=i.interactivity.modes.repulse;if(!e||t!==h)return;n.repulse||(n.repulse={particles:[]});const s=n.repulse;s.clicking=!0,s.count=0;for(const r of n.repulse.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{n.destroyed||(s.clicking=!1)},e.duration*P)}}clear(){}init(){const c=this.container,n=c.actualOptions.interactivity.modes.repulse;n&&(c.retina.repulseModeDistance=n.distance*c.retina.pixelRatio)}interact(){const c=this.container,n=c.actualOptions,t=c.interactivity.status===H,i=n.interactivity.events,e=i.onHover,s=e.enable,r=e.mode,u=i.onClick,o=u.enable,a=u.mode,l=i.onDiv;t&&s&&g(h,r)?this._hoverRepulse():o&&g(h,a)?this._clickRepulse():V(h,l,(p,f)=>this._singleSelectorRepulse(p,f))}isEnabled(c){const n=this.container,t=n.actualOptions,i=n.interactivity.mouse,e=((c==null?void 0:c.interactivity)??t.interactivity).events,s=e.onDiv,r=e.onHover,u=e.onClick,o=W(h,s);if(!(o||r.enable&&i.position||u.enable&&i.clickPosition))return!1;const a=r.mode,l=u.mode;return g(h,a)||g(h,l)||o}loadModeOptions(c,...n){c.repulse||(c.repulse=new T);for(const t of n)c.repulse.load(t==null?void 0:t.repulse)}reset(){}}export{N as Repulser}; diff --git a/dist/assets/RotateUpdater-Bl8CCIRL.js b/dist/assets/RotateUpdater-BDZGNKYU.js similarity index 91% rename from dist/assets/RotateUpdater-Bl8CCIRL.js rename to dist/assets/RotateUpdater-BDZGNKYU.js index 249b0a6..0f9cd27 100644 --- a/dist/assets/RotateUpdater-Bl8CCIRL.js +++ b/dist/assets/RotateUpdater-BDZGNKYU.js @@ -1 +1 @@ -import{s as a,G as c,H as i,J as r,ab as u}from"./index-BbPL1Txh.js";import{V as f}from"./ValueWithRandom-Dsu4V_5I.js";class h{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=a(e.speed)),e.decay!==void 0&&(this.decay=a(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}}class l extends f{constructor(){super(),this.animation=new h,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}}const d=2,m=Math.PI*d,b=1,y=360;class p{constructor(e){this.container=e}init(e){const t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:c(i(t.value)),min:0,max:m},e.pathRotation=t.path;let n=t.direction;switch(n==="random"&&(n=Math.floor(r()*d)>0?"counter-clockwise":"clockwise"),n){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}const o=t.animation;o.enable&&(e.rotate.decay=b-i(o.decay),e.rotate.velocity=i(o.speed)/y*this.container.retina.reduceFactor,o.sync||(e.rotate.velocity*=r())),e.rotation=e.rotate.value}isEnabled(e){const t=e.options.rotate;return t?!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path:!1}loadOptions(e,...t){e.rotate||(e.rotate=new l);for(const n of t)e.rotate.load(n==null?void 0:n.rotate)}update(e,t){this.isEnabled(e)&&e.rotate&&(u(e,e.rotate,!1,"none",t),e.rotation=e.rotate.value)}}export{p as RotateUpdater}; +import{s as a,G as c,H as i,J as r,ab as u}from"./index-CShsFACI.js";import{V as f}from"./ValueWithRandom-BsNMdqfS.js";class h{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=a(e.speed)),e.decay!==void 0&&(this.decay=a(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}}class l extends f{constructor(){super(),this.animation=new h,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}}const d=2,m=Math.PI*d,b=1,y=360;class p{constructor(e){this.container=e}init(e){const t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:c(i(t.value)),min:0,max:m},e.pathRotation=t.path;let n=t.direction;switch(n==="random"&&(n=Math.floor(r()*d)>0?"counter-clockwise":"clockwise"),n){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}const o=t.animation;o.enable&&(e.rotate.decay=b-i(o.decay),e.rotate.velocity=i(o.speed)/y*this.container.retina.reduceFactor,o.sync||(e.rotate.velocity*=r())),e.rotation=e.rotate.value}isEnabled(e){const t=e.options.rotate;return t?!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path:!1}loadOptions(e,...t){e.rotate||(e.rotate=new l);for(const n of t)e.rotate.load(n==null?void 0:n.rotate)}update(e,t){this.isEnabled(e)&&e.rotate&&(u(e,e.rotate,!1,"none",t),e.rotation=e.rotate.value)}}export{p as RotateUpdater}; diff --git a/dist/assets/SizeUpdater-BqQzkQ-Q.js b/dist/assets/SizeUpdater-CS0MnJFd.js similarity index 88% rename from dist/assets/SizeUpdater-BqQzkQ-Q.js rename to dist/assets/SizeUpdater-CS0MnJFd.js index d1e8620..b9fe595 100644 --- a/dist/assets/SizeUpdater-BqQzkQ-Q.js +++ b/dist/assets/SizeUpdater-CS0MnJFd.js @@ -1 +1 @@ -import{ae as t,J as a,ab as z}from"./index-BbPL1Txh.js";const n=0;class r{init(e){const s=e.container,i=e.options.size,o=i.animation;o.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??s.retina.sizeAnimationSpeed)/t*s.retina.reduceFactor,o.sync||(e.size.velocity*=a()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??n)<=n||(e.size.maxLoops??n)>n&&(e.size.loops??n)<(e.size.maxLoops??n))}reset(e){e.size.loops=n}update(e,s){this.isEnabled(e)&&z(e,e.size,!0,e.options.size.animation.destroy,s)}}export{r as SizeUpdater}; +import{ae as t,J as a,ab as z}from"./index-CShsFACI.js";const n=0;class r{init(e){const s=e.container,i=e.options.size,o=i.animation;o.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??s.retina.sizeAnimationSpeed)/t*s.retina.reduceFactor,o.sync||(e.size.velocity*=a()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??n)<=n||(e.size.maxLoops??n)>n&&(e.size.loops??n)<(e.size.maxLoops??n))}reset(e){e.size.loops=n}update(e,s){this.isEnabled(e)&&z(e,e.size,!0,e.options.size.animation.destroy,s)}}export{r as SizeUpdater}; diff --git a/dist/assets/Slower-BLi7O0I-.js b/dist/assets/Slower-CalyVoYw.js similarity index 87% rename from dist/assets/Slower-BLi7O0I-.js rename to dist/assets/Slower-CalyVoYw.js index 687f650..cee1080 100644 --- a/dist/assets/Slower-BLi7O0I-.js +++ b/dist/assets/Slower-CalyVoYw.js @@ -1 +1 @@ -import{Slow as u}from"./index-_cpfFoC0.js";import{E as d}from"./ExternalInteractorBase-CIi3zRdK.js";import{S as m,K as f}from"./index-BbPL1Txh.js";const v="slow",y=0;class O extends d{constructor(o){super(o)}clear(o,t,i){o.slow.inRange&&!i||(o.slow.factor=1)}init(){const o=this.container,t=o.actualOptions.interactivity.modes.slow;t&&(o.retina.slowModeRadius=t.radius*o.retina.pixelRatio)}interact(){}isEnabled(o){const t=this.container,i=t.interactivity.mouse,s=((o==null?void 0:o.interactivity)??t.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&m(v,s.onHover.mode)}loadModeOptions(o,...t){o.slow||(o.slow=new u);for(const i of t)o.slow.load(i==null?void 0:i.slow)}reset(o){o.slow.inRange=!1;const t=this.container,i=t.actualOptions,s=t.interactivity.mouse.position,n=t.retina.slowModeRadius,e=i.interactivity.modes.slow;if(!e||!n||nn||(a.inRange=!0,a.factor=l/w)}}export{O as Slower}; +import{Slow as u}from"./index-Bv4Ri9Dl.js";import{E as d}from"./ExternalInteractorBase-CIi3zRdK.js";import{S as m,K as f}from"./index-CShsFACI.js";const v="slow",y=0;class O extends d{constructor(o){super(o)}clear(o,t,i){o.slow.inRange&&!i||(o.slow.factor=1)}init(){const o=this.container,t=o.actualOptions.interactivity.modes.slow;t&&(o.retina.slowModeRadius=t.radius*o.retina.pixelRatio)}interact(){}isEnabled(o){const t=this.container,i=t.interactivity.mouse,s=((o==null?void 0:o.interactivity)??t.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&m(v,s.onHover.mode)}loadModeOptions(o,...t){o.slow||(o.slow=new u);for(const i of t)o.slow.load(i==null?void 0:i.slow)}reset(o){o.slow.inRange=!1;const t=this.container,i=t.actualOptions,s=t.interactivity.mouse.position,n=t.retina.slowModeRadius,e=i.interactivity.modes.slow;if(!e||!n||nn||(a.inRange=!0,a.factor=l/w)}}export{O as Slower}; diff --git a/dist/assets/StarDrawer-BGWkxu61.js b/dist/assets/StarDrawer-o68z3SAe.js similarity index 87% rename from dist/assets/StarDrawer-BGWkxu61.js rename to dist/assets/StarDrawer-o68z3SAe.js index 1b20803..f0babd1 100644 --- a/dist/assets/StarDrawer-BGWkxu61.js +++ b/dist/assets/StarDrawer-o68z3SAe.js @@ -1 +1 @@ -import{H as i}from"./index-BbPL1Txh.js";const c=2,s={x:0,y:0};function l(o){const{context:t,particle:e,radius:a}=o,n=e.sides,d=e.starInset??c;t.moveTo(s.x,s.y-a);for(let r=0;r __vite__mapDeps.viteFileDeps[i]) } -import{_ as O}from"./index-BbPL1Txh.js";const R=[0,4,2,1],G=[8,8,4,2];class U{constructor(a){this.pos=0,this.data=new Uint8ClampedArray(a)}getString(a){const s=this.data.slice(this.pos,this.pos+a);return this.pos+=s.length,s.reduce((n,f)=>n+String.fromCharCode(f),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let a="",s=0;const n=0,f=0;do{s=this.data[this.pos++];for(let e=s;--e>=n;a+=String.fromCharCode(this.data[this.pos++]));}while(s!==f);return a}readSubBlocksBin(){let a=this.data[this.pos],s=0;const n=0,f=1;for(let o=0;a!==n;o+=a+f,a=this.data[this.pos+o])s+=a;const e=new Uint8Array(s);a=this.data[this.pos++];for(let o=0;a!==n;a=this.data[this.pos++])for(let r=a;--r>=n;e[o++]=this.data[this.pos++]);return e}skipSubBlocks(){for(const a=1,s=0;this.data[this.pos]!==s;this.pos+=this.data[this.pos]+a);this.pos++}}const u={x:0,y:0},N=0,L=.5,$=0,A=0,z=0;function _(t,a){const s=[];for(let n=0;n>>5,f.disposalMethod=(e&28)>>>2,f.userInputDelayFlag=(e&2)===2;const o=(e&1)===1;f.delayTime=t.nextTwoBytes()*10;const r=t.nextByte();o&&n(r),t.pos++;break}case 255:{t.pos++;const f={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};a.applicationExtensions.push(f);break}case 254:{a.comments.push([s(!1),t.readSubBlocks()]);break}case 1:{if(a.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,a.frames[s(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break}default:t.skipSubBlocks();break}}async function W(t,a,s,n,f,e){const o=a.frames[n(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();const r=t.nextByte(),x=(r&128)===128,d=(r&64)===64;o.sortFlag=(r&32)===32,o.reserved=(r&24)>>>3;const c=1<<(r&7)+1;x&&(o.localColorTable=_(t,c));const m=l=>{const{r:h,g:p,b:i}=(x?o.localColorTable:a.globalColorTable)[l];return l!==f(null)?{r:h,g:p,b:i,a:255}:{r:h,g:p,b:i,a:s?~~((h+p+i)/3):0}},B=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(l){if(l instanceof DOMException&&l.name==="IndexSizeError")return null;throw l}})();if(B==null)throw new EvalError("GIF frame size is to large");const D=t.nextByte(),b=t.readSubBlocksBin(),w=1<{const p=l>>>3,i=l&7;return(b[p]+(b[p+1]<<8)+(b[p+2]<<16)&(1<>>i};if(d){for(let l=0,h=D+1,p=0,i=[[0]],I=0;I<4;I++){if(R[I]=i.length?i.push(i[E].concat(i[E][0])):E!==w&&i.push(i[E].concat(i[l][0]));for(const C of i[l]){const{r:v,g:F,b:P,a:M}=m(C);B.data.set([v,F,P,M],R[I]*o.width+G[I]*y+g%(o.width*4)),g+=4}i.length===1<=o.height&&(T=!0))}}e==null||e(t.pos/(t.data.length-1),n(!1)+1,B,{x:o.left,y:o.top},{width:a.width,height:a.height})}o.image=B,o.bitmap=await createImageBitmap(B)}else{let l=0,h=D+1,p=0,i=-4,I=!1;const g=[[0]];for(;!I;){const y=l;if(l=k(p,h),p+=h,l===w){h=D+1,g.length=w+2;for(let T=0;T=g.length?g.push(g[y].concat(g[y][0])):y!==w&&g.push(g[y].concat(g[l][0]));for(const T of g[l]){const{r:E,g:C,b:v,a:F}=m(T);B.data.set([E,C,v,F],i+=4)}g.length>=1<>>4,e.sortFlag=(r&8)===8;const d=1<<(r&7)+1,c=o.nextByte();e.pixelAspectRatio=o.nextByte(),e.pixelAspectRatio!==0&&(e.pixelAspectRatio=(e.pixelAspectRatio+15)/64),x&&(e.globalColorTable=_(o,d));const m=(()=>{try{return new ImageData(e.width,e.height,{colorSpace:"srgb"})}catch(i){if(i instanceof DOMException&&i.name==="IndexSizeError")return null;throw i}})();if(m==null)throw new Error("GIF frame size is to large");const{r:B,g:D,b}=e.globalColorTable[c];m.data.set(x?[B,D,b,255]:[0,0,0,0]);for(let i=4;i(i&&(k=!0),w),p=i=>(i!=null&&(l=i),l);try{do k&&(e.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),w++,l=-1,k=!1);while(!await j(o,e,s,h,p,a));e.frames.length--;for(const i of e.frames){if(i.userInputDelayFlag&&i.delayTime===0){e.totalTime=1/0;break}e.totalTime+=i.delayTime}return e}catch(i){throw i instanceof EvalError?new Error(`error while parsing frame ${w} "${i.message}"`):i}}function K(t){const{context:a,radius:s,particle:n,delta:f}=t,e=n.image;if(!(e!=null&&e.gifData)||!e.gif)return;const o=new OffscreenCanvas(e.gifData.width,e.gifData.height),r=o.getContext("2d");if(!r)throw new Error("could not create offscreen canvas context");r.imageSmoothingQuality="low",r.imageSmoothingEnabled=!1,r.clearRect(u.x,u.y,o.width,o.height),n.gifLoopCount===void 0&&(n.gifLoopCount=e.gifLoopCount??z);let x=n.gifFrame??N;const d={x:-e.gifData.width*L,y:-e.gifData.height*L},c=e.gifData.frames[x];if(n.gifTime===void 0&&(n.gifTime=$),!!c.bitmap){switch(a.scale(s/e.gifData.width,s/e.gifData.height),c.disposalMethod){case 4:case 5:case 6:case 7:case 0:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height);break;case 1:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y);break;case 2:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height),e.gifData.globalColorTable.length?r.putImageData(e.gifData.backgroundImage,d.x,d.y):r.putImageData(e.gifData.frames[A].image,d.x+c.left,d.y+c.top);break;case 3:{const m=r.getImageData(u.x,u.y,o.width,o.height);r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height),r.putImageData(m,u.x,u.y)}break}if(n.gifTime+=f.value,n.gifTime>c.delayTime){if(n.gifTime-=c.delayTime,++x>=e.gifData.frames.length){if(--n.gifLoopCount<=z)return;x=A,r.clearRect(u.x,u.y,o.width,o.height)}n.gifFrame=x}a.scale(e.gifData.width/s,e.gifData.height/s)}}async function V(t){if(t.type!=="gif"){const{loadImage:a}=await O(()=>import("./index-LDb9jKip.js").then(s=>s.U),__vite__mapDeps([0,1,2]));await a(t);return}t.loading=!0;try{t.gifData=await H(t.source),t.gifLoopCount=q(t.gifData)??z,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}export{H as decodeGIF,K as drawGif,q as getGIFLoopAmount,V as loadGifImage}; +import{_ as O}from"./index-CShsFACI.js";const R=[0,4,2,1],G=[8,8,4,2];class U{constructor(a){this.pos=0,this.data=new Uint8ClampedArray(a)}getString(a){const s=this.data.slice(this.pos,this.pos+a);return this.pos+=s.length,s.reduce((n,f)=>n+String.fromCharCode(f),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let a="",s=0;const n=0,f=0;do{s=this.data[this.pos++];for(let e=s;--e>=n;a+=String.fromCharCode(this.data[this.pos++]));}while(s!==f);return a}readSubBlocksBin(){let a=this.data[this.pos],s=0;const n=0,f=1;for(let o=0;a!==n;o+=a+f,a=this.data[this.pos+o])s+=a;const e=new Uint8Array(s);a=this.data[this.pos++];for(let o=0;a!==n;a=this.data[this.pos++])for(let r=a;--r>=n;e[o++]=this.data[this.pos++]);return e}skipSubBlocks(){for(const a=1,s=0;this.data[this.pos]!==s;this.pos+=this.data[this.pos]+a);this.pos++}}const u={x:0,y:0},N=0,L=.5,$=0,A=0,z=0;function _(t,a){const s=[];for(let n=0;n>>5,f.disposalMethod=(e&28)>>>2,f.userInputDelayFlag=(e&2)===2;const o=(e&1)===1;f.delayTime=t.nextTwoBytes()*10;const r=t.nextByte();o&&n(r),t.pos++;break}case 255:{t.pos++;const f={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};a.applicationExtensions.push(f);break}case 254:{a.comments.push([s(!1),t.readSubBlocks()]);break}case 1:{if(a.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,a.frames[s(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break}default:t.skipSubBlocks();break}}async function W(t,a,s,n,f,e){const o=a.frames[n(!0)];o.left=t.nextTwoBytes(),o.top=t.nextTwoBytes(),o.width=t.nextTwoBytes(),o.height=t.nextTwoBytes();const r=t.nextByte(),x=(r&128)===128,d=(r&64)===64;o.sortFlag=(r&32)===32,o.reserved=(r&24)>>>3;const c=1<<(r&7)+1;x&&(o.localColorTable=_(t,c));const m=l=>{const{r:h,g:p,b:i}=(x?o.localColorTable:a.globalColorTable)[l];return l!==f(null)?{r:h,g:p,b:i,a:255}:{r:h,g:p,b:i,a:s?~~((h+p+i)/3):0}},B=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(l){if(l instanceof DOMException&&l.name==="IndexSizeError")return null;throw l}})();if(B==null)throw new EvalError("GIF frame size is to large");const D=t.nextByte(),b=t.readSubBlocksBin(),w=1<{const p=l>>>3,i=l&7;return(b[p]+(b[p+1]<<8)+(b[p+2]<<16)&(1<>>i};if(d){for(let l=0,h=D+1,p=0,i=[[0]],I=0;I<4;I++){if(R[I]=i.length?i.push(i[E].concat(i[E][0])):E!==w&&i.push(i[E].concat(i[l][0]));for(const C of i[l]){const{r:v,g:F,b:P,a:M}=m(C);B.data.set([v,F,P,M],R[I]*o.width+G[I]*y+g%(o.width*4)),g+=4}i.length===1<=o.height&&(T=!0))}}e==null||e(t.pos/(t.data.length-1),n(!1)+1,B,{x:o.left,y:o.top},{width:a.width,height:a.height})}o.image=B,o.bitmap=await createImageBitmap(B)}else{let l=0,h=D+1,p=0,i=-4,I=!1;const g=[[0]];for(;!I;){const y=l;if(l=k(p,h),p+=h,l===w){h=D+1,g.length=w+2;for(let T=0;T=g.length?g.push(g[y].concat(g[y][0])):y!==w&&g.push(g[y].concat(g[l][0]));for(const T of g[l]){const{r:E,g:C,b:v,a:F}=m(T);B.data.set([E,C,v,F],i+=4)}g.length>=1<>>4,e.sortFlag=(r&8)===8;const d=1<<(r&7)+1,c=o.nextByte();e.pixelAspectRatio=o.nextByte(),e.pixelAspectRatio!==0&&(e.pixelAspectRatio=(e.pixelAspectRatio+15)/64),x&&(e.globalColorTable=_(o,d));const m=(()=>{try{return new ImageData(e.width,e.height,{colorSpace:"srgb"})}catch(i){if(i instanceof DOMException&&i.name==="IndexSizeError")return null;throw i}})();if(m==null)throw new Error("GIF frame size is to large");const{r:B,g:D,b}=e.globalColorTable[c];m.data.set(x?[B,D,b,255]:[0,0,0,0]);for(let i=4;i(i&&(k=!0),w),p=i=>(i!=null&&(l=i),l);try{do k&&(e.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),w++,l=-1,k=!1);while(!await j(o,e,s,h,p,a));e.frames.length--;for(const i of e.frames){if(i.userInputDelayFlag&&i.delayTime===0){e.totalTime=1/0;break}e.totalTime+=i.delayTime}return e}catch(i){throw i instanceof EvalError?new Error(`error while parsing frame ${w} "${i.message}"`):i}}function K(t){const{context:a,radius:s,particle:n,delta:f}=t,e=n.image;if(!(e!=null&&e.gifData)||!e.gif)return;const o=new OffscreenCanvas(e.gifData.width,e.gifData.height),r=o.getContext("2d");if(!r)throw new Error("could not create offscreen canvas context");r.imageSmoothingQuality="low",r.imageSmoothingEnabled=!1,r.clearRect(u.x,u.y,o.width,o.height),n.gifLoopCount===void 0&&(n.gifLoopCount=e.gifLoopCount??z);let x=n.gifFrame??N;const d={x:-e.gifData.width*L,y:-e.gifData.height*L},c=e.gifData.frames[x];if(n.gifTime===void 0&&(n.gifTime=$),!!c.bitmap){switch(a.scale(s/e.gifData.width,s/e.gifData.height),c.disposalMethod){case 4:case 5:case 6:case 7:case 0:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height);break;case 1:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y);break;case 2:r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height),e.gifData.globalColorTable.length?r.putImageData(e.gifData.backgroundImage,d.x,d.y):r.putImageData(e.gifData.frames[A].image,d.x+c.left,d.y+c.top);break;case 3:{const m=r.getImageData(u.x,u.y,o.width,o.height);r.drawImage(c.bitmap,c.left,c.top),a.drawImage(o,d.x,d.y),r.clearRect(u.x,u.y,o.width,o.height),r.putImageData(m,u.x,u.y)}break}if(n.gifTime+=f.value,n.gifTime>c.delayTime){if(n.gifTime-=c.delayTime,++x>=e.gifData.frames.length){if(--n.gifLoopCount<=z)return;x=A,r.clearRect(u.x,u.y,o.width,o.height)}n.gifFrame=x}a.scale(e.gifData.width/s,e.gifData.height/s)}}async function V(t){if(t.type!=="gif"){const{loadImage:a}=await O(()=>import("./index-COUjS28G.js").then(s=>s.U),__vite__mapDeps([0,1,2]));await a(t);return}t.loading=!0;try{t.gifData=await H(t.source),t.gifLoopCount=q(t.gifData)??z,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}export{H as decodeGIF,K as drawGif,q as getGIFLoopAmount,V as loadGifImage}; diff --git a/dist/assets/ValueWithRandom-Dsu4V_5I.js b/dist/assets/ValueWithRandom-BsNMdqfS.js similarity index 93% rename from dist/assets/ValueWithRandom-Dsu4V_5I.js rename to dist/assets/ValueWithRandom-BsNMdqfS.js index f35b0cb..5d8c004 100644 --- a/dist/assets/ValueWithRandom-Dsu4V_5I.js +++ b/dist/assets/ValueWithRandom-BsNMdqfS.js @@ -1 +1 @@ -import{s as n}from"./index-BbPL1Txh.js";class t{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=n(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=n(e.speed)),e.decay!==void 0&&(this.decay=n(e.decay)),e.delay!==void 0&&(this.delay=n(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class o extends t{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class u{constructor(){this.value=0}load(e){e&&e.value!==void 0&&(this.value=n(e.value))}}class l extends u{constructor(){super(),this.animation=new t}load(e){if(super.load(e),!e)return;const s=e.animation;s!==void 0&&this.animation.load(s)}}class r extends l{constructor(){super(),this.animation=new o}load(e){super.load(e)}}export{t as A,o as R,u as V,r as a}; +import{s as n}from"./index-CShsFACI.js";class t{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=n(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=n(e.speed)),e.decay!==void 0&&(this.decay=n(e.decay)),e.delay!==void 0&&(this.delay=n(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class o extends t{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class u{constructor(){this.value=0}load(e){e&&e.value!==void 0&&(this.value=n(e.value))}}class l extends u{constructor(){super(),this.animation=new t}load(e){if(super.load(e),!e)return;const s=e.animation;s!==void 0&&this.animation.load(s)}}class r extends l{constructor(){super(),this.animation=new o}load(e){super.load(e)}}export{t as A,o as R,u as V,r as a}; diff --git a/dist/assets/index-sGc9p_8U.js b/dist/assets/index-B-eNKEuG.js similarity index 52% rename from dist/assets/index-sGc9p_8U.js rename to dist/assets/index-B-eNKEuG.js index 370793a..bdb4ba4 100644 --- a/dist/assets/index-sGc9p_8U.js +++ b/dist/assets/index-B-eNKEuG.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/OpacityUpdater-CRT-YDRC.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/OpacityUpdater-DjS42osQ.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as i}from"./index-BbPL1Txh.js";async function p(t,a=!0){await t.addParticleUpdater("opacity",async r=>{const{OpacityUpdater:e}=await i(()=>import("./OpacityUpdater-CRT-YDRC.js"),__vite__mapDeps([0,1,2]));return new e(r)},a)}export{p as loadOpacityUpdater}; +import{_ as i}from"./index-CShsFACI.js";async function p(t,a=!0){await t.addParticleUpdater("opacity",async r=>{const{OpacityUpdater:e}=await i(()=>import("./OpacityUpdater-DjS42osQ.js"),__vite__mapDeps([0,1,2]));return new e(r)},a)}export{p as loadOpacityUpdater}; diff --git a/dist/assets/index-Hv8I8PQE.js b/dist/assets/index-B1uaaKWk.js similarity index 75% rename from dist/assets/index-Hv8I8PQE.js rename to dist/assets/index-B1uaaKWk.js index beefa16..180625b 100644 --- a/dist/assets/index-Hv8I8PQE.js +++ b/dist/assets/index-B1uaaKWk.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/interaction-TJRqQwCj.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/plugin-CZBYx9Lq.js"] + __vite__mapDeps.viteFileDeps = ["assets/interaction-aCMNmKPM.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/plugin-CNYMRRjJ.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as s}from"./index-BbPL1Txh.js";import{O as n}from"./OptionsColor-Ceq0kCZC.js";class l{constructor(){this.blur=5,this.color=new n,this.color.value="#000",this.enable=!1}load(i){i&&(i.blur!==void 0&&(this.blur=i.blur),this.color=n.create(this.color,i.color),i.enable!==void 0&&(this.enable=i.enable))}}class t{constructor(){this.enable=!1,this.frequency=1}load(i){i&&(i.color!==void 0&&(this.color=n.create(this.color,i.color)),i.enable!==void 0&&(this.enable=i.enable),i.frequency!==void 0&&(this.frequency=i.frequency),i.opacity!==void 0&&(this.opacity=i.opacity))}}class h{constructor(){this.blink=!1,this.color=new n,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new l,this.triangles=new t,this.width=1,this.warp=!1}load(i){i&&(i.id!==void 0&&(this.id=i.id),i.blink!==void 0&&(this.blink=i.blink),this.color=n.create(this.color,i.color),i.consent!==void 0&&(this.consent=i.consent),i.distance!==void 0&&(this.distance=i.distance),i.enable!==void 0&&(this.enable=i.enable),i.frequency!==void 0&&(this.frequency=i.frequency),i.opacity!==void 0&&(this.opacity=i.opacity),this.shadow.load(i.shadow),this.triangles.load(i.triangles),i.width!==void 0&&(this.width=i.width),i.warp!==void 0&&(this.warp=i.warp))}}async function u(e,i=!0){const{loadLinksInteraction:o}=await s(()=>import("./interaction-TJRqQwCj.js"),__vite__mapDeps([0,1,2])),{loadLinksPlugin:r}=await s(()=>import("./plugin-CZBYx9Lq.js"),__vite__mapDeps([3,1,2]));await o(e,i),await r(e,i)}export{h as Links,l as LinksShadow,t as LinksTriangle,u as loadParticlesLinksInteraction}; +import{_ as s}from"./index-CShsFACI.js";import{O as n}from"./OptionsColor-39-7GBLs.js";class l{constructor(){this.blur=5,this.color=new n,this.color.value="#000",this.enable=!1}load(i){i&&(i.blur!==void 0&&(this.blur=i.blur),this.color=n.create(this.color,i.color),i.enable!==void 0&&(this.enable=i.enable))}}class t{constructor(){this.enable=!1,this.frequency=1}load(i){i&&(i.color!==void 0&&(this.color=n.create(this.color,i.color)),i.enable!==void 0&&(this.enable=i.enable),i.frequency!==void 0&&(this.frequency=i.frequency),i.opacity!==void 0&&(this.opacity=i.opacity))}}class h{constructor(){this.blink=!1,this.color=new n,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new l,this.triangles=new t,this.width=1,this.warp=!1}load(i){i&&(i.id!==void 0&&(this.id=i.id),i.blink!==void 0&&(this.blink=i.blink),this.color=n.create(this.color,i.color),i.consent!==void 0&&(this.consent=i.consent),i.distance!==void 0&&(this.distance=i.distance),i.enable!==void 0&&(this.enable=i.enable),i.frequency!==void 0&&(this.frequency=i.frequency),i.opacity!==void 0&&(this.opacity=i.opacity),this.shadow.load(i.shadow),this.triangles.load(i.triangles),i.width!==void 0&&(this.width=i.width),i.warp!==void 0&&(this.warp=i.warp))}}async function u(e,i=!0){const{loadLinksInteraction:o}=await s(()=>import("./interaction-aCMNmKPM.js"),__vite__mapDeps([0,1,2])),{loadLinksPlugin:r}=await s(()=>import("./plugin-CNYMRRjJ.js"),__vite__mapDeps([3,1,2]));await o(e,i),await r(e,i)}export{h as Links,l as LinksShadow,t as LinksTriangle,u as loadParticlesLinksInteraction}; diff --git a/dist/assets/index-DZeCeBqW.js b/dist/assets/index-B9x42VQJ.js similarity index 67% rename from dist/assets/index-DZeCeBqW.js rename to dist/assets/index-B9x42VQJ.js index 4792597..180c55d 100644 --- a/dist/assets/index-DZeCeBqW.js +++ b/dist/assets/index-B9x42VQJ.js @@ -1 +1 @@ -import{_ as t}from"./index-BbPL1Txh.js";async function r(a,e=!0){const{LineDrawer:i}=await t(()=>import("./LineDrawer-1OQKWYNc.js"),[]);await a.addShape("line",new i,e)}export{r as loadLineShape}; +import{_ as t}from"./index-CShsFACI.js";async function r(a,e=!0){const{LineDrawer:i}=await t(()=>import("./LineDrawer-1OQKWYNc.js"),[]);await a.addShape("line",new i,e)}export{r as loadLineShape}; diff --git a/dist/assets/index-BGxGhBke.js b/dist/assets/index-BGxGhBke.js new file mode 100644 index 0000000..3e08ff8 --- /dev/null +++ b/dist/assets/index-BGxGhBke.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/RotateUpdater-BDZGNKYU.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/ValueWithRandom-BsNMdqfS.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as o}from"./index-CShsFACI.js";async function i(t,a=!0){await t.addParticleUpdater("rotate",async e=>{const{RotateUpdater:r}=await o(()=>import("./RotateUpdater-BDZGNKYU.js"),__vite__mapDeps([0,1,2,3]));return new r(e)},a)}export{i as loadRotateUpdater}; diff --git a/dist/assets/index-BTkuQGA5.js b/dist/assets/index-BTkuQGA5.js deleted file mode 100644 index dd6d3fd..0000000 --- a/dist/assets/index-BTkuQGA5.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/RotateUpdater-Bl8CCIRL.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/ValueWithRandom-Dsu4V_5I.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as o}from"./index-BbPL1Txh.js";async function i(t,a=!0){await t.addParticleUpdater("rotate",async e=>{const{RotateUpdater:r}=await o(()=>import("./RotateUpdater-Bl8CCIRL.js"),__vite__mapDeps([0,1,2,3]));return new r(e)},a)}export{i as loadRotateUpdater}; diff --git a/dist/assets/index-CGJZHg63.js b/dist/assets/index-B_a7NW2Q.js similarity index 53% rename from dist/assets/index-CGJZHg63.js rename to dist/assets/index-B_a7NW2Q.js index c2a9132..3dea919 100644 --- a/dist/assets/index-CGJZHg63.js +++ b/dist/assets/index-B_a7NW2Q.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/OutOfCanvasUpdater-rgraESy_.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/OutOfCanvasUpdater-Aq4RApMk.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as o}from"./index-BbPL1Txh.js";async function i(t,a=!0){await t.addParticleUpdater("outModes",async e=>{const{OutOfCanvasUpdater:r}=await o(()=>import("./OutOfCanvasUpdater-rgraESy_.js"),__vite__mapDeps([0,1,2]));return new r(e)},a)}export{i as loadOutModesUpdater}; +import{_ as o}from"./index-CShsFACI.js";async function i(t,a=!0){await t.addParticleUpdater("outModes",async e=>{const{OutOfCanvasUpdater:r}=await o(()=>import("./OutOfCanvasUpdater-Aq4RApMk.js"),__vite__mapDeps([0,1,2]));return new r(e)},a)}export{i as loadOutModesUpdater}; diff --git a/dist/assets/index-BagHnuxb.js b/dist/assets/index-BagHnuxb.js new file mode 100644 index 0000000..8d85013 --- /dev/null +++ b/dist/assets/index-BagHnuxb.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/PolygonDrawer-DhiAQhcG.js","assets/PolygonDrawerBase-CNzqjENl.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/TriangleDrawer-gXtLT6rl.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as n}from"./index-CShsFACI.js";async function e(a,o=!0){const{PolygonDrawer:t}=await n(()=>import("./PolygonDrawer-DhiAQhcG.js"),__vite__mapDeps([0,1,2,3]));await a.addShape("polygon",new t,o)}async function i(a,o=!0){const{TriangleDrawer:t}=await n(()=>import("./TriangleDrawer-gXtLT6rl.js"),__vite__mapDeps([4,1,2,3]));await a.addShape("triangle",new t,o)}async function _(a,o=!0){await e(a,o),await i(a,o)}export{e as loadGenericPolygonShape,_ as loadPolygonShape,i as loadTriangleShape}; diff --git a/dist/assets/index-BpVT3pP3.js b/dist/assets/index-BpVT3pP3.js deleted file mode 100644 index 6756910..0000000 --- a/dist/assets/index-BpVT3pP3.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/BaseMover-C1fuzGId.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as r}from"./index-BbPL1Txh.js";async function _(a,e=!0){await a.addMover("base",async()=>{const{BaseMover:o}=await r(()=>import("./BaseMover-C1fuzGId.js"),__vite__mapDeps([0,1,2]));return new o},e)}export{_ as loadBaseMover}; diff --git a/dist/assets/index-CU9ntlVE.js b/dist/assets/index-Bsb0ODzd.js similarity index 75% rename from dist/assets/index-CU9ntlVE.js rename to dist/assets/index-Bsb0ODzd.js index b732258..9f2c67f 100644 --- a/dist/assets/index-CU9ntlVE.js +++ b/dist/assets/index-Bsb0ODzd.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Attractor-cK3ZBMRe.js","assets/Ranges-DOcs18nu.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js"] + __vite__mapDeps.viteFileDeps = ["assets/Attractor-CQdel4Fu.js","assets/Ranges-Cgpup9mk.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as s}from"./index-BbPL1Txh.js";class o{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}async function d(t,e=!0){await t.addInteractor("externalAttract",async i=>{const{Attractor:n}=await s(()=>import("./Attractor-cK3ZBMRe.js"),__vite__mapDeps([0,1,2,3,4]));return new n(t,i)},e)}export{o as Attract,d as loadExternalAttractInteraction}; +import{_ as s}from"./index-CShsFACI.js";class o{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}async function d(t,e=!0){await t.addInteractor("externalAttract",async i=>{const{Attractor:n}=await s(()=>import("./Attractor-CQdel4Fu.js"),__vite__mapDeps([0,1,2,3,4]));return new n(t,i)},e)}export{o as Attract,d as loadExternalAttractInteraction}; diff --git a/dist/assets/index-_cpfFoC0.js b/dist/assets/index-Bv4Ri9Dl.js similarity index 59% rename from dist/assets/index-_cpfFoC0.js rename to dist/assets/index-Bv4Ri9Dl.js index 76824ea..d93596c 100644 --- a/dist/assets/index-_cpfFoC0.js +++ b/dist/assets/index-Bv4Ri9Dl.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Slower-BLi7O0I-.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/Slower-CalyVoYw.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as e}from"./index-BbPL1Txh.js";class a{constructor(){this.factor=3,this.radius=200}load(r){r&&(r.factor!==void 0&&(this.factor=r.factor),r.radius!==void 0&&(this.radius=r.radius))}}async function s(t,r=!0){await t.addInteractor("externalSlow",async o=>{const{Slower:i}=await e(()=>import("./Slower-BLi7O0I-.js"),__vite__mapDeps([0,1,2,3]));return new i(o)},r)}export{a as Slow,s as loadExternalSlowInteraction}; +import{_ as e}from"./index-CShsFACI.js";class a{constructor(){this.factor=3,this.radius=200}load(r){r&&(r.factor!==void 0&&(this.factor=r.factor),r.radius!==void 0&&(this.radius=r.radius))}}async function s(t,r=!0){await t.addInteractor("externalSlow",async o=>{const{Slower:i}=await e(()=>import("./Slower-CalyVoYw.js"),__vite__mapDeps([0,1,2,3]));return new i(o)},r)}export{a as Slow,s as loadExternalSlowInteraction}; diff --git a/dist/assets/index-Bx4LgAhS.js b/dist/assets/index-C4gw71pV.js similarity index 70% rename from dist/assets/index-Bx4LgAhS.js rename to dist/assets/index-C4gw71pV.js index c94efc6..9f9b9b4 100644 --- a/dist/assets/index-Bx4LgAhS.js +++ b/dist/assets/index-C4gw71pV.js @@ -1 +1 @@ -import{_ as t}from"./index-BbPL1Txh.js";async function _(a,e=!0){const{SquareDrawer:r}=await t(()=>import("./SquareDrawer-C3wQIQqh.js"),[]);await a.addShape(["edge","square"],new r,e)}export{_ as loadSquareShape}; +import{_ as t}from"./index-CShsFACI.js";async function _(a,e=!0){const{SquareDrawer:r}=await t(()=>import("./SquareDrawer-C3wQIQqh.js"),[]);await a.addShape(["edge","square"],new r,e)}export{_ as loadSquareShape}; diff --git a/dist/assets/index-C5Yrt80Z.js b/dist/assets/index-C5Yrt80Z.js new file mode 100644 index 0000000..1d25ae2 --- /dev/null +++ b/dist/assets/index-C5Yrt80Z.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/BaseMover-DHnoQY2c.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as r}from"./index-CShsFACI.js";async function _(a,e=!0){await a.addMover("base",async()=>{const{BaseMover:o}=await r(()=>import("./BaseMover-DHnoQY2c.js"),__vite__mapDeps([0,1,2]));return new o},e)}export{_ as loadBaseMover}; diff --git a/dist/assets/index-CMiNQEXp.js b/dist/assets/index-CMiNQEXp.js new file mode 100644 index 0000000..a078a7b --- /dev/null +++ b/dist/assets/index-CMiNQEXp.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/Attractor-Bgi7YHYf.js","assets/ParticlesInteractorBase-vfDeBun3.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as c}from"./index-CShsFACI.js";async function i(t,r=!0){await t.addInteractor("particlesAttract",async a=>{const{Attractor:o}=await c(()=>import("./Attractor-Bgi7YHYf.js"),__vite__mapDeps([0,1,2,3]));return new o(a)},r)}export{i as loadParticlesAttractInteraction}; diff --git a/dist/assets/index-LDb9jKip.js b/dist/assets/index-COUjS28G.js similarity index 88% rename from dist/assets/index-LDb9jKip.js rename to dist/assets/index-COUjS28G.js index c58d452..c0b225d 100644 --- a/dist/assets/index-LDb9jKip.js +++ b/dist/assets/index-COUjS28G.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Utils-BkPzvLhO.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/ImageDrawer-CROZpBOi.js"] + __vite__mapDeps.viteFileDeps = ["assets/Utils-BtXoLE8f.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/ImageDrawer-Dz1A0m-I.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{g as h,b as m,c as i,_ as u}from"./index-BbPL1Txh.js";const y=0,I=1,b=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function L(r,e,o){const{svgData:t}=r;if(!t)return"";const n=h(e,o);if(t.includes("fill"))return t.replace(b,()=>n);const s=t.indexOf(">");return`${t.substring(y,s)} fill="${n}"${t.substring(s)}`}async function a(r){return new Promise(e=>{r.loading=!0;const o=new Image;r.element=o,o.addEventListener("load",()=>{r.loading=!1,e()}),o.addEventListener("error",()=>{r.element=void 0,r.error=!0,r.loading=!1,m().error(`${i} loading image: ${r.source}`),e()}),o.src=r.source})}async function p(r){if(r.type!=="svg"){await a(r);return}r.loading=!0;const e=await fetch(r.source);e.ok?r.svgData=await e.text():(m().error(`${i} Image not found`),r.error=!0),r.loading=!1}function E(r,e,o,t){var g;const n=L(r,o,((g=t.opacity)==null?void 0:g.value)??I),s={color:o,gif:e.gif,data:{...r,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(f=>{const _=new Blob([n],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,d=c.createObjectURL(_),l=new Image;l.addEventListener("load",()=>{s.loaded=!0,s.element=l,f(s),c.revokeObjectURL(d)});const v=async()=>{c.revokeObjectURL(d);const w={...r,error:!1,loading:!0};await a(w),s.loaded=!0,s.element=w.element,f(s)};l.addEventListener("error",()=>void v()),l.src=d})}const x=Object.freeze(Object.defineProperty({__proto__:null,downloadSvgImage:p,loadImage:a,replaceImageColor:E},Symbol.toStringTag,{value:"Module"})),O=3;function P(r){r.loadImage||(r.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${i} no image source provided`);if(r.images||(r.images=[]),!r.images.find(o=>o.name===e.name||o.source===e.src))try{const o={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-O),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};r.images.push(o);let t;if(e.gif){const{loadGifImage:n}=await u(()=>import("./Utils-BkPzvLhO.js"),__vite__mapDeps([0,1,2]));t=n}else t=e.replaceColor?p:a;await t(o)}catch{throw new Error(`${i} ${e.name??e.src} not found`)}})}async function R(r,e=!0){P(r);const{ImagePreloaderPlugin:o}=await u(()=>import("./ImagePreloader-wDGOXDcw.js"),[]),{ImageDrawer:t}=await u(()=>import("./ImageDrawer-CROZpBOi.js"),__vite__mapDeps([3,0,1,2])),n=new o(r);await r.addPlugin(n,e),await r.addShape(["image","images"],new t(r),e)}const C=Object.freeze(Object.defineProperty({__proto__:null,loadImageShape:R},Symbol.toStringTag,{value:"Module"}));export{x as U,C as i,E as r}; +import{g as h,b as m,c as i,_ as u}from"./index-CShsFACI.js";const y=0,I=1,b=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function L(r,e,o){const{svgData:t}=r;if(!t)return"";const n=h(e,o);if(t.includes("fill"))return t.replace(b,()=>n);const s=t.indexOf(">");return`${t.substring(y,s)} fill="${n}"${t.substring(s)}`}async function a(r){return new Promise(e=>{r.loading=!0;const o=new Image;r.element=o,o.addEventListener("load",()=>{r.loading=!1,e()}),o.addEventListener("error",()=>{r.element=void 0,r.error=!0,r.loading=!1,m().error(`${i} loading image: ${r.source}`),e()}),o.src=r.source})}async function p(r){if(r.type!=="svg"){await a(r);return}r.loading=!0;const e=await fetch(r.source);e.ok?r.svgData=await e.text():(m().error(`${i} Image not found`),r.error=!0),r.loading=!1}function E(r,e,o,t){var g;const n=L(r,o,((g=t.opacity)==null?void 0:g.value)??I),s={color:o,gif:e.gif,data:{...r,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(f=>{const _=new Blob([n],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,d=c.createObjectURL(_),l=new Image;l.addEventListener("load",()=>{s.loaded=!0,s.element=l,f(s),c.revokeObjectURL(d)});const v=async()=>{c.revokeObjectURL(d);const w={...r,error:!1,loading:!0};await a(w),s.loaded=!0,s.element=w.element,f(s)};l.addEventListener("error",()=>void v()),l.src=d})}const x=Object.freeze(Object.defineProperty({__proto__:null,downloadSvgImage:p,loadImage:a,replaceImageColor:E},Symbol.toStringTag,{value:"Module"})),O=3;function P(r){r.loadImage||(r.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${i} no image source provided`);if(r.images||(r.images=[]),!r.images.find(o=>o.name===e.name||o.source===e.src))try{const o={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-O),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};r.images.push(o);let t;if(e.gif){const{loadGifImage:n}=await u(()=>import("./Utils-BtXoLE8f.js"),__vite__mapDeps([0,1,2]));t=n}else t=e.replaceColor?p:a;await t(o)}catch{throw new Error(`${i} ${e.name??e.src} not found`)}})}async function R(r,e=!0){P(r);const{ImagePreloaderPlugin:o}=await u(()=>import("./ImagePreloader-wDGOXDcw.js"),[]),{ImageDrawer:t}=await u(()=>import("./ImageDrawer-Dz1A0m-I.js"),__vite__mapDeps([3,0,1,2])),n=new o(r);await r.addPlugin(n,e),await r.addShape(["image","images"],new t(r),e)}const C=Object.freeze(Object.defineProperty({__proto__:null,loadImageShape:R},Symbol.toStringTag,{value:"Module"}));export{x as U,C as i,E as r}; diff --git a/dist/assets/index-BbPL1Txh.js b/dist/assets/index-CShsFACI.js similarity index 84% rename from dist/assets/index-BbPL1Txh.js rename to dist/assets/index-CShsFACI.js index 7032b74..ed043cf 100644 --- a/dist/assets/index-BbPL1Txh.js +++ b/dist/assets/index-CShsFACI.js @@ -1,10 +1,10 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Container-CwQSRyJL.js","assets/CanvasUtils-DQ_CMgM7.js","assets/OptionsColor-Ceq0kCZC.js","assets/ValueWithRandom-Dsu4V_5I.js","assets/Ranges-DOcs18nu.js","assets/index-Dxcs0UKz.js","assets/index-D0mBiceO.js","assets/index-Hv8I8PQE.js"] + __vite__mapDeps.viteFileDeps = ["assets/Container-DgfTSijT.js","assets/CanvasUtils-DvqPZfvK.js","assets/OptionsColor-39-7GBLs.js","assets/ValueWithRandom-BsNMdqfS.js","assets/Ranges-Cgpup9mk.js","assets/index-Cyi3q7NY.js","assets/index-D4B8HC_p.js","assets/index-B1uaaKWk.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -var Up=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var O=(e,t,n)=>(Up(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},G=(e,t,n,r)=>(Up(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Hu=(e,t,n,r)=>({set _(i){G(e,t,i,n)},get _(){return O(e,t,r)}}),pe=(e,t,n)=>(Up(e,t,"access private method"),n);function IO(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var bC={exports:{}},df={},SC={exports:{}},fe={};/** +var Up=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var _=(e,t,n)=>(Up(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},G=(e,t,n,r)=>(Up(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Hu=(e,t,n,r)=>({set _(i){G(e,t,i,n)},get _(){return _(e,t,r)}}),pe=(e,t,n)=>(Up(e,t,"access private method"),n);function I_(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var bC={exports:{}},df={},SC={exports:{}},fe={};/** * @license React * react.production.min.js * @@ -12,7 +12,7 @@ var Up=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var O=(e,t,n)=>(Up(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xu=Symbol.for("react.element"),LO=Symbol.for("react.portal"),$O=Symbol.for("react.fragment"),jO=Symbol.for("react.strict_mode"),DO=Symbol.for("react.profiler"),FO=Symbol.for("react.provider"),NO=Symbol.for("react.context"),zO=Symbol.for("react.forward_ref"),VO=Symbol.for("react.suspense"),BO=Symbol.for("react.memo"),UO=Symbol.for("react.lazy"),y1=Symbol.iterator;function WO(e){return e===null||typeof e!="object"?null:(e=y1&&e[y1]||e["@@iterator"],typeof e=="function"?e:null)}var CC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},EC=Object.assign,PC={};function aa(e,t,n){this.props=e,this.context=t,this.refs=PC,this.updater=n||CC}aa.prototype.isReactComponent={};aa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};aa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TC(){}TC.prototype=aa.prototype;function k0(e,t,n){this.props=e,this.context=t,this.refs=PC,this.updater=n||CC}var M0=k0.prototype=new TC;M0.constructor=k0;EC(M0,aa.prototype);M0.isPureReactComponent=!0;var x1=Array.isArray,kC=Object.prototype.hasOwnProperty,O0={current:null},MC={key:!0,ref:!0,__self:!0,__source:!0};function OC(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)kC.call(t,r)&&!MC.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1{if(!t.has(e))throw TypeError("Cannot "+n)};var O=(e,t,n)=>(Up(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var QO=b,YO=Symbol.for("react.element"),XO=Symbol.for("react.fragment"),ZO=Object.prototype.hasOwnProperty,JO=QO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eR={key:!0,ref:!0,__self:!0,__source:!0};function RC(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)ZO.call(t,r)&&!eR.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:YO,type:e,key:o,ref:s,props:i,_owner:JO.current}}df.Fragment=XO;df.jsx=RC;df.jsxs=RC;bC.exports=df;var S=bC.exports,mm={},_C={exports:{}},an={},AC={exports:{}},IC={};/** + */var Q_=b,Y_=Symbol.for("react.element"),X_=Symbol.for("react.fragment"),Z_=Object.prototype.hasOwnProperty,J_=Q_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eO={key:!0,ref:!0,__self:!0,__source:!0};function OC(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Z_.call(t,r)&&!eO.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Y_,type:e,key:o,ref:s,props:i,_owner:J_.current}}df.Fragment=X_;df.jsx=OC;df.jsxs=OC;bC.exports=df;var S=bC.exports,mm={},RC={exports:{}},an={},AC={exports:{}},IC={};/** * @license React * scheduler.production.min.js * @@ -28,7 +28,7 @@ var Up=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var O=(e,t,n)=>(Up(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(_,L){var z=_.length;_.push(L);e:for(;0>>1,ne=_[K];if(0>>1;Ki(Ge,z))Ji(U,Ge)?(_[K]=U,_[J]=z,K=J):(_[K]=Ge,_[de]=z,K=de);else if(Ji(U,z))_[K]=U,_[J]=z,K=J;else break e}}return L}function i(_,L){var z=_.sortIndex-L.sortIndex;return z!==0?z:_.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(_){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=_)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function w(_){if(m=!1,v(_),!h)if(n(l)!==null)h=!0,N(C);else{var L=n(u);L!==null&&H(w,L.startTime-_)}}function C(_,L){h=!1,m&&(m=!1,g(P),P=-1),p=!0;var z=f;try{for(v(L),d=n(l);d!==null&&(!(d.expirationTime>L)||_&&!A());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var ne=K(d.expirationTime<=L);L=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===n(l)&&r(l),v(L)}else r(l);d=n(l)}if(d!==null)var He=!0;else{var de=n(u);de!==null&&H(w,de.startTime-L),He=!1}return He}finally{d=null,f=z,p=!1}}var E=!1,T=null,P=-1,M=5,k=-1;function A(){return!(e.unstable_now()-k_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var z=f;f=L;try{return _()}finally{f=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var z=f;f=_;try{return L()}finally{f=z}},e.unstable_scheduleCallback=function(_,L,z){var K=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0K?(_.sortIndex=z,t(u,_),n(l)===null&&_===n(u)&&(m?(g(P),P=-1):m=!0,H(w,z-K))):(_.sortIndex=ne,t(l,_),h||p||(h=!0,N(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var L=f;return function(){var z=f;f=L;try{return _.apply(this,arguments)}finally{f=z}}}})(IC);AC.exports=IC;var tR=AC.exports;/** + */(function(e){function t(R,L){var z=R.length;R.push(L);e:for(;0>>1,ne=R[K];if(0>>1;Ki(Ge,z))Ji(U,Ge)?(R[K]=U,R[J]=z,K=J):(R[K]=Ge,R[de]=z,K=de);else if(Ji(U,z))R[K]=U,R[J]=z,K=J;else break e}}return L}function i(R,L){var z=R.sortIndex-L.sortIndex;return z!==0?z:R.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(R){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=R)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function w(R){if(m=!1,v(R),!h)if(n(l)!==null)h=!0,N(C);else{var L=n(u);L!==null&&H(w,L.startTime-R)}}function C(R,L){h=!1,m&&(m=!1,g(P),P=-1),p=!0;var z=f;try{for(v(L),d=n(l);d!==null&&(!(d.expirationTime>L)||R&&!A());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var ne=K(d.expirationTime<=L);L=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===n(l)&&r(l),v(L)}else r(l);d=n(l)}if(d!==null)var He=!0;else{var de=n(u);de!==null&&H(w,de.startTime-L),He=!1}return He}finally{d=null,f=z,p=!1}}var E=!1,T=null,P=-1,M=5,k=-1;function A(){return!(e.unstable_now()-kR||125K?(R.sortIndex=z,t(u,R),n(l)===null&&R===n(u)&&(m?(g(P),P=-1):m=!0,H(w,z-K))):(R.sortIndex=ne,t(l,R),h||p||(h=!0,N(C))),R},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(R){var L=f;return function(){var z=f;f=L;try{return R.apply(this,arguments)}finally{f=z}}}})(IC);AC.exports=IC;var tO=AC.exports;/** * @license React * react-dom.production.min.js * @@ -36,14 +36,14 @@ var Up=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var O=(e,t,n)=>(Up(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var LC=b,on=tR;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gm=Object.prototype.hasOwnProperty,nR=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b1={},S1={};function rR(e){return gm.call(S1,e)?!0:gm.call(b1,e)?!1:nR.test(e)?S1[e]=!0:(b1[e]=!0,!1)}function iR(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oR(e,t,n,r){if(t===null||typeof t>"u"||iR(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Dt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new Dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new Dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new Dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new Dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){St[e]=new Dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new Dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new Dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new Dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new Dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var _0=/[\-:]([a-z])/g;function A0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_0,A0);St[t]=new Dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_0,A0);St[t]=new Dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_0,A0);St[t]=new Dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new Dt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new Dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new Dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function I0(e,t,n,r){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gm=Object.prototype.hasOwnProperty,nO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b1={},S1={};function rO(e){return gm.call(S1,e)?!0:gm.call(b1,e)?!1:nO.test(e)?S1[e]=!0:(b1[e]=!0,!1)}function iO(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oO(e,t,n,r){if(t===null||typeof t>"u"||iO(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Dt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new Dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new Dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new Dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new Dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){St[e]=new Dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new Dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new Dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new Dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new Dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var R0=/[\-:]([a-z])/g;function A0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R0,A0);St[t]=new Dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R0,A0);St[t]=new Dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R0,A0);St[t]=new Dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new Dt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new Dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new Dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function I0(e,t,n,r){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Gp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ba(e):""}function sR(e){switch(e.tag){case 5:return Ba(e.type);case 16:return Ba("Lazy");case 13:return Ba("Suspense");case 19:return Ba("SuspenseList");case 0:case 2:case 15:return e=qp(e.type,!1),e;case 11:return e=qp(e.type.render,!1),e;case 1:return e=qp(e.type,!0),e;default:return""}}function wm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Zo:return"Fragment";case Xo:return"Portal";case vm:return"Profiler";case L0:return"StrictMode";case ym:return"Suspense";case xm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DC:return(e.displayName||"Context")+".Consumer";case jC:return(e._context.displayName||"Context")+".Provider";case $0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j0:return t=e.displayName||null,t!==null?t:wm(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return wm(e(t))}catch{}}return null}function aR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wm(t);case 8:return t===L0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Di(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function NC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lR(e){var t=NC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ku(e){e._valueTracker||(e._valueTracker=lR(e))}function zC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=NC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function td(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bm(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function E1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Di(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function VC(e,t){t=t.checked,t!=null&&I0(e,"checked",t,!1)}function Sm(e,t){VC(e,t);var n=Di(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cm(e,t.type,Di(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function P1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Cm(e,t,n){(t!=="number"||td(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ua=Array.isArray;function gs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Qu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uR=["Webkit","ms","Moz","O"];Object.keys(Xa).forEach(function(e){uR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xa[t]=Xa[e]})});function HC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xa.hasOwnProperty(e)&&Xa[e]?(""+t).trim():t+"px"}function GC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=HC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var cR=Fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tm(e,t){if(t){if(cR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function km(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mm=null;function D0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Om=null,vs=null,ys=null;function M1(e){if(e=Su(e)){if(typeof Om!="function")throw Error(F(280));var t=e.stateNode;t&&(t=gf(t),Om(e.stateNode,e.type,t))}}function qC(e){vs?ys?ys.push(e):ys=[e]:vs=e}function KC(){if(vs){var e=vs,t=ys;if(ys=vs=null,M1(e),t)for(e=0;e>>=0,e===0?32:31-(bR(e)/SR|0)|0}var Yu=64,Xu=4194304;function Wa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function od(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Wa(a):(o&=s,o!==0&&(r=Wa(o)))}else s=n&~i,s!==0?r=Wa(s):o!==0&&(r=Wa(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function wu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Un(t),e[t]=n}function TR(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ja),D1=" ",F1=!1;function hE(e,t){switch(e){case"keyup":return e_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jo=!1;function n_(e,t){switch(e){case"compositionend":return mE(t);case"keypress":return t.which!==32?null:(F1=!0,D1);case"textInput":return e=t.data,e===D1&&F1?null:e;default:return null}}function r_(e,t){if(Jo)return e==="compositionend"||!H0&&hE(e,t)?(e=fE(),kc=B0=hi=null,Jo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=B1(n)}}function xE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wE(){for(var e=window,t=td();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=td(e.document)}return t}function G0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function f_(e){var t=wE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xE(n.ownerDocument.documentElement,n)){if(r!==null&&G0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=U1(n,o);var s=U1(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,es=null,$m=null,tl=null,jm=!1;function W1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jm||es==null||es!==td(r)||(r=es,"selectionStart"in r&&G0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tl&&Ml(tl,r)||(tl=r,r=ld($m,"onSelect"),0rs||(e.current=Bm[rs],Bm[rs]=null,rs--)}function Me(e,t){rs++,Bm[rs]=e.current,e.current=t}var Fi={},_t=Hi(Fi),Bt=Hi(!1),To=Fi;function Ws(e,t){var n=e.type.contextTypes;if(!n)return Fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ut(e){return e=e.childContextTypes,e!=null}function cd(){Ae(Bt),Ae(_t)}function X1(e,t,n){if(_t.current!==Fi)throw Error(F(168));Me(_t,t),Me(Bt,n)}function OE(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,aR(e)||"Unknown",i));return Fe({},n,r)}function dd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fi,To=_t.current,Me(_t,e),Me(Bt,Bt.current),!0}function Z1(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=OE(e,t,To),r.__reactInternalMemoizedMergedChildContext=e,Ae(Bt),Ae(_t),Me(_t,e)):Ae(Bt),Me(Bt,n)}var xr=null,vf=!1,ah=!1;function RE(e){xr===null?xr=[e]:xr.push(e)}function E_(e){vf=!0,RE(e)}function Gi(){if(!ah&&xr!==null){ah=!0;var e=0,t=Se;try{var n=xr;for(Se=1;e>=s,i-=s,wr=1<<32-Un(t)+i|n<P?(M=T,T=null):M=T.sibling;var k=f(g,T,v[P],w);if(k===null){T===null&&(T=M);break}e&&T&&k.alternate===null&&t(g,T),y=o(k,y,P),E===null?C=k:E.sibling=k,E=k,T=M}if(P===v.length)return n(g,T),Le&&Ji(g,P),C;if(T===null){for(;PP?(M=T,T=null):M=T.sibling;var A=f(g,T,k.value,w);if(A===null){T===null&&(T=M);break}e&&T&&A.alternate===null&&t(g,T),y=o(A,y,P),E===null?C=A:E.sibling=A,E=A,T=M}if(k.done)return n(g,T),Le&&Ji(g,P),C;if(T===null){for(;!k.done;P++,k=v.next())k=d(g,k.value,w),k!==null&&(y=o(k,y,P),E===null?C=k:E.sibling=k,E=k);return Le&&Ji(g,P),C}for(T=r(g,T);!k.done;P++,k=v.next())k=p(T,g,P,k.value,w),k!==null&&(e&&k.alternate!==null&&T.delete(k.key===null?P:k.key),y=o(k,y,P),E===null?C=k:E.sibling=k,E=k);return e&&T.forEach(function(I){return t(g,I)}),Le&&Ji(g,P),C}function x(g,y,v,w){if(typeof v=="object"&&v!==null&&v.type===Zo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case qu:e:{for(var C=v.key,E=y;E!==null;){if(E.key===C){if(C=v.type,C===Zo){if(E.tag===7){n(g,E.sibling),y=i(E,v.props.children),y.return=g,g=y;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ni&&ox(C)===E.type){n(g,E.sibling),y=i(E,v.props),y.ref=Ma(g,E,v),y.return=g,g=y;break e}n(g,E);break}else t(g,E);E=E.sibling}v.type===Zo?(y=Co(v.props.children,g.mode,w,v.key),y.return=g,g=y):(w=$c(v.type,v.key,v.props,null,g.mode,w),w.ref=Ma(g,y,v),w.return=g,g=w)}return s(g);case Xo:e:{for(E=v.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(g,y.sibling),y=i(y,v.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=mh(v,g.mode,w),y.return=g,g=y}return s(g);case ni:return E=v._init,x(g,y,E(v._payload),w)}if(Ua(v))return h(g,y,v,w);if(Ca(v))return m(g,y,v,w);ic(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,v),y.return=g,g=y):(n(g,y),y=hh(v,g.mode,w),y.return=g,g=y),s(g)):n(g,y)}return x}var Gs=FE(!0),NE=FE(!1),Cu={},ar=Hi(Cu),Al=Hi(Cu),Il=Hi(Cu);function lo(e){if(e===Cu)throw Error(F(174));return e}function tv(e,t){switch(Me(Il,t),Me(Al,e),Me(ar,Cu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pm(t,e)}Ae(ar),Me(ar,t)}function qs(){Ae(ar),Ae(Al),Ae(Il)}function zE(e){lo(Il.current);var t=lo(ar.current),n=Pm(t,e.type);t!==n&&(Me(Al,e),Me(ar,n))}function nv(e){Al.current===e&&(Ae(ar),Ae(Al))}var $e=Hi(0);function vd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lh=[];function rv(){for(var e=0;en?n:4,e(!0);var r=uh.transition;uh.transition={};try{e(!1),t()}finally{Se=n,uh.transition=r}}function nP(){return Mn().memoizedState}function M_(e,t,n){var r=ki(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rP(e))iP(t,n);else if(n=LE(e,t,n,r),n!==null){var i=$t();Wn(n,e,r,i),oP(n,t,r)}}function O_(e,t,n){var r=ki(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rP(e))iP(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Hn(a,s)){var l=t.interleaved;l===null?(i.next=i,J0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=LE(e,t,i,r),n!==null&&(i=$t(),Wn(n,e,r,i),oP(n,t,r))}}function rP(e){var t=e.alternate;return e===De||t!==null&&t===De}function iP(e,t){nl=yd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oP(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,N0(e,n)}}var xd={readContext:kn,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useInsertionEffect:Et,useLayoutEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useMutableSource:Et,useSyncExternalStore:Et,useId:Et,unstable_isNewReconciler:!1},R_={readContext:kn,useCallback:function(e,t){return Qn().memoizedState=[e,t===void 0?null:t],e},useContext:kn,useEffect:ax,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_c(4194308,4,XE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _c(4194308,4,e,t)},useInsertionEffect:function(e,t){return _c(4,2,e,t)},useMemo:function(e,t){var n=Qn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=M_.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=Qn();return e={current:e},t.memoizedState=e},useState:sx,useDebugValue:lv,useDeferredValue:function(e){return Qn().memoizedState=e},useTransition:function(){var e=sx(!1),t=e[0];return e=k_.bind(null,e[1]),Qn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=Qn();if(Le){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),ht===null)throw Error(F(349));Mo&30||UE(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ax(HE.bind(null,r,o,e),[e]),r.flags|=2048,jl(9,WE.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qn(),t=ht.identifierPrefix;if(Le){var n=br,r=wr;n=(r&~(1<<32-Un(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ll++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Gp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ba(e):""}function sO(e){switch(e.tag){case 5:return Ba(e.type);case 16:return Ba("Lazy");case 13:return Ba("Suspense");case 19:return Ba("SuspenseList");case 0:case 2:case 15:return e=qp(e.type,!1),e;case 11:return e=qp(e.type.render,!1),e;case 1:return e=qp(e.type,!0),e;default:return""}}function wm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jo:return"Fragment";case Zo:return"Portal";case vm:return"Profiler";case L0:return"StrictMode";case ym:return"Suspense";case xm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DC:return(e.displayName||"Context")+".Consumer";case jC:return(e._context.displayName||"Context")+".Provider";case $0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j0:return t=e.displayName||null,t!==null?t:wm(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return wm(e(t))}catch{}}return null}function aO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wm(t);case 8:return t===L0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Di(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function NC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lO(e){var t=NC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ku(e){e._valueTracker||(e._valueTracker=lO(e))}function zC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=NC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function td(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bm(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function E1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Di(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function VC(e,t){t=t.checked,t!=null&&I0(e,"checked",t,!1)}function Sm(e,t){VC(e,t);var n=Di(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cm(e,t.type,Di(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function P1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Cm(e,t,n){(t!=="number"||td(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ua=Array.isArray;function vs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Qu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uO=["Webkit","ms","Moz","O"];Object.keys(Xa).forEach(function(e){uO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xa[t]=Xa[e]})});function HC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xa.hasOwnProperty(e)&&Xa[e]?(""+t).trim():t+"px"}function GC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=HC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var cO=Fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tm(e,t){if(t){if(cO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function km(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mm=null;function D0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _m=null,ys=null,xs=null;function M1(e){if(e=Su(e)){if(typeof _m!="function")throw Error(F(280));var t=e.stateNode;t&&(t=gf(t),_m(e.stateNode,e.type,t))}}function qC(e){ys?xs?xs.push(e):xs=[e]:ys=e}function KC(){if(ys){var e=ys,t=xs;if(xs=ys=null,M1(e),t)for(e=0;e>>=0,e===0?32:31-(bO(e)/SO|0)|0}var Yu=64,Xu=4194304;function Wa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function od(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Wa(a):(o&=s,o!==0&&(r=Wa(o)))}else s=n&~i,s!==0?r=Wa(s):o!==0&&(r=Wa(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function wu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Un(t),e[t]=n}function TO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ja),D1=" ",F1=!1;function hE(e,t){switch(e){case"keyup":return eR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var es=!1;function nR(e,t){switch(e){case"compositionend":return mE(t);case"keypress":return t.which!==32?null:(F1=!0,D1);case"textInput":return e=t.data,e===D1&&F1?null:e;default:return null}}function rR(e,t){if(es)return e==="compositionend"||!H0&&hE(e,t)?(e=fE(),kc=B0=hi=null,es=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=B1(n)}}function xE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wE(){for(var e=window,t=td();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=td(e.document)}return t}function G0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fR(e){var t=wE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xE(n.ownerDocument.documentElement,n)){if(r!==null&&G0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=U1(n,o);var s=U1(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ts=null,$m=null,tl=null,jm=!1;function W1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jm||ts==null||ts!==td(r)||(r=ts,"selectionStart"in r&&G0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tl&&Ml(tl,r)||(tl=r,r=ld($m,"onSelect"),0is||(e.current=Bm[is],Bm[is]=null,is--)}function Me(e,t){is++,Bm[is]=e.current,e.current=t}var Fi={},Rt=Hi(Fi),Bt=Hi(!1),To=Fi;function Hs(e,t){var n=e.type.contextTypes;if(!n)return Fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ut(e){return e=e.childContextTypes,e!=null}function cd(){Ae(Bt),Ae(Rt)}function X1(e,t,n){if(Rt.current!==Fi)throw Error(F(168));Me(Rt,t),Me(Bt,n)}function _E(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,aO(e)||"Unknown",i));return Fe({},n,r)}function dd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fi,To=Rt.current,Me(Rt,e),Me(Bt,Bt.current),!0}function Z1(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=_E(e,t,To),r.__reactInternalMemoizedMergedChildContext=e,Ae(Bt),Ae(Rt),Me(Rt,e)):Ae(Bt),Me(Bt,n)}var xr=null,vf=!1,ah=!1;function OE(e){xr===null?xr=[e]:xr.push(e)}function ER(e){vf=!0,OE(e)}function Gi(){if(!ah&&xr!==null){ah=!0;var e=0,t=Se;try{var n=xr;for(Se=1;e>=s,i-=s,wr=1<<32-Un(t)+i|n<P?(M=T,T=null):M=T.sibling;var k=f(g,T,v[P],w);if(k===null){T===null&&(T=M);break}e&&T&&k.alternate===null&&t(g,T),y=o(k,y,P),E===null?C=k:E.sibling=k,E=k,T=M}if(P===v.length)return n(g,T),Le&&Ji(g,P),C;if(T===null){for(;PP?(M=T,T=null):M=T.sibling;var A=f(g,T,k.value,w);if(A===null){T===null&&(T=M);break}e&&T&&A.alternate===null&&t(g,T),y=o(A,y,P),E===null?C=A:E.sibling=A,E=A,T=M}if(k.done)return n(g,T),Le&&Ji(g,P),C;if(T===null){for(;!k.done;P++,k=v.next())k=d(g,k.value,w),k!==null&&(y=o(k,y,P),E===null?C=k:E.sibling=k,E=k);return Le&&Ji(g,P),C}for(T=r(g,T);!k.done;P++,k=v.next())k=p(T,g,P,k.value,w),k!==null&&(e&&k.alternate!==null&&T.delete(k.key===null?P:k.key),y=o(k,y,P),E===null?C=k:E.sibling=k,E=k);return e&&T.forEach(function(I){return t(g,I)}),Le&&Ji(g,P),C}function x(g,y,v,w){if(typeof v=="object"&&v!==null&&v.type===Jo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case qu:e:{for(var C=v.key,E=y;E!==null;){if(E.key===C){if(C=v.type,C===Jo){if(E.tag===7){n(g,E.sibling),y=i(E,v.props.children),y.return=g,g=y;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ni&&ox(C)===E.type){n(g,E.sibling),y=i(E,v.props),y.ref=Ma(g,E,v),y.return=g,g=y;break e}n(g,E);break}else t(g,E);E=E.sibling}v.type===Jo?(y=Co(v.props.children,g.mode,w,v.key),y.return=g,g=y):(w=$c(v.type,v.key,v.props,null,g.mode,w),w.ref=Ma(g,y,v),w.return=g,g=w)}return s(g);case Zo:e:{for(E=v.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(g,y.sibling),y=i(y,v.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=mh(v,g.mode,w),y.return=g,g=y}return s(g);case ni:return E=v._init,x(g,y,E(v._payload),w)}if(Ua(v))return h(g,y,v,w);if(Ca(v))return m(g,y,v,w);ic(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,v),y.return=g,g=y):(n(g,y),y=hh(v,g.mode,w),y.return=g,g=y),s(g)):n(g,y)}return x}var qs=FE(!0),NE=FE(!1),Cu={},ar=Hi(Cu),Al=Hi(Cu),Il=Hi(Cu);function lo(e){if(e===Cu)throw Error(F(174));return e}function tv(e,t){switch(Me(Il,t),Me(Al,e),Me(ar,Cu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pm(t,e)}Ae(ar),Me(ar,t)}function Ks(){Ae(ar),Ae(Al),Ae(Il)}function zE(e){lo(Il.current);var t=lo(ar.current),n=Pm(t,e.type);t!==n&&(Me(Al,e),Me(ar,n))}function nv(e){Al.current===e&&(Ae(ar),Ae(Al))}var $e=Hi(0);function vd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lh=[];function rv(){for(var e=0;en?n:4,e(!0);var r=uh.transition;uh.transition={};try{e(!1),t()}finally{Se=n,uh.transition=r}}function nP(){return Mn().memoizedState}function MR(e,t,n){var r=ki(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rP(e))iP(t,n);else if(n=LE(e,t,n,r),n!==null){var i=$t();Wn(n,e,r,i),oP(n,t,r)}}function _R(e,t,n){var r=ki(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rP(e))iP(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Hn(a,s)){var l=t.interleaved;l===null?(i.next=i,J0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=LE(e,t,i,r),n!==null&&(i=$t(),Wn(n,e,r,i),oP(n,t,r))}}function rP(e){var t=e.alternate;return e===De||t!==null&&t===De}function iP(e,t){nl=yd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oP(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,N0(e,n)}}var xd={readContext:kn,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useInsertionEffect:Et,useLayoutEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useMutableSource:Et,useSyncExternalStore:Et,useId:Et,unstable_isNewReconciler:!1},OR={readContext:kn,useCallback:function(e,t){return Qn().memoizedState=[e,t===void 0?null:t],e},useContext:kn,useEffect:ax,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Rc(4194308,4,XE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rc(4,2,e,t)},useMemo:function(e,t){var n=Qn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=MR.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=Qn();return e={current:e},t.memoizedState=e},useState:sx,useDebugValue:lv,useDeferredValue:function(e){return Qn().memoizedState=e},useTransition:function(){var e=sx(!1),t=e[0];return e=kR.bind(null,e[1]),Qn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=Qn();if(Le){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),ht===null)throw Error(F(349));Mo&30||UE(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ax(HE.bind(null,r,o,e),[e]),r.flags|=2048,jl(9,WE.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qn(),t=ht.identifierPrefix;if(Le){var n=br,r=wr;n=(r&~(1<<32-Un(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ll++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ir]=t,e[_l]=r,hP(e,t,!1,!1),t.stateNode=e;e:{switch(s=km(n,r),n){case"dialog":_e("cancel",e),_e("close",e),i=r;break;case"iframe":case"object":case"embed":_e("load",e),i=r;break;case"video":case"audio":for(i=0;iQs&&(t.flags|=128,r=!0,Oa(o,!1),t.lanes=4194304)}else{if(!r)if(e=vd(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Le)return Pt(t),null}else 2*Ke()-o.renderingStartTime>Qs&&n!==1073741824&&(t.flags|=128,r=!0,Oa(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,n=$e.current,Me($e,r?n&1|2:n&1),t):(Pt(t),null);case 22:case 23:return hv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Xt&1073741824&&(Pt(t),t.subtreeFlags&6&&(t.flags|=8192)):Pt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function F_(e,t){switch(K0(t),t.tag){case 1:return Ut(t.type)&&cd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qs(),Ae(Bt),Ae(_t),rv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nv(t),null;case 13:if(Ae($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Hs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae($e),null;case 4:return qs(),null;case 10:return Z0(t.type._context),null;case 22:case 23:return hv(),null;case 24:return null;default:return null}}var sc=!1,Ot=!1,N_=typeof WeakSet=="function"?WeakSet:Set,q=null;function as(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ue(e,t,r)}else n.current=null}function eg(e,t,n){try{n()}catch(r){Ue(e,t,r)}}var gx=!1;function z_(e,t){if(Dm=sd,e=wE(),G0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=s),f===o&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fm={focusedElem:e,selectionRange:n},sd=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,x=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Dn(t.type,m),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(w){Ue(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=gx,gx=!1,h}function rl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&eg(t,n,o)}i=i.next}while(i!==r)}}function wf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vP(e){var t=e.alternate;t!==null&&(e.alternate=null,vP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ir],delete t[_l],delete t[Vm],delete t[S_],delete t[C_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yP(e){return e.tag===5||e.tag===3||e.tag===4}function vx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ng(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ud));else if(r!==4&&(e=e.child,e!==null))for(ng(e,t,n),e=e.sibling;e!==null;)ng(e,t,n),e=e.sibling}function rg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rg(e,t,n),e=e.sibling;e!==null;)rg(e,t,n),e=e.sibling}var vt=null,Nn=!1;function Ur(e,t,n){for(n=n.child;n!==null;)xP(e,t,n),n=n.sibling}function xP(e,t,n){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(ff,n)}catch{}switch(n.tag){case 5:Ot||as(n,t);case 6:var r=vt,i=Nn;vt=null,Ur(e,t,n),vt=r,Nn=i,vt!==null&&(Nn?(e=vt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):vt.removeChild(n.stateNode));break;case 18:vt!==null&&(Nn?(e=vt,n=n.stateNode,e.nodeType===8?sh(e.parentNode,n):e.nodeType===1&&sh(e,n),Tl(e)):sh(vt,n.stateNode));break;case 4:r=vt,i=Nn,vt=n.stateNode.containerInfo,Nn=!0,Ur(e,t,n),vt=r,Nn=i;break;case 0:case 11:case 14:case 15:if(!Ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&eg(n,t,s),i=i.next}while(i!==r)}Ur(e,t,n);break;case 1:if(!Ot&&(as(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ue(n,t,a)}Ur(e,t,n);break;case 21:Ur(e,t,n);break;case 22:n.mode&1?(Ot=(r=Ot)||n.memoizedState!==null,Ur(e,t,n),Ot=r):Ur(e,t,n);break;default:Ur(e,t,n)}}function yx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N_),t.forEach(function(r){var i=Q_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function $n(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*B_(r/1960))-r,10e?16:e,mi===null)var r=!1;else{if(e=mi,mi=null,Sd=0,ve&6)throw Error(F(331));var i=ve;for(ve|=4,q=e.current;q!==null;){var o=q,s=o.child;if(q.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lKe()-fv?So(e,0):dv|=n),Wt(e,t)}function kP(e,t){t===0&&(e.mode&1?(t=Xu,Xu<<=1,!(Xu&130023424)&&(Xu=4194304)):t=1);var n=$t();e=Lr(e,t),e!==null&&(wu(e,t,n),Wt(e,n))}function K_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kP(e,n)}function Q_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),kP(e,n)}var MP;MP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Bt.current)Vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vt=!1,j_(e,t,n);Vt=!!(e.flags&131072)}else Vt=!1,Le&&t.flags&1048576&&_E(t,pd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ac(e,t),e=t.pendingProps;var i=Ws(t,_t.current);ws(t,n),i=ov(null,t,r,e,i,n);var o=sv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ut(r)?(o=!0,dd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ev(t),i.updater=yf,t.stateNode=i,i._reactInternals=t,qm(t,r,e,n),t=Ym(null,t,r,!0,o,n)):(t.tag=0,Le&&o&&q0(t),Lt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ac(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=X_(r),e=Dn(r,e),i){case 0:t=Qm(null,t,r,e,n);break e;case 1:t=px(null,t,r,e,n);break e;case 11:t=dx(null,t,r,e,n);break e;case 14:t=fx(null,t,r,Dn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dn(r,i),Qm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dn(r,i),px(e,t,r,i,n);case 3:e:{if(dP(t),e===null)throw Error(F(387));r=t.pendingProps,o=t.memoizedState,i=o.element,$E(e,t),gd(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ks(Error(F(423)),t),t=hx(e,t,r,n,i);break e}else if(r!==i){i=Ks(Error(F(424)),t),t=hx(e,t,r,n,i);break e}else for(en=Ei(t.stateNode.containerInfo.firstChild),nn=t,Le=!0,zn=null,n=NE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hs(),r===i){t=$r(e,t,n);break e}Lt(e,t,r,n)}t=t.child}return t;case 5:return zE(t),e===null&&Wm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Nm(r,i)?s=null:o!==null&&Nm(r,o)&&(t.flags|=32),cP(e,t),Lt(e,t,s,n),t.child;case 6:return e===null&&Wm(t),null;case 13:return fP(e,t,n);case 4:return tv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gs(t,null,r,n):Lt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dn(r,i),dx(e,t,r,i,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Me(hd,r._currentValue),r._currentValue=s,o!==null)if(Hn(o.value,s)){if(o.children===i.children&&!Bt.current){t=$r(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Pr(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Hm(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(F(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Hm(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Lt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ws(t,n),i=kn(i),r=r(i),t.flags|=1,Lt(e,t,r,n),t.child;case 14:return r=t.type,i=Dn(r,t.pendingProps),i=Dn(r.type,i),fx(e,t,r,i,n);case 15:return lP(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dn(r,i),Ac(e,t),t.tag=1,Ut(r)?(e=!0,dd(t)):e=!1,ws(t,n),DE(t,r,i),qm(t,r,i,n),Ym(null,t,r,!0,e,n);case 19:return pP(e,t,n);case 22:return uP(e,t,n)}throw Error(F(156,t.tag))};function OP(e,t){return tE(e,t)}function Y_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,t,n,r){return new Y_(e,t,n,r)}function gv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X_(e){if(typeof e=="function")return gv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$0)return 11;if(e===j0)return 14}return 2}function Mi(e,t){var n=e.alternate;return n===null?(n=Cn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $c(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")gv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Zo:return Co(n.children,i,o,t);case L0:s=8,i|=8;break;case vm:return e=Cn(12,n,t,i|2),e.elementType=vm,e.lanes=o,e;case ym:return e=Cn(13,n,t,i),e.elementType=ym,e.lanes=o,e;case xm:return e=Cn(19,n,t,i),e.elementType=xm,e.lanes=o,e;case FC:return Sf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jC:s=10;break e;case DC:s=9;break e;case $0:s=11;break e;case j0:s=14;break e;case ni:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Cn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Co(e,t,n,r){return e=Cn(7,e,r,t),e.lanes=n,e}function Sf(e,t,n,r){return e=Cn(22,e,r,t),e.elementType=FC,e.lanes=n,e.stateNode={isHidden:!1},e}function hh(e,t,n){return e=Cn(6,e,null,t),e.lanes=n,e}function mh(e,t,n){return t=Cn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z_(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qp(0),this.expirationTimes=Qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vv(e,t,n,r,i,o,s,a,l){return e=new Z_(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Cn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ev(o),e}function J_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IP)}catch(e){console.error(e)}}IP(),_C.exports=an;var kf=_C.exports;const uc=wC(kf);var Tx=kf;mm.createRoot=Tx.createRoot,mm.hydrateRoot=Tx.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function fh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Km(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var IR=typeof WeakMap=="function"?WeakMap:Map;function sP(e,t,n){n=Pr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bd||(bd=!0,ig=r),Km(e,t)},n}function aP(e,t,n){n=Pr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Km(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Km(e,t),typeof r!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function lx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new IR;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=qR.bind(null,e,t,n),t.then(e,e))}function ux(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function cx(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pr(-1,1),t.tag=2,Pi(n,t,1))),n.lanes|=1),e)}var LR=Nr.ReactCurrentOwner,Vt=!1;function Lt(e,t,n,r){t.child=e===null?NE(t,null,n,r):qs(t,e.child,n,r)}function dx(e,t,n,r,i){n=n.render;var o=t.ref;return bs(t,i),r=ov(e,t,n,r,o,i),n=sv(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$r(e,t,i)):(Le&&n&&q0(t),t.flags|=1,Lt(e,t,r,i),t.child)}function fx(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!gv(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,lP(e,t,o,r,i)):(e=$c(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ml,n(s,r)&&e.ref===t.ref)return $r(e,t,i)}return t.flags|=1,e=Mi(o,r),e.ref=t.ref,e.return=t,t.child=e}function lP(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ml(o,r)&&e.ref===t.ref)if(Vt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Vt=!0);else return t.lanes=e.lanes,$r(e,t,i)}return Qm(e,t,n,r,i)}function uP(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Me(us,Xt),Xt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Me(us,Xt),Xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Me(us,Xt),Xt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Me(us,Xt),Xt|=r;return Lt(e,t,i,n),t.child}function cP(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qm(e,t,n,r,i){var o=Ut(n)?To:Rt.current;return o=Hs(t,o),bs(t,i),n=ov(e,t,n,r,o,i),r=sv(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$r(e,t,i)):(Le&&r&&q0(t),t.flags|=1,Lt(e,t,n,i),t.child)}function px(e,t,n,r,i){if(Ut(n)){var o=!0;dd(t)}else o=!1;if(bs(t,i),t.stateNode===null)Ac(e,t),DE(t,n,r),qm(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=kn(u):(u=Ut(n)?To:Rt.current,u=Hs(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&ix(t,s,r,u),ri=!1;var f=t.memoizedState;s.state=f,gd(t,r,s,i),l=t.memoizedState,a!==r||f!==l||Bt.current||ri?(typeof c=="function"&&(Gm(t,n,c,r),l=t.memoizedState),(a=ri||rx(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,$E(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Dn(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=kn(l):(l=Ut(n)?To:Rt.current,l=Hs(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&ix(t,s,r,l),ri=!1,f=t.memoizedState,s.state=f,gd(t,r,s,i);var h=t.memoizedState;a!==d||f!==h||Bt.current||ri?(typeof p=="function"&&(Gm(t,n,p,r),h=t.memoizedState),(u=ri||rx(t,n,u,r,f,h,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,h,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,h,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ym(e,t,n,r,o,i)}function Ym(e,t,n,r,i,o){cP(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Z1(t,n,!1),$r(e,t,o);r=t.stateNode,LR.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=qs(t,e.child,null,o),t.child=qs(t,null,a,o)):Lt(e,t,a,o),t.memoizedState=r.state,i&&Z1(t,n,!0),t.child}function dP(e){var t=e.stateNode;t.pendingContext?X1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&X1(e,t.context,!1),tv(e,t.containerInfo)}function hx(e,t,n,r,i){return Gs(),Q0(i),t.flags|=256,Lt(e,t,n,r),t.child}var Xm={dehydrated:null,treeContext:null,retryLane:0};function Zm(e){return{baseLanes:e,cachePool:null,transitions:null}}function fP(e,t,n){var r=t.pendingProps,i=$e.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Me($e,i&1),e===null)return Wm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Sf(s,r,0,null),e=Co(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Zm(n),t.memoizedState=Xm,e):uv(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return $R(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Mi(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Mi(a,o):(o=Co(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Zm(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Xm,r}return o=e.child,e=o.sibling,r=Mi(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function uv(e,t){return t=Sf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function oc(e,t,n,r){return r!==null&&Q0(r),qs(t,e.child,null,n),e=uv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $R(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=fh(Error(F(422))),oc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Sf({mode:"visible",children:r.children},i,0,null),o=Co(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&qs(t,e.child,null,s),t.child.memoizedState=Zm(s),t.memoizedState=Xm,o);if(!(t.mode&1))return oc(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(F(419)),r=fh(o,r,void 0),oc(e,t,s,r)}if(a=(s&e.childLanes)!==0,Vt||a){if(r=ht,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Lr(e,i),Wn(r,e,i,-1))}return mv(),r=fh(Error(F(421))),oc(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=KR.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,en=Ei(i.nextSibling),nn=t,Le=!0,zn=null,e!==null&&(yn[xn++]=wr,yn[xn++]=br,yn[xn++]=ko,wr=e.id,br=e.overflow,ko=t),t=uv(t,r.children),t.flags|=4096,t)}function mx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hm(e.return,t,n)}function ph(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function pP(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Lt(e,t,r.children,n),r=$e.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mx(e,n,t);else if(e.tag===19)mx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Me($e,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&vd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ph(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ph(t,!0,n,null,o);break;case"together":ph(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ac(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $r(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_o|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jR(e,t,n){switch(t.tag){case 3:dP(t),Gs();break;case 5:zE(t);break;case 1:Ut(t.type)&&dd(t);break;case 4:tv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Me(hd,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Me($e,$e.current&1),t.flags|=128,null):n&t.child.childLanes?fP(e,t,n):(Me($e,$e.current&1),e=$r(e,t,n),e!==null?e.sibling:null);Me($e,$e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pP(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Me($e,$e.current),r)break;return null;case 22:case 23:return t.lanes=0,uP(e,t,n)}return $r(e,t,n)}var hP,Jm,mP,gP;hP=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Jm=function(){};mP=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,lo(ar.current);var o=null;switch(n){case"input":i=bm(e,i),r=bm(e,r),o=[];break;case"select":i=Fe({},i,{value:void 0}),r=Fe({},r,{value:void 0}),o=[];break;case"textarea":i=Em(e,i),r=Em(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ud)}Tm(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(bl.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(bl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Re("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};gP=function(e,t,n,r){n!==r&&(t.flags|=4)};function _a(e,t){if(!Le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function DR(e,t,n){var r=t.pendingProps;switch(K0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pt(t),null;case 1:return Ut(t.type)&&cd(),Pt(t),null;case 3:return r=t.stateNode,Ks(),Ae(Bt),Ae(Rt),rv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zn!==null&&(ag(zn),zn=null))),Jm(e,t),Pt(t),null;case 5:nv(t);var i=lo(Il.current);if(n=t.type,e!==null&&t.stateNode!=null)mP(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return Pt(t),null}if(e=lo(ar.current),rc(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ir]=t,r[Rl]=o,e=(t.mode&1)!==0,n){case"dialog":Re("cancel",r),Re("close",r);break;case"iframe":case"object":case"embed":Re("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ir]=t,e[Rl]=r,hP(e,t,!1,!1),t.stateNode=e;e:{switch(s=km(n,r),n){case"dialog":Re("cancel",e),Re("close",e),i=r;break;case"iframe":case"object":case"embed":Re("load",e),i=r;break;case"video":case"audio":for(i=0;iYs&&(t.flags|=128,r=!0,_a(o,!1),t.lanes=4194304)}else{if(!r)if(e=vd(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_a(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Le)return Pt(t),null}else 2*Ke()-o.renderingStartTime>Ys&&n!==1073741824&&(t.flags|=128,r=!0,_a(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,n=$e.current,Me($e,r?n&1|2:n&1),t):(Pt(t),null);case 22:case 23:return hv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Xt&1073741824&&(Pt(t),t.subtreeFlags&6&&(t.flags|=8192)):Pt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function FR(e,t){switch(K0(t),t.tag){case 1:return Ut(t.type)&&cd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ks(),Ae(Bt),Ae(Rt),rv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nv(t),null;case 13:if(Ae($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Gs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae($e),null;case 4:return Ks(),null;case 10:return Z0(t.type._context),null;case 22:case 23:return hv(),null;case 24:return null;default:return null}}var sc=!1,_t=!1,NR=typeof WeakSet=="function"?WeakSet:Set,q=null;function ls(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ue(e,t,r)}else n.current=null}function eg(e,t,n){try{n()}catch(r){Ue(e,t,r)}}var gx=!1;function zR(e,t){if(Dm=sd,e=wE(),G0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=s),f===o&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fm={focusedElem:e,selectionRange:n},sd=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,x=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Dn(t.type,m),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(w){Ue(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=gx,gx=!1,h}function rl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&eg(t,n,o)}i=i.next}while(i!==r)}}function wf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vP(e){var t=e.alternate;t!==null&&(e.alternate=null,vP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ir],delete t[Rl],delete t[Vm],delete t[SR],delete t[CR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yP(e){return e.tag===5||e.tag===3||e.tag===4}function vx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ng(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ud));else if(r!==4&&(e=e.child,e!==null))for(ng(e,t,n),e=e.sibling;e!==null;)ng(e,t,n),e=e.sibling}function rg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rg(e,t,n),e=e.sibling;e!==null;)rg(e,t,n),e=e.sibling}var vt=null,Nn=!1;function Ur(e,t,n){for(n=n.child;n!==null;)xP(e,t,n),n=n.sibling}function xP(e,t,n){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(ff,n)}catch{}switch(n.tag){case 5:_t||ls(n,t);case 6:var r=vt,i=Nn;vt=null,Ur(e,t,n),vt=r,Nn=i,vt!==null&&(Nn?(e=vt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):vt.removeChild(n.stateNode));break;case 18:vt!==null&&(Nn?(e=vt,n=n.stateNode,e.nodeType===8?sh(e.parentNode,n):e.nodeType===1&&sh(e,n),Tl(e)):sh(vt,n.stateNode));break;case 4:r=vt,i=Nn,vt=n.stateNode.containerInfo,Nn=!0,Ur(e,t,n),vt=r,Nn=i;break;case 0:case 11:case 14:case 15:if(!_t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&eg(n,t,s),i=i.next}while(i!==r)}Ur(e,t,n);break;case 1:if(!_t&&(ls(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ue(n,t,a)}Ur(e,t,n);break;case 21:Ur(e,t,n);break;case 22:n.mode&1?(_t=(r=_t)||n.memoizedState!==null,Ur(e,t,n),_t=r):Ur(e,t,n);break;default:Ur(e,t,n)}}function yx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new NR),t.forEach(function(r){var i=QR.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function $n(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*BR(r/1960))-r,10e?16:e,mi===null)var r=!1;else{if(e=mi,mi=null,Sd=0,ve&6)throw Error(F(331));var i=ve;for(ve|=4,q=e.current;q!==null;){var o=q,s=o.child;if(q.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lKe()-fv?So(e,0):dv|=n),Wt(e,t)}function kP(e,t){t===0&&(e.mode&1?(t=Xu,Xu<<=1,!(Xu&130023424)&&(Xu=4194304)):t=1);var n=$t();e=Lr(e,t),e!==null&&(wu(e,t,n),Wt(e,n))}function KR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kP(e,n)}function QR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),kP(e,n)}var MP;MP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Bt.current)Vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vt=!1,jR(e,t,n);Vt=!!(e.flags&131072)}else Vt=!1,Le&&t.flags&1048576&&RE(t,pd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ac(e,t),e=t.pendingProps;var i=Hs(t,Rt.current);bs(t,n),i=ov(null,t,r,e,i,n);var o=sv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ut(r)?(o=!0,dd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ev(t),i.updater=yf,t.stateNode=i,i._reactInternals=t,qm(t,r,e,n),t=Ym(null,t,r,!0,o,n)):(t.tag=0,Le&&o&&q0(t),Lt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ac(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=XR(r),e=Dn(r,e),i){case 0:t=Qm(null,t,r,e,n);break e;case 1:t=px(null,t,r,e,n);break e;case 11:t=dx(null,t,r,e,n);break e;case 14:t=fx(null,t,r,Dn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dn(r,i),Qm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dn(r,i),px(e,t,r,i,n);case 3:e:{if(dP(t),e===null)throw Error(F(387));r=t.pendingProps,o=t.memoizedState,i=o.element,$E(e,t),gd(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Qs(Error(F(423)),t),t=hx(e,t,r,n,i);break e}else if(r!==i){i=Qs(Error(F(424)),t),t=hx(e,t,r,n,i);break e}else for(en=Ei(t.stateNode.containerInfo.firstChild),nn=t,Le=!0,zn=null,n=NE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gs(),r===i){t=$r(e,t,n);break e}Lt(e,t,r,n)}t=t.child}return t;case 5:return zE(t),e===null&&Wm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Nm(r,i)?s=null:o!==null&&Nm(r,o)&&(t.flags|=32),cP(e,t),Lt(e,t,s,n),t.child;case 6:return e===null&&Wm(t),null;case 13:return fP(e,t,n);case 4:return tv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qs(t,null,r,n):Lt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dn(r,i),dx(e,t,r,i,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Me(hd,r._currentValue),r._currentValue=s,o!==null)if(Hn(o.value,s)){if(o.children===i.children&&!Bt.current){t=$r(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Pr(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Hm(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(F(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Hm(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Lt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bs(t,n),i=kn(i),r=r(i),t.flags|=1,Lt(e,t,r,n),t.child;case 14:return r=t.type,i=Dn(r,t.pendingProps),i=Dn(r.type,i),fx(e,t,r,i,n);case 15:return lP(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dn(r,i),Ac(e,t),t.tag=1,Ut(r)?(e=!0,dd(t)):e=!1,bs(t,n),DE(t,r,i),qm(t,r,i,n),Ym(null,t,r,!0,e,n);case 19:return pP(e,t,n);case 22:return uP(e,t,n)}throw Error(F(156,t.tag))};function _P(e,t){return tE(e,t)}function YR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,t,n,r){return new YR(e,t,n,r)}function gv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XR(e){if(typeof e=="function")return gv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$0)return 11;if(e===j0)return 14}return 2}function Mi(e,t){var n=e.alternate;return n===null?(n=Cn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $c(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")gv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jo:return Co(n.children,i,o,t);case L0:s=8,i|=8;break;case vm:return e=Cn(12,n,t,i|2),e.elementType=vm,e.lanes=o,e;case ym:return e=Cn(13,n,t,i),e.elementType=ym,e.lanes=o,e;case xm:return e=Cn(19,n,t,i),e.elementType=xm,e.lanes=o,e;case FC:return Sf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jC:s=10;break e;case DC:s=9;break e;case $0:s=11;break e;case j0:s=14;break e;case ni:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Cn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Co(e,t,n,r){return e=Cn(7,e,r,t),e.lanes=n,e}function Sf(e,t,n,r){return e=Cn(22,e,r,t),e.elementType=FC,e.lanes=n,e.stateNode={isHidden:!1},e}function hh(e,t,n){return e=Cn(6,e,null,t),e.lanes=n,e}function mh(e,t,n){return t=Cn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZR(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qp(0),this.expirationTimes=Qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vv(e,t,n,r,i,o,s,a,l){return e=new ZR(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Cn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ev(o),e}function JR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IP)}catch(e){console.error(e)}}IP(),RC.exports=an;var kf=RC.exports;const uc=wC(kf);var Tx=kf;mm.createRoot=Tx.createRoot,mm.hydrateRoot=Tx.hydrateRoot;/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -52,7 +52,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function o5(){return Math.random().toString(36).substr(2,8)}function Mx(e,t){return{usr:e.state,key:e.key,idx:t}}function lg(e,t,n,r){return n===void 0&&(n=null),Fl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jo(t):t,{state:n,key:t&&t.key||r||o5()})}function Pd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function jo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function s5(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=gi.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Fl({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=gi.Pop;let x=c(),g=x==null?null:x-u;u=x,l&&l({action:a,location:m.location,delta:g})}function f(x,g){a=gi.Push;let y=lg(m.location,x,g);n&&n(y,x),u=c()+1;let v=Mx(y,u),w=m.createHref(y);try{s.pushState(v,"",w)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(w)}o&&l&&l({action:a,location:m.location,delta:1})}function p(x,g){a=gi.Replace;let y=lg(m.location,x,g);n&&n(y,x),u=c();let v=Mx(y,u),w=m.createHref(y);s.replaceState(v,"",w),o&&l&&l({action:a,location:m.location,delta:0})}function h(x){let g=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof x=="string"?x:Pd(x);return y=y.replace(/ $/,"%20"),We(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let m={get action(){return a},get location(){return e(i,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(kx,d),l=x,()=>{i.removeEventListener(kx,d),l=null}},createHref(x){return t(i,x)},createURL:h,encodeLocation(x){let g=h(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(x){return s.go(x)}};return m}var Ox;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ox||(Ox={}));function a5(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?jo(t):t,i=Ys(r.pathname||"/",n);if(i==null)return null;let o=LP(e);l5(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(We(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Oi([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(We(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),LP(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:m5(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of $P(o.path))i(o,s,l)}),t}function $P(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=$P(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function l5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:g5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const u5=/^:[\w-]+$/,c5=3,d5=2,f5=1,p5=10,h5=-2,Rx=e=>e==="*";function m5(e,t){let n=e.split("/"),r=n.length;return n.some(Rx)&&(r+=h5),t&&(r+=d5),n.filter(i=>!Rx(i)).reduce((i,o)=>i+(u5.test(o)?c5:o===""?f5:p5),r)}function g5(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function v5(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{let{paramName:f,isOptional:p}=c;if(f==="*"){let m=a[d]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const h=a[d];return p&&!h?u[f]=void 0:u[f]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function y5(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function x5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ys(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function w5(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?jo(e):e;return{pathname:n?n.startsWith("/")?n:b5(n,t):t,search:E5(r),hash:P5(i)}}function b5(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function gh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function S5(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jP(e,t){let n=S5(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function DP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=jo(e):(i=Fl({},e),We(!i.pathname||!i.pathname.includes("?"),gh("?","pathname","search",i)),We(!i.pathname||!i.pathname.includes("#"),gh("#","pathname","hash",i)),We(!i.search||!i.search.includes("#"),gh("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=w5(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Oi=e=>e.join("/").replace(/\/\/+/g,"/"),C5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function T5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FP=["post","put","patch","delete"];new Set(FP);const k5=["get",...FP];new Set(k5);/** + */function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function o5(){return Math.random().toString(36).substr(2,8)}function Mx(e,t){return{usr:e.state,key:e.key,idx:t}}function lg(e,t,n,r){return n===void 0&&(n=null),Fl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jo(t):t,{state:n,key:t&&t.key||r||o5()})}function Pd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function jo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function s5(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=gi.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Fl({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=gi.Pop;let x=c(),g=x==null?null:x-u;u=x,l&&l({action:a,location:m.location,delta:g})}function f(x,g){a=gi.Push;let y=lg(m.location,x,g);n&&n(y,x),u=c()+1;let v=Mx(y,u),w=m.createHref(y);try{s.pushState(v,"",w)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(w)}o&&l&&l({action:a,location:m.location,delta:1})}function p(x,g){a=gi.Replace;let y=lg(m.location,x,g);n&&n(y,x),u=c();let v=Mx(y,u),w=m.createHref(y);s.replaceState(v,"",w),o&&l&&l({action:a,location:m.location,delta:0})}function h(x){let g=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof x=="string"?x:Pd(x);return y=y.replace(/ $/,"%20"),We(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let m={get action(){return a},get location(){return e(i,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(kx,d),l=x,()=>{i.removeEventListener(kx,d),l=null}},createHref(x){return t(i,x)},createURL:h,encodeLocation(x){let g=h(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(x){return s.go(x)}};return m}var _x;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_x||(_x={}));function a5(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?jo(t):t,i=Xs(r.pathname||"/",n);if(i==null)return null;let o=LP(e);l5(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(We(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=_i([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(We(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),LP(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:m5(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of $P(o.path))i(o,s,l)}),t}function $P(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=$P(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function l5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:g5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const u5=/^:[\w-]+$/,c5=3,d5=2,f5=1,p5=10,h5=-2,Ox=e=>e==="*";function m5(e,t){let n=e.split("/"),r=n.length;return n.some(Ox)&&(r+=h5),t&&(r+=d5),n.filter(i=>!Ox(i)).reduce((i,o)=>i+(u5.test(o)?c5:o===""?f5:p5),r)}function g5(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function v5(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{let{paramName:f,isOptional:p}=c;if(f==="*"){let m=a[d]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const h=a[d];return p&&!h?u[f]=void 0:u[f]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function y5(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function x5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Xs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function w5(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?jo(e):e;return{pathname:n?n.startsWith("/")?n:b5(n,t):t,search:E5(r),hash:P5(i)}}function b5(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function gh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function S5(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jP(e,t){let n=S5(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function DP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=jo(e):(i=Fl({},e),We(!i.pathname||!i.pathname.includes("?"),gh("?","pathname","search",i)),We(!i.pathname||!i.pathname.includes("#"),gh("#","pathname","hash",i)),We(!i.search||!i.search.includes("#"),gh("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=w5(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const _i=e=>e.join("/").replace(/\/\/+/g,"/"),C5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function T5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FP=["post","put","patch","delete"];new Set(FP);const k5=["get",...FP];new Set(k5);/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -61,7 +61,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),b.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=DP(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Oi([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}const R5=b.createContext(null);function _5(e){let t=b.useContext(zr).outlet;return t&&b.createElement(R5.Provider,{value:e},t)}function A5(){let{matches:e}=b.useContext(zr),t=e[e.length-1];return t?t.params:{}}function _f(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(qi),{matches:i}=b.useContext(zr),{pathname:o}=Pu(),s=JSON.stringify(jP(i,r.v7_relativeSplatPath));return b.useMemo(()=>DP(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function I5(e,t){return L5(e,t)}function L5(e,t,n,r){Eu()||We(!1);let{navigator:i}=b.useContext(qi),{matches:o}=b.useContext(zr),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Pu(),c;if(t){var d;let x=typeof t=="string"?jo(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||We(!1),c=x}else c=u;let f=c.pathname||"/",p=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let h=a5(e,{pathname:p}),m=N5(h&&h.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Oi([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Oi([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&m?b.createElement(Of.Provider,{value:{location:Nl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:gi.Pop}},m):m}function $5(){let e=U5(),t=T5(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const j5=b.createElement($5,null);class D5 extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(zr.Provider,{value:this.props.routeContext},b.createElement(zP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function F5(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(Mf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(zr.Provider,{value:t},r)}function N5(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||We(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let p,h=!1,m=null,x=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||j5,l&&(u<0&&f===0?(H5("route-fallback",!1),h=!0,x=null):u===f&&(h=!0,x=d.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,f+1)),y=()=>{let v;return p?v=m:h?v=x:d.route.Component?v=b.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,b.createElement(F5,{match:d,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(D5,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var BP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(BP||{}),Td=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Td||{});function z5(e){let t=b.useContext(Mf);return t||We(!1),t}function V5(e){let t=b.useContext(NP);return t||We(!1),t}function B5(e){let t=b.useContext(zr);return t||We(!1),t}function UP(e){let t=B5(),n=t.matches[t.matches.length-1];return n.route.id||We(!1),n.route.id}function U5(){var e;let t=b.useContext(zP),n=V5(Td.UseRouteError),r=UP(Td.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function W5(){let{router:e}=z5(BP.UseNavigateStable),t=UP(Td.UseNavigateStable),n=b.useRef(!1);return VP(()=>{n.current=!0}),b.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Nl({fromRouteId:t},o)))},[e,t])}const _x={};function H5(e,t,n){!t&&!_x[e]&&(_x[e]=!0)}function G5(e){return _5(e.context)}function Qo(e){We(!1)}function q5(e){let{basename:t="/",children:n=null,location:r,navigationType:i=gi.Pop,navigator:o,static:s=!1,future:a}=e;Eu()&&We(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:o,static:s,future:Nl({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=jo(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=b.useMemo(()=>{let x=Ys(c,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:p,key:h},navigationType:i}},[l,c,d,f,p,h,i]);return m==null?null:b.createElement(qi.Provider,{value:u},b.createElement(Of.Provider,{children:n,value:m}))}function K5(e){let{children:t,location:n}=e;return I5(cg(t),n)}new Promise(()=>{});function cg(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let o=[...t,i];if(r.type===b.Fragment){n.push.apply(n,cg(r.props.children,o));return}r.type!==Qo&&We(!1),!r.props.index||!r.props.children||We(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=cg(r.props.children,o)),n.push(s)}),n}/** + */function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),b.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=DP(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:_i([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}const O5=b.createContext(null);function R5(e){let t=b.useContext(zr).outlet;return t&&b.createElement(O5.Provider,{value:e},t)}function A5(){let{matches:e}=b.useContext(zr),t=e[e.length-1];return t?t.params:{}}function Rf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(qi),{matches:i}=b.useContext(zr),{pathname:o}=Pu(),s=JSON.stringify(jP(i,r.v7_relativeSplatPath));return b.useMemo(()=>DP(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function I5(e,t){return L5(e,t)}function L5(e,t,n,r){Eu()||We(!1);let{navigator:i}=b.useContext(qi),{matches:o}=b.useContext(zr),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Pu(),c;if(t){var d;let x=typeof t=="string"?jo(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||We(!1),c=x}else c=u;let f=c.pathname||"/",p=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let h=a5(e,{pathname:p}),m=N5(h&&h.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:_i([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:_i([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&m?b.createElement(_f.Provider,{value:{location:Nl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:gi.Pop}},m):m}function $5(){let e=U5(),t=T5(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const j5=b.createElement($5,null);class D5 extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(zr.Provider,{value:this.props.routeContext},b.createElement(zP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function F5(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(Mf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(zr.Provider,{value:t},r)}function N5(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||We(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let p,h=!1,m=null,x=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||j5,l&&(u<0&&f===0?(H5("route-fallback",!1),h=!0,x=null):u===f&&(h=!0,x=d.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,f+1)),y=()=>{let v;return p?v=m:h?v=x:d.route.Component?v=b.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,b.createElement(F5,{match:d,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(D5,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var BP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(BP||{}),Td=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Td||{});function z5(e){let t=b.useContext(Mf);return t||We(!1),t}function V5(e){let t=b.useContext(NP);return t||We(!1),t}function B5(e){let t=b.useContext(zr);return t||We(!1),t}function UP(e){let t=B5(),n=t.matches[t.matches.length-1];return n.route.id||We(!1),n.route.id}function U5(){var e;let t=b.useContext(zP),n=V5(Td.UseRouteError),r=UP(Td.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function W5(){let{router:e}=z5(BP.UseNavigateStable),t=UP(Td.UseNavigateStable),n=b.useRef(!1);return VP(()=>{n.current=!0}),b.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Nl({fromRouteId:t},o)))},[e,t])}const Rx={};function H5(e,t,n){!t&&!Rx[e]&&(Rx[e]=!0)}function G5(e){return R5(e.context)}function Yo(e){We(!1)}function q5(e){let{basename:t="/",children:n=null,location:r,navigationType:i=gi.Pop,navigator:o,static:s=!1,future:a}=e;Eu()&&We(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:o,static:s,future:Nl({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=jo(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=b.useMemo(()=>{let x=Xs(c,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:p,key:h},navigationType:i}},[l,c,d,f,p,h,i]);return m==null?null:b.createElement(qi.Provider,{value:u},b.createElement(_f.Provider,{children:n,value:m}))}function K5(e){let{children:t,location:n}=e;return I5(cg(t),n)}new Promise(()=>{});function cg(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let o=[...t,i];if(r.type===b.Fragment){n.push.apply(n,cg(r.props.children,o));return}r.type!==Yo&&We(!1),!r.props.index||!r.props.children||We(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=cg(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -70,14 +70,14 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Q5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Y5(e,t){return e.button===0&&(!t||t==="_self")&&!Q5(e)}const X5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Z5=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],J5="6";try{window.__reactRouterVersion=J5}catch{}const eA=b.createContext({isTransitioning:!1}),tA="startTransition",Ax=ed[tA];function nA(e){let{basename:t,children:n,future:r,window:i}=e,o=b.useRef();o.current==null&&(o.current=i5({window:i,v5Compat:!0}));let s=o.current,[a,l]=b.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=b.useCallback(d=>{u&&Ax?Ax(()=>l(d)):l(d)},[l,u]);return b.useLayoutEffect(()=>s.listen(c),[s,c]),b.createElement(q5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const rA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HP=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=WP(t,X5),{basename:p}=b.useContext(qi),h,m=!1;if(typeof u=="string"&&iA.test(u)&&(h=u,rA))try{let v=new URL(window.location.href),w=u.startsWith("//")?new URL(v.protocol+u):new URL(u),C=Ys(w.pathname,p);w.origin===v.origin&&C!=null?u=C+w.search+w.hash:m=!0}catch{}let x=M5(u,{relative:i}),g=sA(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function y(v){r&&r(v),v.defaultPrevented||g(v)}return b.createElement("a",kd({},f,{href:h||x,onClick:m||o?r:y,ref:n,target:l}))}),GP=b.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,unstable_viewTransition:u,children:c}=t,d=WP(t,Z5),f=_f(l,{relative:d.relative}),p=Pu(),h=b.useContext(NP),{navigator:m,basename:x}=b.useContext(qi),g=h!=null&&aA(f)&&u===!0,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,v=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;i||(v=v.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&x&&(w=Ys(w,x)||w);const C=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let E=v===y||!s&&v.startsWith(y)&&v.charAt(C)==="/",T=w!=null&&(w===y||!s&&w.startsWith(y)&&w.charAt(y.length)==="/"),P={isActive:E,isPending:T,isTransitioning:g},M=E?r:void 0,k;typeof o=="function"?k=o(P):k=[o,E?"active":null,T?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let A=typeof a=="function"?a(P):a;return b.createElement(HP,kd({},d,{"aria-current":M,className:k,ref:n,style:A,to:l,unstable_viewTransition:u}),typeof c=="function"?c(P):c)});var dg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dg||(dg={}));var Ix;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ix||(Ix={}));function oA(e){let t=b.useContext(Mf);return t||We(!1),t}function sA(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Rf(),u=Pu(),c=_f(e,{relative:s});return b.useCallback(d=>{if(Y5(d,n)){d.preventDefault();let f=r!==void 0?r:Pd(u)===Pd(c);l(e,{replace:f,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}},[u,l,c,r,i,n,e,o,s,a])}function aA(e,t){t===void 0&&(t={});let n=b.useContext(eA);n==null&&We(!1);let{basename:r}=oA(dg.useViewTransitionState),i=_f(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Ys(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ys(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ug(i.pathname,s)!=null||ug(i.pathname,o)!=null}const lA={black:"#000",white:"#fff"},zl=lA,uA={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Vo=uA,cA={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Bo=cA,dA={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Uo=dA,fA={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Wo=fA,pA={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ho=pA,hA={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},_a=hA,mA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},gA=mA;function Xs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function qP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var yA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xA=qP(function(e){return yA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function wA(e){if(e.sheet)return e.sheet;for(var t=0;t0?yt(ca,--Ht):0,Zs--,et===10&&(Zs=1,If--),et}function rn(){return et=Ht2||Bl(et)>3?"":" "}function IA(e,t){for(;--t&&rn()&&!(et<48||et>102||et>57&&et<65||et>70&&et<97););return Tu(e,jc()+(t<6&&lr()==32&&rn()==32))}function pg(e){for(;rn();)switch(et){case e:return Ht;case 34:case 39:e!==34&&e!==39&&pg(et);break;case 40:e===41&&pg(e);break;case 92:rn();break}return Ht}function LA(e,t){for(;rn()&&e+et!==57;)if(e+et===84&&lr()===47)break;return"/*"+Tu(t,Ht-1)+"*"+Af(e===47?e:rn())}function $A(e){for(;!Bl(lr());)rn();return Tu(e,Ht)}function jA(e){return JP(Fc("",null,null,null,[""],e=ZP(e),0,[0],e))}function Fc(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,h=0,m=1,x=1,g=1,y=0,v="",w=i,C=o,E=r,T=v;x;)switch(h=y,y=rn()){case 40:if(h!=108&&yt(T,d-1)==58){fg(T+=be(Dc(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Dc(y);break;case 9:case 10:case 13:case 32:T+=AA(h);break;case 92:T+=IA(jc()-1,7);continue;case 47:switch(lr()){case 42:case 47:cc(DA(LA(rn(),jc()),t,n),l);break;default:T+="/"}break;case 123*m:a[u++]=nr(T)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+c:g==-1&&(T=be(T,/\f/g,"")),p>0&&nr(T)-d&&cc(p>32?$x(T+";",r,n,d-1):$x(be(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(cc(E=Lx(T,t,n,u,c,i,a,v,w=[],C=[],d),o),y===123)if(c===0)Fc(T,t,E,E,w,o,d,a,C);else switch(f===99&&yt(T,3)===110?100:f){case 100:case 108:case 109:case 115:Fc(e,E,E,r&&cc(Lx(e,E,E,0,0,i,a,v,i,w=[],d),C),i,C,d,a,r?w:C);break;default:Fc(T,E,E,E,[""],C,0,a,C)}}u=c=p=0,m=g=1,v=T="",d=s;break;case 58:d=1+nr(T),p=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&_A()==125)continue}switch(T+=Af(y),y*m){case 38:g=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(nr(T)-1)*g,g=1;break;case 64:lr()===45&&(T+=Dc(rn())),f=lr(),c=d=nr(v=T+=$A(jc())),y++;break;case 45:h===45&&nr(T)==2&&(m=0)}}return o}function Lx(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,f=i===0?o:[""],p=Ev(f),h=0,m=0,x=0;h0?f[g]+" "+y:be(y,/&\f/g,f[g])))&&(l[x++]=v);return Lf(e,t,n,i===0?Sv:a,l,u,c)}function DA(e,t,n){return Lf(e,t,n,KP,Af(RA()),Vl(e,2,-2),0)}function $x(e,t,n,r){return Lf(e,t,n,Cv,Vl(e,0,r),Vl(e,r+1,-1),r)}function Ss(e,t){for(var n="",r=Ev(e),i=0;i6)switch(yt(e,t+1)){case 109:if(yt(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+Md+(yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fg(e,"stretch")?eT(be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(yt(e,t+1)!==115)break;case 6444:switch(yt(e,nr(e)-3-(~fg(e,"!important")&&10))){case 107:return be(e,":",":"+we)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(yt(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+Tt+"$2box$3")+e}break;case 5936:switch(yt(e,t+11)){case 114:return we+e+Tt+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+Tt+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+Tt+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+Tt+e+e}return e}var GA=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Cv:t.return=eT(t.value,t.length);break;case QP:return Ss([Aa(t,{value:be(t.value,"@","@"+we)})],i);case Sv:if(t.length)return OA(t.props,function(o){switch(MA(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ss([Aa(t,{props:[be(o,/:(read-\w+)/,":"+Md+"$1")]})],i);case"::placeholder":return Ss([Aa(t,{props:[be(o,/:(plac\w+)/,":"+we+"input-$1")]}),Aa(t,{props:[be(o,/:(plac\w+)/,":"+Md+"$1")]}),Aa(t,{props:[be(o,/:(plac\w+)/,Tt+"input-$1")]})],i)}return""})}},qA=[GA],tT=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||qA,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),g=1;g=0)&&(n[i]=e[i]);return n}function Q5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Y5(e,t){return e.button===0&&(!t||t==="_self")&&!Q5(e)}const X5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Z5=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],J5="6";try{window.__reactRouterVersion=J5}catch{}const eA=b.createContext({isTransitioning:!1}),tA="startTransition",Ax=ed[tA];function nA(e){let{basename:t,children:n,future:r,window:i}=e,o=b.useRef();o.current==null&&(o.current=i5({window:i,v5Compat:!0}));let s=o.current,[a,l]=b.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=b.useCallback(d=>{u&&Ax?Ax(()=>l(d)):l(d)},[l,u]);return b.useLayoutEffect(()=>s.listen(c),[s,c]),b.createElement(q5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const rA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HP=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=WP(t,X5),{basename:p}=b.useContext(qi),h,m=!1;if(typeof u=="string"&&iA.test(u)&&(h=u,rA))try{let v=new URL(window.location.href),w=u.startsWith("//")?new URL(v.protocol+u):new URL(u),C=Xs(w.pathname,p);w.origin===v.origin&&C!=null?u=C+w.search+w.hash:m=!0}catch{}let x=M5(u,{relative:i}),g=sA(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function y(v){r&&r(v),v.defaultPrevented||g(v)}return b.createElement("a",kd({},f,{href:h||x,onClick:m||o?r:y,ref:n,target:l}))}),GP=b.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,unstable_viewTransition:u,children:c}=t,d=WP(t,Z5),f=Rf(l,{relative:d.relative}),p=Pu(),h=b.useContext(NP),{navigator:m,basename:x}=b.useContext(qi),g=h!=null&&aA(f)&&u===!0,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,v=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;i||(v=v.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&x&&(w=Xs(w,x)||w);const C=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let E=v===y||!s&&v.startsWith(y)&&v.charAt(C)==="/",T=w!=null&&(w===y||!s&&w.startsWith(y)&&w.charAt(y.length)==="/"),P={isActive:E,isPending:T,isTransitioning:g},M=E?r:void 0,k;typeof o=="function"?k=o(P):k=[o,E?"active":null,T?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let A=typeof a=="function"?a(P):a;return b.createElement(HP,kd({},d,{"aria-current":M,className:k,ref:n,style:A,to:l,unstable_viewTransition:u}),typeof c=="function"?c(P):c)});var dg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dg||(dg={}));var Ix;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ix||(Ix={}));function oA(e){let t=b.useContext(Mf);return t||We(!1),t}function sA(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Of(),u=Pu(),c=Rf(e,{relative:s});return b.useCallback(d=>{if(Y5(d,n)){d.preventDefault();let f=r!==void 0?r:Pd(u)===Pd(c);l(e,{replace:f,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}},[u,l,c,r,i,n,e,o,s,a])}function aA(e,t){t===void 0&&(t={});let n=b.useContext(eA);n==null&&We(!1);let{basename:r}=oA(dg.useViewTransitionState),i=Rf(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Xs(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Xs(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ug(i.pathname,s)!=null||ug(i.pathname,o)!=null}const lA={black:"#000",white:"#fff"},zl=lA,uA={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Bo=uA,cA={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Uo=cA,dA={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Wo=dA,fA={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ho=fA,pA={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Go=pA,hA={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ra=hA,mA={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},gA=mA;function Zs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function qP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var yA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xA=qP(function(e){return yA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function wA(e){if(e.sheet)return e.sheet;for(var t=0;t0?yt(da,--Ht):0,Js--,et===10&&(Js=1,If--),et}function rn(){return et=Ht2||Bl(et)>3?"":" "}function IA(e,t){for(;--t&&rn()&&!(et<48||et>102||et>57&&et<65||et>70&&et<97););return Tu(e,jc()+(t<6&&lr()==32&&rn()==32))}function pg(e){for(;rn();)switch(et){case e:return Ht;case 34:case 39:e!==34&&e!==39&&pg(et);break;case 40:e===41&&pg(e);break;case 92:rn();break}return Ht}function LA(e,t){for(;rn()&&e+et!==57;)if(e+et===84&&lr()===47)break;return"/*"+Tu(t,Ht-1)+"*"+Af(e===47?e:rn())}function $A(e){for(;!Bl(lr());)rn();return Tu(e,Ht)}function jA(e){return JP(Fc("",null,null,null,[""],e=ZP(e),0,[0],e))}function Fc(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,h=0,m=1,x=1,g=1,y=0,v="",w=i,C=o,E=r,T=v;x;)switch(h=y,y=rn()){case 40:if(h!=108&&yt(T,d-1)==58){fg(T+=be(Dc(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Dc(y);break;case 9:case 10:case 13:case 32:T+=AA(h);break;case 92:T+=IA(jc()-1,7);continue;case 47:switch(lr()){case 42:case 47:cc(DA(LA(rn(),jc()),t,n),l);break;default:T+="/"}break;case 123*m:a[u++]=nr(T)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+c:g==-1&&(T=be(T,/\f/g,"")),p>0&&nr(T)-d&&cc(p>32?$x(T+";",r,n,d-1):$x(be(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(cc(E=Lx(T,t,n,u,c,i,a,v,w=[],C=[],d),o),y===123)if(c===0)Fc(T,t,E,E,w,o,d,a,C);else switch(f===99&&yt(T,3)===110?100:f){case 100:case 108:case 109:case 115:Fc(e,E,E,r&&cc(Lx(e,E,E,0,0,i,a,v,i,w=[],d),C),i,C,d,a,r?w:C);break;default:Fc(T,E,E,E,[""],C,0,a,C)}}u=c=p=0,m=g=1,v=T="",d=s;break;case 58:d=1+nr(T),p=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&RA()==125)continue}switch(T+=Af(y),y*m){case 38:g=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(nr(T)-1)*g,g=1;break;case 64:lr()===45&&(T+=Dc(rn())),f=lr(),c=d=nr(v=T+=$A(jc())),y++;break;case 45:h===45&&nr(T)==2&&(m=0)}}return o}function Lx(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,f=i===0?o:[""],p=Ev(f),h=0,m=0,x=0;h0?f[g]+" "+y:be(y,/&\f/g,f[g])))&&(l[x++]=v);return Lf(e,t,n,i===0?Sv:a,l,u,c)}function DA(e,t,n){return Lf(e,t,n,KP,Af(OA()),Vl(e,2,-2),0)}function $x(e,t,n,r){return Lf(e,t,n,Cv,Vl(e,0,r),Vl(e,r+1,-1),r)}function Cs(e,t){for(var n="",r=Ev(e),i=0;i6)switch(yt(e,t+1)){case 109:if(yt(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+Md+(yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fg(e,"stretch")?eT(be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(yt(e,t+1)!==115)break;case 6444:switch(yt(e,nr(e)-3-(~fg(e,"!important")&&10))){case 107:return be(e,":",":"+we)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(yt(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+Tt+"$2box$3")+e}break;case 5936:switch(yt(e,t+11)){case 114:return we+e+Tt+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+Tt+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+Tt+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+Tt+e+e}return e}var GA=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Cv:t.return=eT(t.value,t.length);break;case QP:return Cs([Aa(t,{value:be(t.value,"@","@"+we)})],i);case Sv:if(t.length)return _A(t.props,function(o){switch(MA(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cs([Aa(t,{props:[be(o,/:(read-\w+)/,":"+Md+"$1")]})],i);case"::placeholder":return Cs([Aa(t,{props:[be(o,/:(plac\w+)/,":"+we+"input-$1")]}),Aa(t,{props:[be(o,/:(plac\w+)/,":"+Md+"$1")]}),Aa(t,{props:[be(o,/:(plac\w+)/,Tt+"input-$1")]})],i)}return""})}},qA=[GA],tT=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||qA,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),g=1;g=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sI=/[A-Z]|^ms/g,aI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lT=function(t){return t.charCodeAt(1)===45},Dx=function(t){return t!=null&&typeof t!="boolean"},vh=qP(function(e){return lT(e)?e:e.replace(sI,"-$&").toLowerCase()}),Fx=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(aI,function(r,i,o){return rr={name:i,styles:o,next:rr},i})}return oI[t]!==1&&!lT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ul(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return rr={name:n.name,styles:n.styles,next:rr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)rr={name:r.name,styles:r.styles,next:rr},r=r.next;var i=n.styles+";";return i}return lI(e,t,n)}case"function":{if(e!==void 0){var o=rr,s=n(e);return rr=o,Ul(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function lI(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?pI:hI},Ux=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},mI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return sT(n,r,i),cI(function(){return aT(n,r,i)}),null},gI=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Ux(t,n,r),l=a||Bx(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(xI(i)?n:i):t;return S.jsx(fI,{styles:r})}function hT(e,t){return hg(e,t)}const wI=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},bI=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:pT,StyledEngineProvider:yI,ThemeContext:ku,css:Hf,default:hT,internal_processStyles:wI,keyframes:da},Symbol.toStringTag,{value:"Module"}));function ai(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mT(e){if(!ai(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=mT(e[n])}),t}function ur(e,t,n={clone:!0}){const r=n.clone?R({},e):e;return ai(e)&&ai(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ai(t[i])&&i in e&&ai(e[i])?r[i]=ur(e[i],t[i],n):n.clone?r[i]=ai(t[i])?mT(t[i]):t[i]:r[i]=t[i])}),r}const SI=Object.freeze(Object.defineProperty({__proto__:null,default:ur,isPlainObject:ai},Symbol.toStringTag,{value:"Module"})),CI=["values","unit","step"],EI=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>R({},n,{[r.key]:r.val}),{})};function gT(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=se(e,CI),o=EI(t),s=Object.keys(o);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const h=s.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:p)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Ov[e]}px)`};function jr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Wx;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Wx;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||Ov).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function kI(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function MI(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Y(e){if(typeof e!="string")throw new Error(Xs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const OI=Object.freeze(Object.defineProperty({__proto__:null,default:Y},Symbol.toStringTag,{value:"Module"}));function Js(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Od(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Js(e,n)||r,t&&(i=t(i,r,e)),i}function Ye(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Js(l,r)||{};return jr(s,a,d=>{let f=Od(u,i,d);return d===f&&typeof d=="string"&&(f=Od(u,i,`${t}${d==="default"?"":Y(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function RI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _I={m:"margin",p:"padding"},AI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Hx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},II=RI(e=>{if(e.length>2)if(Hx[e])e=Hx[e];else return[e];const[t,n]=e.split(""),r=_I[t],i=AI[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Rv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_v=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Rv,..._v];function Mu(e,t,n,r){var i;const o=(i=Js(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function vT(e){return Mu(e,"spacing",8)}function Ou(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function LI(e,t){return n=>e.reduce((r,i)=>(r[i]=Ou(t,n),r),{})}function $I(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=II(n),o=LI(i,r),s=e[n];return jr(e,s,o)}function yT(e,t){const n=vT(e.theme);return Object.keys(e).map(r=>$I(e,t,r,n)).reduce(sl,{})}function ze(e){return yT(e,Rv)}ze.propTypes={};ze.filterProps=Rv;function Ve(e){return yT(e,_v)}Ve.propTypes={};Ve.filterProps=_v;function jI(e=8){if(e.mui)return e;const t=vT({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Gf(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?sl(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function wn(e){return typeof e!="number"?e:`${e}px solid`}function Rn(e,t){return Ye({prop:e,themeKey:"borders",transform:t})}const DI=Rn("border",wn),FI=Rn("borderTop",wn),NI=Rn("borderRight",wn),zI=Rn("borderBottom",wn),VI=Rn("borderLeft",wn),BI=Rn("borderColor"),UI=Rn("borderTopColor"),WI=Rn("borderRightColor"),HI=Rn("borderBottomColor"),GI=Rn("borderLeftColor"),qI=Rn("outline",wn),KI=Rn("outlineColor"),qf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Mu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ou(t,r)});return jr(e,e.borderRadius,n)}return null};qf.propTypes={};qf.filterProps=["borderRadius"];Gf(DI,FI,NI,zI,VI,BI,UI,WI,HI,GI,qf,qI,KI);const Kf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Mu(e.theme,"spacing",8),n=r=>({gap:Ou(t,r)});return jr(e,e.gap,n)}return null};Kf.propTypes={};Kf.filterProps=["gap"];const Qf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Mu(e.theme,"spacing",8),n=r=>({columnGap:Ou(t,r)});return jr(e,e.columnGap,n)}return null};Qf.propTypes={};Qf.filterProps=["columnGap"];const Yf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Mu(e.theme,"spacing",8),n=r=>({rowGap:Ou(t,r)});return jr(e,e.rowGap,n)}return null};Yf.propTypes={};Yf.filterProps=["rowGap"];const QI=Ye({prop:"gridColumn"}),YI=Ye({prop:"gridRow"}),XI=Ye({prop:"gridAutoFlow"}),ZI=Ye({prop:"gridAutoColumns"}),JI=Ye({prop:"gridAutoRows"}),e3=Ye({prop:"gridTemplateColumns"}),t3=Ye({prop:"gridTemplateRows"}),n3=Ye({prop:"gridTemplateAreas"}),r3=Ye({prop:"gridArea"});Gf(Kf,Qf,Yf,QI,YI,XI,ZI,JI,e3,t3,n3,r3);function Cs(e,t){return t==="grey"?t:e}const i3=Ye({prop:"color",themeKey:"palette",transform:Cs}),o3=Ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cs}),s3=Ye({prop:"backgroundColor",themeKey:"palette",transform:Cs});Gf(i3,o3,s3);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const a3=Ye({prop:"width",transform:Jt}),Av=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ov[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Jt(n)}};return jr(e,e.maxWidth,t)}return null};Av.filterProps=["maxWidth"];const l3=Ye({prop:"minWidth",transform:Jt}),u3=Ye({prop:"height",transform:Jt}),c3=Ye({prop:"maxHeight",transform:Jt}),d3=Ye({prop:"minHeight",transform:Jt});Ye({prop:"size",cssProperty:"width",transform:Jt});Ye({prop:"size",cssProperty:"height",transform:Jt});const f3=Ye({prop:"boxSizing"});Gf(a3,Av,l3,u3,c3,d3,f3);const p3={border:{themeKey:"borders",transform:wn},borderTop:{themeKey:"borders",transform:wn},borderRight:{themeKey:"borders",transform:wn},borderBottom:{themeKey:"borders",transform:wn},borderLeft:{themeKey:"borders",transform:wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qf},color:{themeKey:"palette",transform:Cs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cs},backgroundColor:{themeKey:"palette",transform:Cs},p:{style:Ve},pt:{style:Ve},pr:{style:Ve},pb:{style:Ve},pl:{style:Ve},px:{style:Ve},py:{style:Ve},padding:{style:Ve},paddingTop:{style:Ve},paddingRight:{style:Ve},paddingBottom:{style:Ve},paddingLeft:{style:Ve},paddingX:{style:Ve},paddingY:{style:Ve},paddingInline:{style:Ve},paddingInlineStart:{style:Ve},paddingInlineEnd:{style:Ve},paddingBlock:{style:Ve},paddingBlockStart:{style:Ve},paddingBlockEnd:{style:Ve},m:{style:ze},mt:{style:ze},mr:{style:ze},mb:{style:ze},ml:{style:ze},mx:{style:ze},my:{style:ze},margin:{style:ze},marginTop:{style:ze},marginRight:{style:ze},marginBottom:{style:ze},marginLeft:{style:ze},marginX:{style:ze},marginY:{style:ze},marginInline:{style:ze},marginInlineStart:{style:ze},marginInlineEnd:{style:ze},marginBlock:{style:ze},marginBlockStart:{style:ze},marginBlockEnd:{style:ze},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Kf},rowGap:{style:Yf},columnGap:{style:Qf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:Av},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ru=p3;function h3(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function m3(e,t){return typeof e=="function"?e(t):e}function xT(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Js(i,u)||{};return d?d(s):jr(s,r,h=>{let m=Od(f,c,h);return h===m&&typeof h=="string"&&(m=Od(f,c,`${n}${h==="default"?"":Y(h)}`,h)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:Ru;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=kI(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const h=m3(u[p],o);if(h!=null)if(typeof h=="object")if(s[p])f=sl(f,e(p,h,o,s));else{const m=jr({theme:o},h,x=>({[p]:x}));h3(m,h)?f[p]=t({sx:h,theme:o}):f=sl(f,m)}else f=sl(f,e(p,h,o,s))}),MI(d,f)}return Array.isArray(i)?i.map(a):a(i)}return t}const _u=xT();_u.filterProps=["sx"];function wT(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const g3=["breakpoints","palette","spacing","shape"];function Iv(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=se(e,g3),a=gT(n),l=jI(i);let u=ur({breakpoints:a,direction:"ltr",components:{},palette:R({mode:"light"},r),spacing:l,shape:R({},TI,o)},s);return u.applyStyles=wT,u=t.reduce((c,d)=>ur(c,d),u),u.unstable_sxConfig=R({},Ru,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return _u({sx:d,theme:this})},u}const v3=Object.freeze(Object.defineProperty({__proto__:null,default:Iv,private_createBreakpoints:gT,unstable_applyStyles:wT},Symbol.toStringTag,{value:"Module"}));function y3(e){return Object.keys(e).length===0}function Lv(e=null){const t=b.useContext(ku);return!t||y3(t)?e:t}const x3=Iv();function Xf(e=x3){return Lv(e)}function w3({styles:e,themeId:t,defaultTheme:n={}}){const r=Xf(n),i=typeof e=="function"?e(t&&r[t]||r):e;return S.jsx(pT,{styles:i})}const b3=["sx"],S3=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ru;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function $v(e){const{sx:t}=e,n=se(e,b3),{systemProps:r,otherProps:i}=S3(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return ai(a)?R({},r,a):r}:o=R({},r,t),R({},i,{sx:o})}const C3=Object.freeze(Object.defineProperty({__proto__:null,default:_u,extendSxProp:$v,unstable_createStyleFunctionSx:xT,unstable_defaultSxConfig:Ru},Symbol.toStringTag,{value:"Module"})),Gx=e=>e,E3=()=>{let e=Gx;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Gx}}},P3=E3(),jv=P3;function bT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(_u);return b.forwardRef(function(l,u){const c=Xf(n),d=$v(l),{className:f,component:p="div"}=d,h=se(d,T3);return S.jsx(o,R({as:p,ref:u,className:oe(f,i?i(r):r),theme:t&&c[t]||c},h))})}const M3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function rt(e,t,n="Mui"){const r=M3[t];return r?`${n}-${r}`:`${jv.generate(e)}-${t}`}function Xe(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=rt(e,i,n)}),r}var ST={exports:{}},Ee={};/** + */var mt=typeof Symbol=="function"&&Symbol.for,Pv=mt?Symbol.for("react.element"):60103,Tv=mt?Symbol.for("react.portal"):60106,$f=mt?Symbol.for("react.fragment"):60107,jf=mt?Symbol.for("react.strict_mode"):60108,Df=mt?Symbol.for("react.profiler"):60114,Ff=mt?Symbol.for("react.provider"):60109,Nf=mt?Symbol.for("react.context"):60110,kv=mt?Symbol.for("react.async_mode"):60111,zf=mt?Symbol.for("react.concurrent_mode"):60111,Vf=mt?Symbol.for("react.forward_ref"):60112,Bf=mt?Symbol.for("react.suspense"):60113,KA=mt?Symbol.for("react.suspense_list"):60120,Uf=mt?Symbol.for("react.memo"):60115,Wf=mt?Symbol.for("react.lazy"):60116,QA=mt?Symbol.for("react.block"):60121,YA=mt?Symbol.for("react.fundamental"):60117,XA=mt?Symbol.for("react.responder"):60118,ZA=mt?Symbol.for("react.scope"):60119;function un(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pv:switch(e=e.type,e){case kv:case zf:case $f:case Df:case jf:case Bf:return e;default:switch(e=e&&e.$$typeof,e){case Nf:case Vf:case Wf:case Uf:case Ff:return e;default:return t}}case Tv:return t}}}function rT(e){return un(e)===zf}Ce.AsyncMode=kv;Ce.ConcurrentMode=zf;Ce.ContextConsumer=Nf;Ce.ContextProvider=Ff;Ce.Element=Pv;Ce.ForwardRef=Vf;Ce.Fragment=$f;Ce.Lazy=Wf;Ce.Memo=Uf;Ce.Portal=Tv;Ce.Profiler=Df;Ce.StrictMode=jf;Ce.Suspense=Bf;Ce.isAsyncMode=function(e){return rT(e)||un(e)===kv};Ce.isConcurrentMode=rT;Ce.isContextConsumer=function(e){return un(e)===Nf};Ce.isContextProvider=function(e){return un(e)===Ff};Ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pv};Ce.isForwardRef=function(e){return un(e)===Vf};Ce.isFragment=function(e){return un(e)===$f};Ce.isLazy=function(e){return un(e)===Wf};Ce.isMemo=function(e){return un(e)===Uf};Ce.isPortal=function(e){return un(e)===Tv};Ce.isProfiler=function(e){return un(e)===Df};Ce.isStrictMode=function(e){return un(e)===jf};Ce.isSuspense=function(e){return un(e)===Bf};Ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$f||e===zf||e===Df||e===jf||e===Bf||e===KA||typeof e=="object"&&e!==null&&(e.$$typeof===Wf||e.$$typeof===Uf||e.$$typeof===Ff||e.$$typeof===Nf||e.$$typeof===Vf||e.$$typeof===YA||e.$$typeof===XA||e.$$typeof===ZA||e.$$typeof===QA)};Ce.typeOf=un;nT.exports=Ce;var JA=nT.exports,iT=JA,eI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oT={};oT[iT.ForwardRef]=eI;oT[iT.Memo]=tI;var nI=!0;function rI(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var sT=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||nI===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},aT=function(t,n,r){sT(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function iI(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sI=/[A-Z]|^ms/g,aI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lT=function(t){return t.charCodeAt(1)===45},Dx=function(t){return t!=null&&typeof t!="boolean"},vh=qP(function(e){return lT(e)?e:e.replace(sI,"-$&").toLowerCase()}),Fx=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(aI,function(r,i,o){return rr={name:i,styles:o,next:rr},i})}return oI[t]!==1&&!lT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ul(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return rr={name:n.name,styles:n.styles,next:rr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)rr={name:r.name,styles:r.styles,next:rr},r=r.next;var i=n.styles+";";return i}return lI(e,t,n)}case"function":{if(e!==void 0){var o=rr,s=n(e);return rr=o,Ul(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function lI(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?pI:hI},Ux=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},mI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return sT(n,r,i),cI(function(){return aT(n,r,i)}),null},gI=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Ux(t,n,r),l=a||Bx(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(xI(i)?n:i):t;return S.jsx(fI,{styles:r})}function hT(e,t){return hg(e,t)}const wI=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},bI=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:pT,StyledEngineProvider:yI,ThemeContext:ku,css:Hf,default:hT,internal_processStyles:wI,keyframes:fa},Symbol.toStringTag,{value:"Module"}));function ai(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mT(e){if(!ai(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=mT(e[n])}),t}function ur(e,t,n={clone:!0}){const r=n.clone?O({},e):e;return ai(e)&&ai(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ai(t[i])&&i in e&&ai(e[i])?r[i]=ur(e[i],t[i],n):n.clone?r[i]=ai(t[i])?mT(t[i]):t[i]:r[i]=t[i])}),r}const SI=Object.freeze(Object.defineProperty({__proto__:null,default:ur,isPlainObject:ai},Symbol.toStringTag,{value:"Module"})),CI=["values","unit","step"],EI=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>O({},n,{[r.key]:r.val}),{})};function gT(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=se(e,CI),o=EI(t),s=Object.keys(o);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const h=s.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:p)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${_v[e]}px)`};function jr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Wx;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Wx;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||_v).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function kI(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function MI(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Y(e){if(typeof e!="string")throw new Error(Zs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const _I=Object.freeze(Object.defineProperty({__proto__:null,default:Y},Symbol.toStringTag,{value:"Module"}));function ea(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function _d(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ea(e,n)||r,t&&(i=t(i,r,e)),i}function Ye(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=ea(l,r)||{};return jr(s,a,d=>{let f=_d(u,i,d);return d===f&&typeof d=="string"&&(f=_d(u,i,`${t}${d==="default"?"":Y(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function OI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const RI={m:"margin",p:"padding"},AI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Hx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},II=OI(e=>{if(e.length>2)if(Hx[e])e=Hx[e];else return[e];const[t,n]=e.split(""),r=RI[t],i=AI[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Ov=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ov,...Rv];function Mu(e,t,n,r){var i;const o=(i=ea(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function vT(e){return Mu(e,"spacing",8)}function _u(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function LI(e,t){return n=>e.reduce((r,i)=>(r[i]=_u(t,n),r),{})}function $I(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=II(n),o=LI(i,r),s=e[n];return jr(e,s,o)}function yT(e,t){const n=vT(e.theme);return Object.keys(e).map(r=>$I(e,t,r,n)).reduce(sl,{})}function ze(e){return yT(e,Ov)}ze.propTypes={};ze.filterProps=Ov;function Ve(e){return yT(e,Rv)}Ve.propTypes={};Ve.filterProps=Rv;function jI(e=8){if(e.mui)return e;const t=vT({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Gf(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?sl(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function wn(e){return typeof e!="number"?e:`${e}px solid`}function On(e,t){return Ye({prop:e,themeKey:"borders",transform:t})}const DI=On("border",wn),FI=On("borderTop",wn),NI=On("borderRight",wn),zI=On("borderBottom",wn),VI=On("borderLeft",wn),BI=On("borderColor"),UI=On("borderTopColor"),WI=On("borderRightColor"),HI=On("borderBottomColor"),GI=On("borderLeftColor"),qI=On("outline",wn),KI=On("outlineColor"),qf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Mu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:_u(t,r)});return jr(e,e.borderRadius,n)}return null};qf.propTypes={};qf.filterProps=["borderRadius"];Gf(DI,FI,NI,zI,VI,BI,UI,WI,HI,GI,qf,qI,KI);const Kf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Mu(e.theme,"spacing",8),n=r=>({gap:_u(t,r)});return jr(e,e.gap,n)}return null};Kf.propTypes={};Kf.filterProps=["gap"];const Qf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Mu(e.theme,"spacing",8),n=r=>({columnGap:_u(t,r)});return jr(e,e.columnGap,n)}return null};Qf.propTypes={};Qf.filterProps=["columnGap"];const Yf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Mu(e.theme,"spacing",8),n=r=>({rowGap:_u(t,r)});return jr(e,e.rowGap,n)}return null};Yf.propTypes={};Yf.filterProps=["rowGap"];const QI=Ye({prop:"gridColumn"}),YI=Ye({prop:"gridRow"}),XI=Ye({prop:"gridAutoFlow"}),ZI=Ye({prop:"gridAutoColumns"}),JI=Ye({prop:"gridAutoRows"}),e3=Ye({prop:"gridTemplateColumns"}),t3=Ye({prop:"gridTemplateRows"}),n3=Ye({prop:"gridTemplateAreas"}),r3=Ye({prop:"gridArea"});Gf(Kf,Qf,Yf,QI,YI,XI,ZI,JI,e3,t3,n3,r3);function Es(e,t){return t==="grey"?t:e}const i3=Ye({prop:"color",themeKey:"palette",transform:Es}),o3=Ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Es}),s3=Ye({prop:"backgroundColor",themeKey:"palette",transform:Es});Gf(i3,o3,s3);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const a3=Ye({prop:"width",transform:Jt}),Av=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||_v[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Jt(n)}};return jr(e,e.maxWidth,t)}return null};Av.filterProps=["maxWidth"];const l3=Ye({prop:"minWidth",transform:Jt}),u3=Ye({prop:"height",transform:Jt}),c3=Ye({prop:"maxHeight",transform:Jt}),d3=Ye({prop:"minHeight",transform:Jt});Ye({prop:"size",cssProperty:"width",transform:Jt});Ye({prop:"size",cssProperty:"height",transform:Jt});const f3=Ye({prop:"boxSizing"});Gf(a3,Av,l3,u3,c3,d3,f3);const p3={border:{themeKey:"borders",transform:wn},borderTop:{themeKey:"borders",transform:wn},borderRight:{themeKey:"borders",transform:wn},borderBottom:{themeKey:"borders",transform:wn},borderLeft:{themeKey:"borders",transform:wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qf},color:{themeKey:"palette",transform:Es},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Es},backgroundColor:{themeKey:"palette",transform:Es},p:{style:Ve},pt:{style:Ve},pr:{style:Ve},pb:{style:Ve},pl:{style:Ve},px:{style:Ve},py:{style:Ve},padding:{style:Ve},paddingTop:{style:Ve},paddingRight:{style:Ve},paddingBottom:{style:Ve},paddingLeft:{style:Ve},paddingX:{style:Ve},paddingY:{style:Ve},paddingInline:{style:Ve},paddingInlineStart:{style:Ve},paddingInlineEnd:{style:Ve},paddingBlock:{style:Ve},paddingBlockStart:{style:Ve},paddingBlockEnd:{style:Ve},m:{style:ze},mt:{style:ze},mr:{style:ze},mb:{style:ze},ml:{style:ze},mx:{style:ze},my:{style:ze},margin:{style:ze},marginTop:{style:ze},marginRight:{style:ze},marginBottom:{style:ze},marginLeft:{style:ze},marginX:{style:ze},marginY:{style:ze},marginInline:{style:ze},marginInlineStart:{style:ze},marginInlineEnd:{style:ze},marginBlock:{style:ze},marginBlockStart:{style:ze},marginBlockEnd:{style:ze},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Kf},rowGap:{style:Yf},columnGap:{style:Qf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:Av},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ou=p3;function h3(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function m3(e,t){return typeof e=="function"?e(t):e}function xT(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=ea(i,u)||{};return d?d(s):jr(s,r,h=>{let m=_d(f,c,h);return h===m&&typeof h=="string"&&(m=_d(f,c,`${n}${h==="default"?"":Y(h)}`,h)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:Ou;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=kI(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const h=m3(u[p],o);if(h!=null)if(typeof h=="object")if(s[p])f=sl(f,e(p,h,o,s));else{const m=jr({theme:o},h,x=>({[p]:x}));h3(m,h)?f[p]=t({sx:h,theme:o}):f=sl(f,m)}else f=sl(f,e(p,h,o,s))}),MI(d,f)}return Array.isArray(i)?i.map(a):a(i)}return t}const Ru=xT();Ru.filterProps=["sx"];function wT(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const g3=["breakpoints","palette","spacing","shape"];function Iv(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=se(e,g3),a=gT(n),l=jI(i);let u=ur({breakpoints:a,direction:"ltr",components:{},palette:O({mode:"light"},r),spacing:l,shape:O({},TI,o)},s);return u.applyStyles=wT,u=t.reduce((c,d)=>ur(c,d),u),u.unstable_sxConfig=O({},Ou,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Ru({sx:d,theme:this})},u}const v3=Object.freeze(Object.defineProperty({__proto__:null,default:Iv,private_createBreakpoints:gT,unstable_applyStyles:wT},Symbol.toStringTag,{value:"Module"}));function y3(e){return Object.keys(e).length===0}function Lv(e=null){const t=b.useContext(ku);return!t||y3(t)?e:t}const x3=Iv();function Xf(e=x3){return Lv(e)}function w3({styles:e,themeId:t,defaultTheme:n={}}){const r=Xf(n),i=typeof e=="function"?e(t&&r[t]||r):e;return S.jsx(pT,{styles:i})}const b3=["sx"],S3=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ou;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function $v(e){const{sx:t}=e,n=se(e,b3),{systemProps:r,otherProps:i}=S3(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return ai(a)?O({},r,a):r}:o=O({},r,t),O({},i,{sx:o})}const C3=Object.freeze(Object.defineProperty({__proto__:null,default:Ru,extendSxProp:$v,unstable_createStyleFunctionSx:xT,unstable_defaultSxConfig:Ou},Symbol.toStringTag,{value:"Module"})),Gx=e=>e,E3=()=>{let e=Gx;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Gx}}},P3=E3(),jv=P3;function bT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Ru);return b.forwardRef(function(l,u){const c=Xf(n),d=$v(l),{className:f,component:p="div"}=d,h=se(d,T3);return S.jsx(o,O({as:p,ref:u,className:oe(f,i?i(r):r),theme:t&&c[t]||c},h))})}const M3={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function rt(e,t,n="Mui"){const r=M3[t];return r?`${n}-${r}`:`${jv.generate(e)}-${t}`}function Xe(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=rt(e,i,n)}),r}var ST={exports:{}},Ee={};/** * @license React * react-is.production.min.js * @@ -85,7 +85,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Dv=Symbol.for("react.element"),Fv=Symbol.for("react.portal"),Zf=Symbol.for("react.fragment"),Jf=Symbol.for("react.strict_mode"),ep=Symbol.for("react.profiler"),tp=Symbol.for("react.provider"),np=Symbol.for("react.context"),O3=Symbol.for("react.server_context"),rp=Symbol.for("react.forward_ref"),ip=Symbol.for("react.suspense"),op=Symbol.for("react.suspense_list"),sp=Symbol.for("react.memo"),ap=Symbol.for("react.lazy"),R3=Symbol.for("react.offscreen"),CT;CT=Symbol.for("react.module.reference");function _n(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dv:switch(e=e.type,e){case Zf:case ep:case Jf:case ip:case op:return e;default:switch(e=e&&e.$$typeof,e){case O3:case np:case rp:case ap:case sp:case tp:return e;default:return t}}case Fv:return t}}}Ee.ContextConsumer=np;Ee.ContextProvider=tp;Ee.Element=Dv;Ee.ForwardRef=rp;Ee.Fragment=Zf;Ee.Lazy=ap;Ee.Memo=sp;Ee.Portal=Fv;Ee.Profiler=ep;Ee.StrictMode=Jf;Ee.Suspense=ip;Ee.SuspenseList=op;Ee.isAsyncMode=function(){return!1};Ee.isConcurrentMode=function(){return!1};Ee.isContextConsumer=function(e){return _n(e)===np};Ee.isContextProvider=function(e){return _n(e)===tp};Ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dv};Ee.isForwardRef=function(e){return _n(e)===rp};Ee.isFragment=function(e){return _n(e)===Zf};Ee.isLazy=function(e){return _n(e)===ap};Ee.isMemo=function(e){return _n(e)===sp};Ee.isPortal=function(e){return _n(e)===Fv};Ee.isProfiler=function(e){return _n(e)===ep};Ee.isStrictMode=function(e){return _n(e)===Jf};Ee.isSuspense=function(e){return _n(e)===ip};Ee.isSuspenseList=function(e){return _n(e)===op};Ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zf||e===ep||e===Jf||e===ip||e===op||e===R3||typeof e=="object"&&e!==null&&(e.$$typeof===ap||e.$$typeof===sp||e.$$typeof===tp||e.$$typeof===np||e.$$typeof===rp||e.$$typeof===CT||e.getModuleId!==void 0)};Ee.typeOf=_n;ST.exports=Ee;var qx=ST.exports;const _3=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ET(e){const t=`${e}`.match(_3);return t&&t[1]||""}function PT(e,t=""){return e.displayName||e.name||ET(e)||t}function Kx(e,t,n){const r=PT(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function A3(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return PT(e,"Component");if(typeof e=="object")switch(e.$$typeof){case qx.ForwardRef:return Kx(e,e.render,"ForwardRef");case qx.Memo:return Kx(e,e.type,"memo");default:return}}}const I3=Object.freeze(Object.defineProperty({__proto__:null,default:A3,getFunctionName:ET},Symbol.toStringTag,{value:"Module"}));function TT(e,t){const n=R({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=R({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=R({},o),Object.keys(i).forEach(s=>{n[r][s]=TT(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kT(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:TT(t.components[n].defaultProps,r)}function L3({props:e,name:t,defaultTheme:n,themeId:r}){let i=Xf(n);return r&&(i=i[r]||i),kT({theme:i,name:t,props:e})}const Ni=typeof window<"u"?b.useLayoutEffect:b.useEffect;function $3(e,t,n,r,i){const[o,s]=b.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ni(()=>{let a=!0;if(!n)return;const l=n(e),u=()=>{a&&s(l.matches)};return u(),l.addListener(u),()=>{a=!1,l.removeListener(u)}},[e,n]),o}const MT=b.useSyncExternalStore;function j3(e,t,n,r,i){const o=b.useCallback(()=>t,[t]),s=b.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[a,l]=b.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return MT(l,a,s)}function D3(e,t={}){const n=Lv(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=kT({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(MT!==void 0?j3:$3)(l,i,o,s,a)}function F3(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const N3=Object.freeze(Object.defineProperty({__proto__:null,default:F3},Symbol.toStringTag,{value:"Module"}));function gg(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Nv(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function z3(e,t){return()=>null}function V3(e,t){var n,r;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Tr(e){return e&&e.ownerDocument||document}function zi(e){return Tr(e).defaultView||window}function B3(e,t){return()=>null}function Rd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Qx=0;function U3(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(Qx+=1,n(`mui-${Qx}`))},[t]),r}const Yx=ed.useId;function W3(e){if(Yx!==void 0){const t=Yx();return e??t}return U3(e)}function H3(e,t,n,r,i){return null}function G3({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=b.useRef(e!==void 0),[o,s]=b.useState(t),a=i?e:o,l=b.useCallback(u=>{i||s(u)},[]);return[a,l]}function uo(e){const t=b.useRef(e);return Ni(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Gt(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Rd(n,t)})},e)}const Xx={};function q3(e,t){const n=b.useRef(Xx);return n.current===Xx&&(n.current=e(t)),n}const K3=[];function Q3(e){b.useEffect(e,K3)}class lp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new lp}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Y3(){const e=q3(lp.create).current;return Q3(e.disposeEffect),e}let up=!0,vg=!1;const X3=new lp,Z3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function J3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Z3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function e4(e){e.metaKey||e.altKey||e.ctrlKey||(up=!0)}function xh(){up=!1}function t4(){this.visibilityState==="hidden"&&vg&&(up=!0)}function n4(e){e.addEventListener("keydown",e4,!0),e.addEventListener("mousedown",xh,!0),e.addEventListener("pointerdown",xh,!0),e.addEventListener("touchstart",xh,!0),e.addEventListener("visibilitychange",t4,!0)}function r4(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return up||J3(t)}function zv(){const e=b.useCallback(i=>{i!=null&&n4(i.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(vg=!0,X3.start(100,()=>{vg=!1}),t.current=!1,!0):!1}function r(i){return r4(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function i4(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function at(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const o4=b.createContext(null),OT=o4;function RT(){return b.useContext(OT)}const s4=typeof Symbol=="function"&&Symbol.for,a4=s4?Symbol.for("mui.nested"):"__THEME_NESTED__";function l4(e,t){return typeof t=="function"?t(e):R({},e,t)}function u4(e){const{children:t,theme:n}=e,r=RT(),i=b.useMemo(()=>{const o=r===null?n:l4(r,n);return o!=null&&(o[a4]=r!==null),o},[n,r]);return S.jsx(OT.Provider,{value:i,children:t})}const c4=["value"],_T=b.createContext();function d4(e){let{value:t}=e,n=se(e,c4);return S.jsx(_T.Provider,R({value:t??!0},n))}const f4=()=>{const e=b.useContext(_T);return e??!1},Zx={};function Jx(e,t,n,r=!1){return b.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?R({},t,{[e]:o}):o;return r?()=>s:s}return e?R({},t,{[e]:n}):R({},t,n)},[e,t,n,r])}function p4(e){const{children:t,theme:n,themeId:r}=e,i=Lv(Zx),o=RT()||Zx,s=Jx(r,i,n),a=Jx(r,o,n,!0),l=s.direction==="rtl";return S.jsx(u4,{theme:a,children:S.jsx(ku.Provider,{value:s,children:S.jsx(d4,{value:l,children:t})})})}function h4(e,t){return R({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ze={},AT={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(AT);var Vv=AT.exports;const m4=Fr(vA),g4=Fr(N3);var IT=Vv;Object.defineProperty(Ze,"__esModule",{value:!0});var kt=Ze.alpha=DT;Ze.blend=k4;Ze.colorChannel=void 0;var yg=Ze.darken=Uv;Ze.decomposeColor=On;Ze.emphasize=FT;var v4=Ze.getContrastRatio=S4;Ze.getLuminance=_d;Ze.hexToRgb=LT;Ze.hslToRgb=jT;var xg=Ze.lighten=Wv;Ze.private_safeAlpha=C4;Ze.private_safeColorChannel=void 0;Ze.private_safeDarken=E4;Ze.private_safeEmphasize=T4;Ze.private_safeLighten=P4;Ze.recomposeColor=fa;Ze.rgbToHex=b4;var ew=IT(m4),y4=IT(g4);function Bv(e,t=0,n=1){return(0,y4.default)(e,t,n)}function LT(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function x4(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function On(e){if(e.type)return e;if(e.charAt(0)==="#")return On(LT(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,ew.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,ew.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const $T=e=>{const t=On(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ze.colorChannel=$T;const w4=(e,t)=>{try{return $T(e)}catch{return e}};Ze.private_safeColorChannel=w4;function fa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function b4(e){if(e.indexOf("#")===0)return e;const{values:t}=On(e);return`#${t.map((n,r)=>x4(r===3?Math.round(255*n):n)).join("")}`}function jT(e){e=On(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),fa({type:a,values:l})}function _d(e){e=On(e);let t=e.type==="hsl"||e.type==="hsla"?On(jT(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function S4(e,t){const n=_d(e),r=_d(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function DT(e,t){return e=On(e),t=Bv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fa(e)}function C4(e,t,n){try{return DT(e,t)}catch{return e}}function Uv(e,t){if(e=On(e),t=Bv(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return fa(e)}function E4(e,t,n){try{return Uv(e,t)}catch{return e}}function Wv(e,t){if(e=On(e),t=Bv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return fa(e)}function P4(e,t,n){try{return Wv(e,t)}catch{return e}}function FT(e,t=.15){return _d(e)>.5?Uv(e,t):Wv(e,t)}function T4(e,t,n){try{return FT(e,t)}catch{return e}}function k4(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),o=On(e),s=On(t),a=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return fa({type:"rgb",values:a})}const M4=["mode","contrastThreshold","tonalOffset"],tw={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zl.white,default:zl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},wh={text:{primary:zl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function nw(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=xg(e.main,i):t==="dark"&&(e.dark=yg(e.main,o)))}function O4(e="light"){return e==="dark"?{main:Uo[200],light:Uo[50],dark:Uo[400]}:{main:Uo[700],light:Uo[400],dark:Uo[800]}}function R4(e="light"){return e==="dark"?{main:Bo[200],light:Bo[50],dark:Bo[400]}:{main:Bo[500],light:Bo[300],dark:Bo[700]}}function _4(e="light"){return e==="dark"?{main:Vo[500],light:Vo[300],dark:Vo[700]}:{main:Vo[700],light:Vo[400],dark:Vo[800]}}function A4(e="light"){return e==="dark"?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[700],light:Wo[500],dark:Wo[900]}}function I4(e="light"){return e==="dark"?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:Ho[800],light:Ho[500],dark:Ho[900]}}function L4(e="light"){return e==="dark"?{main:_a[400],light:_a[300],dark:_a[700]}:{main:"#ed6c02",light:_a[500],dark:_a[900]}}function $4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=se(e,M4),o=e.primary||O4(t),s=e.secondary||R4(t),a=e.error||_4(t),l=e.info||A4(t),u=e.success||I4(t),c=e.warning||L4(t);function d(m){return v4(m,wh.text.primary)>=n?wh.text.primary:tw.text.primary}const f=({color:m,name:x,mainShade:g=500,lightShade:y=300,darkShade:v=700})=>{if(m=R({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(Xs(11,x?` (${x})`:"",g));if(typeof m.main!="string")throw new Error(Xs(12,x?` (${x})`:"",JSON.stringify(m.main)));return nw(m,"light",y,r),nw(m,"dark",v,r),m.contrastText||(m.contrastText=d(m.main)),m},p={dark:wh,light:tw};return ur(R({common:R({},zl),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:gA,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),i)}const j4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function D4(e){return Math.round(e*1e5)/1e5}const rw={textTransform:"uppercase"},iw='"Roboto", "Helvetica", "Arial", sans-serif';function F4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=iw,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=se(n,j4),p=i/14,h=d||(g=>`${g/u*p}rem`),m=(g,y,v,w,C)=>R({fontFamily:r,fontWeight:g,fontSize:h(y),lineHeight:v},r===iw?{letterSpacing:`${D4(w/y)}em`}:{},C,c),x={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,rw),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,rw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ur(R({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},x),f,{clone:!1})}const N4=.2,z4=.14,V4=.12;function Ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${N4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${z4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${V4})`].join(",")}const B4=["none",Ie(0,2,1,-1,0,1,1,0,0,1,3,0),Ie(0,3,1,-2,0,2,2,0,0,1,5,0),Ie(0,3,3,-2,0,3,4,0,0,1,8,0),Ie(0,2,4,-1,0,4,5,0,0,1,10,0),Ie(0,3,5,-1,0,5,8,0,0,1,14,0),Ie(0,3,5,-1,0,6,10,0,0,1,18,0),Ie(0,4,5,-2,0,7,10,1,0,2,16,1),Ie(0,5,5,-3,0,8,10,1,0,3,14,2),Ie(0,5,6,-3,0,9,12,1,0,3,16,2),Ie(0,6,6,-3,0,10,14,1,0,4,18,3),Ie(0,6,7,-4,0,11,15,1,0,4,20,3),Ie(0,7,8,-4,0,12,17,2,0,5,22,4),Ie(0,7,8,-4,0,13,19,2,0,5,24,4),Ie(0,7,9,-4,0,14,21,2,0,5,26,4),Ie(0,8,9,-5,0,15,22,2,0,6,28,5),Ie(0,8,10,-5,0,16,24,2,0,6,30,5),Ie(0,8,11,-5,0,17,26,2,0,6,32,5),Ie(0,9,11,-5,0,18,28,2,0,7,34,6),Ie(0,9,12,-6,0,19,29,2,0,7,36,6),Ie(0,10,13,-6,0,20,31,3,0,8,38,7),Ie(0,10,13,-6,0,21,33,3,0,8,40,7),Ie(0,10,14,-6,0,22,35,3,0,8,42,7),Ie(0,11,14,-7,0,23,36,3,0,9,44,8),Ie(0,11,15,-7,0,24,38,3,0,9,46,8)],U4=["duration","easing","delay"],W4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},H4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ow(e){return`${Math.round(e)}ms`}function G4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function q4(e){const t=R({},W4,e.easing),n=R({},H4,e.duration);return R({getAutoHeightDuration:G4,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o;return se(o,U4),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:ow(s)} ${a} ${typeof l=="string"?l:ow(l)}`).join(",")}},e,{easing:t,duration:n})}const K4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Q4=K4,Y4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Hv(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=se(e,Y4);if(e.vars)throw new Error(Xs(18));const a=$4(r),l=Iv(e);let u=ur(l,{mixins:h4(l.breakpoints,n),palette:a,shadows:B4.slice(),typography:F4(a,o),transitions:q4(i),zIndex:R({},Q4)});return u=ur(u,s),u=t.reduce((c,d)=>ur(c,d),u),u.unstable_sxConfig=R({},Ru,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return _u({sx:d,theme:this})},u}const X4=Hv(),cp=X4;function Gv(){const e=Xf(cp);return e[_o]||e}function it({props:e,name:t}){return L3({props:e,name:t,defaultTheme:cp,themeId:_o})}var Au={},bh={exports:{}},sw;function Z4(){return sw||(sw=1,function(e){function t(n,r){if(n==null)return{};var i={},o=Object.keys(n),s,a;for(a=0;a=0)&&(i[s]=n[s]);return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(bh)),bh.exports}const J4=Fr(bI),eL=Fr(SI),tL=Fr(OI),nL=Fr(I3),rL=Fr(v3),iL=Fr(C3);var pa=Vv;Object.defineProperty(Au,"__esModule",{value:!0});var oL=Au.default=yL;Au.shouldForwardProp=Nc;Au.systemDefaultTheme=void 0;var mn=pa(fT()),wg=pa(Z4()),aw=fL(J4),sL=eL;pa(tL);pa(nL);var aL=pa(rL),lL=pa(iL);const uL=["ownerState"],cL=["variants"],dL=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function NT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(NT=function(r){return r?n:t})(e)}function fL(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=NT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function pL(e){return Object.keys(e).length===0}function hL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mL=Au.systemDefaultTheme=(0,aL.default)(),gL=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dc({defaultTheme:e,theme:t,themeId:n}){return pL(t)?e:t[n]||t}function vL(e){return e?(t,n)=>n[e]:null}function zc(e,t){let{ownerState:n}=t,r=(0,wg.default)(t,uL);const i=typeof e=="function"?e((0,mn.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>zc(o,(0,mn.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let a=(0,wg.default)(i,cL);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,mn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,mn.default)({ownerState:n},r,n)):l.style))}),a}return i}function yL(e={}){const{themeId:t,defaultTheme:n=mL,rootShouldForwardProp:r=Nc,slotShouldForwardProp:i=Nc}=e,o=s=>(0,lL.default)((0,mn.default)({},s,{theme:dc((0,mn.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{(0,aw.internal_processStyles)(s,C=>C.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=vL(gL(u))}=a,p=(0,wg.default)(a,dL),h=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=d||!1;let x,g=Nc;u==="Root"||u==="root"?g=r:u?g=i:hL(s)&&(g=void 0);const y=(0,aw.default)(s,(0,mn.default)({shouldForwardProp:g,label:x},p)),v=C=>typeof C=="function"&&C.__emotion_real!==C||(0,sL.isPlainObject)(C)?E=>zc(C,(0,mn.default)({},E,{theme:dc({theme:E.theme,defaultTheme:n,themeId:t})})):C,w=(C,...E)=>{let T=v(C);const P=E?E.map(v):[];l&&f&&P.push(A=>{const I=dc((0,mn.default)({},A,{defaultTheme:n,themeId:t}));if(!I.components||!I.components[l]||!I.components[l].styleOverrides)return null;const $=I.components[l].styleOverrides,D={};return Object.entries($).forEach(([B,N])=>{D[B]=zc(N,(0,mn.default)({},A,{theme:I}))}),f(A,D)}),l&&!h&&P.push(A=>{var I;const $=dc((0,mn.default)({},A,{defaultTheme:n,themeId:t})),D=$==null||(I=$.components)==null||(I=I[l])==null?void 0:I.variants;return zc({variants:D},(0,mn.default)({},A,{theme:$}))}),m||P.push(o);const M=P.length-E.length;if(Array.isArray(C)&&M>0){const A=new Array(M).fill("");T=[...C,...A],T.raw=[...C.raw,...A]}const k=y(T,...P);return s.muiName&&(k.muiName=s.muiName),k};return y.withConfig&&(w.withConfig=y.withConfig),w}}function xL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iu=e=>xL(e)&&e!=="classes",le=oL({themeId:_o,defaultTheme:cp,rootShouldForwardProp:Iu}),wL=["theme"];function bL(e){let{theme:t}=e,n=se(e,wL);const r=t[_o];return S.jsx(p4,R({},n,{themeId:r?_o:void 0,theme:r||t}))}const lw=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function SL(e){return rt("MuiSvgIcon",e)}Xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CL=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],EL=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Y(t)}`,`fontSize${Y(n)}`]};return at(i,SL,r)},PL=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),bg=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=se(r,CL),h=b.isValidElement(i)&&i.type==="svg",m=R({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),x={};c||(x.viewBox=f);const g=EL(m);return S.jsxs(PL,R({as:a,className:oe(g.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},x,p,h&&i.props,{ownerState:m,children:[h?i.props.children:i,d?S.jsx("title",{children:d}):null]}))});bg.muiName="SvgIcon";function qt(e,t){function n(r,i){return S.jsx(bg,R({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=bg.muiName,b.memo(b.forwardRef(n))}const TL={configure:e=>{jv.configure(e)}},kL=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Y,createChainedFunction:gg,createSvgIcon:qt,debounce:Nv,deprecatedPropType:z3,isMuiElement:V3,ownerDocument:Tr,ownerWindow:zi,requirePropFactory:B3,setRef:Rd,unstable_ClassNameGenerator:TL,unstable_useEnhancedEffect:Ni,unstable_useId:W3,unsupportedProp:H3,useControlled:G3,useEventCallback:uo,useForkRef:Gt,useIsFocusVisible:zv},Symbol.toStringTag,{value:"Module"}));function zT(e){return it}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sg(e,t)}function VT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sg(e,t)}const uw={disabled:!1},Ad=W.createContext(null);var ML=function(t){return t.scrollTop},Ga="unmounted",to="exited",no="entering",Yo="entered",Cg="exiting",Vr=function(e){VT(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?a?(l=to,o.appearStatus=no):l=Yo:r.unmountOnExit||r.mountOnEnter?l=Ga:l=to,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Ga?{status:to}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==no&&s!==Yo&&(o=no):(s===no||s===Yo)&&(o=Cg)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===no){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:uc.findDOMNode(this);s&&ML(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===to&&this.setState({status:Ga})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[uc.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!s||uw.disabled){this.safeSetState({status:Yo},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:no},function(){o.props.onEntering(u,c),o.onTransitionEnd(f,function(){o.safeSetState({status:Yo},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:uc.findDOMNode(this);if(!o||uw.disabled){this.safeSetState({status:to},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Cg},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:to},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:uc.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ga)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=se(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(Ad.Provider,{value:null},typeof s=="function"?s(i,a):W.cloneElement(W.Children.only(s),a))},t}(W.Component);Vr.contextType=Ad;Vr.propTypes={};function Go(){}Vr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Go,onEntering:Go,onEntered:Go,onExit:Go,onExiting:Go,onExited:Go};Vr.UNMOUNTED=Ga;Vr.EXITED=to;Vr.ENTERING=no;Vr.ENTERED=Yo;Vr.EXITING=Cg;const BT=Vr;function OL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qv(e,t){var n=function(o){return t&&b.isValidElement(o)?t(o):o},r=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function RL(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function Id(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function jL(e){return rt("MuiPaper",e)}Xe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const DL=["className","component","elevation","square","variant"],FL=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return at(o,jL,i)},NL=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return R({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&R({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${kt("#fff",lw(t.elevation))}, ${kt("#fff",lw(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),zL=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,u=se(r,DL),c=R({},r,{component:o,elevation:s,square:a,variant:l}),d=FL(c);return S.jsx(NL,R({as:o,ownerState:c,className:oe(d.root,i),ref:n},u))}),ea=zL;function Eg(e){return typeof e=="string"}function WT(e,t,n){return e===void 0||Eg(e)?t:R({},t,{ownerState:R({},t.ownerState,n)})}function HT(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function GT(e,t,n){return typeof e=="function"?e(t,n):e}function cw(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function qT(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const p=oe(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=R({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=R({},n,i,r);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=HT(R({},i,r)),a=cw(r),l=cw(i),u=t(s),c=oe(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=R({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=R({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const VL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function dw(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=se(e,VL),a=o?{}:GT(r,i),{props:l,internalRef:u}=qT(R({},s,{externalSlotProps:a})),c=Gt(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return WT(n,R({},l,{ref:c}),i)}const BL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],UL=["component","slots","slotProps"],WL=["component"];function Pg(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:a}=t,l=se(t,BL),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=o,f=se(o,UL),p=c[e]||r,h=GT(d[e],i),m=qT(R({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h})),{props:{component:x},internalRef:g}=m,y=se(m.props,WL),v=Gt(g,h==null?void 0:h.ref,t.ref),w=s?s(y):{},C=R({},i,w),E=e==="root"?x||u:x,T=WT(p,R({},e==="root"&&!u&&!c[e]&&a,e!=="root"&&!c[e]&&a,y,E&&{as:E},{ref:v}),C);return Object.keys(w).forEach(P=>{delete T[P]}),[p,T]}function HL(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,d]=b.useState(!1),f=oe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},h=oe(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),b.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,a,u]),S.jsx("span",{className:f,style:p,children:S.jsx("span",{className:h})})}const vn=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),GL=["center","classes","className"];let dp=e=>e,fw,pw,hw,mw;const Tg=550,qL=80,KL=da(fw||(fw=dp` + */var Dv=Symbol.for("react.element"),Fv=Symbol.for("react.portal"),Zf=Symbol.for("react.fragment"),Jf=Symbol.for("react.strict_mode"),ep=Symbol.for("react.profiler"),tp=Symbol.for("react.provider"),np=Symbol.for("react.context"),_3=Symbol.for("react.server_context"),rp=Symbol.for("react.forward_ref"),ip=Symbol.for("react.suspense"),op=Symbol.for("react.suspense_list"),sp=Symbol.for("react.memo"),ap=Symbol.for("react.lazy"),O3=Symbol.for("react.offscreen"),CT;CT=Symbol.for("react.module.reference");function Rn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dv:switch(e=e.type,e){case Zf:case ep:case Jf:case ip:case op:return e;default:switch(e=e&&e.$$typeof,e){case _3:case np:case rp:case ap:case sp:case tp:return e;default:return t}}case Fv:return t}}}Ee.ContextConsumer=np;Ee.ContextProvider=tp;Ee.Element=Dv;Ee.ForwardRef=rp;Ee.Fragment=Zf;Ee.Lazy=ap;Ee.Memo=sp;Ee.Portal=Fv;Ee.Profiler=ep;Ee.StrictMode=Jf;Ee.Suspense=ip;Ee.SuspenseList=op;Ee.isAsyncMode=function(){return!1};Ee.isConcurrentMode=function(){return!1};Ee.isContextConsumer=function(e){return Rn(e)===np};Ee.isContextProvider=function(e){return Rn(e)===tp};Ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dv};Ee.isForwardRef=function(e){return Rn(e)===rp};Ee.isFragment=function(e){return Rn(e)===Zf};Ee.isLazy=function(e){return Rn(e)===ap};Ee.isMemo=function(e){return Rn(e)===sp};Ee.isPortal=function(e){return Rn(e)===Fv};Ee.isProfiler=function(e){return Rn(e)===ep};Ee.isStrictMode=function(e){return Rn(e)===Jf};Ee.isSuspense=function(e){return Rn(e)===ip};Ee.isSuspenseList=function(e){return Rn(e)===op};Ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zf||e===ep||e===Jf||e===ip||e===op||e===O3||typeof e=="object"&&e!==null&&(e.$$typeof===ap||e.$$typeof===sp||e.$$typeof===tp||e.$$typeof===np||e.$$typeof===rp||e.$$typeof===CT||e.getModuleId!==void 0)};Ee.typeOf=Rn;ST.exports=Ee;var qx=ST.exports;const R3=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ET(e){const t=`${e}`.match(R3);return t&&t[1]||""}function PT(e,t=""){return e.displayName||e.name||ET(e)||t}function Kx(e,t,n){const r=PT(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function A3(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return PT(e,"Component");if(typeof e=="object")switch(e.$$typeof){case qx.ForwardRef:return Kx(e,e.render,"ForwardRef");case qx.Memo:return Kx(e,e.type,"memo");default:return}}}const I3=Object.freeze(Object.defineProperty({__proto__:null,default:A3,getFunctionName:ET},Symbol.toStringTag,{value:"Module"}));function TT(e,t){const n=O({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=O({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=O({},o),Object.keys(i).forEach(s=>{n[r][s]=TT(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kT(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:TT(t.components[n].defaultProps,r)}function L3({props:e,name:t,defaultTheme:n,themeId:r}){let i=Xf(n);return r&&(i=i[r]||i),kT({theme:i,name:t,props:e})}const Ni=typeof window<"u"?b.useLayoutEffect:b.useEffect;function $3(e,t,n,r,i){const[o,s]=b.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ni(()=>{let a=!0;if(!n)return;const l=n(e),u=()=>{a&&s(l.matches)};return u(),l.addListener(u),()=>{a=!1,l.removeListener(u)}},[e,n]),o}const MT=b.useSyncExternalStore;function j3(e,t,n,r,i){const o=b.useCallback(()=>t,[t]),s=b.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[a,l]=b.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return MT(l,a,s)}function D3(e,t={}){const n=Lv(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=kT({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(MT!==void 0?j3:$3)(l,i,o,s,a)}function F3(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const N3=Object.freeze(Object.defineProperty({__proto__:null,default:F3},Symbol.toStringTag,{value:"Module"}));function gg(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Nv(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function z3(e,t){return()=>null}function V3(e,t){var n,r;return b.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Tr(e){return e&&e.ownerDocument||document}function zi(e){return Tr(e).defaultView||window}function B3(e,t){return()=>null}function Od(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Qx=0;function U3(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(Qx+=1,n(`mui-${Qx}`))},[t]),r}const Yx=ed.useId;function W3(e){if(Yx!==void 0){const t=Yx();return e??t}return U3(e)}function H3(e,t,n,r,i){return null}function G3({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=b.useRef(e!==void 0),[o,s]=b.useState(t),a=i?e:o,l=b.useCallback(u=>{i||s(u)},[]);return[a,l]}function uo(e){const t=b.useRef(e);return Ni(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Gt(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Od(n,t)})},e)}const Xx={};function q3(e,t){const n=b.useRef(Xx);return n.current===Xx&&(n.current=e(t)),n}const K3=[];function Q3(e){b.useEffect(e,K3)}class lp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new lp}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Y3(){const e=q3(lp.create).current;return Q3(e.disposeEffect),e}let up=!0,vg=!1;const X3=new lp,Z3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function J3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Z3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function e4(e){e.metaKey||e.altKey||e.ctrlKey||(up=!0)}function xh(){up=!1}function t4(){this.visibilityState==="hidden"&&vg&&(up=!0)}function n4(e){e.addEventListener("keydown",e4,!0),e.addEventListener("mousedown",xh,!0),e.addEventListener("pointerdown",xh,!0),e.addEventListener("touchstart",xh,!0),e.addEventListener("visibilitychange",t4,!0)}function r4(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return up||J3(t)}function zv(){const e=b.useCallback(i=>{i!=null&&n4(i.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(vg=!0,X3.start(100,()=>{vg=!1}),t.current=!1,!0):!1}function r(i){return r4(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function i4(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function at(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const o4=b.createContext(null),_T=o4;function OT(){return b.useContext(_T)}const s4=typeof Symbol=="function"&&Symbol.for,a4=s4?Symbol.for("mui.nested"):"__THEME_NESTED__";function l4(e,t){return typeof t=="function"?t(e):O({},e,t)}function u4(e){const{children:t,theme:n}=e,r=OT(),i=b.useMemo(()=>{const o=r===null?n:l4(r,n);return o!=null&&(o[a4]=r!==null),o},[n,r]);return S.jsx(_T.Provider,{value:i,children:t})}const c4=["value"],RT=b.createContext();function d4(e){let{value:t}=e,n=se(e,c4);return S.jsx(RT.Provider,O({value:t??!0},n))}const f4=()=>{const e=b.useContext(RT);return e??!1},Zx={};function Jx(e,t,n,r=!1){return b.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?O({},t,{[e]:o}):o;return r?()=>s:s}return e?O({},t,{[e]:n}):O({},t,n)},[e,t,n,r])}function p4(e){const{children:t,theme:n,themeId:r}=e,i=Lv(Zx),o=OT()||Zx,s=Jx(r,i,n),a=Jx(r,o,n,!0),l=s.direction==="rtl";return S.jsx(u4,{theme:a,children:S.jsx(ku.Provider,{value:s,children:S.jsx(d4,{value:l,children:t})})})}function h4(e,t){return O({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ze={},AT={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(AT);var Vv=AT.exports;const m4=Fr(vA),g4=Fr(N3);var IT=Vv;Object.defineProperty(Ze,"__esModule",{value:!0});var kt=Ze.alpha=DT;Ze.blend=k4;Ze.colorChannel=void 0;var yg=Ze.darken=Uv;Ze.decomposeColor=_n;Ze.emphasize=FT;var v4=Ze.getContrastRatio=S4;Ze.getLuminance=Rd;Ze.hexToRgb=LT;Ze.hslToRgb=jT;var xg=Ze.lighten=Wv;Ze.private_safeAlpha=C4;Ze.private_safeColorChannel=void 0;Ze.private_safeDarken=E4;Ze.private_safeEmphasize=T4;Ze.private_safeLighten=P4;Ze.recomposeColor=pa;Ze.rgbToHex=b4;var ew=IT(m4),y4=IT(g4);function Bv(e,t=0,n=1){return(0,y4.default)(e,t,n)}function LT(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function x4(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function _n(e){if(e.type)return e;if(e.charAt(0)==="#")return _n(LT(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,ew.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,ew.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const $T=e=>{const t=_n(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ze.colorChannel=$T;const w4=(e,t)=>{try{return $T(e)}catch{return e}};Ze.private_safeColorChannel=w4;function pa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function b4(e){if(e.indexOf("#")===0)return e;const{values:t}=_n(e);return`#${t.map((n,r)=>x4(r===3?Math.round(255*n):n)).join("")}`}function jT(e){e=_n(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pa({type:a,values:l})}function Rd(e){e=_n(e);let t=e.type==="hsl"||e.type==="hsla"?_n(jT(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function S4(e,t){const n=Rd(e),r=Rd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function DT(e,t){return e=_n(e),t=Bv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pa(e)}function C4(e,t,n){try{return DT(e,t)}catch{return e}}function Uv(e,t){if(e=_n(e),t=Bv(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pa(e)}function E4(e,t,n){try{return Uv(e,t)}catch{return e}}function Wv(e,t){if(e=_n(e),t=Bv(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pa(e)}function P4(e,t,n){try{return Wv(e,t)}catch{return e}}function FT(e,t=.15){return Rd(e)>.5?Uv(e,t):Wv(e,t)}function T4(e,t,n){try{return FT(e,t)}catch{return e}}function k4(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),o=_n(e),s=_n(t),a=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return pa({type:"rgb",values:a})}const M4=["mode","contrastThreshold","tonalOffset"],tw={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zl.white,default:zl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},wh={text:{primary:zl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function nw(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=xg(e.main,i):t==="dark"&&(e.dark=yg(e.main,o)))}function _4(e="light"){return e==="dark"?{main:Wo[200],light:Wo[50],dark:Wo[400]}:{main:Wo[700],light:Wo[400],dark:Wo[800]}}function O4(e="light"){return e==="dark"?{main:Uo[200],light:Uo[50],dark:Uo[400]}:{main:Uo[500],light:Uo[300],dark:Uo[700]}}function R4(e="light"){return e==="dark"?{main:Bo[500],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[400],dark:Bo[800]}}function A4(e="light"){return e==="dark"?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:Ho[700],light:Ho[500],dark:Ho[900]}}function I4(e="light"){return e==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:Go[800],light:Go[500],dark:Go[900]}}function L4(e="light"){return e==="dark"?{main:Ra[400],light:Ra[300],dark:Ra[700]}:{main:"#ed6c02",light:Ra[500],dark:Ra[900]}}function $4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=se(e,M4),o=e.primary||_4(t),s=e.secondary||O4(t),a=e.error||R4(t),l=e.info||A4(t),u=e.success||I4(t),c=e.warning||L4(t);function d(m){return v4(m,wh.text.primary)>=n?wh.text.primary:tw.text.primary}const f=({color:m,name:x,mainShade:g=500,lightShade:y=300,darkShade:v=700})=>{if(m=O({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(Zs(11,x?` (${x})`:"",g));if(typeof m.main!="string")throw new Error(Zs(12,x?` (${x})`:"",JSON.stringify(m.main)));return nw(m,"light",y,r),nw(m,"dark",v,r),m.contrastText||(m.contrastText=d(m.main)),m},p={dark:wh,light:tw};return ur(O({common:O({},zl),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:gA,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),i)}const j4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function D4(e){return Math.round(e*1e5)/1e5}const rw={textTransform:"uppercase"},iw='"Roboto", "Helvetica", "Arial", sans-serif';function F4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=iw,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=se(n,j4),p=i/14,h=d||(g=>`${g/u*p}rem`),m=(g,y,v,w,C)=>O({fontFamily:r,fontWeight:g,fontSize:h(y),lineHeight:v},r===iw?{letterSpacing:`${D4(w/y)}em`}:{},C,c),x={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,rw),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,rw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ur(O({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},x),f,{clone:!1})}const N4=.2,z4=.14,V4=.12;function Ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${N4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${z4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${V4})`].join(",")}const B4=["none",Ie(0,2,1,-1,0,1,1,0,0,1,3,0),Ie(0,3,1,-2,0,2,2,0,0,1,5,0),Ie(0,3,3,-2,0,3,4,0,0,1,8,0),Ie(0,2,4,-1,0,4,5,0,0,1,10,0),Ie(0,3,5,-1,0,5,8,0,0,1,14,0),Ie(0,3,5,-1,0,6,10,0,0,1,18,0),Ie(0,4,5,-2,0,7,10,1,0,2,16,1),Ie(0,5,5,-3,0,8,10,1,0,3,14,2),Ie(0,5,6,-3,0,9,12,1,0,3,16,2),Ie(0,6,6,-3,0,10,14,1,0,4,18,3),Ie(0,6,7,-4,0,11,15,1,0,4,20,3),Ie(0,7,8,-4,0,12,17,2,0,5,22,4),Ie(0,7,8,-4,0,13,19,2,0,5,24,4),Ie(0,7,9,-4,0,14,21,2,0,5,26,4),Ie(0,8,9,-5,0,15,22,2,0,6,28,5),Ie(0,8,10,-5,0,16,24,2,0,6,30,5),Ie(0,8,11,-5,0,17,26,2,0,6,32,5),Ie(0,9,11,-5,0,18,28,2,0,7,34,6),Ie(0,9,12,-6,0,19,29,2,0,7,36,6),Ie(0,10,13,-6,0,20,31,3,0,8,38,7),Ie(0,10,13,-6,0,21,33,3,0,8,40,7),Ie(0,10,14,-6,0,22,35,3,0,8,42,7),Ie(0,11,14,-7,0,23,36,3,0,9,44,8),Ie(0,11,15,-7,0,24,38,3,0,9,46,8)],U4=["duration","easing","delay"],W4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},H4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ow(e){return`${Math.round(e)}ms`}function G4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function q4(e){const t=O({},W4,e.easing),n=O({},H4,e.duration);return O({getAutoHeightDuration:G4,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o;return se(o,U4),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:ow(s)} ${a} ${typeof l=="string"?l:ow(l)}`).join(",")}},e,{easing:t,duration:n})}const K4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Q4=K4,Y4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Hv(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=se(e,Y4);if(e.vars)throw new Error(Zs(18));const a=$4(r),l=Iv(e);let u=ur(l,{mixins:h4(l.breakpoints,n),palette:a,shadows:B4.slice(),typography:F4(a,o),transitions:q4(i),zIndex:O({},Q4)});return u=ur(u,s),u=t.reduce((c,d)=>ur(c,d),u),u.unstable_sxConfig=O({},Ou,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Ru({sx:d,theme:this})},u}const X4=Hv(),cp=X4;function Gv(){const e=Xf(cp);return e[Ro]||e}function it({props:e,name:t}){return L3({props:e,name:t,defaultTheme:cp,themeId:Ro})}var Au={},bh={exports:{}},sw;function Z4(){return sw||(sw=1,function(e){function t(n,r){if(n==null)return{};var i={},o=Object.keys(n),s,a;for(a=0;a=0)&&(i[s]=n[s]);return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(bh)),bh.exports}const J4=Fr(bI),eL=Fr(SI),tL=Fr(_I),nL=Fr(I3),rL=Fr(v3),iL=Fr(C3);var ha=Vv;Object.defineProperty(Au,"__esModule",{value:!0});var oL=Au.default=yL;Au.shouldForwardProp=Nc;Au.systemDefaultTheme=void 0;var mn=ha(fT()),wg=ha(Z4()),aw=fL(J4),sL=eL;ha(tL);ha(nL);var aL=ha(rL),lL=ha(iL);const uL=["ownerState"],cL=["variants"],dL=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function NT(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(NT=function(r){return r?n:t})(e)}function fL(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=NT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function pL(e){return Object.keys(e).length===0}function hL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mL=Au.systemDefaultTheme=(0,aL.default)(),gL=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dc({defaultTheme:e,theme:t,themeId:n}){return pL(t)?e:t[n]||t}function vL(e){return e?(t,n)=>n[e]:null}function zc(e,t){let{ownerState:n}=t,r=(0,wg.default)(t,uL);const i=typeof e=="function"?e((0,mn.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>zc(o,(0,mn.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let a=(0,wg.default)(i,cL);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,mn.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,mn.default)({ownerState:n},r,n)):l.style))}),a}return i}function yL(e={}){const{themeId:t,defaultTheme:n=mL,rootShouldForwardProp:r=Nc,slotShouldForwardProp:i=Nc}=e,o=s=>(0,lL.default)((0,mn.default)({},s,{theme:dc((0,mn.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{(0,aw.internal_processStyles)(s,C=>C.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=vL(gL(u))}=a,p=(0,wg.default)(a,dL),h=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,m=d||!1;let x,g=Nc;u==="Root"||u==="root"?g=r:u?g=i:hL(s)&&(g=void 0);const y=(0,aw.default)(s,(0,mn.default)({shouldForwardProp:g,label:x},p)),v=C=>typeof C=="function"&&C.__emotion_real!==C||(0,sL.isPlainObject)(C)?E=>zc(C,(0,mn.default)({},E,{theme:dc({theme:E.theme,defaultTheme:n,themeId:t})})):C,w=(C,...E)=>{let T=v(C);const P=E?E.map(v):[];l&&f&&P.push(A=>{const I=dc((0,mn.default)({},A,{defaultTheme:n,themeId:t}));if(!I.components||!I.components[l]||!I.components[l].styleOverrides)return null;const $=I.components[l].styleOverrides,D={};return Object.entries($).forEach(([B,N])=>{D[B]=zc(N,(0,mn.default)({},A,{theme:I}))}),f(A,D)}),l&&!h&&P.push(A=>{var I;const $=dc((0,mn.default)({},A,{defaultTheme:n,themeId:t})),D=$==null||(I=$.components)==null||(I=I[l])==null?void 0:I.variants;return zc({variants:D},(0,mn.default)({},A,{theme:$}))}),m||P.push(o);const M=P.length-E.length;if(Array.isArray(C)&&M>0){const A=new Array(M).fill("");T=[...C,...A],T.raw=[...C.raw,...A]}const k=y(T,...P);return s.muiName&&(k.muiName=s.muiName),k};return y.withConfig&&(w.withConfig=y.withConfig),w}}function xL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iu=e=>xL(e)&&e!=="classes",le=oL({themeId:Ro,defaultTheme:cp,rootShouldForwardProp:Iu}),wL=["theme"];function bL(e){let{theme:t}=e,n=se(e,wL);const r=t[Ro];return S.jsx(p4,O({},n,{themeId:r?Ro:void 0,theme:r||t}))}const lw=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function SL(e){return rt("MuiSvgIcon",e)}Xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CL=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],EL=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Y(t)}`,`fontSize${Y(n)}`]};return at(i,SL,r)},PL=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),bg=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=se(r,CL),h=b.isValidElement(i)&&i.type==="svg",m=O({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),x={};c||(x.viewBox=f);const g=EL(m);return S.jsxs(PL,O({as:a,className:oe(g.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},x,p,h&&i.props,{ownerState:m,children:[h?i.props.children:i,d?S.jsx("title",{children:d}):null]}))});bg.muiName="SvgIcon";function qt(e,t){function n(r,i){return S.jsx(bg,O({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=bg.muiName,b.memo(b.forwardRef(n))}const TL={configure:e=>{jv.configure(e)}},kL=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Y,createChainedFunction:gg,createSvgIcon:qt,debounce:Nv,deprecatedPropType:z3,isMuiElement:V3,ownerDocument:Tr,ownerWindow:zi,requirePropFactory:B3,setRef:Od,unstable_ClassNameGenerator:TL,unstable_useEnhancedEffect:Ni,unstable_useId:W3,unsupportedProp:H3,useControlled:G3,useEventCallback:uo,useForkRef:Gt,useIsFocusVisible:zv},Symbol.toStringTag,{value:"Module"}));function zT(e){return it}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sg(e,t)}function VT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sg(e,t)}const uw={disabled:!1},Ad=W.createContext(null);var ML=function(t){return t.scrollTop},Ga="unmounted",to="exited",no="entering",Xo="entered",Cg="exiting",Vr=function(e){VT(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?a?(l=to,o.appearStatus=no):l=Xo:r.unmountOnExit||r.mountOnEnter?l=Ga:l=to,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Ga?{status:to}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==no&&s!==Xo&&(o=no):(s===no||s===Xo)&&(o=Cg)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===no){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:uc.findDOMNode(this);s&&ML(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===to&&this.setState({status:Ga})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[uc.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!s||uw.disabled){this.safeSetState({status:Xo},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:no},function(){o.props.onEntering(u,c),o.onTransitionEnd(f,function(){o.safeSetState({status:Xo},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:uc.findDOMNode(this);if(!o||uw.disabled){this.safeSetState({status:to},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Cg},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:to},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:uc.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ga)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=se(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(Ad.Provider,{value:null},typeof s=="function"?s(i,a):W.cloneElement(W.Children.only(s),a))},t}(W.Component);Vr.contextType=Ad;Vr.propTypes={};function qo(){}Vr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qo,onEntering:qo,onEntered:qo,onExit:qo,onExiting:qo,onExited:qo};Vr.UNMOUNTED=Ga;Vr.EXITED=to;Vr.ENTERING=no;Vr.ENTERED=Xo;Vr.EXITING=Cg;const BT=Vr;function _L(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qv(e,t){var n=function(o){return t&&b.isValidElement(o)?t(o):o},r=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function OL(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function Id(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function jL(e){return rt("MuiPaper",e)}Xe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const DL=["className","component","elevation","square","variant"],FL=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return at(o,jL,i)},NL=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return O({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&O({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${kt("#fff",lw(t.elevation))}, ${kt("#fff",lw(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),zL=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,u=se(r,DL),c=O({},r,{component:o,elevation:s,square:a,variant:l}),d=FL(c);return S.jsx(NL,O({as:o,ownerState:c,className:oe(d.root,i),ref:n},u))}),ta=zL;function Eg(e){return typeof e=="string"}function WT(e,t,n){return e===void 0||Eg(e)?t:O({},t,{ownerState:O({},t.ownerState,n)})}function HT(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function GT(e,t,n){return typeof e=="function"?e(t,n):e}function cw(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function qT(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const p=oe(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=O({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=O({},n,i,r);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=HT(O({},i,r)),a=cw(r),l=cw(i),u=t(s),c=oe(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=O({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=O({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const VL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function dw(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=se(e,VL),a=o?{}:GT(r,i),{props:l,internalRef:u}=qT(O({},s,{externalSlotProps:a})),c=Gt(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return WT(n,O({},l,{ref:c}),i)}const BL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],UL=["component","slots","slotProps"],WL=["component"];function Pg(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:a}=t,l=se(t,BL),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=o,f=se(o,UL),p=c[e]||r,h=GT(d[e],i),m=qT(O({className:n},l,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h})),{props:{component:x},internalRef:g}=m,y=se(m.props,WL),v=Gt(g,h==null?void 0:h.ref,t.ref),w=s?s(y):{},C=O({},i,w),E=e==="root"?x||u:x,T=WT(p,O({},e==="root"&&!u&&!c[e]&&a,e!=="root"&&!c[e]&&a,y,E&&{as:E},{ref:v}),C);return Object.keys(w).forEach(P=>{delete T[P]}),[p,T]}function HL(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,d]=b.useState(!1),f=oe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},h=oe(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),b.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,u);return()=>{clearTimeout(m)}}},[l,a,u]),S.jsx("span",{className:f,style:p,children:S.jsx("span",{className:h})})}const vn=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),GL=["center","classes","className"];let dp=e=>e,fw,pw,hw,mw;const Tg=550,qL=80,KL=fa(fw||(fw=dp` 0% { transform: scale(0); opacity: 0.1; @@ -95,7 +95,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),QL=da(pw||(pw=dp` +`)),QL=fa(pw||(pw=dp` 0% { opacity: 1; } @@ -103,7 +103,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),YL=da(hw||(hw=dp` +`)),YL=fa(hw||(hw=dp` 0% { transform: scale(1); } @@ -158,8 +158,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),vn.rippleVisible,KL,Tg,({theme:e})=>e.transitions.easing.easeInOut,vn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,vn.child,vn.childLeaving,QL,Tg,({theme:e})=>e.transitions.easing.easeInOut,vn.childPulsate,YL,({theme:e})=>e.transitions.easing.easeInOut),JL=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=se(r,GL),[l,u]=b.useState([]),c=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=b.useRef(!1),p=Y3(),h=b.useRef(null),m=b.useRef(null),x=b.useCallback(w=>{const{pulsate:C,rippleX:E,rippleY:T,rippleSize:P,cb:M}=w;u(k=>[...k,S.jsx(ZL,{classes:{ripple:oe(o.ripple,vn.ripple),rippleVisible:oe(o.rippleVisible,vn.rippleVisible),ripplePulsate:oe(o.ripplePulsate,vn.ripplePulsate),child:oe(o.child,vn.child),childLeaving:oe(o.childLeaving,vn.childLeaving),childPulsate:oe(o.childPulsate,vn.childPulsate)},timeout:Tg,pulsate:C,rippleX:E,rippleY:T,rippleSize:P},c.current)]),c.current+=1,d.current=M},[o]),g=b.useCallback((w={},C={},E=()=>{})=>{const{pulsate:T=!1,center:P=i||C.pulsate,fakeElement:M=!1}=C;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const k=M?null:m.current,A=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,$,D;if(P||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)I=Math.round(A.width/2),$=Math.round(A.height/2);else{const{clientX:B,clientY:N}=w.touches&&w.touches.length>0?w.touches[0]:w;I=Math.round(B-A.left),$=Math.round(N-A.top)}if(P)D=Math.sqrt((2*A.width**2+A.height**2)/3),D%2===0&&(D+=1);else{const B=Math.max(Math.abs((k?k.clientWidth:0)-I),I)*2+2,N=Math.max(Math.abs((k?k.clientHeight:0)-$),$)*2+2;D=Math.sqrt(B**2+N**2)}w!=null&&w.touches?h.current===null&&(h.current=()=>{x({pulsate:T,rippleX:I,rippleY:$,rippleSize:D,cb:E})},p.start(qL,()=>{h.current&&(h.current(),h.current=null)})):x({pulsate:T,rippleX:I,rippleY:$,rippleSize:D,cb:E})},[i,x,p]),y=b.useCallback(()=>{g({},{pulsate:!0})},[g]),v=b.useCallback((w,C)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{v(w,C)});return}h.current=null,u(E=>E.length>0?E.slice(1):E),d.current=C},[p]);return b.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:v}),[y,g,v]),S.jsx(XL,R({className:oe(vn.root,o.root,s),ref:m},a,{children:S.jsx($L,{component:null,exit:!0,children:l})}))}),e$=JL;function t$(e){return rt("MuiButtonBase",e)}const n$=Xe("MuiButtonBase",["root","disabled","focusVisible"]),r$=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],i$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=at({root:["root",t&&"disabled",n&&"focusVisible"]},t$,i);return n&&r&&(s.root+=` ${r}`),s},o$=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${n$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),s$=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:w,onKeyUp:C,onMouseDown:E,onMouseLeave:T,onMouseUp:P,onTouchEnd:M,onTouchMove:k,onTouchStart:A,tabIndex:I=0,TouchRippleProps:$,touchRippleRef:D,type:B}=r,N=se(r,r$),H=b.useRef(null),_=b.useRef(null),L=Gt(_,D),{isFocusVisibleRef:z,onFocus:K,onBlur:ne,ref:He}=zv(),[de,Ge]=b.useState(!1);u&&de&&Ge(!1),b.useImperativeHandle(i,()=>({focusVisible:()=>{Ge(!0),H.current.focus()}}),[]);const[J,U]=b.useState(!1);b.useEffect(()=>{U(!0)},[]);const ue=J&&!c&&!u;b.useEffect(()=>{de&&f&&!c&&J&&_.current.pulsate()},[c,f,de,J]);function ce(ee,Xi,Bp=d){return uo(Wu=>(Xi&&Xi(Wu),!Bp&&_.current&&_.current[ee](Wu),!0))}const Pe=ce("start",E),re=ce("stop",x),xe=ce("stop",g),Je=ce("stop",P),Ct=ce("stop",ee=>{de&&ee.preventDefault(),T&&T(ee)}),Kt=ce("start",A),lt=ce("stop",M),ut=ce("stop",k),Qt=ce("stop",ee=>{ne(ee),z.current===!1&&Ge(!1),h&&h(ee)},!1),Br=uo(ee=>{H.current||(H.current=ee.currentTarget),K(ee),z.current===!0&&(Ge(!0),v&&v(ee)),y&&y(ee)}),An=()=>{const ee=H.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},gt=b.useRef(!1),wa=uo(ee=>{f&&!gt.current&&de&&_.current&&ee.key===" "&&(gt.current=!0,_.current.stop(ee,()=>{_.current.start(ee)})),ee.target===ee.currentTarget&&An()&&ee.key===" "&&ee.preventDefault(),w&&w(ee),ee.target===ee.currentTarget&&An()&&ee.key==="Enter"&&!u&&(ee.preventDefault(),m&&m(ee))}),In=uo(ee=>{f&&ee.key===" "&&_.current&&de&&!ee.defaultPrevented&&(gt.current=!1,_.current.stop(ee,()=>{_.current.pulsate(ee)})),C&&C(ee),m&&ee.target===ee.currentTarget&&An()&&ee.key===" "&&!ee.defaultPrevented&&m(ee)});let qn=l;qn==="button"&&(N.href||N.to)&&(qn=p);const Ln={};qn==="button"?(Ln.type=B===void 0?"button":B,Ln.disabled=u):(!N.href&&!N.to&&(Ln.role="button"),u&&(Ln["aria-disabled"]=u));const Qi=Gt(n,He,H),Yi=R({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:I,focusVisible:de}),Oe=i$(Yi);return S.jsxs(o$,R({as:qn,className:oe(Oe.root,a),ownerState:Yi,onBlur:Qt,onClick:m,onContextMenu:re,onFocus:Br,onKeyDown:wa,onKeyUp:In,onMouseDown:Pe,onMouseLeave:Ct,onMouseUp:Je,onDragLeave:xe,onTouchEnd:lt,onTouchMove:ut,onTouchStart:Kt,ref:Qi,tabIndex:u?-1:I,type:B},Ln,N,{children:[s,ue?S.jsx(e$,R({ref:L,center:o},$)):null]}))}),kg=s$;function a$(e){return rt("MuiAlert",e)}const l$=Xe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),gw=l$;function u$(e){return rt("MuiIconButton",e)}const c$=Xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),d$=["edge","children","className","color","disabled","disableFocusRipple","size"],f$=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Y(r)}`,i&&`edge${Y(i)}`,`size${Y(o)}`]};return at(s,u$,t)},p$=le(kg,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Y(n.color)}`],n.edge&&t[`edge${Y(n.edge)}`],t[`size${Y(n.size)}`]]}})(({theme:e,ownerState:t})=>R({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return R({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&R({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":R({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${c$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),h$=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=se(r,d$),f=R({},r,{edge:i,color:a,disabled:l,disableFocusRipple:u,size:c}),p=f$(f);return S.jsx(p$,R({className:oe(p.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},d,{ownerState:f,children:o}))}),Wl=h$,m$=qt(S.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),g$=qt(S.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),v$=qt(S.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),y$=qt(S.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),x$=qt(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),w$=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],b$=zT(),S$=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${Y(n||r)}`,`${t}${Y(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return at(o,a$,i)},C$=le(ea,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Y(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?yg:xg,n=e.palette.mode==="light"?xg:yg;return R({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${gw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${gw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:R({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),E$=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),P$=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),vw=le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),yw={success:S.jsx(m$,{fontSize:"inherit"}),warning:S.jsx(g$,{fontSize:"inherit"}),error:S.jsx(v$,{fontSize:"inherit"}),info:S.jsx(y$,{fontSize:"inherit"})},T$=b.forwardRef(function(t,n){const r=b$({props:t,name:"MuiAlert"}),{action:i,children:o,className:s,closeText:a="Close",color:l,components:u={},componentsProps:c={},icon:d,iconMapping:f=yw,onClose:p,role:h="alert",severity:m="success",slotProps:x={},slots:g={},variant:y="standard"}=r,v=se(r,w$),w=R({},r,{color:l,severity:m,variant:y,colorSeverity:l||m}),C=S$(w),E={slots:R({closeButton:u.CloseButton,closeIcon:u.CloseIcon},g),slotProps:R({},c,x)},[T,P]=Pg("closeButton",{elementType:Wl,externalForwardedProps:E,ownerState:w}),[M,k]=Pg("closeIcon",{elementType:x$,externalForwardedProps:E,ownerState:w});return S.jsxs(C$,R({role:h,elevation:0,ownerState:w,className:oe(C.root,s),ref:n},v,{children:[d!==!1?S.jsx(E$,{ownerState:w,className:C.icon,children:d||f[m]||yw[m]}):null,S.jsx(P$,{ownerState:w,className:C.message,children:o}),i!=null?S.jsx(vw,{ownerState:w,className:C.action,children:i}):null,i==null&&p?S.jsx(vw,{ownerState:w,className:C.action,children:S.jsx(T,R({size:"small","aria-label":a,title:a,color:"inherit",onClick:p},P,{children:S.jsx(M,R({fontSize:"small"},k))}))}):null]}))}),k$=T$;function M$(e){return rt("MuiTypography",e)}Xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const O$=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],R$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${Y(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return at(a,M$,s)},_$=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Y(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>R({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),xw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},A$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},I$=e=>A$[e]||e,L$=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiTypography"}),i=I$(r.color),o=$v(R({},r,{color:i})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=xw}=o,h=se(o,O$),m=R({},o,{align:s,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),x=l||(d?"p":p[f]||xw[f])||"span",g=R$(m);return S.jsx(_$,R({as:x,ref:n,ownerState:m,className:oe(g.root,a)},h))}),ae=L$,$$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function j$(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function D$(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function F$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||D$(e))}function N$(e){const t=[],n=[];return Array.from(e.querySelectorAll($$)).forEach((r,i)=>{const o=j$(r);o===-1||!F$(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function z$(){return!0}function V$(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=N$,isEnabled:s=z$,open:a}=e,l=b.useRef(!1),u=b.useRef(null),c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(!1),h=b.useRef(null),m=Gt(t.ref,h),x=b.useRef(null);b.useEffect(()=>{!a||!h.current||(p.current=!n)},[n,a]),b.useEffect(()=>{if(!a||!h.current)return;const v=Tr(h.current);return h.current.contains(v.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),b.useEffect(()=>{if(!a||!h.current)return;const v=Tr(h.current),w=T=>{x.current=T,!(r||!s()||T.key!=="Tab")&&v.activeElement===h.current&&T.shiftKey&&(l.current=!0,c.current&&c.current.focus())},C=()=>{const T=h.current;if(T===null)return;if(!v.hasFocus()||!s()||l.current){l.current=!1;return}if(T.contains(v.activeElement)||r&&v.activeElement!==u.current&&v.activeElement!==c.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let P=[];if((v.activeElement===u.current||v.activeElement===c.current)&&(P=o(h.current)),P.length>0){var M,k;const A=!!((M=x.current)!=null&&M.shiftKey&&((k=x.current)==null?void 0:k.key)==="Tab"),I=P[0],$=P[P.length-1];typeof I!="string"&&typeof $!="string"&&(A?$.focus():I.focus())}else T.focus()};v.addEventListener("focusin",C),v.addEventListener("keydown",w,!0);const E=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(E),v.removeEventListener("focusin",C),v.removeEventListener("keydown",w,!0)}},[n,r,i,s,a,o]);const g=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,f.current=v.target;const w=t.props.onFocus;w&&w(v)},y=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return S.jsxs(b.Fragment,{children:[S.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:m,onFocus:g}),S.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function B$(e){return typeof e=="function"?e():e}const U$=b.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=b.useState(null),l=Gt(b.isValidElement(r)?r.ref:null,n);if(Ni(()=>{o||a(B$(i)||document.body)},[i,o]),Ni(()=>{if(s&&!o)return Rd(n,s),()=>{Rd(n,null)}},[n,s,o]),o){if(b.isValidElement(r)){const u={ref:l};return b.cloneElement(r,u)}return S.jsx(b.Fragment,{children:r})}return S.jsx(b.Fragment,{children:s&&kf.createPortal(r,s)})});function W$(e){const t=Tr(e);return t.body===e?zi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function al(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ww(e){return parseInt(zi(e).getComputedStyle(e).paddingRight,10)||0}function H$(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function bw(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=o.indexOf(s)===-1,l=!H$(s);a&&l&&al(s,i)})}function Sh(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function G$(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(W$(r)){const s=i4(Tr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ww(r)+s}px`;const a=Tr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ww(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Tr(r).body;else{const s=r.parentElement,a=zi(r);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function q$(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class K${constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&al(t.modalRef,!1);const i=q$(n);bw(n,t.mount,t.modalRef,i,!0);const o=Sh(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Sh(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=G$(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Sh(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&al(t.modalRef,n),bw(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&al(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Q$(e){return typeof e=="function"?e():e}function Y$(e){return e?e.props.hasOwnProperty("in"):!1}const X$=new K$;function Z$(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=X$,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=e,f=b.useRef({}),p=b.useRef(null),h=b.useRef(null),m=Gt(h,d),[x,g]=b.useState(!c),y=Y$(l);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const w=()=>Tr(p.current),C=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),E=()=>{i.mount(C(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},T=uo(()=>{const N=Q$(t)||w().body;i.add(C(),N),h.current&&E()}),P=b.useCallback(()=>i.isTopModal(C()),[i]),M=uo(N=>{p.current=N,N&&(c&&P()?E():h.current&&al(h.current,v))}),k=b.useCallback(()=>{i.remove(C(),v)},[v,i]);b.useEffect(()=>()=>{k()},[k]),b.useEffect(()=>{c?T():(!y||!o)&&k()},[c,k,y,o,T]);const A=N=>H=>{var _;(_=N.onKeyDown)==null||_.call(N,H),!(H.key!=="Escape"||H.which===229||!P())&&(n||(H.stopPropagation(),u&&u(H,"escapeKeyDown")))},I=N=>H=>{var _;(_=N.onClick)==null||_.call(N,H),H.target===H.currentTarget&&u&&u(H,"backdropClick")};return{getRootProps:(N={})=>{const H=HT(e);delete H.onTransitionEnter,delete H.onTransitionExited;const _=R({},H,N);return R({role:"presentation"},_,{onKeyDown:A(_),ref:m})},getBackdropProps:(N={})=>{const H=N;return R({"aria-hidden":!0},H,{onClick:I(H),open:c})},getTransitionProps:()=>{const N=()=>{g(!1),s&&s()},H=()=>{g(!0),a&&a(),o&&k()};return{onEnter:gg(N,l==null?void 0:l.props.onEnter),onExited:gg(H,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:M,isTopModal:P,exited:x,hasTransition:y}}const J$=["onChange","maxRows","minRows","style","value"];function fc(e){return parseInt(e,10)||0}const ej={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tj(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const nj=b.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a}=t,l=se(t,J$),{current:u}=b.useRef(a!=null),c=b.useRef(null),d=Gt(n,c),f=b.useRef(null),p=b.useCallback(()=>{const x=c.current,y=zi(x).getComputedStyle(x);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const v=f.current;v.style.width=y.width,v.value=x.value||t.placeholder||"x",v.value.slice(-1)===` -`&&(v.value+=" ");const w=y.boxSizing,C=fc(y.paddingBottom)+fc(y.paddingTop),E=fc(y.borderBottomWidth)+fc(y.borderTopWidth),T=v.scrollHeight;v.value="x";const P=v.scrollHeight;let M=T;o&&(M=Math.max(Number(o)*P,M)),i&&(M=Math.min(Number(i)*P,M)),M=Math.max(M,P);const k=M+(w==="border-box"?C+E:0),A=Math.abs(M-T)<=1;return{outerHeightStyle:k,overflowing:A}},[i,o,t.placeholder]),h=b.useCallback(()=>{const x=p();if(tj(x))return;const g=c.current;g.style.height=`${x.outerHeightStyle}px`,g.style.overflow=x.overflowing?"hidden":""},[p]);Ni(()=>{const x=()=>{h()};let g;const y=Nv(x),v=c.current,w=zi(v);w.addEventListener("resize",y);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(v)),()=>{y.clear(),cancelAnimationFrame(g),w.removeEventListener("resize",y),C&&C.disconnect()}},[p,h]),Ni(()=>{h()});const m=x=>{u||h(),r&&r(x)};return S.jsxs(b.Fragment,{children:[S.jsx("textarea",R({value:a,onChange:m,ref:d,rows:o,style:s},l)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:R({},ej.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),rj=qt(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function ij(e){return rt("MuiChip",e)}const oj=Xe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),ye=oj,sj=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],aj=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,u={root:["root",l,n&&"disabled",`size${Y(r)}`,`color${Y(i)}`,a&&"clickable",a&&`clickableColor${Y(i)}`,s&&"deletable",s&&`deletableColor${Y(i)}`,`${l}${Y(i)}`],label:["label",`label${Y(r)}`],avatar:["avatar",`avatar${Y(r)}`,`avatarColor${Y(i)}`],icon:["icon",`icon${Y(r)}`,`iconColor${Y(o)}`],deleteIcon:["deleteIcon",`deleteIcon${Y(r)}`,`deleteIconColor${Y(i)}`,`deleteIcon${Y(l)}Color${Y(i)}`]};return at(u,ij,t)},lj=le("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${ye.avatar}`]:t.avatar},{[`& .${ye.avatar}`]:t[`avatar${Y(a)}`]},{[`& .${ye.avatar}`]:t[`avatarColor${Y(r)}`]},{[`& .${ye.icon}`]:t.icon},{[`& .${ye.icon}`]:t[`icon${Y(a)}`]},{[`& .${ye.icon}`]:t[`iconColor${Y(i)}`]},{[`& .${ye.deleteIcon}`]:t.deleteIcon},{[`& .${ye.deleteIcon}`]:t[`deleteIcon${Y(a)}`]},{[`& .${ye.deleteIcon}`]:t[`deleteIconColor${Y(r)}`]},{[`& .${ye.deleteIcon}`]:t[`deleteIcon${Y(l)}Color${Y(r)}`]},t.root,t[`size${Y(a)}`],t[`color${Y(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${Y(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Y(r)}`],t[l],t[`${l}${Y(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return R({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ye.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ye.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${ye.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ye.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ye.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ye.icon}`]:R({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&R({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${ye.deleteIcon}`]:R({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:kt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:kt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:kt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>R({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>R({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ye.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ye.avatar}`]:{marginLeft:4},[`& .${ye.avatarSmall}`]:{marginLeft:2},[`& .${ye.icon}`]:{marginLeft:4},[`& .${ye.iconSmall}`]:{marginLeft:2},[`& .${ye.deleteIcon}`]:{marginRight:5},[`& .${ye.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:kt(e.palette[t.color].main,.7)}`,[`&.${ye.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:kt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${ye.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:kt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),uj=le("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Y(r)}`]]}})(({ownerState:e})=>R({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Sw(e){return e.key==="Backspace"||e.key==="Delete"}const cj=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:p,onDelete:h,onKeyDown:m,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=r,C=se(r,sj),E=b.useRef(null),T=Gt(E,n),P=L=>{L.stopPropagation(),h&&h(L)},M=L=>{L.currentTarget===L.target&&Sw(L)&&L.preventDefault(),m&&m(L)},k=L=>{L.currentTarget===L.target&&(h&&Sw(L)?h(L):L.key==="Escape"&&E.current&&E.current.blur()),x&&x(L)},A=s!==!1&&p?!0:s,I=A||h?kg:l||"div",$=R({},r,{component:I,disabled:c,size:g,color:a,iconColor:b.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:A,variant:y}),D=aj($),B=I===kg?R({component:l||"div",focusVisibleClassName:D.focusVisible},h&&{disableRipple:!0}):{};let N=null;h&&(N=u&&b.isValidElement(u)?b.cloneElement(u,{className:oe(u.props.className,D.deleteIcon),onClick:P}):S.jsx(rj,{className:oe(D.deleteIcon),onClick:P}));let H=null;i&&b.isValidElement(i)&&(H=b.cloneElement(i,{className:oe(D.avatar,i.props.className)}));let _=null;return d&&b.isValidElement(d)&&(_=b.cloneElement(d,{className:oe(D.icon,d.props.className)})),S.jsxs(lj,R({as:I,className:oe(D.root,o),disabled:A&&c?!0:void 0,onClick:p,onKeyDown:M,onKeyUp:k,ref:T,tabIndex:w&&c?-1:v,ownerState:$},B,C,{children:[H||_,S.jsx(uj,{className:oe(D.label),ownerState:$,children:f}),N]}))}),dj=cj;function KT({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const fj=b.createContext(void 0),QT=fj;function YT(){return b.useContext(QT)}function XT(e){return S.jsx(w3,R({},e,{defaultTheme:cp,themeId:_o}))}function Cw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pj(e,t=!1){return e&&(Cw(e.value)&&e.value!==""||t&&Cw(e.defaultValue)&&e.defaultValue!=="")}function hj(e){return rt("MuiInputBase",e)}const mj=Xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ld=mj,gj=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ZT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Y(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},JT=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},vj=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e,m={root:["root",`color${Y(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${Y(f)}`,c&&"multiline",p&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return at(m,hj,t)},e2=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ZT})(({theme:e,ownerState:t})=>R({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&R({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),t2=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:JT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=R({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return R({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ld.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ld.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),yj=S.jsx(XT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),xj=b.forwardRef(function(t,n){var r;const i=it({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:m=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:v,maxRows:w,minRows:C,multiline:E=!1,name:T,onBlur:P,onChange:M,onClick:k,onFocus:A,onKeyDown:I,onKeyUp:$,placeholder:D,readOnly:B,renderSuffix:N,rows:H,slotProps:_={},slots:L={},startAdornment:z,type:K="text",value:ne}=i,He=se(i,gj),de=y.value!=null?y.value:ne,{current:Ge}=b.useRef(de!=null),J=b.useRef(),U=b.useCallback(Oe=>{},[]),ue=Gt(J,v,y.ref,U),[ce,Pe]=b.useState(!1),re=YT(),xe=KT({props:i,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=re?re.focused:ce,b.useEffect(()=>{!re&&f&&ce&&(Pe(!1),P&&P())},[re,f,ce,P]);const Je=re&&re.onFilled,Ct=re&&re.onEmpty,Kt=b.useCallback(Oe=>{pj(Oe)?Je&&Je():Ct&&Ct()},[Je,Ct]);Ni(()=>{Ge&&Kt({value:de})},[de,Kt,Ge]);const lt=Oe=>{if(xe.disabled){Oe.stopPropagation();return}A&&A(Oe),y.onFocus&&y.onFocus(Oe),re&&re.onFocus?re.onFocus(Oe):Pe(!0)},ut=Oe=>{P&&P(Oe),y.onBlur&&y.onBlur(Oe),re&&re.onBlur?re.onBlur(Oe):Pe(!1)},Qt=(Oe,...ee)=>{if(!Ge){const Xi=Oe.target||J.current;if(Xi==null)throw new Error(Xs(1));Kt({value:Xi.value})}y.onChange&&y.onChange(Oe,...ee),M&&M(Oe,...ee)};b.useEffect(()=>{Kt(J.current)},[]);const Br=Oe=>{J.current&&Oe.currentTarget===Oe.target&&J.current.focus(),k&&k(Oe)};let An=g,gt=y;E&&An==="input"&&(H?gt=R({type:void 0,minRows:H,maxRows:H},gt):gt=R({type:void 0,maxRows:w,minRows:C},gt),An=nj);const wa=Oe=>{Kt(Oe.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};b.useEffect(()=>{re&&re.setAdornedStart(!!z)},[re,z]);const In=R({},i,{color:xe.color||"primary",disabled:xe.disabled,endAdornment:h,error:xe.error,focused:xe.focused,formControl:re,fullWidth:m,hiddenLabel:xe.hiddenLabel,multiline:E,size:xe.size,startAdornment:z,type:K}),qn=vj(In),Ln=L.root||u.Root||e2,Qi=_.root||c.root||{},Yi=L.input||u.Input||t2;return gt=R({},gt,(r=_.input)!=null?r:c.input),S.jsxs(b.Fragment,{children:[!p&&yj,S.jsxs(Ln,R({},Qi,!Eg(Ln)&&{ownerState:R({},In,Qi.ownerState)},{ref:n,onClick:Br},He,{className:oe(qn.root,Qi.className,l,B&&"MuiInputBase-readOnly"),children:[z,S.jsx(QT.Provider,{value:null,children:S.jsx(Yi,R({ownerState:In,"aria-invalid":xe.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:d,disabled:xe.disabled,id:x,onAnimationStart:wa,name:T,placeholder:D,readOnly:B,required:xe.required,rows:H,value:de,onKeyDown:I,onKeyUp:$,type:K},gt,!Eg(Yi)&&{as:An,ownerState:R({},In,gt.ownerState)},{ref:ue,className:oe(qn.input,gt.className,B&&"MuiInputBase-readOnly"),onBlur:ut,onChange:Qt,onFocus:lt}))}),h,N?N(R({},xe,{startAdornment:z})):null]}))]})}),wj=xj;function bj(e){return rt("MuiOutlinedInput",e)}const Sj=R({},Ld,Xe("MuiOutlinedInput",["root","notchedOutline","input"])),Wr=Sj,Cj=qt(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Ej(e){return rt("MuiAvatar",e)}Xe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Pj=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Tj=zT(),kj=e=>{const{classes:t,variant:n,colorDefault:r}=e;return at({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Ej,t)},Mj=le("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:R({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:R({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Oj=le("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Rj=le(Cj,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function _j({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=b.useState(!1);return b.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const Aj=b.forwardRef(function(t,n){const r=Tj({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:u={},imgProps:c,sizes:d,src:f,srcSet:p,variant:h="circular"}=r,m=se(r,Pj);let x=null;const g=_j(R({},c,{src:f,srcSet:p})),y=f||p,v=y&&g!=="error",w=R({},r,{colorDefault:!v,component:a,variant:h}),C=kj(w),[E,T]=Pg("img",{className:C.img,elementType:Oj,externalForwardedProps:{slots:l,slotProps:{img:R({},c,u.img)}},additionalProps:{alt:i,src:f,srcSet:p,sizes:d},ownerState:w});return v?x=S.jsx(E,R({},T)):o||o===0?x=o:y&&i?x=i[0]:x=S.jsx(Rj,{ownerState:w,className:C.fallback}),S.jsx(Mj,R({as:a,ownerState:w,className:oe(C.root,s),ref:n},m,{children:x}))}),$d=Aj,Ij=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Lj={entering:{opacity:1},entered:{opacity:1}},$j=b.forwardRef(function(t,n){const r=Gv(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:x,timeout:g=i,TransitionComponent:y=BT}=t,v=se(t,Ij),w=b.useRef(null),C=Gt(w,a.ref,n),E=D=>B=>{if(D){const N=w.current;B===void 0?D(N):D(N,B)}},T=E(f),P=E((D,B)=>{UT(D);const N=Id({style:x,timeout:g,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",N),D.style.transition=r.transitions.create("opacity",N),c&&c(D,B)}),M=E(d),k=E(m),A=E(D=>{const B=Id({style:x,timeout:g,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",B),D.style.transition=r.transitions.create("opacity",B),p&&p(D)}),I=E(h),$=D=>{o&&o(w.current,D)};return S.jsx(y,R({appear:s,in:u,nodeRef:w,onEnter:P,onEntered:M,onEntering:T,onExit:A,onExited:I,onExiting:k,addEndListener:$,timeout:g},v,{children:(D,B)=>b.cloneElement(a,R({style:R({opacity:0,visibility:D==="exited"&&!u?"hidden":void 0},Lj[D],x,a.props.style),ref:C},B))}))}),jj=$j;function Dj(e){return rt("MuiBackdrop",e)}Xe("MuiBackdrop",["root","invisible"]);const Fj=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Nj=e=>{const{classes:t,invisible:n}=e;return at({root:["root",n&&"invisible"]},Dj,t)},zj=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>R({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Vj=b.forwardRef(function(t,n){var r,i,o;const s=it({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:p,slotProps:h={},slots:m={},TransitionComponent:x=jj,transitionDuration:g}=s,y=se(s,Fj),v=R({},s,{component:u,invisible:f}),w=Nj(v),C=(r=h.root)!=null?r:d.root;return S.jsx(x,R({in:p,timeout:g},y,{children:S.jsx(zj,R({"aria-hidden":!0},C,{as:(i=(o=m.root)!=null?o:c.Root)!=null?i:u,className:oe(w.root,l,C==null?void 0:C.className),ownerState:R({},v,C==null?void 0:C.ownerState),classes:w,ref:n,children:a}))}))}),Bj=Vj,Uj=Xe("MuiBox",["root"]),Wj=Uj,Hj=Hv(),Gj=k3({themeId:_o,defaultTheme:Hj,defaultClassName:Wj.root,generateClassName:jv.generate}),Q=Gj;function qj(e){return rt("MuiCard",e)}Xe("MuiCard",["root"]);const Kj=["className","raised"],Qj=e=>{const{classes:t}=e;return at({root:["root"]},qj,t)},Yj=le(ea,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Xj=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=se(r,Kj),a=R({},r,{raised:o}),l=Qj(a);return S.jsx(Yj,R({className:oe(l.root,i),elevation:o?8:void 0,ref:n,ownerState:a},s))}),Zj=Xj;function Jj(e){return rt("MuiCardMedia",e)}Xe("MuiCardMedia",["root","media","img"]);const eD=["children","className","component","image","src","style"],tD=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return at({root:["root",n&&"media",r&&"img"]},Jj,t)},nD=le("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})(({ownerState:e})=>R({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),rD=["video","audio","picture","iframe","img"],iD=["picture","img"],oD=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardMedia"}),{children:i,className:o,component:s="div",image:a,src:l,style:u}=r,c=se(r,eD),d=rD.indexOf(s)!==-1,f=!d&&a?R({backgroundImage:`url("${a}")`},u):u,p=R({},r,{component:s,isMediaComponent:d,isImageComponent:iD.indexOf(s)!==-1}),h=tD(p);return S.jsx(nD,R({className:oe(h.root,o),as:s,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:p,src:d?a||l:void 0},c,{children:i}))}),sD=oD;function aD(e){return rt("MuiCircularProgress",e)}Xe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lD=["className","color","disableShrink","size","style","thickness","value","variant"];let fp=e=>e,Ew,Pw,Tw,kw;const Hr=44,uD=da(Ew||(Ew=fp` +`),vn.rippleVisible,KL,Tg,({theme:e})=>e.transitions.easing.easeInOut,vn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,vn.child,vn.childLeaving,QL,Tg,({theme:e})=>e.transitions.easing.easeInOut,vn.childPulsate,YL,({theme:e})=>e.transitions.easing.easeInOut),JL=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=se(r,GL),[l,u]=b.useState([]),c=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=b.useRef(!1),p=Y3(),h=b.useRef(null),m=b.useRef(null),x=b.useCallback(w=>{const{pulsate:C,rippleX:E,rippleY:T,rippleSize:P,cb:M}=w;u(k=>[...k,S.jsx(ZL,{classes:{ripple:oe(o.ripple,vn.ripple),rippleVisible:oe(o.rippleVisible,vn.rippleVisible),ripplePulsate:oe(o.ripplePulsate,vn.ripplePulsate),child:oe(o.child,vn.child),childLeaving:oe(o.childLeaving,vn.childLeaving),childPulsate:oe(o.childPulsate,vn.childPulsate)},timeout:Tg,pulsate:C,rippleX:E,rippleY:T,rippleSize:P},c.current)]),c.current+=1,d.current=M},[o]),g=b.useCallback((w={},C={},E=()=>{})=>{const{pulsate:T=!1,center:P=i||C.pulsate,fakeElement:M=!1}=C;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const k=M?null:m.current,A=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,$,D;if(P||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)I=Math.round(A.width/2),$=Math.round(A.height/2);else{const{clientX:B,clientY:N}=w.touches&&w.touches.length>0?w.touches[0]:w;I=Math.round(B-A.left),$=Math.round(N-A.top)}if(P)D=Math.sqrt((2*A.width**2+A.height**2)/3),D%2===0&&(D+=1);else{const B=Math.max(Math.abs((k?k.clientWidth:0)-I),I)*2+2,N=Math.max(Math.abs((k?k.clientHeight:0)-$),$)*2+2;D=Math.sqrt(B**2+N**2)}w!=null&&w.touches?h.current===null&&(h.current=()=>{x({pulsate:T,rippleX:I,rippleY:$,rippleSize:D,cb:E})},p.start(qL,()=>{h.current&&(h.current(),h.current=null)})):x({pulsate:T,rippleX:I,rippleY:$,rippleSize:D,cb:E})},[i,x,p]),y=b.useCallback(()=>{g({},{pulsate:!0})},[g]),v=b.useCallback((w,C)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{v(w,C)});return}h.current=null,u(E=>E.length>0?E.slice(1):E),d.current=C},[p]);return b.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:v}),[y,g,v]),S.jsx(XL,O({className:oe(vn.root,o.root,s),ref:m},a,{children:S.jsx($L,{component:null,exit:!0,children:l})}))}),e$=JL;function t$(e){return rt("MuiButtonBase",e)}const n$=Xe("MuiButtonBase",["root","disabled","focusVisible"]),r$=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],i$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=at({root:["root",t&&"disabled",n&&"focusVisible"]},t$,i);return n&&r&&(s.root+=` ${r}`),s},o$=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${n$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),s$=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:w,onKeyUp:C,onMouseDown:E,onMouseLeave:T,onMouseUp:P,onTouchEnd:M,onTouchMove:k,onTouchStart:A,tabIndex:I=0,TouchRippleProps:$,touchRippleRef:D,type:B}=r,N=se(r,r$),H=b.useRef(null),R=b.useRef(null),L=Gt(R,D),{isFocusVisibleRef:z,onFocus:K,onBlur:ne,ref:He}=zv(),[de,Ge]=b.useState(!1);u&&de&&Ge(!1),b.useImperativeHandle(i,()=>({focusVisible:()=>{Ge(!0),H.current.focus()}}),[]);const[J,U]=b.useState(!1);b.useEffect(()=>{U(!0)},[]);const ue=J&&!c&&!u;b.useEffect(()=>{de&&f&&!c&&J&&R.current.pulsate()},[c,f,de,J]);function ce(ee,Xi,Bp=d){return uo(Wu=>(Xi&&Xi(Wu),!Bp&&R.current&&R.current[ee](Wu),!0))}const Pe=ce("start",E),re=ce("stop",x),xe=ce("stop",g),Je=ce("stop",P),Ct=ce("stop",ee=>{de&&ee.preventDefault(),T&&T(ee)}),Kt=ce("start",A),lt=ce("stop",M),ut=ce("stop",k),Qt=ce("stop",ee=>{ne(ee),z.current===!1&&Ge(!1),h&&h(ee)},!1),Br=uo(ee=>{H.current||(H.current=ee.currentTarget),K(ee),z.current===!0&&(Ge(!0),v&&v(ee)),y&&y(ee)}),An=()=>{const ee=H.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},gt=b.useRef(!1),wa=uo(ee=>{f&&!gt.current&&de&&R.current&&ee.key===" "&&(gt.current=!0,R.current.stop(ee,()=>{R.current.start(ee)})),ee.target===ee.currentTarget&&An()&&ee.key===" "&&ee.preventDefault(),w&&w(ee),ee.target===ee.currentTarget&&An()&&ee.key==="Enter"&&!u&&(ee.preventDefault(),m&&m(ee))}),In=uo(ee=>{f&&ee.key===" "&&R.current&&de&&!ee.defaultPrevented&&(gt.current=!1,R.current.stop(ee,()=>{R.current.pulsate(ee)})),C&&C(ee),m&&ee.target===ee.currentTarget&&An()&&ee.key===" "&&!ee.defaultPrevented&&m(ee)});let qn=l;qn==="button"&&(N.href||N.to)&&(qn=p);const Ln={};qn==="button"?(Ln.type=B===void 0?"button":B,Ln.disabled=u):(!N.href&&!N.to&&(Ln.role="button"),u&&(Ln["aria-disabled"]=u));const Qi=Gt(n,He,H),Yi=O({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:I,focusVisible:de}),_e=i$(Yi);return S.jsxs(o$,O({as:qn,className:oe(_e.root,a),ownerState:Yi,onBlur:Qt,onClick:m,onContextMenu:re,onFocus:Br,onKeyDown:wa,onKeyUp:In,onMouseDown:Pe,onMouseLeave:Ct,onMouseUp:Je,onDragLeave:xe,onTouchEnd:lt,onTouchMove:ut,onTouchStart:Kt,ref:Qi,tabIndex:u?-1:I,type:B},Ln,N,{children:[s,ue?S.jsx(e$,O({ref:L,center:o},$)):null]}))}),kg=s$;function a$(e){return rt("MuiAlert",e)}const l$=Xe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),gw=l$;function u$(e){return rt("MuiIconButton",e)}const c$=Xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),d$=["edge","children","className","color","disabled","disableFocusRipple","size"],f$=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Y(r)}`,i&&`edge${Y(i)}`,`size${Y(o)}`]};return at(s,u$,t)},p$=le(kg,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Y(n.color)}`],n.edge&&t[`edge${Y(n.edge)}`],t[`size${Y(n.size)}`]]}})(({theme:e,ownerState:t})=>O({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return O({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&O({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":O({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${c$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),h$=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=se(r,d$),f=O({},r,{edge:i,color:a,disabled:l,disableFocusRipple:u,size:c}),p=f$(f);return S.jsx(p$,O({className:oe(p.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},d,{ownerState:f,children:o}))}),Wl=h$,m$=qt(S.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),g$=qt(S.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),v$=qt(S.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),y$=qt(S.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),x$=qt(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),w$=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],b$=zT(),S$=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${Y(n||r)}`,`${t}${Y(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return at(o,a$,i)},C$=le(ta,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Y(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?yg:xg,n=e.palette.mode==="light"?xg:yg;return O({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${gw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${gw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:O({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),E$=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),P$=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),vw=le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),yw={success:S.jsx(m$,{fontSize:"inherit"}),warning:S.jsx(g$,{fontSize:"inherit"}),error:S.jsx(v$,{fontSize:"inherit"}),info:S.jsx(y$,{fontSize:"inherit"})},T$=b.forwardRef(function(t,n){const r=b$({props:t,name:"MuiAlert"}),{action:i,children:o,className:s,closeText:a="Close",color:l,components:u={},componentsProps:c={},icon:d,iconMapping:f=yw,onClose:p,role:h="alert",severity:m="success",slotProps:x={},slots:g={},variant:y="standard"}=r,v=se(r,w$),w=O({},r,{color:l,severity:m,variant:y,colorSeverity:l||m}),C=S$(w),E={slots:O({closeButton:u.CloseButton,closeIcon:u.CloseIcon},g),slotProps:O({},c,x)},[T,P]=Pg("closeButton",{elementType:Wl,externalForwardedProps:E,ownerState:w}),[M,k]=Pg("closeIcon",{elementType:x$,externalForwardedProps:E,ownerState:w});return S.jsxs(C$,O({role:h,elevation:0,ownerState:w,className:oe(C.root,s),ref:n},v,{children:[d!==!1?S.jsx(E$,{ownerState:w,className:C.icon,children:d||f[m]||yw[m]}):null,S.jsx(P$,{ownerState:w,className:C.message,children:o}),i!=null?S.jsx(vw,{ownerState:w,className:C.action,children:i}):null,i==null&&p?S.jsx(vw,{ownerState:w,className:C.action,children:S.jsx(T,O({size:"small","aria-label":a,title:a,color:"inherit",onClick:p},P,{children:S.jsx(M,O({fontSize:"small"},k))}))}):null]}))}),k$=T$;function M$(e){return rt("MuiTypography",e)}Xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _$=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],O$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${Y(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return at(a,M$,s)},R$=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Y(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>O({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),xw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},A$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},I$=e=>A$[e]||e,L$=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiTypography"}),i=I$(r.color),o=$v(O({},r,{color:i})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=xw}=o,h=se(o,_$),m=O({},o,{align:s,color:i,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),x=l||(d?"p":p[f]||xw[f])||"span",g=O$(m);return S.jsx(R$,O({as:x,ref:n,ownerState:m,className:oe(g.root,a)},h))}),ae=L$,$$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function j$(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function D$(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function F$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||D$(e))}function N$(e){const t=[],n=[];return Array.from(e.querySelectorAll($$)).forEach((r,i)=>{const o=j$(r);o===-1||!F$(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function z$(){return!0}function V$(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=N$,isEnabled:s=z$,open:a}=e,l=b.useRef(!1),u=b.useRef(null),c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(!1),h=b.useRef(null),m=Gt(t.ref,h),x=b.useRef(null);b.useEffect(()=>{!a||!h.current||(p.current=!n)},[n,a]),b.useEffect(()=>{if(!a||!h.current)return;const v=Tr(h.current);return h.current.contains(v.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),b.useEffect(()=>{if(!a||!h.current)return;const v=Tr(h.current),w=T=>{x.current=T,!(r||!s()||T.key!=="Tab")&&v.activeElement===h.current&&T.shiftKey&&(l.current=!0,c.current&&c.current.focus())},C=()=>{const T=h.current;if(T===null)return;if(!v.hasFocus()||!s()||l.current){l.current=!1;return}if(T.contains(v.activeElement)||r&&v.activeElement!==u.current&&v.activeElement!==c.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let P=[];if((v.activeElement===u.current||v.activeElement===c.current)&&(P=o(h.current)),P.length>0){var M,k;const A=!!((M=x.current)!=null&&M.shiftKey&&((k=x.current)==null?void 0:k.key)==="Tab"),I=P[0],$=P[P.length-1];typeof I!="string"&&typeof $!="string"&&(A?$.focus():I.focus())}else T.focus()};v.addEventListener("focusin",C),v.addEventListener("keydown",w,!0);const E=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(E),v.removeEventListener("focusin",C),v.removeEventListener("keydown",w,!0)}},[n,r,i,s,a,o]);const g=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,f.current=v.target;const w=t.props.onFocus;w&&w(v)},y=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return S.jsxs(b.Fragment,{children:[S.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:m,onFocus:g}),S.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function B$(e){return typeof e=="function"?e():e}const U$=b.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=b.useState(null),l=Gt(b.isValidElement(r)?r.ref:null,n);if(Ni(()=>{o||a(B$(i)||document.body)},[i,o]),Ni(()=>{if(s&&!o)return Od(n,s),()=>{Od(n,null)}},[n,s,o]),o){if(b.isValidElement(r)){const u={ref:l};return b.cloneElement(r,u)}return S.jsx(b.Fragment,{children:r})}return S.jsx(b.Fragment,{children:s&&kf.createPortal(r,s)})});function W$(e){const t=Tr(e);return t.body===e?zi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function al(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ww(e){return parseInt(zi(e).getComputedStyle(e).paddingRight,10)||0}function H$(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function bw(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=o.indexOf(s)===-1,l=!H$(s);a&&l&&al(s,i)})}function Sh(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function G$(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(W$(r)){const s=i4(Tr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ww(r)+s}px`;const a=Tr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ww(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Tr(r).body;else{const s=r.parentElement,a=zi(r);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function q$(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class K${constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&al(t.modalRef,!1);const i=q$(n);bw(n,t.mount,t.modalRef,i,!0);const o=Sh(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Sh(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=G$(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Sh(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&al(t.modalRef,n),bw(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&al(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Q$(e){return typeof e=="function"?e():e}function Y$(e){return e?e.props.hasOwnProperty("in"):!1}const X$=new K$;function Z$(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=X$,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=e,f=b.useRef({}),p=b.useRef(null),h=b.useRef(null),m=Gt(h,d),[x,g]=b.useState(!c),y=Y$(l);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const w=()=>Tr(p.current),C=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),E=()=>{i.mount(C(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},T=uo(()=>{const N=Q$(t)||w().body;i.add(C(),N),h.current&&E()}),P=b.useCallback(()=>i.isTopModal(C()),[i]),M=uo(N=>{p.current=N,N&&(c&&P()?E():h.current&&al(h.current,v))}),k=b.useCallback(()=>{i.remove(C(),v)},[v,i]);b.useEffect(()=>()=>{k()},[k]),b.useEffect(()=>{c?T():(!y||!o)&&k()},[c,k,y,o,T]);const A=N=>H=>{var R;(R=N.onKeyDown)==null||R.call(N,H),!(H.key!=="Escape"||H.which===229||!P())&&(n||(H.stopPropagation(),u&&u(H,"escapeKeyDown")))},I=N=>H=>{var R;(R=N.onClick)==null||R.call(N,H),H.target===H.currentTarget&&u&&u(H,"backdropClick")};return{getRootProps:(N={})=>{const H=HT(e);delete H.onTransitionEnter,delete H.onTransitionExited;const R=O({},H,N);return O({role:"presentation"},R,{onKeyDown:A(R),ref:m})},getBackdropProps:(N={})=>{const H=N;return O({"aria-hidden":!0},H,{onClick:I(H),open:c})},getTransitionProps:()=>{const N=()=>{g(!1),s&&s()},H=()=>{g(!0),a&&a(),o&&k()};return{onEnter:gg(N,l==null?void 0:l.props.onEnter),onExited:gg(H,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:M,isTopModal:P,exited:x,hasTransition:y}}const J$=["onChange","maxRows","minRows","style","value"];function fc(e){return parseInt(e,10)||0}const ej={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tj(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const nj=b.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a}=t,l=se(t,J$),{current:u}=b.useRef(a!=null),c=b.useRef(null),d=Gt(n,c),f=b.useRef(null),p=b.useCallback(()=>{const x=c.current,y=zi(x).getComputedStyle(x);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const v=f.current;v.style.width=y.width,v.value=x.value||t.placeholder||"x",v.value.slice(-1)===` +`&&(v.value+=" ");const w=y.boxSizing,C=fc(y.paddingBottom)+fc(y.paddingTop),E=fc(y.borderBottomWidth)+fc(y.borderTopWidth),T=v.scrollHeight;v.value="x";const P=v.scrollHeight;let M=T;o&&(M=Math.max(Number(o)*P,M)),i&&(M=Math.min(Number(i)*P,M)),M=Math.max(M,P);const k=M+(w==="border-box"?C+E:0),A=Math.abs(M-T)<=1;return{outerHeightStyle:k,overflowing:A}},[i,o,t.placeholder]),h=b.useCallback(()=>{const x=p();if(tj(x))return;const g=c.current;g.style.height=`${x.outerHeightStyle}px`,g.style.overflow=x.overflowing?"hidden":""},[p]);Ni(()=>{const x=()=>{h()};let g;const y=Nv(x),v=c.current,w=zi(v);w.addEventListener("resize",y);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(v)),()=>{y.clear(),cancelAnimationFrame(g),w.removeEventListener("resize",y),C&&C.disconnect()}},[p,h]),Ni(()=>{h()});const m=x=>{u||h(),r&&r(x)};return S.jsxs(b.Fragment,{children:[S.jsx("textarea",O({value:a,onChange:m,ref:d,rows:o,style:s},l)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:O({},ej.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),rj=qt(S.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function ij(e){return rt("MuiChip",e)}const oj=Xe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),ye=oj,sj=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],aj=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,u={root:["root",l,n&&"disabled",`size${Y(r)}`,`color${Y(i)}`,a&&"clickable",a&&`clickableColor${Y(i)}`,s&&"deletable",s&&`deletableColor${Y(i)}`,`${l}${Y(i)}`],label:["label",`label${Y(r)}`],avatar:["avatar",`avatar${Y(r)}`,`avatarColor${Y(i)}`],icon:["icon",`icon${Y(r)}`,`iconColor${Y(o)}`],deleteIcon:["deleteIcon",`deleteIcon${Y(r)}`,`deleteIconColor${Y(i)}`,`deleteIcon${Y(l)}Color${Y(i)}`]};return at(u,ij,t)},lj=le("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${ye.avatar}`]:t.avatar},{[`& .${ye.avatar}`]:t[`avatar${Y(a)}`]},{[`& .${ye.avatar}`]:t[`avatarColor${Y(r)}`]},{[`& .${ye.icon}`]:t.icon},{[`& .${ye.icon}`]:t[`icon${Y(a)}`]},{[`& .${ye.icon}`]:t[`iconColor${Y(i)}`]},{[`& .${ye.deleteIcon}`]:t.deleteIcon},{[`& .${ye.deleteIcon}`]:t[`deleteIcon${Y(a)}`]},{[`& .${ye.deleteIcon}`]:t[`deleteIconColor${Y(r)}`]},{[`& .${ye.deleteIcon}`]:t[`deleteIcon${Y(l)}Color${Y(r)}`]},t.root,t[`size${Y(a)}`],t[`color${Y(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${Y(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Y(r)}`],t[l],t[`${l}${Y(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return O({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ye.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ye.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${ye.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ye.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ye.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ye.icon}`]:O({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&O({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${ye.deleteIcon}`]:O({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:kt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:kt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:kt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>O({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>O({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ye.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ye.avatar}`]:{marginLeft:4},[`& .${ye.avatarSmall}`]:{marginLeft:2},[`& .${ye.icon}`]:{marginLeft:4},[`& .${ye.iconSmall}`]:{marginLeft:2},[`& .${ye.deleteIcon}`]:{marginRight:5},[`& .${ye.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:kt(e.palette[t.color].main,.7)}`,[`&.${ye.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:kt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${ye.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:kt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),uj=le("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Y(r)}`]]}})(({ownerState:e})=>O({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Sw(e){return e.key==="Backspace"||e.key==="Delete"}const cj=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:p,onDelete:h,onKeyDown:m,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=r,C=se(r,sj),E=b.useRef(null),T=Gt(E,n),P=L=>{L.stopPropagation(),h&&h(L)},M=L=>{L.currentTarget===L.target&&Sw(L)&&L.preventDefault(),m&&m(L)},k=L=>{L.currentTarget===L.target&&(h&&Sw(L)?h(L):L.key==="Escape"&&E.current&&E.current.blur()),x&&x(L)},A=s!==!1&&p?!0:s,I=A||h?kg:l||"div",$=O({},r,{component:I,disabled:c,size:g,color:a,iconColor:b.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:A,variant:y}),D=aj($),B=I===kg?O({component:l||"div",focusVisibleClassName:D.focusVisible},h&&{disableRipple:!0}):{};let N=null;h&&(N=u&&b.isValidElement(u)?b.cloneElement(u,{className:oe(u.props.className,D.deleteIcon),onClick:P}):S.jsx(rj,{className:oe(D.deleteIcon),onClick:P}));let H=null;i&&b.isValidElement(i)&&(H=b.cloneElement(i,{className:oe(D.avatar,i.props.className)}));let R=null;return d&&b.isValidElement(d)&&(R=b.cloneElement(d,{className:oe(D.icon,d.props.className)})),S.jsxs(lj,O({as:I,className:oe(D.root,o),disabled:A&&c?!0:void 0,onClick:p,onKeyDown:M,onKeyUp:k,ref:T,tabIndex:w&&c?-1:v,ownerState:$},B,C,{children:[H||R,S.jsx(uj,{className:oe(D.label),ownerState:$,children:f}),N]}))}),dj=cj;function KT({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const fj=b.createContext(void 0),QT=fj;function YT(){return b.useContext(QT)}function XT(e){return S.jsx(w3,O({},e,{defaultTheme:cp,themeId:Ro}))}function Cw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pj(e,t=!1){return e&&(Cw(e.value)&&e.value!==""||t&&Cw(e.defaultValue)&&e.defaultValue!=="")}function hj(e){return rt("MuiInputBase",e)}const mj=Xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ld=mj,gj=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ZT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Y(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},JT=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},vj=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e,m={root:["root",`color${Y(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${Y(f)}`,c&&"multiline",p&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return at(m,hj,t)},e2=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ZT})(({theme:e,ownerState:t})=>O({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&O({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),t2=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:JT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=O({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return O({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ld.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ld.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),yj=S.jsx(XT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),xj=b.forwardRef(function(t,n){var r;const i=it({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:m=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:v,maxRows:w,minRows:C,multiline:E=!1,name:T,onBlur:P,onChange:M,onClick:k,onFocus:A,onKeyDown:I,onKeyUp:$,placeholder:D,readOnly:B,renderSuffix:N,rows:H,slotProps:R={},slots:L={},startAdornment:z,type:K="text",value:ne}=i,He=se(i,gj),de=y.value!=null?y.value:ne,{current:Ge}=b.useRef(de!=null),J=b.useRef(),U=b.useCallback(_e=>{},[]),ue=Gt(J,v,y.ref,U),[ce,Pe]=b.useState(!1),re=YT(),xe=KT({props:i,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=re?re.focused:ce,b.useEffect(()=>{!re&&f&&ce&&(Pe(!1),P&&P())},[re,f,ce,P]);const Je=re&&re.onFilled,Ct=re&&re.onEmpty,Kt=b.useCallback(_e=>{pj(_e)?Je&&Je():Ct&&Ct()},[Je,Ct]);Ni(()=>{Ge&&Kt({value:de})},[de,Kt,Ge]);const lt=_e=>{if(xe.disabled){_e.stopPropagation();return}A&&A(_e),y.onFocus&&y.onFocus(_e),re&&re.onFocus?re.onFocus(_e):Pe(!0)},ut=_e=>{P&&P(_e),y.onBlur&&y.onBlur(_e),re&&re.onBlur?re.onBlur(_e):Pe(!1)},Qt=(_e,...ee)=>{if(!Ge){const Xi=_e.target||J.current;if(Xi==null)throw new Error(Zs(1));Kt({value:Xi.value})}y.onChange&&y.onChange(_e,...ee),M&&M(_e,...ee)};b.useEffect(()=>{Kt(J.current)},[]);const Br=_e=>{J.current&&_e.currentTarget===_e.target&&J.current.focus(),k&&k(_e)};let An=g,gt=y;E&&An==="input"&&(H?gt=O({type:void 0,minRows:H,maxRows:H},gt):gt=O({type:void 0,maxRows:w,minRows:C},gt),An=nj);const wa=_e=>{Kt(_e.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};b.useEffect(()=>{re&&re.setAdornedStart(!!z)},[re,z]);const In=O({},i,{color:xe.color||"primary",disabled:xe.disabled,endAdornment:h,error:xe.error,focused:xe.focused,formControl:re,fullWidth:m,hiddenLabel:xe.hiddenLabel,multiline:E,size:xe.size,startAdornment:z,type:K}),qn=vj(In),Ln=L.root||u.Root||e2,Qi=R.root||c.root||{},Yi=L.input||u.Input||t2;return gt=O({},gt,(r=R.input)!=null?r:c.input),S.jsxs(b.Fragment,{children:[!p&&yj,S.jsxs(Ln,O({},Qi,!Eg(Ln)&&{ownerState:O({},In,Qi.ownerState)},{ref:n,onClick:Br},He,{className:oe(qn.root,Qi.className,l,B&&"MuiInputBase-readOnly"),children:[z,S.jsx(QT.Provider,{value:null,children:S.jsx(Yi,O({ownerState:In,"aria-invalid":xe.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:d,disabled:xe.disabled,id:x,onAnimationStart:wa,name:T,placeholder:D,readOnly:B,required:xe.required,rows:H,value:de,onKeyDown:I,onKeyUp:$,type:K},gt,!Eg(Yi)&&{as:An,ownerState:O({},In,gt.ownerState)},{ref:ue,className:oe(qn.input,gt.className,B&&"MuiInputBase-readOnly"),onBlur:ut,onChange:Qt,onFocus:lt}))}),h,N?N(O({},xe,{startAdornment:z})):null]}))]})}),wj=xj;function bj(e){return rt("MuiOutlinedInput",e)}const Sj=O({},Ld,Xe("MuiOutlinedInput",["root","notchedOutline","input"])),Wr=Sj,Cj=qt(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Ej(e){return rt("MuiAvatar",e)}Xe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Pj=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Tj=zT(),kj=e=>{const{classes:t,variant:n,colorDefault:r}=e;return at({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Ej,t)},Mj=le("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:O({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:O({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),_j=le("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Oj=le(Cj,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Rj({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=b.useState(!1);return b.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const Aj=b.forwardRef(function(t,n){const r=Tj({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:u={},imgProps:c,sizes:d,src:f,srcSet:p,variant:h="circular"}=r,m=se(r,Pj);let x=null;const g=Rj(O({},c,{src:f,srcSet:p})),y=f||p,v=y&&g!=="error",w=O({},r,{colorDefault:!v,component:a,variant:h}),C=kj(w),[E,T]=Pg("img",{className:C.img,elementType:_j,externalForwardedProps:{slots:l,slotProps:{img:O({},c,u.img)}},additionalProps:{alt:i,src:f,srcSet:p,sizes:d},ownerState:w});return v?x=S.jsx(E,O({},T)):o||o===0?x=o:y&&i?x=i[0]:x=S.jsx(Oj,{ownerState:w,className:C.fallback}),S.jsx(Mj,O({as:a,ownerState:w,className:oe(C.root,s),ref:n},m,{children:x}))}),$d=Aj,Ij=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Lj={entering:{opacity:1},entered:{opacity:1}},$j=b.forwardRef(function(t,n){const r=Gv(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:x,timeout:g=i,TransitionComponent:y=BT}=t,v=se(t,Ij),w=b.useRef(null),C=Gt(w,a.ref,n),E=D=>B=>{if(D){const N=w.current;B===void 0?D(N):D(N,B)}},T=E(f),P=E((D,B)=>{UT(D);const N=Id({style:x,timeout:g,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",N),D.style.transition=r.transitions.create("opacity",N),c&&c(D,B)}),M=E(d),k=E(m),A=E(D=>{const B=Id({style:x,timeout:g,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",B),D.style.transition=r.transitions.create("opacity",B),p&&p(D)}),I=E(h),$=D=>{o&&o(w.current,D)};return S.jsx(y,O({appear:s,in:u,nodeRef:w,onEnter:P,onEntered:M,onEntering:T,onExit:A,onExited:I,onExiting:k,addEndListener:$,timeout:g},v,{children:(D,B)=>b.cloneElement(a,O({style:O({opacity:0,visibility:D==="exited"&&!u?"hidden":void 0},Lj[D],x,a.props.style),ref:C},B))}))}),jj=$j;function Dj(e){return rt("MuiBackdrop",e)}Xe("MuiBackdrop",["root","invisible"]);const Fj=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Nj=e=>{const{classes:t,invisible:n}=e;return at({root:["root",n&&"invisible"]},Dj,t)},zj=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>O({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Vj=b.forwardRef(function(t,n){var r,i,o;const s=it({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:p,slotProps:h={},slots:m={},TransitionComponent:x=jj,transitionDuration:g}=s,y=se(s,Fj),v=O({},s,{component:u,invisible:f}),w=Nj(v),C=(r=h.root)!=null?r:d.root;return S.jsx(x,O({in:p,timeout:g},y,{children:S.jsx(zj,O({"aria-hidden":!0},C,{as:(i=(o=m.root)!=null?o:c.Root)!=null?i:u,className:oe(w.root,l,C==null?void 0:C.className),ownerState:O({},v,C==null?void 0:C.ownerState),classes:w,ref:n,children:a}))}))}),Bj=Vj,Uj=Xe("MuiBox",["root"]),Wj=Uj,Hj=Hv(),Gj=k3({themeId:Ro,defaultTheme:Hj,defaultClassName:Wj.root,generateClassName:jv.generate}),Q=Gj;function qj(e){return rt("MuiCard",e)}Xe("MuiCard",["root"]);const Kj=["className","raised"],Qj=e=>{const{classes:t}=e;return at({root:["root"]},qj,t)},Yj=le(ta,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Xj=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=se(r,Kj),a=O({},r,{raised:o}),l=Qj(a);return S.jsx(Yj,O({className:oe(l.root,i),elevation:o?8:void 0,ref:n,ownerState:a},s))}),Zj=Xj;function Jj(e){return rt("MuiCardMedia",e)}Xe("MuiCardMedia",["root","media","img"]);const eD=["children","className","component","image","src","style"],tD=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return at({root:["root",n&&"media",r&&"img"]},Jj,t)},nD=le("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})(({ownerState:e})=>O({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),rD=["video","audio","picture","iframe","img"],iD=["picture","img"],oD=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardMedia"}),{children:i,className:o,component:s="div",image:a,src:l,style:u}=r,c=se(r,eD),d=rD.indexOf(s)!==-1,f=!d&&a?O({backgroundImage:`url("${a}")`},u):u,p=O({},r,{component:s,isMediaComponent:d,isImageComponent:iD.indexOf(s)!==-1}),h=tD(p);return S.jsx(nD,O({className:oe(h.root,o),as:s,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:p,src:d?a||l:void 0},c,{children:i}))}),sD=oD;function aD(e){return rt("MuiCircularProgress",e)}Xe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lD=["className","color","disableShrink","size","style","thickness","value","variant"];let fp=e=>e,Ew,Pw,Tw,kw;const Hr=44,uD=fa(Ew||(Ew=fp` 0% { transform: rotate(0deg); } @@ -167,7 +167,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),cD=da(Pw||(Pw=fp` +`)),cD=fa(Pw||(Pw=fp` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -182,11 +182,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),dD=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Y(r)}`],svg:["svg"],circle:["circle",`circle${Y(n)}`,i&&"circleDisableShrink"]};return at(o,aD,t)},fD=le("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Y(n.color)}`]]}})(({ownerState:e,theme:t})=>R({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Hf(Tw||(Tw=fp` +`)),dD=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Y(r)}`],svg:["svg"],circle:["circle",`circle${Y(n)}`,i&&"circleDisableShrink"]};return at(o,aD,t)},fD=le("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Y(n.color)}`]]}})(({ownerState:e,theme:t})=>O({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Hf(Tw||(Tw=fp` animation: ${0} 1.4s linear infinite; - `),uD)),pD=le("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),hD=le("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Y(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>R({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Hf(kw||(kw=fp` + `),uD)),pD=le("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),hD=le("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Y(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>O({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Hf(kw||(kw=fp` animation: ${0} 1.4s ease-in-out infinite; - `),cD)),mD=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=se(r,lD),p=R({},r,{color:o,disableShrink:s,size:a,thickness:u,value:c,variant:d}),h=dD(p),m={},x={},g={};if(d==="determinate"){const y=2*Math.PI*((Hr-u)/2);m.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,x.transform="rotate(-90deg)"}return S.jsx(fD,R({className:oe(h.root,i),style:R({width:a,height:a},x,l),ownerState:p,ref:n,role:"progressbar"},g,f,{children:S.jsx(pD,{className:h.svg,ownerState:p,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:S.jsx(hD,{className:h.circle,style:m,ownerState:p,cx:Hr,cy:Hr,r:(Hr-u)/2,fill:"none",strokeWidth:u})})}))}),gD=mD,vD=(e,t)=>R({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),yD=e=>R({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),xD=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let i=R({html:vD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:R({margin:0},yD(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function wD(e){const t=it({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return S.jsxs(b.Fragment,{children:[S.jsx(XT,{styles:i=>xD(i,r)}),n]})}function bD(e){return rt("MuiModal",e)}Xe("MuiModal",["root","hidden","backdrop"]);const SD=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],CD=e=>{const{open:t,exited:n,classes:r}=e;return at({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},bD,r)},ED=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>R({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),PD=le(Bj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),TD=b.forwardRef(function(t,n){var r,i,o,s,a,l;const u=it({name:"MuiModal",props:t}),{BackdropComponent:c=PD,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:m,component:x,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:C=!1,disablePortal:E=!1,disableRestoreFocus:T=!1,disableScrollLock:P=!1,hideBackdrop:M=!1,keepMounted:k=!1,onBackdropClick:A,open:I,slotProps:$,slots:D}=u,B=se(u,SD),N=R({},u,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:w,disableEscapeKeyDown:C,disablePortal:E,disableRestoreFocus:T,disableScrollLock:P,hideBackdrop:M,keepMounted:k}),{getRootProps:H,getBackdropProps:_,getTransitionProps:L,portalRef:z,isTopModal:K,exited:ne,hasTransition:He}=Z$(R({},N,{rootRef:n})),de=R({},N,{exited:ne}),Ge=CD(de),J={};if(h.props.tabIndex===void 0&&(J.tabIndex="-1"),He){const{onEnter:Je,onExited:Ct}=L();J.onEnter=Je,J.onExited=Ct}const U=(r=(i=D==null?void 0:D.root)!=null?i:g.Root)!=null?r:ED,ue=(o=(s=D==null?void 0:D.backdrop)!=null?s:g.Backdrop)!=null?o:c,ce=(a=$==null?void 0:$.root)!=null?a:y.root,Pe=(l=$==null?void 0:$.backdrop)!=null?l:y.backdrop,re=dw({elementType:U,externalSlotProps:ce,externalForwardedProps:B,getSlotProps:H,additionalProps:{ref:n,as:x},ownerState:de,className:oe(f,ce==null?void 0:ce.className,Ge==null?void 0:Ge.root,!de.open&&de.exited&&(Ge==null?void 0:Ge.hidden))}),xe=dw({elementType:ue,externalSlotProps:Pe,additionalProps:d,getSlotProps:Je=>_(R({},Je,{onClick:Ct=>{A&&A(Ct),Je!=null&&Je.onClick&&Je.onClick(Ct)}})),className:oe(Pe==null?void 0:Pe.className,d==null?void 0:d.className,Ge==null?void 0:Ge.backdrop),ownerState:de});return!k&&!I&&(!He||ne)?null:S.jsx(U$,{ref:z,container:m,disablePortal:E,children:S.jsxs(U,R({},re,{children:[!M&&c?S.jsx(ue,R({},xe)):null,S.jsx(V$,{disableEnforceFocus:w,disableAutoFocus:v,disableRestoreFocus:T,isEnabled:K,open:I,children:b.cloneElement(h,J)})]}))})}),kD=TD;function MD(e){return rt("MuiDivider",e)}Xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const OD=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],RD=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return at({root:["root",t&&"absolute",l,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},MD,r)},_D=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>R({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:kt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>R({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>R({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>R({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>R({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),AD=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>R({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),n2=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:a=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth"}=r,h=se(r,OD),m=R({},r,{absolute:i,component:a,flexItem:l,light:u,orientation:c,role:d,textAlign:f,variant:p}),x=RD(m);return S.jsx(_D,R({as:a,className:oe(x.root,s),role:d,ref:n,ownerState:m},h,{children:o?S.jsx(AD,{className:x.wrapper,ownerState:m,children:o}):null}))});n2.muiSkipListHighlight=!0;const Qv=n2,ID=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function LD(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=zi(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=o.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function $D(e){return typeof e=="function"?e():e}function pc(e,t,n){const r=$D(n),i=LD(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const jD=b.forwardRef(function(t,n){const r=Gv(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:u,direction:c="down",easing:d=i,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:x,onExited:g,onExiting:y,style:v,timeout:w=o,TransitionComponent:C=BT}=t,E=se(t,ID),T=b.useRef(null),P=Gt(l.ref,T,n),M=_=>L=>{_&&(L===void 0?_(T.current):_(T.current,L))},k=M((_,L)=>{pc(c,_,u),UT(_),p&&p(_,L)}),A=M((_,L)=>{const z=Id({timeout:w,style:v,easing:d},{mode:"enter"});_.style.webkitTransition=r.transitions.create("-webkit-transform",R({},z)),_.style.transition=r.transitions.create("transform",R({},z)),_.style.webkitTransform="none",_.style.transform="none",m&&m(_,L)}),I=M(h),$=M(y),D=M(_=>{const L=Id({timeout:w,style:v,easing:d},{mode:"exit"});_.style.webkitTransition=r.transitions.create("-webkit-transform",L),_.style.transition=r.transitions.create("transform",L),pc(c,_,u),x&&x(_)}),B=M(_=>{_.style.webkitTransition="",_.style.transition="",g&&g(_)}),N=_=>{s&&s(T.current,_)},H=b.useCallback(()=>{T.current&&pc(c,T.current,u)},[c,u]);return b.useEffect(()=>{if(f||c==="down"||c==="right")return;const _=Nv(()=>{T.current&&pc(c,T.current,u)}),L=zi(T.current);return L.addEventListener("resize",_),()=>{_.clear(),L.removeEventListener("resize",_)}},[c,f,u]),b.useEffect(()=>{f||H()},[f,H]),S.jsx(C,R({nodeRef:T,onEnter:k,onEntered:I,onEntering:A,onExit:D,onExited:B,onExiting:$,addEndListener:N,appear:a,in:f,timeout:w},E,{children:(_,L)=>b.cloneElement(l,R({ref:P,style:R({visibility:_==="exited"&&!f?"hidden":void 0},v,l.props.style)},L))}))}),DD=jD;function FD(e){return rt("MuiDrawer",e)}Xe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const ND=["BackdropProps"],zD=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],r2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},VD=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Y(n)}`,r!=="temporary"&&`paperAnchorDocked${Y(n)}`]};return at(i,FD,t)},BD=le(kD,{name:"MuiDrawer",slot:"Root",overridesResolver:r2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Mw=le("div",{shouldForwardProp:Iu,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r2})({flex:"0 0 auto"}),UD=le(ea,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Y(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Y(n.anchor)}`]]}})(({theme:e,ownerState:t})=>R({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),i2={left:"right",right:"left",top:"down",bottom:"up"};function WD(e){return["left","right"].indexOf(e)!==-1}function HD({direction:e},t){return e==="rtl"&&WD(t)?i2[t]:t}const GD=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiDrawer"}),i=Gv(),o=f4(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:u,className:c,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:x={},SlideProps:g,TransitionComponent:y=DD,transitionDuration:v=s,variant:w="temporary"}=r,C=se(r.ModalProps,ND),E=se(r,zD),T=b.useRef(!1);b.useEffect(()=>{T.current=!0},[]);const P=HD({direction:o?"rtl":"ltr"},a),k=R({},r,{anchor:a,elevation:d,open:m,variant:w},E),A=VD(k),I=S.jsx(UD,R({elevation:w==="temporary"?d:0,square:!0},x,{className:oe(A.paper,x.className),ownerState:k,children:u}));if(w==="permanent")return S.jsx(Mw,R({className:oe(A.root,A.docked,c),ownerState:k,ref:n},E,{children:I}));const $=S.jsx(y,R({in:m,direction:i2[P],timeout:v,appear:T.current},g,{children:I}));return w==="persistent"?S.jsx(Mw,R({className:oe(A.root,A.docked,c),ownerState:k,ref:n},E,{children:$})):S.jsx(BD,R({BackdropProps:R({},l,p,{transitionDuration:v}),className:oe(A.root,A.modal,c),open:m,ownerState:k,onClose:h,hideBackdrop:f,ref:n},E,C,{children:$}))}),qD=GD;function KD(e){return rt("MuiLink",e)}const QD=Xe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),YD=QD,o2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},XD=e=>o2[e]||e,ZD=({theme:e,ownerState:t})=>{const n=XD(t.color),r=Js(e,`palette.${n}`,!1)||t.color,i=Js(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:kt(r,.4)},JD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],eF=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${Y(i)}`,n==="button"&&"button",r&&"focusVisible"]};return at(o,KD,t)},tF=le(ae,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Y(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>R({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&R({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:ZD({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${YD.focusVisible}`]:{outline:"auto"}})),nF=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:f}=r,p=se(r,JD),{isFocusVisibleRef:h,onBlur:m,onFocus:x,ref:g}=zv(),[y,v]=b.useState(!1),w=Gt(n,g),C=M=>{m(M),h.current===!1&&v(!1),a&&a(M)},E=M=>{x(M),h.current===!0&&v(!0),l&&l(M)},T=R({},r,{color:o,component:s,focusVisible:y,underline:c,variant:d}),P=eF(T);return S.jsx(tF,R({color:o,className:oe(P.root,i),classes:u,component:s,onBlur:C,onFocus:E,ref:w,ownerState:T,variant:d,sx:[...Object.keys(o2).includes(o)?[]:[{color:o}],...Array.isArray(f)?f:[f]]},p))}),Mg=nF;var Ow;const rF=["children","classes","className","label","notched"],iF=le("fieldset",{shouldForwardProp:Iu})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),oF=le("legend",{shouldForwardProp:Iu})(({ownerState:e,theme:t})=>R({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&R({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function sF(e){const{className:t,label:n,notched:r}=e,i=se(e,rF),o=n!=null&&n!=="",s=R({},e,{notched:r,withLabel:o});return S.jsx(iF,R({"aria-hidden":!0,className:t,ownerState:s},i,{children:S.jsx(oF,{ownerState:s,children:o?S.jsx("span",{children:n}):Ow||(Ow=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const aF=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],lF=e=>{const{classes:t}=e,r=at({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bj,t);return R({},t,r)},uF=le(e2,{shouldForwardProp:e=>Iu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ZT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return R({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Wr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Wr.focused} .${Wr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Wr.error} .${Wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Wr.disabled} .${Wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&R({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),cF=le(sF,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),dF=le(t2,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:JT})(({theme:e,ownerState:t})=>R({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),s2=b.forwardRef(function(t,n){var r,i,o,s,a;const l=it({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:h,slots:m={},type:x="text"}=l,g=se(l,aF),y=lF(l),v=YT(),w=KT({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=R({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:v,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:x}),E=(r=(i=m.root)!=null?i:u.Root)!=null?r:uF,T=(o=(s=m.input)!=null?s:u.Input)!=null?o:dF;return S.jsx(wj,R({slots:{root:E,input:T},renderSuffix:P=>S.jsx(cF,{ownerState:C,className:y.notchedOutline,label:f!=null&&f!==""&&w.required?a||(a=S.jsxs(b.Fragment,{children:[f," ","*"]})):f,notched:typeof h<"u"?h:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:n,type:x},g,{classes:R({},y,{notchedOutline:null})}))});s2.muiName="Input";const fF=s2;function pF(e){return rt("MuiToolbar",e)}Xe("MuiToolbar",["root","gutters","regular","dense"]);const hF=["className","component","disableGutters","variant"],mF=e=>{const{classes:t,disableGutters:n,variant:r}=e;return at({root:["root",!n&&"gutters",r]},pF,t)},gF=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>R({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),vF=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,l=se(r,hF),u=R({},r,{component:o,disableGutters:s,variant:a}),c=mF(u);return S.jsx(gF,R({as:o,className:oe(c.root,i),ref:n,ownerState:u},l))}),yF=vF;var Yv={},Ch={};const xF=Fr(kL);var Rw;function wF(){return Rw||(Rw=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xF}(Ch)),Ch}var bF=Vv;Object.defineProperty(Yv,"__esModule",{value:!0});var a2=Yv.default=void 0,SF=bF(wF()),CF=S;a2=Yv.default=(0,SF.default)((0,CF.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const l2=qt(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),EF=qt(S.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),PF=qt(S.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),TF=qt(S.jsx("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram"),kF=qt(S.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn"),MF=qt(S.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");/*! ***************************************************************************** + `),cD)),mD=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=se(r,lD),p=O({},r,{color:o,disableShrink:s,size:a,thickness:u,value:c,variant:d}),h=dD(p),m={},x={},g={};if(d==="determinate"){const y=2*Math.PI*((Hr-u)/2);m.strokeDasharray=y.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,x.transform="rotate(-90deg)"}return S.jsx(fD,O({className:oe(h.root,i),style:O({width:a,height:a},x,l),ownerState:p,ref:n,role:"progressbar"},g,f,{children:S.jsx(pD,{className:h.svg,ownerState:p,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:S.jsx(hD,{className:h.circle,style:m,ownerState:p,cx:Hr,cy:Hr,r:(Hr-u)/2,fill:"none",strokeWidth:u})})}))}),gD=mD,vD=(e,t)=>O({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),yD=e=>O({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),xD=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let i=O({html:vD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:O({margin:0},yD(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function wD(e){const t=it({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return S.jsxs(b.Fragment,{children:[S.jsx(XT,{styles:i=>xD(i,r)}),n]})}function bD(e){return rt("MuiModal",e)}Xe("MuiModal",["root","hidden","backdrop"]);const SD=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],CD=e=>{const{open:t,exited:n,classes:r}=e;return at({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},bD,r)},ED=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>O({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),PD=le(Bj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),TD=b.forwardRef(function(t,n){var r,i,o,s,a,l;const u=it({name:"MuiModal",props:t}),{BackdropComponent:c=PD,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:m,component:x,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:C=!1,disablePortal:E=!1,disableRestoreFocus:T=!1,disableScrollLock:P=!1,hideBackdrop:M=!1,keepMounted:k=!1,onBackdropClick:A,open:I,slotProps:$,slots:D}=u,B=se(u,SD),N=O({},u,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:w,disableEscapeKeyDown:C,disablePortal:E,disableRestoreFocus:T,disableScrollLock:P,hideBackdrop:M,keepMounted:k}),{getRootProps:H,getBackdropProps:R,getTransitionProps:L,portalRef:z,isTopModal:K,exited:ne,hasTransition:He}=Z$(O({},N,{rootRef:n})),de=O({},N,{exited:ne}),Ge=CD(de),J={};if(h.props.tabIndex===void 0&&(J.tabIndex="-1"),He){const{onEnter:Je,onExited:Ct}=L();J.onEnter=Je,J.onExited=Ct}const U=(r=(i=D==null?void 0:D.root)!=null?i:g.Root)!=null?r:ED,ue=(o=(s=D==null?void 0:D.backdrop)!=null?s:g.Backdrop)!=null?o:c,ce=(a=$==null?void 0:$.root)!=null?a:y.root,Pe=(l=$==null?void 0:$.backdrop)!=null?l:y.backdrop,re=dw({elementType:U,externalSlotProps:ce,externalForwardedProps:B,getSlotProps:H,additionalProps:{ref:n,as:x},ownerState:de,className:oe(f,ce==null?void 0:ce.className,Ge==null?void 0:Ge.root,!de.open&&de.exited&&(Ge==null?void 0:Ge.hidden))}),xe=dw({elementType:ue,externalSlotProps:Pe,additionalProps:d,getSlotProps:Je=>R(O({},Je,{onClick:Ct=>{A&&A(Ct),Je!=null&&Je.onClick&&Je.onClick(Ct)}})),className:oe(Pe==null?void 0:Pe.className,d==null?void 0:d.className,Ge==null?void 0:Ge.backdrop),ownerState:de});return!k&&!I&&(!He||ne)?null:S.jsx(U$,{ref:z,container:m,disablePortal:E,children:S.jsxs(U,O({},re,{children:[!M&&c?S.jsx(ue,O({},xe)):null,S.jsx(V$,{disableEnforceFocus:w,disableAutoFocus:v,disableRestoreFocus:T,isEnabled:K,open:I,children:b.cloneElement(h,J)})]}))})}),kD=TD;function MD(e){return rt("MuiDivider",e)}Xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const _D=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],OD=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return at({root:["root",t&&"absolute",l,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},MD,r)},RD=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>O({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:kt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>O({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>O({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>O({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>O({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),AD=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>O({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),n2=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:a=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth"}=r,h=se(r,_D),m=O({},r,{absolute:i,component:a,flexItem:l,light:u,orientation:c,role:d,textAlign:f,variant:p}),x=OD(m);return S.jsx(RD,O({as:a,className:oe(x.root,s),role:d,ref:n,ownerState:m},h,{children:o?S.jsx(AD,{className:x.wrapper,ownerState:m,children:o}):null}))});n2.muiSkipListHighlight=!0;const Qv=n2,ID=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function LD(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=zi(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=o.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function $D(e){return typeof e=="function"?e():e}function pc(e,t,n){const r=$D(n),i=LD(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const jD=b.forwardRef(function(t,n){const r=Gv(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:u,direction:c="down",easing:d=i,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:x,onExited:g,onExiting:y,style:v,timeout:w=o,TransitionComponent:C=BT}=t,E=se(t,ID),T=b.useRef(null),P=Gt(l.ref,T,n),M=R=>L=>{R&&(L===void 0?R(T.current):R(T.current,L))},k=M((R,L)=>{pc(c,R,u),UT(R),p&&p(R,L)}),A=M((R,L)=>{const z=Id({timeout:w,style:v,easing:d},{mode:"enter"});R.style.webkitTransition=r.transitions.create("-webkit-transform",O({},z)),R.style.transition=r.transitions.create("transform",O({},z)),R.style.webkitTransform="none",R.style.transform="none",m&&m(R,L)}),I=M(h),$=M(y),D=M(R=>{const L=Id({timeout:w,style:v,easing:d},{mode:"exit"});R.style.webkitTransition=r.transitions.create("-webkit-transform",L),R.style.transition=r.transitions.create("transform",L),pc(c,R,u),x&&x(R)}),B=M(R=>{R.style.webkitTransition="",R.style.transition="",g&&g(R)}),N=R=>{s&&s(T.current,R)},H=b.useCallback(()=>{T.current&&pc(c,T.current,u)},[c,u]);return b.useEffect(()=>{if(f||c==="down"||c==="right")return;const R=Nv(()=>{T.current&&pc(c,T.current,u)}),L=zi(T.current);return L.addEventListener("resize",R),()=>{R.clear(),L.removeEventListener("resize",R)}},[c,f,u]),b.useEffect(()=>{f||H()},[f,H]),S.jsx(C,O({nodeRef:T,onEnter:k,onEntered:I,onEntering:A,onExit:D,onExited:B,onExiting:$,addEndListener:N,appear:a,in:f,timeout:w},E,{children:(R,L)=>b.cloneElement(l,O({ref:P,style:O({visibility:R==="exited"&&!f?"hidden":void 0},v,l.props.style)},L))}))}),DD=jD;function FD(e){return rt("MuiDrawer",e)}Xe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const ND=["BackdropProps"],zD=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],r2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},VD=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Y(n)}`,r!=="temporary"&&`paperAnchorDocked${Y(n)}`]};return at(i,FD,t)},BD=le(kD,{name:"MuiDrawer",slot:"Root",overridesResolver:r2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Mw=le("div",{shouldForwardProp:Iu,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r2})({flex:"0 0 auto"}),UD=le(ta,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Y(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Y(n.anchor)}`]]}})(({theme:e,ownerState:t})=>O({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),i2={left:"right",right:"left",top:"down",bottom:"up"};function WD(e){return["left","right"].indexOf(e)!==-1}function HD({direction:e},t){return e==="rtl"&&WD(t)?i2[t]:t}const GD=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiDrawer"}),i=Gv(),o=f4(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:u,className:c,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:x={},SlideProps:g,TransitionComponent:y=DD,transitionDuration:v=s,variant:w="temporary"}=r,C=se(r.ModalProps,ND),E=se(r,zD),T=b.useRef(!1);b.useEffect(()=>{T.current=!0},[]);const P=HD({direction:o?"rtl":"ltr"},a),k=O({},r,{anchor:a,elevation:d,open:m,variant:w},E),A=VD(k),I=S.jsx(UD,O({elevation:w==="temporary"?d:0,square:!0},x,{className:oe(A.paper,x.className),ownerState:k,children:u}));if(w==="permanent")return S.jsx(Mw,O({className:oe(A.root,A.docked,c),ownerState:k,ref:n},E,{children:I}));const $=S.jsx(y,O({in:m,direction:i2[P],timeout:v,appear:T.current},g,{children:I}));return w==="persistent"?S.jsx(Mw,O({className:oe(A.root,A.docked,c),ownerState:k,ref:n},E,{children:$})):S.jsx(BD,O({BackdropProps:O({},l,p,{transitionDuration:v}),className:oe(A.root,A.modal,c),open:m,ownerState:k,onClose:h,hideBackdrop:f,ref:n},E,C,{children:$}))}),qD=GD;function KD(e){return rt("MuiLink",e)}const QD=Xe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),YD=QD,o2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},XD=e=>o2[e]||e,ZD=({theme:e,ownerState:t})=>{const n=XD(t.color),r=ea(e,`palette.${n}`,!1)||t.color,i=ea(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:kt(r,.4)},JD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],eF=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${Y(i)}`,n==="button"&&"button",r&&"focusVisible"]};return at(o,KD,t)},tF=le(ae,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Y(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>O({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&O({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:ZD({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${YD.focusVisible}`]:{outline:"auto"}})),nF=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:f}=r,p=se(r,JD),{isFocusVisibleRef:h,onBlur:m,onFocus:x,ref:g}=zv(),[y,v]=b.useState(!1),w=Gt(n,g),C=M=>{m(M),h.current===!1&&v(!1),a&&a(M)},E=M=>{x(M),h.current===!0&&v(!0),l&&l(M)},T=O({},r,{color:o,component:s,focusVisible:y,underline:c,variant:d}),P=eF(T);return S.jsx(tF,O({color:o,className:oe(P.root,i),classes:u,component:s,onBlur:C,onFocus:E,ref:w,ownerState:T,variant:d,sx:[...Object.keys(o2).includes(o)?[]:[{color:o}],...Array.isArray(f)?f:[f]]},p))}),Mg=nF;var _w;const rF=["children","classes","className","label","notched"],iF=le("fieldset",{shouldForwardProp:Iu})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),oF=le("legend",{shouldForwardProp:Iu})(({ownerState:e,theme:t})=>O({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&O({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function sF(e){const{className:t,label:n,notched:r}=e,i=se(e,rF),o=n!=null&&n!=="",s=O({},e,{notched:r,withLabel:o});return S.jsx(iF,O({"aria-hidden":!0,className:t,ownerState:s},i,{children:S.jsx(oF,{ownerState:s,children:o?S.jsx("span",{children:n}):_w||(_w=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const aF=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],lF=e=>{const{classes:t}=e,r=at({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bj,t);return O({},t,r)},uF=le(e2,{shouldForwardProp:e=>Iu(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ZT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return O({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Wr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Wr.focused} .${Wr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Wr.error} .${Wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Wr.disabled} .${Wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&O({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),cF=le(sF,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),dF=le(t2,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:JT})(({theme:e,ownerState:t})=>O({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),s2=b.forwardRef(function(t,n){var r,i,o,s,a;const l=it({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:h,slots:m={},type:x="text"}=l,g=se(l,aF),y=lF(l),v=YT(),w=KT({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=O({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:v,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:x}),E=(r=(i=m.root)!=null?i:u.Root)!=null?r:uF,T=(o=(s=m.input)!=null?s:u.Input)!=null?o:dF;return S.jsx(wj,O({slots:{root:E,input:T},renderSuffix:P=>S.jsx(cF,{ownerState:C,className:y.notchedOutline,label:f!=null&&f!==""&&w.required?a||(a=S.jsxs(b.Fragment,{children:[f," ","*"]})):f,notched:typeof h<"u"?h:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:n,type:x},g,{classes:O({},y,{notchedOutline:null})}))});s2.muiName="Input";const fF=s2;function pF(e){return rt("MuiToolbar",e)}Xe("MuiToolbar",["root","gutters","regular","dense"]);const hF=["className","component","disableGutters","variant"],mF=e=>{const{classes:t,disableGutters:n,variant:r}=e;return at({root:["root",!n&&"gutters",r]},pF,t)},gF=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>O({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),vF=b.forwardRef(function(t,n){const r=it({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,l=se(r,hF),u=O({},r,{component:o,disableGutters:s,variant:a}),c=mF(u);return S.jsx(gF,O({as:o,className:oe(c.root,i),ref:n,ownerState:u},l))}),yF=vF;var Yv={},Ch={};const xF=Fr(kL);var Ow;function wF(){return Ow||(Ow=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xF}(Ch)),Ch}var bF=Vv;Object.defineProperty(Yv,"__esModule",{value:!0});var a2=Yv.default=void 0,SF=bF(wF()),CF=S;a2=Yv.default=(0,SF.default)((0,CF.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const l2=qt(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),EF=qt(S.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),PF=qt(S.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),TF=qt(S.jsx("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram"),kF=qt(S.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn"),MF=qt(S.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -199,7 +199,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Og=function(){return Og=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{r("/")},sx:{height:"65%",display:"flex",flexGrow:1,alignItems:"center",cursor:"pointer"},children:[S.jsx("img",{alt:"adc-logo",src:"/logo256.png",style:{maxHeight:"100%",margin:"10px 0px 10px 0px"}}),S.jsx(ae,{sx:{fontSize:"1.3rem",fontWeight:"bold",marginLeft:"15px"},children:"App Dev Club"})]}),S.jsx(Q,{sx:{display:{xs:"none",md:"flex"}},children:e.links.map(i=>S.jsx(Iw,{smooth:!0,to:i.anchor,className:"webv2-nhashlink",children:i.title}))}),S.jsx(Wl,{onClick:()=>{n(!0)},sx:{color:"inherit",display:{xs:"flex",md:"none"}},children:S.jsx(a2,{sx:{fontSize:"1.8rem"}})}),S.jsxs(qD,{anchor:"right",open:t,onClose:()=>{n(!1)},PaperProps:{sx:{width:"180px",bgcolor:"background.default",padding:"25px",backgroundImage:"unset"}},children:[S.jsx(Wl,{onClick:()=>{n(!1)},sx:{alignSelf:"end",maxWidth:"40px",marginBottom:"10px"},children:S.jsx(l2,{})}),e.links.map(i=>S.jsx(Iw,{smooth:!0,to:i.anchor,onClick:()=>{n(!1)},className:"webv2-nhashlink-mobile",children:i.title}))]})]})})}var d2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Lw=W.createContext&&W.createContext(d2),_F=["attr","size","title"];function AF(e,t){if(e==null)return{};var n=IF(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Dd(){return Dd=Object.assign?Object.assign.bind():function(e){for(var t=1;tW.createElement(t.tag,Fd({key:n},t.attr),f2(t.child)))}function DF(e){return t=>W.createElement(FF,Dd({attr:Fd({},e.attr)},t),f2(e.child))}function FF(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=AF(e,_F),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),W.createElement("svg",Dd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Fd(Fd({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&W.createElement("title",null,o),e.children)};return Lw!==void 0?W.createElement(Lw.Consumer,null,n=>t(n)):t(d2)}function NF(e){return DF({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.593 10.971c-.542 0-.969.475-.969 1.055 0 .578.437 1.055.969 1.055.541 0 .968-.477.968-1.055.011-.581-.427-1.055-.968-1.055zm3.468 0c-.542 0-.969.475-.969 1.055 0 .578.437 1.055.969 1.055.541 0 .968-.477.968-1.055-.001-.581-.427-1.055-.968-1.055z"},child:[]},{tag:"path",attr:{d:"M17.678 3H4.947A1.952 1.952 0 0 0 3 4.957v12.844c0 1.083.874 1.957 1.947 1.957H15.72l-.505-1.759 1.217 1.131 1.149 1.064L19.625 22V4.957A1.952 1.952 0 0 0 17.678 3zM14.01 15.407s-.342-.408-.626-.771c1.244-.352 1.719-1.13 1.719-1.13-.39.256-.76.438-1.093.562a6.679 6.679 0 0 1-3.838.398 7.944 7.944 0 0 1-1.396-.41 5.402 5.402 0 0 1-.693-.321c-.029-.021-.057-.029-.085-.048a.117.117 0 0 1-.039-.03c-.171-.094-.266-.16-.266-.16s.456.76 1.663 1.121c-.285.36-.637.789-.637.789-2.099-.067-2.896-1.444-2.896-1.444 0-3.059 1.368-5.538 1.368-5.538 1.368-1.027 2.669-.998 2.669-.998l.095.114c-1.71.495-2.499 1.245-2.499 1.245s.21-.114.561-.275c1.016-.446 1.823-.57 2.156-.599.057-.009.105-.019.162-.019a7.756 7.756 0 0 1 4.778.893s-.751-.712-2.366-1.206l.133-.152s1.302-.029 2.669.998c0 0 1.368 2.479 1.368 5.538 0-.001-.807 1.376-2.907 1.443z"},child:[]}]})(e)}function p2(e){let t=[{icon:S.jsx(TF,{}),redirect:"https://www.instagram.com/appdev_umd/"},{icon:S.jsx(kF,{}),redirect:"https://www.linkedin.com/company/app-development-club/"},{icon:S.jsx(PF,{}),redirect:"https://github.com/appdevumd"},{icon:S.jsx(EF,{}),redirect:"mailto:umdappdev@gmail.com"},{icon:S.jsx(NF,{}),redirect:"https://discord.com/invite/scSeVbTT7G"}];return S.jsx(Q,{sx:{display:"flex",gap:"10px",flexGrow:1,...e==null?void 0:e.sx},children:t.map(n=>W.cloneElement(n.icon,{onClick:()=>{var r;(r=window.open(n.redirect))==null||r.focus()},style:{cursor:"pointer",maxHeight:"24px",fontSize:e.fontSize??"22px",zIndex:2}}))})}function h2(e){const n=new Date().getFullYear();return S.jsxs(Q,{sx:{...e.sx,display:"flex",width:"100%",height:"75px",padding:"30px",alignItems:"center",justifyContent:"center"},children:[S.jsxs(ae,{style:{fontSize:"18px",flexGrow:1},children:["© ",n," App Dev Club LLC"]}),S.jsx("img",{src:"../logo256.png",style:{maxHeight:"50px"}}),S.jsx(p2,{sx:{justifyContent:"end"}})]})}const jw=[{title:"Home",anchor:"/#maindiv-001"},{title:"Projects",anchor:"/#subdiv-002"},{title:"Our Team",anchor:"/#team"},{title:"Sponsors",anchor:"/#sponsors"},{title:"Contact Us",anchor:"/#contact"}];function zF(){const[e,t]=W.useState(-120);return W.useEffect(()=>{function n(){const r=window.scrollY;t(Math.min(r-120,0))}return window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}},[]),S.jsxs(S.Fragment,{children:[S.jsx(jd,{links:jw,fullWidth:!0,sx:{backgroundColor:"transparent"}}),S.jsx(jd,{links:jw,translucent:!0,sx:{zIndex:2,marginTop:"25px",position:"fixed",top:`${e}px`,left:"0px"}}),S.jsx(G5,{}),S.jsx(Q,{sx:{position:"relative"},children:S.jsx(h2,{})})]})}const VF=Hv({palette:{mode:"dark",text:{primary:"#FFFFFF"},background:{default:"#14213D"}},typography:{fontFamily:"Inter, sans-serif"}}),m2={baseTheme:VF};function BF(e){const[t,n]=W.useState(!1),r=()=>{window.localStorage.setItem("events-visible","false"),n(!1)};return W.useEffect(()=>{window.localStorage.getItem("events-visible")==null&&window.localStorage.setItem("events-visible","true");const i=window.localStorage.getItem("events-visible");n(i!=null?JSON.parse(i):!0)},[]),S.jsxs(Q,{sx:{background:"#16F4D0",color:"#000000",fontWeight:600,display:t?"flex":"none",justifyContent:"center",alignItems:"center",height:"30px"},children:[S.jsx(Q,{sx:{flexGrow:1,display:"flex",justifyContent:"center"},children:e.events.map(i=>S.jsx(Mg,{underline:"hover",href:i.href,color:"inherit",children:i.title},`${i.title}::${i.href}`))}),S.jsx(Wl,{"data-testid":"events-close-button",onClick:r,sx:{color:"inherit",width:"25px",height:"25px",marginRight:"5px"},children:S.jsx(l2,{sx:{color:"inherit"}})})]})}function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"&&typeof ue>"u"){var Pe=ce?p:f;U=Pe.left+Pe.width/2,ue=Pe.top+Pe.height/2}var re=0,xe=0,Je=f,Ct=Je.top,Kt=Je.left,lt=Je.width,ut=Je.height,Qt;if(ce){var In=p,qn=In.top,Ln=In.left,Qi=In.width,Yi=In.height,Oe=Kt-Ln,ee=Ct-qn,Xi=lt/2+Oe,Bp=ut/2+ee,Wu=U-Ln,v1=ue-qn;xe=l.rotateYMax*(Wu-Xi)/(Qi-lt/2)*-1,re=l.rotateXMax*(v1-Bp)/(Yi-ut/2),Qt=U-Kt+"px "+(ue-Ct)+"px"}else{var Br=lt/2,An=ut/2,gt=U-Kt,wa=ue-Ct;xe=l.rotateYMax*(gt-Br)/(lt/2)*-1,re=l.rotateXMax*(wa-An)/(ut/2)}re=Math.min(Math.max(-re,-l.rotateXMax),l.rotateXMax),l.rotateXInvert&&(re=-re),xe=Math.min(Math.max(-xe,-l.rotateYMax),l.rotateYMax),l.rotateYInvert&&(xe=-xe);var ba=re/l.rotateXMax*100,Sa=xe/l.rotateYMax*100,RO=(ce?Sa/100*l.stretchX:0)*(l.rotateYInvert?-1:1),_O=(ce?ba/100*l.stretchY:0)*(l.rotateXInvert?-1:1),AO=ce?Math.max(Math.abs(ba),Math.abs(Sa))/100*l.stretchZ:0;P(u,"translate3d("+RO+"%, "+-_O+"%, "+-AO+"px) rotateX("+re+"deg) rotateY("+xe+"deg)"),Qt&&l.commonOrigin&&k(u,Qt),m&&(E(m,l.duration+"ms"),T(m,"ease-out"),P(m,"translate3d("+-Sa*.25+"%, "+ba*.25+"%, 0)"),M(m,Math.max(Math.abs(ba),Math.abs(Sa))/100)),B({rotateXPercentage:ba,rotateYPercentage:Sa,duration:l.duration+"ms",easeOut:!0}),typeof l.onRotate=="function"&&l.onRotate(re,xe)},H=function(){v.push(function(){return n.classList.add("atropos-active")}),E(u,l.duration+"ms"),T(u,"ease-out"),P(c,"translate3d(0,0, "+l.activeOffset+"px)"),E(c,l.duration+"ms"),T(c,"ease-out"),h&&(E(h,l.duration+"ms"),T(h,"ease-out")),a.isActive=!0},_=function(U){if(x=void 0,!(U.type==="pointerdown"&&U.pointerType==="mouse")&&!(U.type==="pointerenter"&&U.pointerType!=="mouse")){if(U.type==="pointerdown"&&U.preventDefault(),g=U.clientX,y=U.clientY,l.alwaysActive){f=void 0,p=void 0;return}H(),typeof l.onEnter=="function"&&l.onEnter()}},L=function(U){x===!1&&U.cancelable&&U.preventDefault()},z=function(U){if(!(!l.rotate||!a.isActive)){if(U.pointerType!=="mouse"){if(!l.rotateTouch)return;U.preventDefault()}var ue=U.clientX,ce=U.clientY,Pe=ue-g,re=ce-y;if(typeof l.rotateTouch=="string"&&(Pe!==0||re!==0)&&typeof x>"u"){if(Pe*Pe+re*re>=25){var xe=Math.atan2(Math.abs(re),Math.abs(Pe))*180/Math.PI;x=l.rotateTouch==="scroll-y"?xe>45:90-xe>45}x===!1&&(n.classList.add("atropos-rotate-touch"),U.cancelable&&U.preventDefault())}U.pointerType!=="mouse"&&x||N(ue,ce)}},K=function(U){if(f=void 0,p=void 0,!!a.isActive&&!(U&&U.type==="pointerup"&&U.pointerType==="mouse")&&!(U&&U.type==="pointerleave"&&U.pointerType!=="mouse")){if(typeof l.rotateTouch=="string"&&x&&n.classList.remove("atropos-rotate-touch"),l.alwaysActive){N(),typeof l.onRotate=="function"&&l.onRotate(0,0),typeof l.onLeave=="function"&&l.onLeave();return}v.push(function(){return n.classList.remove("atropos-active")}),E(c,l.duration+"ms"),T(c,""),P(c,"translate3d(0,0, 0px)"),h&&(E(h,l.duration+"ms"),T(h,"")),m&&(E(m,l.duration+"ms"),T(m,""),P(m,"translate3d(0, 0, 0)"),M(m,0)),E(u,l.duration+"ms"),T(u,""),P(u,"translate3d(0,0,0) rotateX(0deg) rotateY(0deg)"),B({duration:l.duration+"ms"}),a.isActive=!1,typeof l.onRotate=="function"&&l.onRotate(0,0),typeof l.onLeave=="function"&&l.onLeave()}},ne=function(U){var ue=U.target;!r.contains(ue)&&ue!==r&&a.isActive&&K()},He=function(){typeof n=="string"&&(n=Gr(document,n)),n&&(n.__atropos__||(typeof r<"u"?typeof r=="string"&&(r=Gr(document,r)):r=n,s=o?n.parentNode.host:n,Object.assign(a,{el:n}),u=Gr(n,".atropos-rotate"),c=Gr(n,".atropos-scale"),d=Gr(n,".atropos-inner"),n.__atropos__=a))},de=function(){He(),!(!n||!r)&&(l.shadow&&$(),l.highlight&&D(),l.rotateTouch&&(typeof l.rotateTouch=="string"?n.classList.add("atropos-rotate-touch-"+l.rotateTouch):n.classList.add("atropos-rotate-touch")),Gr(s,"[data-atropos-opacity]")&&B({opacityOnly:!0}),A(document,"click",ne),A(r,"pointerdown",_),A(r,"pointerenter",_),A(r,"pointermove",z),A(r,"touchmove",L),A(r,"pointerleave",K),A(r,"pointerup",K),A(r,"lostpointercapture",K),l.alwaysActive&&(H(),N()))},Ge=function(){a.destroyed=!0,cancelAnimationFrame(w),I(document,"click",ne),I(r,"pointerdown",_),I(r,"pointerenter",_),I(r,"pointermove",z),I(r,"touchmove",L),I(r,"pointerleave",K),I(r,"pointerup",K),I(r,"lostpointercapture",K),delete n.__atropos__};return a.destroy=Ge,de(),a}var qF=["component","children","rootChildren","scaleChildren","rotateChildren","className","scaleClassName","rotateClassName","innerClassName"];function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var g2=["eventsEl","alwaysActive","activeOffset","shadowOffset","shadowScale","duration","rotate","rotateTouch","rotateXMax","rotateYMax","rotateXInvert","rotateYInvert","stretchX","stretchY","stretchZ","commonOrigin","shadow","highlight","onEnter","onLeave","onRotate"],QF=function(t){var n={};return Object.keys(t).forEach(function(r){g2.includes(r)||(n[r]=t[r])}),n},YF=function(t){var n={};return Object.keys(t).forEach(function(r){g2.includes(r)&&(n[r]=t[r])}),n};function XF(e){var t=e.component,n=t===void 0?"div":t,r=e.children,i=e.rootChildren,o=e.scaleChildren,s=e.rotateChildren,a=e.className,l=a===void 0?"":a,u=e.scaleClassName,c=u===void 0?"":u,d=e.rotateClassName,f=d===void 0?"":d,p=e.innerClassName,h=p===void 0?"":p,m=KF(e,qF),x=b.useRef(null),g=b.useRef(null),y=n,v=function(){for(var T=arguments.length,P=new Array(T),M=0;M"u")&&W.createElement("span",{className:"atropos-highlight"})),s,(e.shadow||typeof e.shadow>"u")&&W.createElement("span",{className:"atropos-shadow"})),o),i)}function ZF(e){let t=0,n;for(n=0;n>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r}function v2(e){return{sx:{bgcolor:ZF(e)},children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`}}var y2={};function JF(e){if(!e||typeof window>"u")return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}Object.defineProperty(y2,"__esModule",{value:!0});var Ne=b;function e6(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var qr=e6(Ne);JF(`.rfm-marquee-container { +***************************************************************************** */var _g=function(){return _g=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{r("/")},sx:{height:"65%",display:"flex",flexGrow:1,alignItems:"center",cursor:"pointer"},children:[S.jsx("img",{alt:"adc-logo",src:"/logo256.png",style:{maxHeight:"100%",margin:"10px 0px 10px 0px"}}),S.jsx(ae,{sx:{fontSize:"1.3rem",fontWeight:"bold",marginLeft:"15px"},children:"App Dev Club"})]}),S.jsx(Q,{sx:{display:{xs:"none",md:"flex"}},children:e.links.map(i=>S.jsx(Iw,{smooth:!0,to:i.anchor,className:"webv2-nhashlink",children:i.title}))}),S.jsx(Wl,{onClick:()=>{n(!0)},sx:{color:"inherit",display:{xs:"flex",md:"none"}},children:S.jsx(a2,{sx:{fontSize:"1.8rem"}})}),S.jsxs(qD,{anchor:"right",open:t,onClose:()=>{n(!1)},PaperProps:{sx:{width:"180px",bgcolor:"background.default",padding:"25px",backgroundImage:"unset"}},children:[S.jsx(Wl,{onClick:()=>{n(!1)},sx:{alignSelf:"end",maxWidth:"40px",marginBottom:"10px"},children:S.jsx(l2,{})}),e.links.map(i=>S.jsx(Iw,{smooth:!0,to:i.anchor,onClick:()=>{n(!1)},className:"webv2-nhashlink-mobile",children:i.title}))]})]})})}var d2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Lw=W.createContext&&W.createContext(d2),RF=["attr","size","title"];function AF(e,t){if(e==null)return{};var n=IF(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Dd(){return Dd=Object.assign?Object.assign.bind():function(e){for(var t=1;tW.createElement(t.tag,Fd({key:n},t.attr),f2(t.child)))}function DF(e){return t=>W.createElement(FF,Dd({attr:Fd({},e.attr)},t),f2(e.child))}function FF(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=AF(e,RF),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),W.createElement("svg",Dd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Fd(Fd({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&W.createElement("title",null,o),e.children)};return Lw!==void 0?W.createElement(Lw.Consumer,null,n=>t(n)):t(d2)}function NF(e){return DF({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.593 10.971c-.542 0-.969.475-.969 1.055 0 .578.437 1.055.969 1.055.541 0 .968-.477.968-1.055.011-.581-.427-1.055-.968-1.055zm3.468 0c-.542 0-.969.475-.969 1.055 0 .578.437 1.055.969 1.055.541 0 .968-.477.968-1.055-.001-.581-.427-1.055-.968-1.055z"},child:[]},{tag:"path",attr:{d:"M17.678 3H4.947A1.952 1.952 0 0 0 3 4.957v12.844c0 1.083.874 1.957 1.947 1.957H15.72l-.505-1.759 1.217 1.131 1.149 1.064L19.625 22V4.957A1.952 1.952 0 0 0 17.678 3zM14.01 15.407s-.342-.408-.626-.771c1.244-.352 1.719-1.13 1.719-1.13-.39.256-.76.438-1.093.562a6.679 6.679 0 0 1-3.838.398 7.944 7.944 0 0 1-1.396-.41 5.402 5.402 0 0 1-.693-.321c-.029-.021-.057-.029-.085-.048a.117.117 0 0 1-.039-.03c-.171-.094-.266-.16-.266-.16s.456.76 1.663 1.121c-.285.36-.637.789-.637.789-2.099-.067-2.896-1.444-2.896-1.444 0-3.059 1.368-5.538 1.368-5.538 1.368-1.027 2.669-.998 2.669-.998l.095.114c-1.71.495-2.499 1.245-2.499 1.245s.21-.114.561-.275c1.016-.446 1.823-.57 2.156-.599.057-.009.105-.019.162-.019a7.756 7.756 0 0 1 4.778.893s-.751-.712-2.366-1.206l.133-.152s1.302-.029 2.669.998c0 0 1.368 2.479 1.368 5.538 0-.001-.807 1.376-2.907 1.443z"},child:[]}]})(e)}function p2(e){let t=[{icon:S.jsx(TF,{}),redirect:"https://www.instagram.com/appdev_umd/"},{icon:S.jsx(kF,{}),redirect:"https://www.linkedin.com/company/app-development-club/"},{icon:S.jsx(PF,{}),redirect:"https://github.com/appdevumd"},{icon:S.jsx(EF,{}),redirect:"mailto:umdappdev@gmail.com"},{icon:S.jsx(NF,{}),redirect:"https://discord.com/invite/scSeVbTT7G"}];return S.jsx(Q,{sx:{display:"flex",gap:"10px",flexGrow:1,...e==null?void 0:e.sx},children:t.map(n=>W.cloneElement(n.icon,{onClick:()=>{var r;(r=window.open(n.redirect))==null||r.focus()},style:{cursor:"pointer",maxHeight:"24px",fontSize:e.fontSize??"22px",zIndex:2}}))})}function h2(e){const n=new Date().getFullYear();return S.jsxs(Q,{sx:{...e.sx,display:"flex",width:"100%",height:"75px",padding:"30px",alignItems:"center",justifyContent:"center"},children:[S.jsxs(ae,{style:{fontSize:"18px",flexGrow:1},children:["© ",n," App Dev Club LLC"]}),S.jsx("img",{src:"../logo256.png",style:{maxHeight:"50px"}}),S.jsx(p2,{sx:{justifyContent:"end"}})]})}const jw=[{title:"Home",anchor:"/#maindiv-001"},{title:"Projects",anchor:"/#subdiv-002"},{title:"Our Team",anchor:"/#team"},{title:"Sponsors",anchor:"/#sponsors"},{title:"Contact Us",anchor:"/#contact"}];function zF(){const[e,t]=W.useState(-120);return W.useEffect(()=>{function n(){const r=window.scrollY;t(Math.min(r-120,0))}return window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}},[]),S.jsxs(S.Fragment,{children:[S.jsx(jd,{links:jw,fullWidth:!0,sx:{backgroundColor:"transparent"}}),S.jsx(jd,{links:jw,translucent:!0,sx:{zIndex:2,marginTop:"25px",position:"fixed",top:`${e}px`,left:"0px"}}),S.jsx(G5,{}),S.jsx(Q,{sx:{position:"relative"},children:S.jsx(h2,{})})]})}const VF=Hv({palette:{mode:"dark",text:{primary:"#FFFFFF"},background:{default:"#14213D"}},typography:{fontFamily:"Inter, sans-serif"}}),m2={baseTheme:VF};function BF(e){const[t,n]=W.useState(!1),r=()=>{window.localStorage.setItem("events-visible","false"),n(!1)};return W.useEffect(()=>{window.localStorage.getItem("events-visible")==null&&window.localStorage.setItem("events-visible","true");const i=window.localStorage.getItem("events-visible");n(i!=null?JSON.parse(i):!0)},[]),S.jsxs(Q,{sx:{background:"#16F4D0",color:"#000000",fontWeight:600,display:t?"flex":"none",justifyContent:"center",alignItems:"center",height:"30px"},children:[S.jsx(Q,{sx:{flexGrow:1,display:"flex",justifyContent:"center"},children:e.events.map(i=>S.jsx(Mg,{underline:"hover",href:i.href,color:"inherit",children:i.title},`${i.title}::${i.href}`))}),S.jsx(Wl,{"data-testid":"events-close-button",onClick:r,sx:{color:"inherit",width:"25px",height:"25px",marginRight:"5px"},children:S.jsx(l2,{sx:{color:"inherit"}})})]})}function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"&&typeof ue>"u"){var Pe=ce?p:f;U=Pe.left+Pe.width/2,ue=Pe.top+Pe.height/2}var re=0,xe=0,Je=f,Ct=Je.top,Kt=Je.left,lt=Je.width,ut=Je.height,Qt;if(ce){var In=p,qn=In.top,Ln=In.left,Qi=In.width,Yi=In.height,_e=Kt-Ln,ee=Ct-qn,Xi=lt/2+_e,Bp=ut/2+ee,Wu=U-Ln,v1=ue-qn;xe=l.rotateYMax*(Wu-Xi)/(Qi-lt/2)*-1,re=l.rotateXMax*(v1-Bp)/(Yi-ut/2),Qt=U-Kt+"px "+(ue-Ct)+"px"}else{var Br=lt/2,An=ut/2,gt=U-Kt,wa=ue-Ct;xe=l.rotateYMax*(gt-Br)/(lt/2)*-1,re=l.rotateXMax*(wa-An)/(ut/2)}re=Math.min(Math.max(-re,-l.rotateXMax),l.rotateXMax),l.rotateXInvert&&(re=-re),xe=Math.min(Math.max(-xe,-l.rotateYMax),l.rotateYMax),l.rotateYInvert&&(xe=-xe);var ba=re/l.rotateXMax*100,Sa=xe/l.rotateYMax*100,O_=(ce?Sa/100*l.stretchX:0)*(l.rotateYInvert?-1:1),R_=(ce?ba/100*l.stretchY:0)*(l.rotateXInvert?-1:1),A_=ce?Math.max(Math.abs(ba),Math.abs(Sa))/100*l.stretchZ:0;P(u,"translate3d("+O_+"%, "+-R_+"%, "+-A_+"px) rotateX("+re+"deg) rotateY("+xe+"deg)"),Qt&&l.commonOrigin&&k(u,Qt),m&&(E(m,l.duration+"ms"),T(m,"ease-out"),P(m,"translate3d("+-Sa*.25+"%, "+ba*.25+"%, 0)"),M(m,Math.max(Math.abs(ba),Math.abs(Sa))/100)),B({rotateXPercentage:ba,rotateYPercentage:Sa,duration:l.duration+"ms",easeOut:!0}),typeof l.onRotate=="function"&&l.onRotate(re,xe)},H=function(){v.push(function(){return n.classList.add("atropos-active")}),E(u,l.duration+"ms"),T(u,"ease-out"),P(c,"translate3d(0,0, "+l.activeOffset+"px)"),E(c,l.duration+"ms"),T(c,"ease-out"),h&&(E(h,l.duration+"ms"),T(h,"ease-out")),a.isActive=!0},R=function(U){if(x=void 0,!(U.type==="pointerdown"&&U.pointerType==="mouse")&&!(U.type==="pointerenter"&&U.pointerType!=="mouse")){if(U.type==="pointerdown"&&U.preventDefault(),g=U.clientX,y=U.clientY,l.alwaysActive){f=void 0,p=void 0;return}H(),typeof l.onEnter=="function"&&l.onEnter()}},L=function(U){x===!1&&U.cancelable&&U.preventDefault()},z=function(U){if(!(!l.rotate||!a.isActive)){if(U.pointerType!=="mouse"){if(!l.rotateTouch)return;U.preventDefault()}var ue=U.clientX,ce=U.clientY,Pe=ue-g,re=ce-y;if(typeof l.rotateTouch=="string"&&(Pe!==0||re!==0)&&typeof x>"u"){if(Pe*Pe+re*re>=25){var xe=Math.atan2(Math.abs(re),Math.abs(Pe))*180/Math.PI;x=l.rotateTouch==="scroll-y"?xe>45:90-xe>45}x===!1&&(n.classList.add("atropos-rotate-touch"),U.cancelable&&U.preventDefault())}U.pointerType!=="mouse"&&x||N(ue,ce)}},K=function(U){if(f=void 0,p=void 0,!!a.isActive&&!(U&&U.type==="pointerup"&&U.pointerType==="mouse")&&!(U&&U.type==="pointerleave"&&U.pointerType!=="mouse")){if(typeof l.rotateTouch=="string"&&x&&n.classList.remove("atropos-rotate-touch"),l.alwaysActive){N(),typeof l.onRotate=="function"&&l.onRotate(0,0),typeof l.onLeave=="function"&&l.onLeave();return}v.push(function(){return n.classList.remove("atropos-active")}),E(c,l.duration+"ms"),T(c,""),P(c,"translate3d(0,0, 0px)"),h&&(E(h,l.duration+"ms"),T(h,"")),m&&(E(m,l.duration+"ms"),T(m,""),P(m,"translate3d(0, 0, 0)"),M(m,0)),E(u,l.duration+"ms"),T(u,""),P(u,"translate3d(0,0,0) rotateX(0deg) rotateY(0deg)"),B({duration:l.duration+"ms"}),a.isActive=!1,typeof l.onRotate=="function"&&l.onRotate(0,0),typeof l.onLeave=="function"&&l.onLeave()}},ne=function(U){var ue=U.target;!r.contains(ue)&&ue!==r&&a.isActive&&K()},He=function(){typeof n=="string"&&(n=Gr(document,n)),n&&(n.__atropos__||(typeof r<"u"?typeof r=="string"&&(r=Gr(document,r)):r=n,s=o?n.parentNode.host:n,Object.assign(a,{el:n}),u=Gr(n,".atropos-rotate"),c=Gr(n,".atropos-scale"),d=Gr(n,".atropos-inner"),n.__atropos__=a))},de=function(){He(),!(!n||!r)&&(l.shadow&&$(),l.highlight&&D(),l.rotateTouch&&(typeof l.rotateTouch=="string"?n.classList.add("atropos-rotate-touch-"+l.rotateTouch):n.classList.add("atropos-rotate-touch")),Gr(s,"[data-atropos-opacity]")&&B({opacityOnly:!0}),A(document,"click",ne),A(r,"pointerdown",R),A(r,"pointerenter",R),A(r,"pointermove",z),A(r,"touchmove",L),A(r,"pointerleave",K),A(r,"pointerup",K),A(r,"lostpointercapture",K),l.alwaysActive&&(H(),N()))},Ge=function(){a.destroyed=!0,cancelAnimationFrame(w),I(document,"click",ne),I(r,"pointerdown",R),I(r,"pointerenter",R),I(r,"pointermove",z),I(r,"touchmove",L),I(r,"pointerleave",K),I(r,"pointerup",K),I(r,"lostpointercapture",K),delete n.__atropos__};return a.destroy=Ge,de(),a}var qF=["component","children","rootChildren","scaleChildren","rotateChildren","className","scaleClassName","rotateClassName","innerClassName"];function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var g2=["eventsEl","alwaysActive","activeOffset","shadowOffset","shadowScale","duration","rotate","rotateTouch","rotateXMax","rotateYMax","rotateXInvert","rotateYInvert","stretchX","stretchY","stretchZ","commonOrigin","shadow","highlight","onEnter","onLeave","onRotate"],QF=function(t){var n={};return Object.keys(t).forEach(function(r){g2.includes(r)||(n[r]=t[r])}),n},YF=function(t){var n={};return Object.keys(t).forEach(function(r){g2.includes(r)&&(n[r]=t[r])}),n};function XF(e){var t=e.component,n=t===void 0?"div":t,r=e.children,i=e.rootChildren,o=e.scaleChildren,s=e.rotateChildren,a=e.className,l=a===void 0?"":a,u=e.scaleClassName,c=u===void 0?"":u,d=e.rotateClassName,f=d===void 0?"":d,p=e.innerClassName,h=p===void 0?"":p,m=KF(e,qF),x=b.useRef(null),g=b.useRef(null),y=n,v=function(){for(var T=arguments.length,P=new Array(T),M=0;M"u")&&W.createElement("span",{className:"atropos-highlight"})),s,(e.shadow||typeof e.shadow>"u")&&W.createElement("span",{className:"atropos-shadow"})),o),i)}function ZF(e){let t=0,n;for(n=0;n>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r}function v2(e){return{sx:{bgcolor:ZF(e)},children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`}}var y2={};function JF(e){if(!e||typeof window>"u")return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}Object.defineProperty(y2,"__esModule",{value:!0});var Ne=b;function e6(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var qr=e6(Ne);JF(`.rfm-marquee-container { overflow-x: hidden; display: flex; flex-direction: row; @@ -270,9 +270,9 @@ PERFORMANCE OF THIS SOFTWARE. .rfm-child { transform: var(--transform); -}`);const t6=Ne.forwardRef(function({style:t={},className:n="",autoFill:r=!1,play:i=!0,pauseOnHover:o=!1,pauseOnClick:s=!1,direction:a="left",speed:l=50,delay:u=0,loop:c=0,gradient:d=!1,gradientColor:f="white",gradientWidth:p=200,onFinish:h,onCycleComplete:m,onMount:x,children:g},y){const[v,w]=Ne.useState(0),[C,E]=Ne.useState(0),[T,P]=Ne.useState(1),[M,k]=Ne.useState(!1),A=Ne.useRef(null),I=y||A,$=Ne.useRef(null),D=Ne.useCallback(()=>{if($.current&&I.current){const K=I.current.getBoundingClientRect(),ne=$.current.getBoundingClientRect();let He=K.width,de=ne.width;(a==="up"||a==="down")&&(He=K.height,de=ne.height),P(r&&He&&de&&de{if(M&&(D(),$.current&&I.current)){const K=new ResizeObserver(()=>D());return K.observe(I.current),K.observe($.current),()=>{K&&K.disconnect()}}},[D,I,M]),Ne.useEffect(()=>{D()},[D,g]),Ne.useEffect(()=>{k(!0)},[]),Ne.useEffect(()=>{typeof x=="function"&&x()},[]);const B=Ne.useMemo(()=>r?C*T/l:CObject.assign(Object.assign({},t),{"--pause-on-hover":!i||o?"paused":"running","--pause-on-click":!i||o&&!s||s?"paused":"running","--width":a==="up"||a==="down"?"100vh":"100%","--transform":a==="up"?"rotate(-90deg)":a==="down"?"rotate(90deg)":"none"}),[t,i,o,s,a]),H=Ne.useMemo(()=>({"--gradient-color":f,"--gradient-width":typeof p=="number"?`${p}px`:p}),[f,p]),_=Ne.useMemo(()=>({"--play":i?"running":"paused","--direction":a==="left"?"normal":"reverse","--duration":`${B}s`,"--delay":`${u}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":r?"auto":"100%"}),[i,a,B,u,c,r]),L=Ne.useMemo(()=>({"--transform":a==="up"?"rotate(90deg)":a==="down"?"rotate(-90deg)":"none"}),[a]),z=Ne.useCallback(K=>[...Array(Number.isFinite(K)&&K>=0?K:0)].map((ne,He)=>qr.default.createElement(Ne.Fragment,{key:He},Ne.Children.map(g,de=>qr.default.createElement("div",{style:L,className:"rfm-child"},de)))),[L,g]);return M?qr.default.createElement("div",{ref:I,style:N,className:"rfm-marquee-container "+n},d&&qr.default.createElement("div",{style:H,className:"rfm-overlay"}),qr.default.createElement("div",{className:"rfm-marquee",style:_,onAnimationIteration:m,onAnimationEnd:h},qr.default.createElement("div",{className:"rfm-initial-child-container",ref:$},Ne.Children.map(g,K=>qr.default.createElement("div",{style:L,className:"rfm-child"},K))),z(T-1)),qr.default.createElement("div",{className:"rfm-marquee",style:_},z(T))):null});var x2=y2.default=t6;function w2(e,t){return function(){return e.apply(t,arguments)}}const{toString:n6}=Object.prototype,{getPrototypeOf:Zv}=Object,pp=(e=>t=>{const n=n6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pr=e=>(e=e.toLowerCase(),t=>pp(t)===e),hp=e=>t=>typeof t===e,{isArray:ha}=Array,Hl=hp("undefined");function r6(e){return e!==null&&!Hl(e)&&e.constructor!==null&&!Hl(e.constructor)&&Tn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b2=pr("ArrayBuffer");function i6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&b2(e.buffer),t}const o6=hp("string"),Tn=hp("function"),S2=hp("number"),mp=e=>e!==null&&typeof e=="object",s6=e=>e===!0||e===!1,Bc=e=>{if(pp(e)!=="object")return!1;const t=Zv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},a6=pr("Date"),l6=pr("File"),u6=pr("Blob"),c6=pr("FileList"),d6=e=>mp(e)&&Tn(e.pipe),f6=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tn(e.append)&&((t=pp(e))==="formdata"||t==="object"&&Tn(e.toString)&&e.toString()==="[object FormData]"))},p6=pr("URLSearchParams"),h6=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ha(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const E2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,P2=e=>!Hl(e)&&e!==E2;function _g(){const{caseless:e}=P2(this)&&this||{},t={},n=(r,i)=>{const o=e&&C2(t,i)||i;Bc(t[o])&&Bc(r)?t[o]=_g(t[o],r):Bc(r)?t[o]=_g({},r):ha(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Lu(t,(i,o)=>{n&&Tn(i)?e[o]=w2(i,n):e[o]=i},{allOwnKeys:r}),e),g6=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),v6=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},y6=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Zv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},x6=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},w6=e=>{if(!e)return null;if(ha(e))return e;let t=e.length;if(!S2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b6=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zv(Uint8Array)),S6=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},C6=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},E6=pr("HTMLFormElement"),P6=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Dw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),T6=pr("RegExp"),T2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lu(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},k6=e=>{T2(e,(t,n)=>{if(Tn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Tn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},M6=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ha(e)?r(e):r(String(e).split(t)),n},O6=()=>{},R6=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Eh="abcdefghijklmnopqrstuvwxyz",Fw="0123456789",k2={DIGIT:Fw,ALPHA:Eh,ALPHA_DIGIT:Eh+Eh.toUpperCase()+Fw},_6=(e=16,t=k2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function A6(e){return!!(e&&Tn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const I6=e=>{const t=new Array(10),n=(r,i)=>{if(mp(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=ha(r)?[]:{};return Lu(r,(s,a)=>{const l=n(s,i+1);!Hl(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},L6=pr("AsyncFunction"),$6=e=>e&&(mp(e)||Tn(e))&&Tn(e.then)&&Tn(e.catch),j={isArray:ha,isArrayBuffer:b2,isBuffer:r6,isFormData:f6,isArrayBufferView:i6,isString:o6,isNumber:S2,isBoolean:s6,isObject:mp,isPlainObject:Bc,isUndefined:Hl,isDate:a6,isFile:l6,isBlob:u6,isRegExp:T6,isFunction:Tn,isStream:d6,isURLSearchParams:p6,isTypedArray:b6,isFileList:c6,forEach:Lu,merge:_g,extend:m6,trim:h6,stripBOM:g6,inherits:v6,toFlatObject:y6,kindOf:pp,kindOfTest:pr,endsWith:x6,toArray:w6,forEachEntry:S6,matchAll:C6,isHTMLForm:E6,hasOwnProperty:Dw,hasOwnProp:Dw,reduceDescriptors:T2,freezeMethods:k6,toObjectSet:M6,toCamelCase:P6,noop:O6,toFiniteNumber:R6,findKey:C2,global:E2,isContextDefined:P2,ALPHABET:k2,generateString:_6,isSpecCompliantForm:A6,toJSONObject:I6,isAsyncFn:L6,isThenable:$6};function me(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}j.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const M2=me.prototype,O2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{O2[e]={value:e}});Object.defineProperties(me,O2);Object.defineProperty(M2,"isAxiosError",{value:!0});me.from=(e,t,n,r,i,o)=>{const s=Object.create(M2);return j.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),me.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const j6=null;function Ag(e){return j.isPlainObject(e)||j.isArray(e)}function R2(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function Nw(e,t,n){return e?e.concat(t).map(function(i,o){return i=R2(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function D6(e){return j.isArray(e)&&!e.some(Ag)}const F6=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function gp(e,t,n){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!j.isUndefined(x[m])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(j.isDate(h))return h.toISOString();if(!l&&j.isBlob(h))throw new me("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(h)||j.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,x){let g=h;if(h&&!x&&typeof h=="object"){if(j.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(j.isArray(h)&&D6(h)||(j.isFileList(h)||j.endsWith(m,"[]"))&&(g=j.toArray(h)))return m=R2(m),g.forEach(function(v,w){!(j.isUndefined(v)||v===null)&&t.append(s===!0?Nw([m],w,o):s===null?m:m+"[]",u(v))}),!1}return Ag(h)?!0:(t.append(Nw(x,m,o),u(h)),!1)}const d=[],f=Object.assign(F6,{defaultVisitor:c,convertValue:u,isVisitable:Ag});function p(h,m){if(!j.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(h),j.forEach(h,function(g,y){(!(j.isUndefined(g)||g===null)&&i.call(t,g,j.isString(y)?y.trim():y,m,f))===!0&&p(g,m?m.concat(y):[y])}),d.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return p(e),t}function zw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Jv(e,t){this._pairs=[],e&&gp(e,this,t)}const _2=Jv.prototype;_2.append=function(t,n){this._pairs.push([t,n])};_2.toString=function(t){const n=t?function(r){return t.call(this,r,zw)}:zw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function N6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function A2(e,t,n){if(!t)return e;const r=n&&n.encode||N6,i=n&&n.serialize;let o;if(i?o=i(t,n):o=j.isURLSearchParams(t)?t.toString():new Jv(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Vw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(r){r!==null&&t(r)})}}const I2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z6=typeof URLSearchParams<"u"?URLSearchParams:Jv,V6=typeof FormData<"u"?FormData:null,B6=typeof Blob<"u"?Blob:null,U6={isBrowser:!0,classes:{URLSearchParams:z6,FormData:V6,Blob:B6},protocols:["http","https","file","blob","url","data"]},L2=typeof window<"u"&&typeof document<"u",W6=(e=>L2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),H6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",G6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:L2,hasStandardBrowserEnv:W6,hasStandardBrowserWebWorkerEnv:H6},Symbol.toStringTag,{value:"Module"})),or={...G6,...U6};function q6(e,t){return gp(e,new or.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return or.isNode&&j.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function K6(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Q6(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&j.isArray(i)?i.length:s,l?(j.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!j.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&j.isArray(i[s])&&(i[s]=Q6(i[s])),!a)}if(j.isFormData(e)&&j.isFunction(e.entries)){const n={};return j.forEachEntry(e,(r,i)=>{t(K6(r),i,n,0)}),n}return null}function Y6(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ey={transitional:I2,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=j.isObject(t);if(o&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return i?JSON.stringify($2(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return q6(t,this.formSerializer).toString();if((a=j.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return gp(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Y6(t)):t}],transformResponse:[function(t){const n=this.transitional||ey.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&j.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?me.from(a,me.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:or.classes.FormData,Blob:or.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{ey.headers[e]={}});const ty=ey,X6=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Z6=e=>{const t={};let n,r,i;return e&&e.split(` +}`);const t6=Ne.forwardRef(function({style:t={},className:n="",autoFill:r=!1,play:i=!0,pauseOnHover:o=!1,pauseOnClick:s=!1,direction:a="left",speed:l=50,delay:u=0,loop:c=0,gradient:d=!1,gradientColor:f="white",gradientWidth:p=200,onFinish:h,onCycleComplete:m,onMount:x,children:g},y){const[v,w]=Ne.useState(0),[C,E]=Ne.useState(0),[T,P]=Ne.useState(1),[M,k]=Ne.useState(!1),A=Ne.useRef(null),I=y||A,$=Ne.useRef(null),D=Ne.useCallback(()=>{if($.current&&I.current){const K=I.current.getBoundingClientRect(),ne=$.current.getBoundingClientRect();let He=K.width,de=ne.width;(a==="up"||a==="down")&&(He=K.height,de=ne.height),P(r&&He&&de&&de{if(M&&(D(),$.current&&I.current)){const K=new ResizeObserver(()=>D());return K.observe(I.current),K.observe($.current),()=>{K&&K.disconnect()}}},[D,I,M]),Ne.useEffect(()=>{D()},[D,g]),Ne.useEffect(()=>{k(!0)},[]),Ne.useEffect(()=>{typeof x=="function"&&x()},[]);const B=Ne.useMemo(()=>r?C*T/l:CObject.assign(Object.assign({},t),{"--pause-on-hover":!i||o?"paused":"running","--pause-on-click":!i||o&&!s||s?"paused":"running","--width":a==="up"||a==="down"?"100vh":"100%","--transform":a==="up"?"rotate(-90deg)":a==="down"?"rotate(90deg)":"none"}),[t,i,o,s,a]),H=Ne.useMemo(()=>({"--gradient-color":f,"--gradient-width":typeof p=="number"?`${p}px`:p}),[f,p]),R=Ne.useMemo(()=>({"--play":i?"running":"paused","--direction":a==="left"?"normal":"reverse","--duration":`${B}s`,"--delay":`${u}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":r?"auto":"100%"}),[i,a,B,u,c,r]),L=Ne.useMemo(()=>({"--transform":a==="up"?"rotate(90deg)":a==="down"?"rotate(-90deg)":"none"}),[a]),z=Ne.useCallback(K=>[...Array(Number.isFinite(K)&&K>=0?K:0)].map((ne,He)=>qr.default.createElement(Ne.Fragment,{key:He},Ne.Children.map(g,de=>qr.default.createElement("div",{style:L,className:"rfm-child"},de)))),[L,g]);return M?qr.default.createElement("div",{ref:I,style:N,className:"rfm-marquee-container "+n},d&&qr.default.createElement("div",{style:H,className:"rfm-overlay"}),qr.default.createElement("div",{className:"rfm-marquee",style:R,onAnimationIteration:m,onAnimationEnd:h},qr.default.createElement("div",{className:"rfm-initial-child-container",ref:$},Ne.Children.map(g,K=>qr.default.createElement("div",{style:L,className:"rfm-child"},K))),z(T-1)),qr.default.createElement("div",{className:"rfm-marquee",style:R},z(T))):null});var x2=y2.default=t6;function w2(e,t){return function(){return e.apply(t,arguments)}}const{toString:n6}=Object.prototype,{getPrototypeOf:Zv}=Object,pp=(e=>t=>{const n=n6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pr=e=>(e=e.toLowerCase(),t=>pp(t)===e),hp=e=>t=>typeof t===e,{isArray:ma}=Array,Hl=hp("undefined");function r6(e){return e!==null&&!Hl(e)&&e.constructor!==null&&!Hl(e.constructor)&&Tn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b2=pr("ArrayBuffer");function i6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&b2(e.buffer),t}const o6=hp("string"),Tn=hp("function"),S2=hp("number"),mp=e=>e!==null&&typeof e=="object",s6=e=>e===!0||e===!1,Bc=e=>{if(pp(e)!=="object")return!1;const t=Zv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},a6=pr("Date"),l6=pr("File"),u6=pr("Blob"),c6=pr("FileList"),d6=e=>mp(e)&&Tn(e.pipe),f6=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tn(e.append)&&((t=pp(e))==="formdata"||t==="object"&&Tn(e.toString)&&e.toString()==="[object FormData]"))},p6=pr("URLSearchParams"),h6=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ma(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const E2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,P2=e=>!Hl(e)&&e!==E2;function Rg(){const{caseless:e}=P2(this)&&this||{},t={},n=(r,i)=>{const o=e&&C2(t,i)||i;Bc(t[o])&&Bc(r)?t[o]=Rg(t[o],r):Bc(r)?t[o]=Rg({},r):ma(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Lu(t,(i,o)=>{n&&Tn(i)?e[o]=w2(i,n):e[o]=i},{allOwnKeys:r}),e),g6=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),v6=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},y6=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Zv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},x6=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},w6=e=>{if(!e)return null;if(ma(e))return e;let t=e.length;if(!S2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b6=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zv(Uint8Array)),S6=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},C6=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},E6=pr("HTMLFormElement"),P6=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Dw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),T6=pr("RegExp"),T2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lu(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},k6=e=>{T2(e,(t,n)=>{if(Tn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Tn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},M6=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ma(e)?r(e):r(String(e).split(t)),n},_6=()=>{},O6=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Eh="abcdefghijklmnopqrstuvwxyz",Fw="0123456789",k2={DIGIT:Fw,ALPHA:Eh,ALPHA_DIGIT:Eh+Eh.toUpperCase()+Fw},R6=(e=16,t=k2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function A6(e){return!!(e&&Tn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const I6=e=>{const t=new Array(10),n=(r,i)=>{if(mp(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=ma(r)?[]:{};return Lu(r,(s,a)=>{const l=n(s,i+1);!Hl(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},L6=pr("AsyncFunction"),$6=e=>e&&(mp(e)||Tn(e))&&Tn(e.then)&&Tn(e.catch),j={isArray:ma,isArrayBuffer:b2,isBuffer:r6,isFormData:f6,isArrayBufferView:i6,isString:o6,isNumber:S2,isBoolean:s6,isObject:mp,isPlainObject:Bc,isUndefined:Hl,isDate:a6,isFile:l6,isBlob:u6,isRegExp:T6,isFunction:Tn,isStream:d6,isURLSearchParams:p6,isTypedArray:b6,isFileList:c6,forEach:Lu,merge:Rg,extend:m6,trim:h6,stripBOM:g6,inherits:v6,toFlatObject:y6,kindOf:pp,kindOfTest:pr,endsWith:x6,toArray:w6,forEachEntry:S6,matchAll:C6,isHTMLForm:E6,hasOwnProperty:Dw,hasOwnProp:Dw,reduceDescriptors:T2,freezeMethods:k6,toObjectSet:M6,toCamelCase:P6,noop:_6,toFiniteNumber:O6,findKey:C2,global:E2,isContextDefined:P2,ALPHABET:k2,generateString:R6,isSpecCompliantForm:A6,toJSONObject:I6,isAsyncFn:L6,isThenable:$6};function me(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}j.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const M2=me.prototype,_2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_2[e]={value:e}});Object.defineProperties(me,_2);Object.defineProperty(M2,"isAxiosError",{value:!0});me.from=(e,t,n,r,i,o)=>{const s=Object.create(M2);return j.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),me.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const j6=null;function Ag(e){return j.isPlainObject(e)||j.isArray(e)}function O2(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function Nw(e,t,n){return e?e.concat(t).map(function(i,o){return i=O2(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function D6(e){return j.isArray(e)&&!e.some(Ag)}const F6=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function gp(e,t,n){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!j.isUndefined(x[m])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(j.isDate(h))return h.toISOString();if(!l&&j.isBlob(h))throw new me("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(h)||j.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,x){let g=h;if(h&&!x&&typeof h=="object"){if(j.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(j.isArray(h)&&D6(h)||(j.isFileList(h)||j.endsWith(m,"[]"))&&(g=j.toArray(h)))return m=O2(m),g.forEach(function(v,w){!(j.isUndefined(v)||v===null)&&t.append(s===!0?Nw([m],w,o):s===null?m:m+"[]",u(v))}),!1}return Ag(h)?!0:(t.append(Nw(x,m,o),u(h)),!1)}const d=[],f=Object.assign(F6,{defaultVisitor:c,convertValue:u,isVisitable:Ag});function p(h,m){if(!j.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(h),j.forEach(h,function(g,y){(!(j.isUndefined(g)||g===null)&&i.call(t,g,j.isString(y)?y.trim():y,m,f))===!0&&p(g,m?m.concat(y):[y])}),d.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return p(e),t}function zw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Jv(e,t){this._pairs=[],e&&gp(e,this,t)}const R2=Jv.prototype;R2.append=function(t,n){this._pairs.push([t,n])};R2.toString=function(t){const n=t?function(r){return t.call(this,r,zw)}:zw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function N6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function A2(e,t,n){if(!t)return e;const r=n&&n.encode||N6,i=n&&n.serialize;let o;if(i?o=i(t,n):o=j.isURLSearchParams(t)?t.toString():new Jv(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Vw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(r){r!==null&&t(r)})}}const I2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z6=typeof URLSearchParams<"u"?URLSearchParams:Jv,V6=typeof FormData<"u"?FormData:null,B6=typeof Blob<"u"?Blob:null,U6={isBrowser:!0,classes:{URLSearchParams:z6,FormData:V6,Blob:B6},protocols:["http","https","file","blob","url","data"]},L2=typeof window<"u"&&typeof document<"u",W6=(e=>L2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),H6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",G6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:L2,hasStandardBrowserEnv:W6,hasStandardBrowserWebWorkerEnv:H6},Symbol.toStringTag,{value:"Module"})),or={...G6,...U6};function q6(e,t){return gp(e,new or.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return or.isNode&&j.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function K6(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Q6(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&j.isArray(i)?i.length:s,l?(j.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!j.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&j.isArray(i[s])&&(i[s]=Q6(i[s])),!a)}if(j.isFormData(e)&&j.isFunction(e.entries)){const n={};return j.forEachEntry(e,(r,i)=>{t(K6(r),i,n,0)}),n}return null}function Y6(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ey={transitional:I2,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=j.isObject(t);if(o&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return i?JSON.stringify($2(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return q6(t,this.formSerializer).toString();if((a=j.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return gp(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Y6(t)):t}],transformResponse:[function(t){const n=this.transitional||ey.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&j.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?me.from(a,me.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:or.classes.FormData,Blob:or.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{ey.headers[e]={}});const ty=ey,X6=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Z6=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&X6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bw=Symbol("internals");function Ia(e){return e&&String(e).trim().toLowerCase()}function Uc(e){return e===!1||e==null?e:j.isArray(e)?e.map(Uc):String(e)}function J6(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ph(e,t,n,r,i){if(j.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!j.isString(t)){if(j.isString(r))return t.indexOf(r)!==-1;if(j.isRegExp(r))return r.test(t)}}function tN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nN(e,t){const n=j.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class vp{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=Ia(l);if(!c)throw new Error("header name must be a non-empty string");const d=j.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=Uc(a))}const s=(a,l)=>j.forEach(a,(u,c)=>o(u,c,l));return j.isPlainObject(t)||t instanceof this.constructor?s(t,n):j.isString(t)&&(t=t.trim())&&!eN(t)?s(Z6(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Ia(t),t){const r=j.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return J6(i);if(j.isFunction(n))return n.call(this,i,r);if(j.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ia(t),t){const r=j.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ph(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Ia(s),s){const a=j.findKey(r,s);a&&(!n||Ph(r,r[a],a,n))&&(delete r[a],i=!0)}}return j.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Ph(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return j.forEach(this,(i,o)=>{const s=j.findKey(r,o);if(s){n[s]=Uc(i),delete n[o];return}const a=t?tN(o):String(o).trim();a!==o&&delete n[o],n[a]=Uc(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return j.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&j.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Bw]=this[Bw]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Ia(s);r[a]||(nN(i,s),r[a]=!0)}return j.isArray(t)?t.forEach(o):o(t),this}}vp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(vp.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});j.freezeMethods(vp);const kr=vp;function Th(e,t){const n=this||ty,r=t||n,i=kr.from(r.headers);let o=r.data;return j.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function j2(e){return!!(e&&e.__CANCEL__)}function $u(e,t,n){me.call(this,e??"canceled",me.ERR_CANCELED,t,n),this.name="CanceledError"}j.inherits($u,me,{__CANCEL__:!0});function rN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const iN=or.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];j.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),j.isString(r)&&s.push("path="+r),j.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function D2(e,t){return e&&!oN(t)?sN(e,t):t}const aN=or.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=j.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function lN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uN(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const cN=typeof XMLHttpRequest<"u",dN=cN&&function(e){return new Promise(function(n,r){let i=e.data;const o=kr.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(j.isFormData(i)){if(or.hasStandardBrowserEnv||or.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[m,...x]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];o.setContentType([m||"multipart/form-data",...x].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+x))}const f=D2(e.baseURL,e.url);d.open(e.method.toUpperCase(),A2(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const m=kr.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:e,request:d};rN(function(v){n(v),u()},function(v){r(v),u()},g),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new me("Request aborted",me.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new me("Network Error",me.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||I2;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new me(x,g.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,d)),d=null},or.hasStandardBrowserEnv&&(a&&j.isFunction(a)&&(a=a(e)),a||a!==!1&&aN(f))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&iN.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&j.forEach(o.toJSON(),function(x,g){d.setRequestHeader(g,x)}),j.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),s&&s!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Uw(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Uw(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{d&&(r(!m||m.type?new $u(null,e,d):m),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=lN(f);if(h&&or.protocols.indexOf(h)===-1){r(new me("Unsupported protocol "+h+":",me.ERR_BAD_REQUEST,e));return}d.send(i||null)})},Ig={http:j6,xhr:dN};j.forEach(Ig,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ww=e=>`- ${e}`,fN=e=>j.isFunction(e)||e===null||e===!1,F2={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : `+o.map(Ww).join(` -`):" "+Ww(o[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ig};function kh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $u(null,e)}function Hw(e){return kh(e),e.headers=kr.from(e.headers),e.data=Th.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),F2.getAdapter(e.adapter||ty.adapter)(e).then(function(r){return kh(e),r.data=Th.call(e,e.transformResponse,r),r.headers=kr.from(r.headers),r},function(r){return j2(r)||(kh(e),r&&r.response&&(r.response.data=Th.call(e,e.transformResponse,r.response),r.response.headers=kr.from(r.response.headers))),Promise.reject(r)})}const Gw=e=>e instanceof kr?{...e}:e;function ta(e,t){t=t||{};const n={};function r(u,c,d){return j.isPlainObject(u)&&j.isPlainObject(c)?j.merge.call({caseless:d},u,c):j.isPlainObject(c)?j.merge({},c):j.isArray(c)?c.slice():c}function i(u,c,d){if(j.isUndefined(c)){if(!j.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!j.isUndefined(c))return r(void 0,c)}function s(u,c){if(j.isUndefined(c)){if(!j.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(Gw(u),Gw(c),!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,f=d(e[c],t[c],c);j.isUndefined(f)&&d!==a||(n[c]=f)}),n}const N2="1.6.8",ny={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ny[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qw={};ny.transitional=function(t,n,r){function i(o,s){return"[Axios v"+N2+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new me(i(s," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!qw[s]&&(qw[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function pN(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new me("option "+o+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+o,me.ERR_BAD_OPTION)}}const Lg={assertOptions:pN,validators:ny},Kr=Lg.validators;class zd{constructor(t){this.defaults=t,this.interceptors={request:new Vw,response:new Vw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ta(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Lg.assertOptions(r,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1),i!=null&&(j.isFunction(i)?n.paramsSerializer={serialize:i}:Lg.assertOptions(i,{encode:Kr.function,serialize:Kr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&j.merge(o.common,o[n.method]);o&&j.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=kr.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const h=[Hw.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),f=h.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new $u(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ry(function(i){t=i}),cancel:t}}}const hN=ry;function mN(e){return function(n){return e.apply(null,n)}}function gN(e){return j.isObject(e)&&e.isAxiosError===!0}const $g={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($g).forEach(([e,t])=>{$g[t]=e});const vN=$g;function z2(e){const t=new Wc(e),n=w2(Wc.prototype.request,t);return j.extend(n,Wc.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return z2(ta(e,i))},n}const nt=z2(ty);nt.Axios=Wc;nt.CanceledError=$u;nt.CancelToken=hN;nt.isCancel=j2;nt.VERSION=N2;nt.toFormData=gp;nt.AxiosError=me;nt.Cancel=nt.CanceledError;nt.all=function(t){return Promise.all(t)};nt.spread=mN;nt.isAxiosError=gN;nt.mergeConfig=ta;nt.AxiosHeaders=kr;nt.formToJSON=e=>$2(j.isHTMLForm(e)?new FormData(e):e);nt.getAdapter=F2.getAdapter;nt.HttpStatusCode=vN;nt.default=nt;const ma=nt.create({baseURL:"https://webv2-backend.appdevclub.com"});function yN(e){let t=e.toLowerCase().replaceAll("-","").replaceAll(" ","-");return`${ma.getUri()}/sponsor-logos/${t}.png`}function Kw(e){const t=Rf(),n=r=>t(`/project/${r._id}`);return e.mobileView?S.jsxs(ea,{elevation:5,onClick:()=>{n(e.project)},sx:{...e==null?void 0:e.sx,cursor:"pointer",borderRadius:"35px",padding:"30px",display:"flex",flexDirection:"column",gap:"15px",color:"#000000",bgcolor:"#ffffff",maxWidth:"100%",height:"400px",overflow:"hidden"},children:[S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",width:"100%"},children:[S.jsx(ae,{sx:{fontSize:"1.5rem",fontWeight:700},children:e.project.name}),S.jsx(ae,{sx:{fontSize:"1.3rem",fontWeight:500},children:e.project.organization}),S.jsx(ae,{sx:{marginTop:"10px"},variant:"body1",children:e.project.description})]}),S.jsx(Qw,{autoScroll:!0,members:e.project.members})]}):S.jsx(XF,{highlight:!1,onClick:()=>{n(e.project)},style:{minWidth:"800px",height:"60vh",cursor:"pointer"},children:S.jsx(ea,{sx:{...e==null?void 0:e.sx,borderRadius:"35px",padding:"30px",display:"flex",gap:"15px",color:"#000000",bgcolor:"#ffffff",width:"100%",height:"100%"},children:S.jsxs(Q,{sx:{display:"flex",flexDirection:"column"},children:[S.jsxs(Q,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[S.jsx(ae,{sx:{fontSize:"1.5rem",fontWeight:700},children:e.project.name}),S.jsx(ae,{sx:{fontSize:"1.3rem",fontWeight:500},children:e.project.organization})]}),S.jsx("img",{style:{maxHeight:"36px"},src:yN(e.project.organization)})]}),S.jsx(ae,{sx:{marginTop:"15px"},variant:"body1",children:e.project.description}),S.jsx(Qw,{members:e.project.members})]})})})}function Qw(e){function t(){return S.jsx(S.Fragment,{children:e.members.map((n,r)=>S.jsx(dj,{label:`${n.memberInfo.firstName} ${n.memberInfo.lastName}`,variant:"outlined",sx:{color:"black",margin:"5px"},avatar:n.memberInfo.profileUrl?S.jsx($d,{src:n.memberInfo.profileUrl}):S.jsx($d,{...v2(`${n.memberInfo.firstName} ${n.memberInfo.lastName}`)})},r))})}return e.autoScroll?S.jsx(x2,{children:S.jsx(t,{})}):S.jsx(Q,{sx:{marginTop:"10px",display:"flex",flexWrap:"wrap"},children:S.jsx(t,{})})}function Yw(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function iy(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Yw(t[n])&&Yw(e[n])&&Object.keys(t[n]).length>0&&iy(e[n],t[n])})}const V2={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Mr(){const e=typeof document<"u"?document:{};return iy(e,V2),e}const xN={document:V2,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function cn(){const e=typeof window<"u"?window:{};return iy(e,xN),e}function wN(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function bN(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function jg(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Vd(){return Date.now()}function SN(e){const t=cn();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function CN(e,t){t===void 0&&(t="x");const n=cn();let r,i,o;const s=SN(e);return n.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function hc(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function EN(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Zt(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(o)<0);for(let o=0,s=i.length;oo?"next":"prev",c=(f,p)=>u==="next"&&f>=p||u==="prev"&&f<=p,d=()=>{a=new Date().getTime(),s===null&&(s=a);const f=Math.max(Math.min((a-s)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=o+p*(n-o);if(c(h,n)&&(h=n),t.wrapperEl.scrollTo({[r]:h}),c(h,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:h})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function oy(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function Sr(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function Bd(e){try{console.warn(e);return}catch{}}function Ud(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:wN(t)),n}function PN(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function TN(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function vi(e,t){return cn().getComputedStyle(e,null).getPropertyValue(t)}function Xw(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function kN(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Zw(e,t,n){const r=cn();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Mh;function MN(){const e=cn(),t=Mr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function U2(){return Mh||(Mh=MN()),Mh}let Oh;function ON(e){let{userAgent:t}=e===void 0?{}:e;const n=U2(),r=cn(),i=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let c=o.match(/(iPad).*OS\s([\d_]+)/);const d=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i==="Win32";let h=i==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&h&&n.touch&&m.indexOf(`${a}x${l}`)>=0&&(c=o.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),u&&!p&&(s.os="android",s.android=!0),(c||f||d)&&(s.os="ios",s.ios=!0),s}function W2(e){return e===void 0&&(e={}),Oh||(Oh=ON(e)),Oh}let Rh;function RN(){const e=cn(),t=W2();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[l,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=l<16||l===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r(),s=o||i&&t.ios;return{isSafari:n||o,needPerspectiveFix:n,need3dFix:s,isWebView:i}}function _N(){return Rh||(Rh=RN()),Rh}function AN(e){let{swiper:t,on:n,emit:r}=e;const i=cn();let o=null,s=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(o=new ResizeObserver(d=>{s=i.requestAnimationFrame(()=>{const{width:f,height:p}=t;let h=f,m=p;d.forEach(x=>{let{contentBoxSize:g,contentRect:y,target:v}=x;v&&v!==t.el||(h=y?y.width:(g[0]||g).inlineSize,m=y?y.height:(g[0]||g).blockSize)}),(h!==f||m!==p)&&a()})}),o.observe(t.el))},u=()=>{s&&i.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function IN(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=[],s=cn(),a=function(c,d){d===void 0&&(d={});const f=s.MutationObserver||s.WebkitMutationObserver,p=new f(h=>{if(t.__preventObserver__)return;if(h.length===1){i("observerUpdate",h[0]);return}const m=function(){i("observerUpdate",h[0])};s.requestAnimationFrame?s.requestAnimationFrame(m):s.setTimeout(m,0)});p.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),o.push(p)},l=()=>{if(t.params.observer){if(t.params.observeParents){const c=kN(t.hostEl);for(let d=0;d{o.forEach(c=>{c.disconnect()}),o.splice(0,o.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",u)}var LN={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var o=arguments.length,s=new Array(o),a=0;a=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,o=new Array(i),s=0;s{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(u=>{u.apply(r,n)})}),e}};function $N(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(vi(r,"padding-left")||0,10)-parseInt(vi(r,"padding-right")||0,10),n=n-parseInt(vi(r,"padding-top")||0,10)-parseInt(vi(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function jN(){const e=this;function t(k,A){return parseFloat(k.getPropertyValue(e.getDirectionLabel(A))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:o,rtlTranslate:s,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=Sr(i,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:c.length;let f=[];const p=[],h=[];let m=n.slidesOffsetBefore;typeof m=="function"&&(m=n.slidesOffsetBefore.call(e));let x=n.slidesOffsetAfter;typeof x=="function"&&(x=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,y=e.slidesGrid.length;let v=n.spaceBetween,w=-m,C=0,E=0;if(typeof o>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*o:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,c.forEach(k=>{s?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(mc(r,"--swiper-centered-offset-before",""),mc(r,"--swiper-centered-offset-after",""));const T=n.grid&&n.grid.rows>1&&e.grid;T?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let P;const M=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(k=>typeof n.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&f.push(e.virtualSize-o)}if(l&&n.loop){const k=h[0]+v;if(n.slidesPerGroup>1){const A=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),I=k*n.slidesPerGroup;for(let $=0;$!n.cssMode||n.loop?!0:I!==c.length-1).forEach(A=>{A.style[k]=`${v}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let k=0;h.forEach(I=>{k+=I+(v||0)}),k-=v;const A=k-o;f=f.map(I=>I<=0?-m:I>A?A+x:I)}if(n.centerInsufficientSlides){let k=0;if(h.forEach(A=>{k+=A+(v||0)}),k-=v,k{f[$]=I-A}),p.forEach((I,$)=>{p[$]=I+A})}}if(Object.assign(e,{slides:c,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){mc(r,"--swiper-centered-offset-before",`${-f[0]}px`),mc(r,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const k=-e.snapGrid[0],A=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(I=>I+k),e.slidesGrid=e.slidesGrid.map(I=>I+A)}if(d!==u&&e.emit("slidesLengthChange"),f.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==y&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const k=`${n.containerModifierClass}backface-hidden`,A=e.el.classList.contains(k);d<=n.maxBackfaceHiddenSlides?A||e.el.classList.add(k):A&&e.el.classList.remove(k)}}function DN(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(o=0;ot.slides.length&&!r)break;n.push(s(a))}else n.push(s(t.activeIndex));for(o=0;oi?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function FN(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r"u"&&t.updateSlidesOffset();let s=-e;i&&(s=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&p<=t.size-t.slidesSizesGrid[l];(p>=0&&p1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),m&&r[l].classList.add(n.slideFullyVisibleClass),u.progress=i?-d:d,u.originalProgress=i?-f:f}}function zN(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:s,progressLoop:a}=t;const l=o,u=s;if(r===0)i=0,o=!0,s=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;o=c||i<=0,s=d||i>=1,c&&(i=0),d&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[c],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=f?a=(m-f)/h:a=(m+h-p)/h,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!s)&&t.emit("fromEdge"),t.emit("progress",i)}const _h=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function VN(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,a=d=>Sr(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,u,c;if(o)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${d}"]`)}else l=a(`[data-swiper-slide-index="${i}"]`);else s?(l=t.filter(d=>d.column===i)[0],c=t.filter(d=>d.column===i+1)[0],u=t.filter(d=>d.column===i-1)[0]):l=t[i];l&&(s||(c=TN(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=PN(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(d=>{_h(d,d===l,n.slideActiveClass),_h(d,d===c,n.slideNextClass),_h(d,d===u,n.slidePrevClass)}),e.emitSlidesClasses()}const Hc=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},Ah=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Dg=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,a=[s-t];a.push(...Array.from({length:t}).map((l,u)=>s+r+u)),e.slides.forEach((l,u)=>{a.includes(l.column)&&Ah(e,u)});return}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let s=i-t;s<=o+t;s+=1){const a=(s%n+n)%n;(ao)&&Ah(e,a)}else for(let s=Math.max(i-t,0);s<=Math.min(o+t,n-1);s+=1)s!==i&&(s>o||s=t[o]&&r=t[o]&&r=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function UN(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:s,snapIndex:a}=t;let l=e,u;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=BN(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(i.slidesPerGroupSkip,l);u=p+Math.floor((l-p)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===o&&!t.params.loop){u!==a&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(l===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(l);return}const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled&&i.loop)f=c(l);else if(d){const p=t.slides.filter(m=>m.column===l)[0];let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(p),0)),f=Math.floor(h/i.grid.rows)}else if(t.slides[l]){const p=t.slides[l].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=l}else f=l;Object.assign(t,{previousSnapIndex:a,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:o,activeIndex:l}),t.initialized&&Dg(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==f&&t.emit("realIndexChange"),t.emit("slideChange"))}function WN(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(i=a)});let o=!1,s;if(i){for(let a=0;al?c=l:r&&es?a="next":o"u"&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,s);let x=m+Math.floor((s-m)/o.params.slidesPerGroup);x>=l.length&&(x=l.length-1);const g=-l[x];if(a.normalizeSlideIndex)for(let v=0;v=C&&w=C&&w=C&&(s=v)}if(o.initialized&&s!==d&&(!o.allowSlideNext&&(f?g>o.translate&&g>o.minTranslate():go.translate&&g>o.maxTranslate()&&(d||0)!==s))return!1;s!==(c||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g);let y;if(s>d?y="next":s0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[v?"scrollLeft":"scrollTop"]=w})):p[v?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return B2({swiper:o,targetPosition:w,side:v?"left":"top"}),!0;p.scrollTo({[v?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,y),t===0?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function rz(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let s=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)s=s+i.virtual.slidesBefore;else{let a;if(o){const f=s*i.params.grid.rows;a=i.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=i.getSlideIndexByData(s);const l=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let d=l-ap.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=i.getSlideIndexByData(s)}return requestAnimationFrame(()=>{i.slideTo(s,t,n,r)}),i}function iz(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:i,params:o,animating:s}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let a=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function oz(e,t,n){t===void 0&&(t=!0);const r=this,{params:i,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=a?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=o.map(g=>f(g));let m=o[h.indexOf(p)-1];if(typeof m>"u"&&i.cssMode){let g;o.forEach((y,v)=>{p>=y&&(g=v)}),typeof g<"u"&&(m=o[g>0?g-1:g])}let x=0;if(typeof m<"u"&&(x=s.indexOf(m),x<0&&(x=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(x=x-r.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),i.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(x,e,t,n)}),!0;return r.slideTo(x,e,t,n)}function sz(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function az(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];l-u>(c-u)*r&&(o+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];l-u<=(c-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function lz(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(Sr(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),jg(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(Sr(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),jg(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var uz={slideTo:nz,slideToLoop:rz,slideNext:iz,slidePrev:oz,slideReset:sz,slideToClosest:az,slideToClickedSlide:lz};function cz(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{Sr(r,`.${n.slideClass}, swiper-slide`).forEach((d,f)=>{d.setAttribute("data-swiper-slide-index",f)})},o=t.grid&&n.grid&&n.grid.rows>1,s=n.slidesPerGroup*(o?n.grid.rows:1),a=t.slides.length%s!==0,l=o&&t.slides.length%n.grid.rows!==0,u=c=>{for(let d=0;d1;u.length"u"?o=l.getSlideIndex(u.filter($=>$.classList.contains(p.slideActiveClass))[0]):C=o;const E=r==="next"||!r,T=r==="prev"||!r;let P=0,M=0;const k=y?Math.ceil(u.length/p.grid.rows):u.length,I=(y?u[o].column:o)+(h&&typeof i>"u"?-m/2+.5:0);if(I=0;N-=1)u[N].column===B&&v.push(N)}else v.push(k-D-1)}}else if(I+m>k-g){M=Math.max(I-(k-g*2),x);for(let $=0;${B.column===D&&w.push(N)}):w.push(D)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),T&&v.forEach($=>{u[$].swiperLoopMoveDOM=!0,f.prepend(u[$]),u[$].swiperLoopMoveDOM=!1}),E&&w.forEach($=>{u[$].swiperLoopMoveDOM=!0,f.append(u[$]),u[$].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():y&&(v.length>0&&T||w.length>0&&E)&&l.slides.forEach(($,D)=>{l.grid.updateSlide(D,$,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),n){if(v.length>0&&T){if(typeof t>"u"){const $=l.slidesGrid[C],B=l.slidesGrid[C+P]-$;a?l.setTranslate(l.translate-B):(l.slideTo(C+Math.ceil(P),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else if(i){const $=y?v.length/p.grid.rows:v.length;l.slideTo(l.activeIndex+$,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&E)if(typeof t>"u"){const $=l.slidesGrid[C],B=l.slidesGrid[C-M]-$;a?l.setTranslate(l.translate-B):(l.slideTo(C-M,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else{const $=y?w.length/p.grid.rows:w.length;l.slideTo(l.activeIndex-$,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!s){const $={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(D=>{!D.destroyed&&D.params.loop&&D.loopFix({...$,slideTo:D.params.slidesPerView===p.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...$,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?n:!1})}l.emit("loopFix")}function fz(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const o=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[o]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var pz={loopCreate:cz,loopFix:dz,loopDestroy:fz};function hz(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function mz(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var gz={setGrabCursor:hz,unsetGrabCursor:mz};function vz(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Mr()||r===cn())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function Jw(e,t,n){const r=cn(),{params:i}=e,o=i.edgeSwipeDetection,s=i.edgeSwipeThreshold;return o&&(n<=s||n>=r.innerWidth-s)?o==="prevent"?(t.preventDefault(),!0):!1:!0}function yz(e){const t=this,n=Mr();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Jw(t,r,r.targetTouches[0].pageX);return}const{params:o,touches:s,enabled:a}=t;if(!a||!o.simulateTouch&&r.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(l)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&o.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(l=c[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(o.noSwiping&&(f?vz(d,l):l.closest(d))){t.allowClick=!0;return}if(o.swipeHandler&&!l.closest(o.swipeHandler))return;s.currentX=r.pageX,s.currentY=r.pageY;const p=s.currentX,h=s.currentY;if(!Jw(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=h,i.touchStartTime=Vd(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();const x=m&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||x)&&!l.isContentEditable&&r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function xz(e){const t=Mr(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:s,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].filter(E=>E.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=u.pageX,d=u.pageY;if(l.preventedByNestedSwiper){o.startX=c,o.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=Vd());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(do.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(co.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=c,o.currentY=d;const f=o.currentX-o.startX,p=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)"u"){let E;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:f*f+p*p>=25&&(E=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let h=n.isHorizontal()?f:p,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(h=Math.abs(h)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),o.diff=h,h*=i.touchRatio,s&&(h=-h,m=-m);const x=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!i.cssMode,y=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(E)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&x!==n.touchesDirection&&g&&y&&Math.abs(h)>=1){Object.assign(o,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=h+r.startTranslate;let w=!0,C=i.resistanceRatio;if(i.touchReleaseOnEdges&&(C=0),h>0?(g&&y&&!v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**C))):h<0&&(g&&y&&!v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(h)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function wz(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(C=>C.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:s,touches:a,rtlTranslate:l,slidesGrid:u,enabled:c}=t;if(!c||!s.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Vd(),f=d-n.touchStartTime;if(t.allowClick){const C=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(C&&C[0]||r.target,C),t.emit("tap click",r),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Vd(),jg(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(s.followFinger?p=l?t.translate:-t.translate:p=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const h=p>=-t.maxTranslate()&&!t.params.loop;let m=0,x=t.slidesSizesGrid[0];for(let C=0;C=u[C]&&p=u[C])&&(m=C,x=u[u.length-1]-u[u.length-2])}let g=null,y=null;s.rewind&&(t.isBeginning?y=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(p-u[m])/x,w=ms.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?g:m+w):t.slideTo(m)),t.swipeDirection==="prev"&&(v>1-s.longSwipesRatio?t.slideTo(m+w):y!==null&&v<0&&Math.abs(v)>s.longSwipesRatio?t.slideTo(y):t.slideTo(m))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+w):t.slideTo(m):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:m+w),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:m))}}function eb(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function bz(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Sz(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Cz(e){const t=this;Hc(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Ez(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const G2=(e,t)=>{const n=Mr(),{params:r,el:i,wrapperEl:o,device:s}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",u=t;n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",eb,!0):e[u]("observerUpdate",eb,!0),i[l]("load",e.onLoad,{capture:!0})};function Pz(){const e=this,{params:t}=e;e.onTouchStart=yz.bind(e),e.onTouchMove=xz.bind(e),e.onTouchEnd=wz.bind(e),e.onDocumentTouchStart=Ez.bind(e),t.cssMode&&(e.onScroll=Sz.bind(e)),e.onClick=bz.bind(e),e.onLoad=Cz.bind(e),G2(e,"on")}function Tz(){G2(this,"off")}var kz={attachEvents:Pz,detachEvents:Tz};const tb=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Mz(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const l=(s in o?o[s]:void 0)||e.originalParams,u=tb(e,r),c=tb(e,l),d=e.params.grabCursor,f=l.grabCursor,p=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!f?e.unsetGrabCursor():!d&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof l[v]>"u")return;const w=r[v]&&r[v].enabled,C=l[v]&&l[v].enabled;w&&!C&&e[v].disable(),!w&&C&&e[v].enable()});const h=l.direction&&l.direction!==r.direction,m=r.loop&&(l.slidesPerView!==r.slidesPerView||h),x=r.loop;h&&n&&e.changeDirection(),Zt(e.params,l);const g=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!g?e.disable():!p&&g&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),n&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!x&&y?(e.loopCreate(t),e.updateSlides()):x&&!y&&e.loopDestroy()),e.emit("breakpoint",l)}function Oz(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=cn(),o=t==="window"?i.innerHeight:n.clientHeight,s=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:o*l,point:a}}return{value:a,point:a}});s.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function Az(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,s=_z(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()}function Iz(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var Lz={addClasses:Az,removeClasses:Iz};function $z(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var jz={checkOverflow:$z},Fg={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Dz(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){Zt(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in o)){Zt(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Zt(t,r)}}const Ih={eventsEmitter:LN,update:HN,translate:XN,transition:tz,slide:uz,loop:pz,grabCursor:gz,events:kz,breakpoints:Rz,checkOverflow:jz,classes:Lz},Lh={};let sy=class mr{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),o=0;o1){const c=[];return s.querySelectorAll(n.el).forEach(d=>{const f=Zt({},n,{el:d});c.push(new mr(f))}),c}const a=this;a.__swiper__=!0,a.support=U2(),a.device=W2({userAgent:n.userAgent}),a.browser=_N(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};a.modules.forEach(c=>{c({params:n,swiper:a,extendParams:Dz(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=Zt({},Fg,l);return a.params=Zt({},u,Lh,n),a.originalParams=Zt({},a.params),a.passedParams=Zt({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=Sr(n,`.${r.slideClass}, swiper-slide`),o=Xw(i[0]);return Xw(t)-o}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Sr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),s=(r.maxTranslate()-i)*t+i;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:o,slidesGrid:s,slidesSizesGrid:a,size:l,activeIndex:u}=r;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=o[u]?Math.ceil(o[u].swiperSlideSize):0,f;for(let p=u+1;pl&&(f=!0));for(let p=u-1;p>=0;p-=1)o[p]&&!f&&(d+=o[p].swiperSlideSize,c+=1,d>l&&(f=!0))}else if(t==="current")for(let d=u+1;d=0;d-=1)s[u]-s[d]{s.complete&&Hc(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const s=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let o;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const s=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;o=t.slideTo(s.length-1,0,!1,!0)}else o=t.slideTo(t.activeIndex,0,!1,!0);o||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):Sr(r,i())[0];return!s&&n.params.createElements&&(s=Ud("div",n.params.wrapperClass),r.append(s),Sr(r,`.${n.params.slideClass}`).forEach(a=>{s.append(a)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:s,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||vi(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||vi(r,"direction")==="rtl"),wrongRTL:vi(s,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(o=>{o.complete?Hc(n,o):o.addEventListener("load",s=>{Hc(n,s.target)})}),Dg(n),n.initialized=!0,Dg(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:o,wrapperEl:s,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),s.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,bN(r)),r.destroyed=!0),null}static extendDefaults(t){Zt(Lh,t)}static get extendedDefaults(){return Lh}static get defaults(){return Fg}static installModule(t){mr.prototype.__modules__||(mr.prototype.__modules__=[]);const n=mr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>mr.installModule(n)),mr):(mr.installModule(t),mr)}};Object.keys(Ih).forEach(e=>{Object.keys(Ih[e]).forEach(t=>{sy.prototype[t]=Ih[e][t]})});sy.use([AN,IN]);const q2=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ao(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Ps(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Ao(t[r])&&Ao(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Ps(e[r],t[r]):e[r]=t[r]})}function K2(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Q2(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function Y2(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function X2(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Fz(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Nz(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:o,prevEl:s,scrollbarEl:a,paginationEl:l}=e;const u=i.filter(M=>M!=="children"&&M!=="direction"&&M!=="wrapperClass"),{params:c,pagination:d,navigation:f,scrollbar:p,virtual:h,thumbs:m}=t;let x,g,y,v,w,C,E,T;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(x=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(g=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(c.pagination||c.pagination===!1)&&d&&!d.el&&(y=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&(v=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||s)&&(r.navigation.nextEl||o)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const P=M=>{t[M]&&(t[M].destroy(),M==="navigation"?(t.isElement&&(t[M].prevEl.remove(),t[M].nextEl.remove()),c[M].prevEl=void 0,c[M].nextEl=void 0,t[M].prevEl=void 0,t[M].nextEl=void 0):(t.isElement&&t[M].el.remove(),c[M].el=void 0,t[M].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?C=!0:!c.loop&&r.loop?E=!0:T=!0),u.forEach(M=>{if(Ao(c[M])&&Ao(r[M]))Object.assign(c[M],r[M]),(M==="navigation"||M==="pagination"||M==="scrollbar")&&"enabled"in r[M]&&!r[M].enabled&&P(M);else{const k=r[M];(k===!0||k===!1)&&(M==="navigation"||M==="pagination"||M==="scrollbar")?k===!1&&P(M):c[M]=r[M]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&h&&c.virtual.enabled?(h.slides=n,h.update(!0)):i.includes("virtual")&&h&&c.virtual.enabled&&(n&&(h.slides=n),h.update(!0)),i.includes("children")&&n&&c.loop&&(T=!0),x&&m.init()&&m.update(!0),g&&(t.controller.control=c.controller.control),y&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),d.init(),d.render(),d.update()),v&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),p.init(),p.updateSize(),p.setTranslate()),w&&(t.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=t.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),t.el.appendChild(o)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=t.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),t.el.appendChild(s))),o&&(c.navigation.nextEl=o),s&&(c.navigation.prevEl=s),f.init(),f.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(C||T)&&t.loopDestroy(),(E||T)&&t.loopCreate(),t.update()}function zz(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};Ps(n,Fg),n._emitClasses=!0,n.init=!1;const o={},s=q2.map(l=>l.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(l=>{typeof e[l]>"u"||(s.indexOf(l)>=0?Ao(e[l])?(n[l]={},i[l]={},Ps(n[l],e[l]),Ps(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:o[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:o,events:r}}function Vz(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:o,scrollbarEl:s,swiper:a}=e;K2(t)&&r&&i&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),Q2(t)&&o&&(a.params.pagination.el=o,a.originalParams.pagination.el=o),Y2(t)&&s&&(a.params.scrollbar.el=s,a.originalParams.scrollbar.el=s),a.init(n)}function Bz(e,t,n,r,i){const o=[];if(!t)return o;const s=l=>{o.indexOf(l)<0&&o.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&s("children"),r.length!==n.length&&s("children")}return q2.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Ao(e[l])&&Ao(t[l])){const u=Object.keys(e[l]),c=Object.keys(t[l]);u.length!==c.length?s(l):(u.forEach(d=>{e[l][d]!==t[l][d]&&s(l)}),c.forEach(d=>{e[l][d]!==t[l][d]&&s(l)}))}else e[l]!==t[l]&&s(l)}),o}const Uz=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{Z2(n)?t.push(n):n.props&&n.props.children&&J2(n.props.children).forEach(r=>t.push(r))}),t}function Wz(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return W.Children.toArray(e).forEach(r=>{if(Z2(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=J2(r.props.children);i.length>0?i.forEach(o=>t.push(o)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Hz(e,t,n){if(!n)return null;const r=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:s}=n,a=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,u=[];for(let c=a;c=o&&c<=s&&u.push(t[r(c)]);return u.map((c,d)=>W.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function ul(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const nb=b.createContext(null),Gz=b.createContext(null),ek=b.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:o,onSwiper:s,...a}=e===void 0?{}:e,l=!1;const[u,c]=b.useState("swiper"),[d,f]=b.useState(null),[p,h]=b.useState(!1),m=b.useRef(!1),x=b.useRef(null),g=b.useRef(null),y=b.useRef(null),v=b.useRef(null),w=b.useRef(null),C=b.useRef(null),E=b.useRef(null),T=b.useRef(null),{params:P,passedParams:M,rest:k,events:A}=zz(a),{slides:I,slots:$}=Wz(o),D=()=>{h(!p)};Object.assign(P.on,{_containerClasses(L,z){c(z)}});const B=()=>{Object.assign(P.on,A),l=!0;const L={...P};if(delete L.wrapperClass,g.current=new sy(L),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=I;const z={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};Ps(g.current.params.virtual,z),Ps(g.current.originalParams.virtual,z)}};x.current||B(),g.current&&g.current.on("_beforeBreakpoint",D);const N=()=>{l||!A||!g.current||Object.keys(A).forEach(L=>{g.current.on(L,A[L])})},H=()=>{!A||!g.current||Object.keys(A).forEach(L=>{g.current.off(L,A[L])})};b.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",D)}),b.useEffect(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),ul(()=>{if(t&&(t.current=x.current),!!x.current)return g.current.destroyed&&B(),Vz({el:x.current,nextEl:w.current,prevEl:C.current,paginationEl:E.current,scrollbarEl:T.current,swiper:g.current},P),s&&!g.current.destroyed&&s(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),ul(()=>{N();const L=Bz(M,y.current,I,v.current,z=>z.key);return y.current=M,v.current=I,L.length&&g.current&&!g.current.destroyed&&Nz({swiper:g.current,slides:I,passedParams:M,changedParams:L,nextEl:w.current,prevEl:C.current,scrollbarEl:T.current,paginationEl:E.current}),()=>{H()}}),ul(()=>{Uz(g.current)},[d]);function _(){return P.virtual?Hz(g.current,I,d):I.map((L,z)=>W.cloneElement(L,{swiper:g.current,swiperSlideIndex:z}))}return W.createElement(r,Wd({ref:x,className:X2(`${u}${n?` ${n}`:""}`)},k),W.createElement(Gz.Provider,{value:g.current},$["container-start"],W.createElement(i,{className:Fz(P.wrapperClass)},$["wrapper-start"],_(),$["wrapper-end"]),K2(P)&&W.createElement(W.Fragment,null,W.createElement("div",{ref:C,className:"swiper-button-prev"}),W.createElement("div",{ref:w,className:"swiper-button-next"})),Y2(P)&&W.createElement("div",{ref:T,className:"swiper-scrollbar"}),Q2(P)&&W.createElement("div",{ref:E,className:"swiper-pagination"}),$["container-end"]))});ek.displayName="Swiper";const tk=b.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:o,zoom:s,lazy:a,virtualIndex:l,swiperSlideIndex:u,...c}=e===void 0?{}:e;const d=b.useRef(null),[f,p]=b.useState("swiper-slide"),[h,m]=b.useState(!1);function x(w,C,E){C===d.current&&p(E)}ul(()=>{if(typeof u<"u"&&(d.current.swiperSlideIndex=u),t&&(t.current=d.current),!(!d.current||!o)){if(o.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return o.on("_slideClass",x),()=>{o&&o.off("_slideClass",x)}}}),ul(()=>{o&&d.current&&!o.destroyed&&p(o.getSlideClasses(d.current))},[o]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},y=()=>typeof r=="function"?r(g):r,v=()=>{m(!0)};return W.createElement(n,Wd({ref:d,className:X2(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:v},c),s&&W.createElement(nb.Provider,{value:g},W.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},y(),a&&!h&&W.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&W.createElement(nb.Provider,{value:g},y(),a&&!h&&W.createElement("div",{className:"swiper-lazy-preloader"})))});tk.displayName="SwiperSlide";function qz(e){let{swiper:t,extendParams:n,on:r,emit:i,params:o}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,a,l=o&&o.autoplay?o.autoplay.delay:3e3,u=o&&o.autoplay?o.autoplay.delay:3e3,c,d=new Date().getTime(),f,p,h,m,x,g,y;function v(_){!t||t.destroyed||!t.wrapperEl||_.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!y&&k())}const w=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?f=!0:f&&(u=c,f=!1);const _=t.autoplay.paused?c:d+u-new Date().getTime();t.autoplay.timeLeft=_,i("autoplayTimeLeft",_,_/l),a=requestAnimationFrame(()=>{w()})},C=()=>{let _;return t.virtual&&t.params.virtual.enabled?_=t.slides.filter(z=>z.classList.contains("swiper-slide-active"))[0]:_=t.slides[t.activeIndex],_?parseInt(_.getAttribute("data-swiper-autoplay"),10):void 0},E=_=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),w();let L=typeof _>"u"?t.params.autoplay.delay:_;l=t.params.autoplay.delay,u=t.params.autoplay.delay;const z=C();!Number.isNaN(z)&&z>0&&typeof _>"u"&&(L=z,l=z,u=z),c=L;const K=t.params.speed,ne=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(K,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,K,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(K,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,K,!0,!0),i("autoplay")),t.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{E()})))};return L>0?(clearTimeout(s),s=setTimeout(()=>{ne()},L)):requestAnimationFrame(()=>{ne()}),L},T=()=>{d=new Date().getTime(),t.autoplay.running=!0,E(),i("autoplayStart")},P=()=>{t.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(a),i("autoplayStop")},M=(_,L)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(s),_||(g=!0);const z=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):k()};if(t.autoplay.paused=!0,L){x&&(c=t.params.autoplay.delay),x=!1,z();return}c=(c||t.params.autoplay.delay)-(new Date().getTime()-d),!(t.isEnd&&c<0&&!t.params.loop)&&(c<0&&(c=0),z())},k=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=new Date().getTime(),g?(g=!1,E(c)):E(),t.autoplay.paused=!1,i("autoplayResume"))},A=()=>{if(t.destroyed||!t.autoplay.running)return;const _=Mr();_.visibilityState==="hidden"&&(g=!0,M(!0)),_.visibilityState==="visible"&&k()},I=_=>{_.pointerType==="mouse"&&(g=!0,y=!0,!(t.animating||t.autoplay.paused)&&M(!0))},$=_=>{_.pointerType==="mouse"&&(y=!1,t.autoplay.paused&&k())},D=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",I),t.el.addEventListener("pointerleave",$))},B=()=>{t.el.removeEventListener("pointerenter",I),t.el.removeEventListener("pointerleave",$)},N=()=>{Mr().addEventListener("visibilitychange",A)},H=()=>{Mr().removeEventListener("visibilitychange",A)};r("init",()=>{t.params.autoplay.enabled&&(D(),N(),T())}),r("destroy",()=>{B(),H(),t.autoplay.running&&P()}),r("_freeModeStaticRelease",()=>{(h||g)&&k()}),r("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?P():M(!0,!0)}),r("beforeTransitionStart",(_,L,z)=>{t.destroyed||!t.autoplay.running||(z||!t.params.autoplay.disableOnInteraction?M(!0,!0):P())}),r("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){P();return}p=!0,h=!1,g=!1,m=setTimeout(()=>{g=!0,h=!0,M(!0)},200)}}),r("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(s),t.params.autoplay.disableOnInteraction){h=!1,p=!1;return}h&&t.params.cssMode&&k(),h=!1,p=!1}}),r("slideChange",()=>{t.destroyed||!t.autoplay.running||(x=!0)}),Object.assign(t.autoplay,{start:T,stop:P,pause:M,resume:k})}function Kz(e){const{effect:t,swiper:n,on:r,setTranslate:i,setTransition:o,overwriteParams:s,perspective:a,recreateShadows:l,getEffectParams:u}=e;r("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),a&&a()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const d=s?s():{};Object.assign(n.params,d),Object.assign(n.originalParams,d)}),r("setTranslate",()=>{n.params.effect===t&&i()}),r("setTransition",(d,f)=>{n.params.effect===t&&o(f)}),r("transitionEnd",()=>{if(n.params.effect===t&&l){if(!u||!u().slideShadows)return;n.slides.forEach(d=>{d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),l()}});let c;r("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(c=!0),requestAnimationFrame(()=>{c&&n.slides&&n.slides.length&&(i(),c=!1)}))})}function Qz(e,t){const n=oy(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function rb(e,t,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=oy(t);let o=i.querySelector(`.${r.split(" ").join(".")}`);return o||(o=Ud("div",r.split(" ")),i.append(o)),o}function Yz(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Kz({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{const{width:s,height:a,slides:l,slidesSizesGrid:u}=t,c=t.params.coverflowEffect,d=t.isHorizontal(),f=t.translate,p=d?-f+s/2:-f+a/2,h=d?c.rotate:-c.rotate,m=c.depth;for(let x=0,g=l.length;x0?E:0),H&&(H.style.opacity=-E>0?-E:0)}}},setTransition:s=>{t.slides.map(l=>oy(l)).forEach(l=>{l.style.transitionDuration=`${s}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${s}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function Xz(e){let t=`${e.firstName}-${e.lastName}`;return t=t.toLowerCase().replace(" ","-"),`${ma.getUri()}/team-images/${t}.jpeg`}function Zz(e){let t="";return t=e.leadership.join(", "),t}function Jz(e){const[t,n]=W.useState([]);return W.useEffect(()=>{ma.get("members/leaders/").then(r=>{n(()=>r.data)})},[]),S.jsxs(Q,{...e,sx:{...e==null?void 0:e.sx,borderRadius:"35px",display:"flex",flexDirection:"column",gap:"15px",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:[S.jsx(ae,{sx:{fontSize:"3rem",fontWeight:"bold",marginBottom:"30px"},children:"Our Team"}),t.length<1?S.jsx(S.Fragment,{}):S.jsx(ek,{modules:[Yz,qz],effect:"coverflow",centeredSlides:!0,loop:!0,loopAdditionalSlides:2,slidesPerView:"auto",spaceBetween:3,coverflowEffect:{rotate:0,stretch:0,depth:200,modifier:1},autoplay:{delay:1200,disableOnInteraction:!1},children:t.map(r=>S.jsx(tk,{children:S.jsxs(Q,{sx:{position:"relative",overflow:"hidden",width:"100%"},children:[S.jsx("img",{src:Xz(r),alt:"member_image"}),S.jsxs(Q,{sx:{position:"absolute",bottom:"0px",color:"white",width:"100%",height:"130px",left:"50%",transform:"translateX(-50%)",background:"linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0) 100%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"end",textAlign:"center",paddingBottom:"20px"},children:[S.jsx(ae,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:`${r.firstName} ${r.lastName}`}),S.jsx(ae,{sx:{fontSize:"1rem"},children:Zz(r)})]})]})}))})]})}var e8=Object.defineProperty,t8=(e,t)=>{for(var n in t)e8(e,n,{get:t[n],enumerable:!0})},Gn={};t8(Gn,{assign:()=>i8,colors:()=>Ri,createStringInterpolator:()=>py,skipAnimation:()=>lk,to:()=>ak,willAdvance:()=>hy});var ay=Du(),te=e=>ju(e,ay),ly=Du();te.write=e=>ju(e,ly);var yp=Du();te.onStart=e=>ju(e,yp);var uy=Du();te.onFrame=e=>ju(e,uy);var cy=Du();te.onFinish=e=>ju(e,cy);var Ts=[];te.setTimeout=(e,t)=>{const n=te.now()+t,r=()=>{const o=Ts.findIndex(s=>s.cancel==r);~o&&Ts.splice(o,1),xi-=~o?1:0},i={time:n,handler:e,cancel:r};return Ts.splice(nk(n),0,i),xi+=1,rk(),i};var nk=e=>~(~Ts.findIndex(t=>t.time>e)||~Ts.length);te.cancel=e=>{yp.delete(e),uy.delete(e),cy.delete(e),ay.delete(e),ly.delete(e)};te.sync=e=>{Ng=!0,te.batchedUpdates(e),Ng=!1};te.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,te.onStart(n)}return r.handler=e,r.cancel=()=>{yp.delete(n),t=null},r};var dy=typeof window<"u"?window.requestAnimationFrame:()=>{};te.use=e=>dy=e;te.now=typeof performance<"u"?()=>performance.now():Date.now;te.batchedUpdates=e=>e();te.catch=console.error;te.frameLoop="always";te.advance=()=>{te.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ok()};var yi=-1,xi=0,Ng=!1;function ju(e,t){Ng?(t.delete(e),e(0)):(t.add(e),rk())}function rk(){yi<0&&(yi=0,te.frameLoop!=="demand"&&dy(ik))}function n8(){yi=-1}function ik(){~yi&&(dy(ik),te.batchedUpdates(ok))}function ok(){const e=yi;yi=te.now();const t=nk(yi);if(t&&(sk(Ts.splice(0,t),n=>n.handler()),xi-=t),!xi){n8();return}yp.flush(),ay.flush(e?Math.min(64,yi-e):16.667),uy.flush(),ly.flush(),cy.flush()}function Du(){let e=new Set,t=e;return{add(n){xi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return xi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,xi-=t.size,sk(t,r=>r(n)&&e.add(r)),xi+=e.size,t=e)}}}function sk(e,t){e.forEach(n=>{try{t(n)}catch(r){te.catch(r)}})}function zg(){}var r8=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),V={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function yr(e,t){if(V.arr(e)){if(!V.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function dr(e,t,n){if(V.arr(e)){for(let r=0;rV.und(e)?[]:V.arr(e)?e:[e];function cl(e,t){if(e.size){const n=Array.from(e);e.clear(),he(n,t)}}var qa=(e,...t)=>cl(e,n=>n(...t)),fy=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),py,ak,Ri=null,lk=!1,hy=zg,i8=e=>{e.to&&(ak=e.to),e.now&&(te.now=e.now),e.colors!==void 0&&(Ri=e.colors),e.skipAnimation!=null&&(lk=e.skipAnimation),e.createStringInterpolator&&(py=e.createStringInterpolator),e.requestAnimationFrame&&te.use(e.requestAnimationFrame),e.batchedUpdates&&(te.batchedUpdates=e.batchedUpdates),e.willAdvance&&(hy=e.willAdvance),e.frameLoop&&(te.frameLoop=e.frameLoop)},dl=new Set,Sn=[],$h=[],Hd=0,xp={get idle(){return!dl.size&&!Sn.length},start(e){Hd>e.priority?(dl.add(e),te.onStart(o8)):(uk(e),te(Vg))},advance:Vg,sort(e){if(Hd)te.onFrame(()=>xp.sort(e));else{const t=Sn.indexOf(e);~t&&(Sn.splice(t,1),ck(e))}},clear(){Sn=[],dl.clear()}};function o8(){dl.forEach(uk),dl.clear(),te(Vg)}function uk(e){Sn.includes(e)||ck(e)}function ck(e){Sn.splice(s8(Sn,t=>t.priority>e.priority),0,e)}function Vg(e){const t=$h;for(let n=0;n0}function s8(e,t){const n=e.findIndex(t);return n<0?e.length:n}var a8=(e,t,n)=>Math.min(Math.max(n,e),t),l8={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Bn="[-+]?\\d*\\.?\\d+",Gd=Bn+"%";function wp(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var u8=new RegExp("rgb"+wp(Bn,Bn,Bn)),c8=new RegExp("rgba"+wp(Bn,Bn,Bn,Bn)),d8=new RegExp("hsl"+wp(Bn,Gd,Gd)),f8=new RegExp("hsla"+wp(Bn,Gd,Gd,Bn)),p8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,h8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,m8=/^#([0-9a-fA-F]{6})$/,g8=/^#([0-9a-fA-F]{8})$/;function v8(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=m8.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ri&&Ri[e]!==void 0?Ri[e]:(t=u8.exec(e))?(qo(t[1])<<24|qo(t[2])<<16|qo(t[3])<<8|255)>>>0:(t=c8.exec(e))?(qo(t[1])<<24|qo(t[2])<<16|qo(t[3])<<8|sb(t[4]))>>>0:(t=p8.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=g8.exec(e))?parseInt(t[1],16)>>>0:(t=h8.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=d8.exec(e))?(ib(ob(t[1]),gc(t[2]),gc(t[3]))|255)>>>0:(t=f8.exec(e))?(ib(ob(t[1]),gc(t[2]),gc(t[3]))|sb(t[4]))>>>0:null}function jh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ib(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=jh(i,r,e+1/3),s=jh(i,r,e),a=jh(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function qo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ob(e){return(parseFloat(e)%360+360)%360/360}function sb(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function gc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ab(e){let t=v8(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var Gl=(e,t,n)=>{if(V.fun(e))return e;if(V.arr(e))return Gl({range:e,output:t,extrapolate:n});if(V.str(e.output[0]))return py(e);const r=e,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=x8(u,o);return y8(u,o[c],o[c+1],i[c],i[c+1],l,s,a,r.map)}};function y8(e,t,n,r,i,o,s,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function x8(e,t){for(var n=1;n=e);++n);return n-1}var w8=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return a8(0,1,i/e)},qd=1.70158,vc=qd*1.525,lb=qd+1,ub=2*Math.PI/3,cb=2*Math.PI/4.5,yc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,b8={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>lb*e*e*e-qd*e*e,easeOutBack:e=>1+lb*Math.pow(e-1,3)+qd*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vc+1)*2*e-vc)/2:(Math.pow(2*e-2,2)*((vc+1)*(e*2-2)+vc)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*ub),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*ub)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*cb))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*cb)/2+1,easeInBounce:e=>1-yc(1-e),easeOutBounce:yc,easeInOutBounce:e=>e<.5?(1-yc(1-2*e))/2:(1+yc(2*e-1))/2,steps:w8},ql=Symbol.for("FluidValue.get"),na=Symbol.for("FluidValue.observers"),bn=e=>!!(e&&e[ql]),Nt=e=>e&&e[ql]?e[ql]():e,db=e=>e[na]||null;function S8(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Kl(e,t){const n=e[na];n&&n.forEach(r=>{S8(r,t)})}var dk=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");C8(this,e)}},C8=(e,t)=>fk(e,ql,t);function ga(e,t){if(e[ql]){let n=e[na];n||fk(e,na,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ql(e,t){const n=e[na];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[na]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var fk=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Gc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,E8=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,fb=new RegExp(`(${Gc.source})(%|[a-z]+)`,"i"),P8=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,bp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,pk=e=>{const[t,n]=T8(e);if(!t||fy())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&bp.test(n))return pk(n);if(n)return n}return e},T8=e=>{const t=bp.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Dh,k8=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,hk=e=>{Dh||(Dh=Ri?new RegExp(`(${Object.keys(Ri).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Nt(o).replace(bp,pk).replace(E8,ab).replace(Dh,ab)),n=t.map(o=>o.match(Gc).map(Number)),i=n[0].map((o,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(o=>Gl({...e,output:o}));return o=>{var l;const s=!fb.test(t[0])&&((l=t.find(u=>fb.test(u)))==null?void 0:l.replace(Gc,""));let a=0;return t[0].replace(Gc,()=>`${i[a++](o)}${s||""}`).replace(P8,k8)}},my="react-spring: ",mk=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${my}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},M8=mk(console.warn);function O8(){M8(`${my}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var R8=mk(console.warn);function _8(){R8(`${my}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Sp(e){return V.str(e)&&(e[0]=="#"||/\d/.test(e)||!fy()&&bp.test(e)||e in(Ri||{}))}var gy=fy()?b.useEffect:b.useLayoutEffect,A8=()=>{const e=b.useRef(!1);return gy(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function gk(){const e=b.useState()[1],t=A8();return()=>{t.current&&e(Math.random())}}function I8(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&L8(t,o.inputs)||(o={inputs:t,result:e()}):o=n,b.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function L8(e,t){if(e.length!==t.length)return!1;for(let n=0;nb.useEffect(e,$8),$8=[];function pb(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Yl=Symbol.for("Animated:node"),j8=e=>!!e&&e[Yl]===e,Yn=e=>e&&e[Yl],vy=(e,t)=>r8(e,Yl,t),Cp=e=>e&&e[Yl]&&e[Yl].getPayload(),yk=class{constructor(){vy(this,this)}getPayload(){return this.payload||[]}},Fu=class extends yk{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,V.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Fu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return V.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,V.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Xl=class extends Fu{constructor(e){super(0),this._string=null,this._toString=Gl({output:[e,e]})}static create(e){return new Xl(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(V.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Gl({output:[this.getValue(),e]})),this._value=0,super.reset()}},Kd={dependencies:null},Ep=class extends yk{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return dr(this.source,(n,r)=>{j8(n)?t[r]=n.getValue(e):bn(n)?t[r]=Nt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&he(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return dr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Kd.dependencies&&bn(e)&&Kd.dependencies.add(e);const t=Cp(e);t&&he(t,n=>this.add(n))}},xk=class extends Ep{constructor(e){super(e)}static create(e){return new xk(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(D8)),!0)}};function D8(e){return(Sp(e)?Xl:Fu).create(e)}function Bg(e){const t=Yn(e);return t?t.constructor:V.arr(e)?xk:Sp(e)?Xl:Fu}var hb=(e,t)=>{const n=!V.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const o=b.useRef(null),s=n&&b.useCallback(h=>{o.current=z8(i,h)},[i]),[a,l]=N8(r,t),u=gk(),c=()=>{const h=o.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,a.getValue(!0)):!1)===!1&&u()},d=new F8(c,l),f=b.useRef();gy(()=>(f.current=d,he(l,h=>ga(h,d)),()=>{f.current&&(he(f.current.deps,h=>Ql(h,f.current)),te.cancel(f.current.update))})),b.useEffect(c,[]),vk(()=>()=>{const h=f.current;he(h.deps,m=>Ql(m,h))});const p=t.getComponentProps(a.getValue());return b.createElement(e,{...p,ref:s})})},F8=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&te.write(this.update)}};function N8(e,t){const n=new Set;return Kd.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ep(e),Kd.dependencies=null,[e,n]}function z8(e,t){return e&&(V.fun(e)?e(t):e.current=t),t}var mb=Symbol.for("AnimatedComponent"),V8=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Ep(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=s=>{const a=gb(s)||"Anonymous";return V.str(s)?s=o[s]||(o[s]=hb(s,i)):s=s[mb]||(s[mb]=hb(s,i)),s.displayName=`Animated(${a})`,s};return dr(e,(s,a)=>{V.arr(e)&&(a=gb(s)),o[a]=o(s)}),{animated:o}},gb=e=>V.str(e)?e:e&&V.str(e.displayName)?e.displayName:V.fun(e)&&e.name||null;function oo(e,...t){return V.fun(e)?e(...t):e}var fl=(e,t)=>e===!0||!!(t&&e&&(V.fun(e)?e(t):tn(e).includes(t))),wk=(e,t)=>V.obj(e)?t&&e[t]:e,bk=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,B8=e=>e,yy=(e,t=B8)=>{let n=U8;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);V.und(o)||(r[i]=o)}return r},U8=["config","onProps","onStart","onChange","onPause","onResume","onRest"],W8={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function H8(e){const t={};let n=0;if(dr(e,(r,i)=>{W8[i]||(t[i]=r,n++)}),n)return t}function Sk(e){const t=H8(e);if(t){const n={to:t};return dr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Zl(e){return e=Nt(e),V.arr(e)?e.map(Zl):Sp(e)?Gn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function G8(e){for(const t in e)return!0;return!1}function Ug(e){return V.fun(e)||V.arr(e)&&V.obj(e[0])}function q8(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function K8(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Q8={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Wg={...Q8.default,mass:1,damping:1,easing:b8.linear,clamp:!1},Y8=class{constructor(){this.velocity=0,Object.assign(this,Wg)}};function X8(e,t,n){n&&(n={...n},vb(n,t),t={...n,...t}),vb(e,t),Object.assign(e,t);for(const s in Wg)e[s]==null&&(e[s]=Wg[s]);let{frequency:r,damping:i}=e;const{mass:o}=e;return V.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function vb(e,t){if(!V.und(t.decay))e.duration=void 0;else{const n=!V.und(t.tension)||!V.und(t.friction);(n||!V.und(t.frequency)||!V.und(t.damping)||!V.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var yb=[],Z8=class{constructor(){this.changed=!1,this.values=yb,this.toValues=null,this.fromValues=yb,this.config=new Y8,this.immediate=!1}};function Ck(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,a)=>{let l,u,c=fl(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{V.und(n.pause)||(i.paused=fl(n.pause,t));let h=r==null?void 0:r.pause;h!==!0&&(h=i.paused||fl(h,t)),l=oo(n.delay||0,t),h?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-te.now()}function f(){l>0&&!Gn.skipAnimation?(i.delayed=!0,u=te.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(u)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},s)}catch(h){a(h)}}})}var xy=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ks(e.get()):t.every(n=>n.noop)?Ek(e.get()):Vn(e.get(),t.every(n=>n.finished)),Ek=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Vn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ks=e=>({value:e,cancelled:!0,finished:!1});function Pk(e,t,n,r){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:a,promise:l}=n;return!o&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=yy(t,(x,g)=>g==="onRest"?void 0:x);let c,d;const f=new Promise((x,g)=>(c=x,d=g)),p=x=>{const g=i<=(n.cancelId||0)&&ks(r)||i!==n.asyncId&&Vn(r,!1);if(g)throw x.result=g,d(x),x},h=(x,g)=>{const y=new xb,v=new wb;return(async()=>{if(Gn.skipAnimation)throw Jl(n),v.result=Vn(r,!1),d(v),v;p(y);const w=V.obj(x)?{...x}:{...g,to:x};w.parentId=i,dr(u,(E,T)=>{V.und(w[T])&&(w[T]=E)});const C=await r.start(w);return p(y),n.paused&&await new Promise(E=>{n.resumeQueue.add(E)}),C})()};let m;if(Gn.skipAnimation)return Jl(n),Vn(r,!1);try{let x;V.arr(e)?x=(async g=>{for(const y of g)await h(y)})(e):x=Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([x.then(c),f]),m=Vn(r.get(),!0,!1)}catch(x){if(x instanceof xb)m=x.result;else if(x instanceof wb)m=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?a:void 0,n.promise=o?l:void 0)}return V.fun(s)&&te.batchedUpdates(()=>{s(m,r,r.item)}),m})()}function Jl(e,t){cl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xb=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},wb=class extends Error{constructor(){super("SkipAnimationSignal")}},Hg=e=>e instanceof wy,J8=1,wy=class extends dk{constructor(){super(...arguments),this.id=J8++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Yn(this);return e&&e.getValue()}to(...e){return Gn.to(this,e)}interpolate(...e){return O8(),Gn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Kl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||xp.sort(this),Kl(this,{type:"priority",parent:this,priority:e})}},Io=Symbol.for("SpringPhase"),Tk=1,Gg=2,qg=4,Fh=e=>(e[Io]&Tk)>0,Qr=e=>(e[Io]&Gg)>0,La=e=>(e[Io]&qg)>0,bb=(e,t)=>t?e[Io]|=Gg|Tk:e[Io]&=~Gg,Sb=(e,t)=>t?e[Io]|=qg:e[Io]&=~qg,e9=class extends wy{constructor(e,t){if(super(),this.animation=new Z8,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!V.und(e)||!V.und(t)){const n=V.obj(e)?{...e}:{...t,from:e};V.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Qr(this)||this._state.asyncTo)||La(this)}get goal(){return Nt(this.animation.to)}get velocity(){const e=Yn(this);return e instanceof Fu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Fh(this)}get isAnimating(){return Qr(this)}get isPaused(){return La(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=Cp(r.to);!s&&bn(r.to)&&(i=tn(Nt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Xl?1:s?s[c].lastPosition:i[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,o.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const m=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=V.arr(o.velocity)?o.velocity[c]:o.velocity;let g;const y=o.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(V.und(o.duration))if(o.decay){const v=o.decay===!0?.998:o.decay,w=Math.exp(-(1-v)*h);p=m+x/(1-v)*(1-w),f=Math.abs(u.lastPosition-p)<=y,g=x*w}else{g=u.lastVelocity==null?x:u.lastVelocity;const v=o.restVelocity||y/10,w=o.clamp?0:o.bounce,C=!V.und(w),E=m==d?u.v0>0:mv,!(!T&&(f=Math.abs(d-p)<=y,f)));++A){C&&(P=p==d||p>d==E,P&&(g=-g*w,p=d));const I=-o.tension*1e-6*(p-d),$=-o.friction*.001*g,D=(I+$)/o.mass;g=g+D*M,p=p+g*M}}else{let v=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,u.durationProgress>0&&(u.elapsedTime=o.duration*u.durationProgress,h=u.elapsedTime+=e)),v=(o.progress||0)+h/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),p=m+o.easing(v)*(d-m),g=(p-u.lastPosition)/e,f=v==1}u.lastVelocity=g,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,o.round)&&(n=!0)});const a=Yn(this),l=a.getValue();if(t){const u=Nt(r.to);(l!==u||n)&&!o.decay?(a.setValue(u),this._onChange(u)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return te.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Qr(this)){const{to:e,config:t}=this.animation;te.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return V.und(e)?(n=this.queue||[],this.queue=[]):n=[V.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>xy(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Jl(this._state,e&&this._lastCallId),te.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=V.obj(n)?n[t]:n,(n==null||Ug(n))&&(n=void 0),r=V.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Fh(this)||(e.reverse&&([n,r]=[r,n]),r=Nt(r),V.und(r)?Yn(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yy(e,(s,a)=>/^on/.test(a)?wk(s,n):s)),Eb(this,e,"onProps"),ja(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Ck(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{La(this)||(Sb(this,!0),qa(o.pauseQueue),ja(this,"onPause",Vn(this,$a(this,this.animation.to)),this))},resume:()=>{La(this)&&(Sb(this,!1),Qr(this)&&this._resume(),qa(o.resumeQueue),ja(this,"onResume",Vn(this,$a(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=kk(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ks(this));const r=!V.und(e.to),i=!V.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ks(this));const{key:o,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||V.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!yr(d,u);f&&(a.from=d),d=Nt(d);const p=!yr(c,l);p&&this._focus(c);const h=Ug(t.to),{config:m}=a,{decay:x,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!h&&X8(m,oo(t.config,o),t.config!==s.config?oo(s.config,o):void 0);let y=Yn(this);if(!y||V.und(c))return n(Vn(this,!0));const v=V.und(t.reset)?i&&!t.default:!V.und(d)&&fl(t.reset,o),w=v?d:this.get(),C=Zl(c),E=V.num(C)||V.arr(C)||Sp(C),T=!h&&(!E||fl(s.immediate||t.immediate,o));if(p){const A=Bg(c);if(A!==y.constructor)if(T)y=this._set(C);else throw Error(`Cannot animate between ${y.constructor.name} and ${A.name}, as the "to" prop suggests`)}const P=y.constructor;let M=bn(c),k=!1;if(!M){const A=v||!Fh(this)&&f;(p||A)&&(k=yr(Zl(w),C),M=!k),(!yr(a.immediate,T)&&!T||!yr(m.decay,x)||!yr(m.velocity,g))&&(M=!0)}if(k&&Qr(this)&&(a.changed&&!v?M=!0:M||this._stop(l)),!h&&((M||bn(l))&&(a.values=y.getPayload(),a.toValues=bn(c)?null:P==Xl?[1]:tn(C)),a.immediate!=T&&(a.immediate=T,!T&&!v&&this._set(l)),M)){const{onRest:A}=a;he(n9,$=>Eb(this,t,$));const I=Vn(this,$a(this,l));qa(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&te.batchedUpdates(()=>{var $;a.changed=!v,A==null||A(I,this),v?oo(s.onRest,I):($=a.onStart)==null||$.call(a,I,this)})}v&&this._set(w),h?n(Pk(t.to,t,this._state,this)):M?this._start():Qr(this)&&!p?this._pendingCalls.add(n):n(Ek(w))}_focus(e){const t=this.animation;e!==t.to&&(db(this)&&this._detach(),t.to=e,db(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;bn(t)&&(ga(t,this),Hg(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;bn(e)&&Ql(e,this)}_set(e,t=!0){const n=Nt(e);if(!V.und(n)){const r=Yn(this);if(!r||!yr(n,r.getValue())){const i=Bg(n);!r||r.constructor!=i?vy(this,i.create(n)):r.setValue(n),r&&te.batchedUpdates(()=>{this._onChange(n,t)})}}return Yn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ja(this,"onStart",Vn(this,$a(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),oo(this.animation.onChange,e,this)),oo(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Yn(this).reset(Nt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Qr(this)||(bb(this,!0),La(this)||this._resume())}_resume(){Gn.skipAnimation?this.finish():xp.start(this)}_stop(e,t){if(Qr(this)){bb(this,!1);const n=this.animation;he(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Kl(this,{type:"idle",parent:this});const r=t?ks(this.get()):Vn(this.get(),$a(this,e??n.to));qa(this._pendingCalls,r),n.changed&&(n.changed=!1,ja(this,"onRest",r,this))}}};function $a(e,t){const n=Zl(t),r=Zl(e.get());return yr(r,n)}function kk(e,t=e.loop,n=e.to){const r=oo(t);if(r){const i=r!==!0&&Sk(r),o=(i||e).reverse,s=!i||i.reset;return eu({...e,loop:t,default:!1,pause:void 0,to:!o||Ug(n)?n:void 0,from:s?e.from:void 0,reset:s,...i})}}function eu(e){const{to:t,from:n}=e=Sk(e),r=new Set;return V.obj(t)&&Cb(t,r),V.obj(n)&&Cb(n,r),e.keys=r.size?Array.from(r):null,e}function t9(e){const t=eu(e);return V.und(t.default)&&(t.default=yy(t)),t}function Cb(e,t){dr(e,(n,r)=>n!=null&&t.add(r))}var n9=["onStart","onRest","onChange","onPause","onResume"];function Eb(e,t,n){e.animation[n]=t[n]!==bk(t,n)?wk(t[n],e.key):void 0}function ja(e,t,...n){var r,i,o,s;(i=(r=e.animation)[t])==null||i.call(r,...n),(s=(o=e.defaultProps)[t])==null||s.call(o,...n)}var r9=["onStart","onChange","onRest"],i9=1,o9=class{constructor(e,t){this.id=i9++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];V.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(eu(e)),this}start(e){let{queue:t}=this;return e?t=tn(e).map(eu):this.queue=[],this._flush?this._flush(this,t):(Ak(this,t),Kg(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;he(tn(t),r=>n[r].stop(!!e))}else Jl(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(V.und(e))this.start({pause:!0});else{const t=this.springs;he(tn(e),n=>t[n].pause())}return this}resume(e){if(V.und(e))this.start({pause:!1});else{const t=this.springs;he(tn(e),n=>t[n].resume())}return this}each(e){dr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,cl(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&t.size&&cl(t,([a,l])=>{l.value=s,a(l,this,this._item)}),o&&(this._started=!1,cl(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;te.onFrame(this._onFrame)}};function Kg(e,t){return Promise.all(t.map(n=>Mk(e,n))).then(n=>xy(e,n))}async function Mk(e,t,n){const{keys:r,to:i,from:o,loop:s,onRest:a,onResolve:l}=t,u=V.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const c=V.arr(i)||V.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):he(r9,m=>{const x=t[m];if(V.fun(x)){const g=e._events[m];t[m]=({finished:y,cancelled:v})=>{const w=g.get(x);w?(y||(w.finished=!1),v&&(w.cancelled=!0)):g.set(x,{value:null,finished:y||!1,cancelled:v||!1})},u&&(u[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,qa(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||bk(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push(Ck(++e._lastAsyncId,{props:t,state:d,actions:{pause:zg,resume:zg,start(m,x){p?(Jl(d,e._lastAsyncId),x(ks(e))):(m.onRest=a,x(Pk(c,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const h=xy(e,await Promise.all(f));if(s&&h.finished&&!(n&&h.noop)){const m=kk(t,s,i);if(m)return Ak(e,[m]),Mk(e,m,!0)}return l&&te.batchedUpdates(()=>l(h,e,e.item)),h}function Pb(e,t){const n={...e.springs};return t&&he(tn(t),r=>{V.und(r.keys)&&(r=eu(r)),V.obj(r.to)||(r={...r,to:void 0}),_k(n,r,i=>Rk(i))}),Ok(e,n),n}function Ok(e,t){dr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ga(n,e))})}function Rk(e,t){const n=new e9;return n.key=e,t&&ga(n,t),n}function _k(e,t,n){t.keys&&he(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Ak(e,t){he(t,n=>{_k(e.springs,n,r=>Rk(r,e))})}var Pp=({children:e,...t})=>{const n=b.useContext(Qd),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=I8(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=Qd;return b.createElement(o,{value:t},e)},Qd=s9(Pp,{});Pp.Provider=Qd.Provider;Pp.Consumer=Qd.Consumer;function s9(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var a9=()=>{const e=[],t=function(r){_8();const i=[];return he(e,(o,s)=>{if(V.und(r))i.push(o.start());else{const a=n(r,o,s);a&&i.push(o.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return he(e,r=>r.pause(...arguments)),this},t.resume=function(){return he(e,r=>r.resume(...arguments)),this},t.set=function(r){he(e,(i,o)=>{const s=V.fun(r)?r(o,i):r;s&&i.set(s)})},t.start=function(r){const i=[];return he(e,(o,s)=>{if(V.und(r))i.push(o.start());else{const a=this._getProps(r,o,s);a&&i.push(o.start(a))}}),i},t.stop=function(){return he(e,r=>r.stop(...arguments)),this},t.update=function(r){return he(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return V.fun(r)?r(o,i):r};return t._getProps=n,t};function l9(e,t,n){const r=V.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?a9():void 0,[]),o=b.useRef(0),s=gk(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,y){const v=Pb(g,y);return o.current>0&&!a.queue.length&&!Object.keys(v).some(C=>!g.springs[C])?Kg(g,y):new Promise(C=>{Ok(g,v),a.queue.push(()=>{C(Kg(g,y))}),s()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=pb(e)||0;b.useMemo(()=>{he(l.current.slice(e,c),g=>{q8(g,i),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,y){for(let v=g;vPb(g,u[y])),p=b.useContext(Pp),h=pb(p),m=p!==h&&G8(p);gy(()=>{o.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],he(g,y=>y())),he(l.current,(y,v)=>{i==null||i.add(y),m&&y.start({default:p});const w=u[v];w&&(K8(y,w.ref),y.ref?y.queue.push(w):y.start(w))})}),vk(()=>()=>{he(a.ctrls,g=>g.stop(!0))});const x=f.map(g=>({...g}));return i?[x,i]:x}function u9(e,t){const n=V.fun(e),[[r],i]=l9(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}var c9=class extends wy{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Gl(...t);const n=this._get(),r=Bg(n);vy(this,r.create(n))}advance(e){const t=this._get(),n=this.get();yr(t,n)||(Yn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Tb(this._active)&&Nh(this)}_get(){const e=V.arr(this.source)?this.source.map(Nt):tn(Nt(this.source));return this.calc(...e)}_start(){this.idle&&!Tb(this._active)&&(this.idle=!1,he(Cp(this),e=>{e.done=!1}),Gn.skipAnimation?(te.batchedUpdates(()=>this.advance()),Nh(this)):xp.start(this))}_attach(){let e=1;he(tn(this.source),t=>{bn(t)&&ga(t,this),Hg(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){he(tn(this.source),e=>{bn(e)&&Ql(e,this)}),this._active.clear(),Nh(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=tn(this.source).reduce((t,n)=>Math.max(t,(Hg(n)?n.priority:0)+1),0))}};function d9(e){return e.idle!==!1}function Tb(e){return!e.size||Array.from(e).every(d9)}function Nh(e){e.idle||(e.idle=!0,he(Cp(e),t=>{t.done=!0}),Kl(e,{type:"idle",parent:e}))}Gn.assign({createStringInterpolator:hk,to:(e,t)=>new c9(e,t)});var Ik=/^--/;function f9(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ik.test(e)&&!(pl.hasOwnProperty(e)&&pl[e])?t+"px":(""+t).trim()}var kb={};function p9(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:o,scrollLeft:s,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:kb[d]||(kb[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const f=f9(d,r[d]);Ik.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var pl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h9=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),m9=["Webkit","Ms","Moz","O"];pl=Object.keys(pl).reduce((e,t)=>(m9.forEach(n=>e[h9(n,t)]=e[t]),e),pl);var g9=/^(matrix|translate|scale|rotate|skew)/,v9=/^(translate)/,y9=/^(rotate|skew)/,zh=(e,t)=>V.num(e)&&e!==0?e+t:e,qc=(e,t)=>V.arr(e)?e.every(n=>qc(n,t)):V.num(e)?e===t:parseFloat(e)===t,x9=class extends Ep{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(s=>[`translate3d(${s.map(a=>zh(a,"px")).join(",")})`,qc(s,0)])),dr(r,(s,a)=>{if(a==="transform")i.push([s||""]),o.push(l=>[l,l===""]);else if(g9.test(a)){if(delete r[a],V.und(s))return;const l=v9.test(a)?"px":y9.test(a)?"deg":"";i.push(tn(s)),o.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${zh(f,l)})`,qc(f,0)]:u=>[`${a}(${u.map(c=>zh(c,l)).join(",")})`,qc(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new w9(i,o)),super(r)}},w9=class extends dk{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return he(this.inputs,(n,r)=>{const i=Nt(n[0]),[o,s]=this.transforms[r](V.arr(i)?i:n.map(Nt));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&he(this.inputs,t=>he(t,n=>bn(n)&&ga(n,this)))}observerRemoved(e){e==0&&he(this.inputs,t=>he(t,n=>bn(n)&&Ql(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Kl(this,e)}},b9=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Gn.assign({batchedUpdates:kf.unstable_batchedUpdates,createStringInterpolator:hk,colors:l8});var S9=V8(b9,{applyAnimatedValues:p9,createAnimatedStyle:e=>new x9(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),C9=S9.animated;const E9=C9(ae);function Vh({end:e,title:t,prefix:n,start:r,minWidth:i,alignSelf:o}){const{number:s}=u9({from:{number:r||0},number:e,config:{mass:1,tension:20,friction:10}});return S.jsx(Q,{sx:{display:"flex",justifyContent:"center",flexDirection:"column",flex:1,minWidth:i},children:S.jsxs(Q,{sx:{display:"flex",flex:1,alignItems:"center",flexDirection:"column"},children:[S.jsx(Q,{sx:{display:"flex",flex:1,alignItems:"flex-start",alignSelf:o||"center"},children:S.jsxs(Q,{sx:{flexDirection:"row",alignItems:"center",alignSelf:"center",justifyContent:"center",display:"flex",flex:1},children:[S.jsx(ae,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:n}),S.jsx(E9,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:s.to(a=>Math.floor(a).toLocaleString("en-US"))}),S.jsx(ae,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:"+"})]})}),S.jsx(ae,{sx:{fontSize:"calc(15px + 0.5vw)",alignSelf:o||"center"},children:t})]})})}var Nu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ra=typeof window>"u"||"Deno"in globalThis;function gn(){}function P9(e,t){return typeof e=="function"?e(t):e}function Qg(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mb(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==by(s,t.options))return!1}else if(!nu(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function Ob(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(tu(t.options.mutationKey)!==tu(o))return!1}else if(!nu(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function by(e,t){return((t==null?void 0:t.queryKeyHashFn)||tu)(e)}function tu(e){return JSON.stringify(e,(t,n)=>Xg(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function nu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!nu(e[n],t[n])):!1}function $k(e,t){if(e===t)return e;const n=Rb(e)&&Rb(t);if(n||Xg(e)&&Xg(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function Zg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?$k(e,t):t}function k9(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function M9(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Sy=Symbol(),ho,li,Os,dC,O9=(dC=class extends Nu{constructor(){super();X(this,ho,void 0);X(this,li,void 0);X(this,Os,void 0);G(this,Os,t=>{if(!ra&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){O(this,li)||this.setEventListener(O(this,Os))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,li))==null||t.call(this),G(this,li,void 0))}setEventListener(t){var n;G(this,Os,t),(n=O(this,li))==null||n.call(this),G(this,li,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){O(this,ho)!==t&&(G(this,ho,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof O(this,ho)=="boolean"?O(this,ho):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ho=new WeakMap,li=new WeakMap,Os=new WeakMap,dC),Cy=new O9,Rs,ui,_s,fC,R9=(fC=class extends Nu{constructor(){super();X(this,Rs,!0);X(this,ui,void 0);X(this,_s,void 0);G(this,_s,t=>{if(!ra&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){O(this,ui)||this.setEventListener(O(this,_s))}onUnsubscribe(){var t;this.hasListeners()||((t=O(this,ui))==null||t.call(this),G(this,ui,void 0))}setEventListener(t){var n;G(this,_s,t),(n=O(this,ui))==null||n.call(this),G(this,ui,t(this.setOnline.bind(this)))}setOnline(t){O(this,Rs)!==t&&(G(this,Rs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return O(this,Rs)}},Rs=new WeakMap,ui=new WeakMap,_s=new WeakMap,fC),Yd=new R9;function _9(e){return Math.min(1e3*2**e,3e4)}function Ey(e){return(e??"online")==="online"?Yd.isOnline():!0}var jk=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Bh(e){return e instanceof jk}function Dk(e){let t=!1,n=0,r=!1,i,o,s;const a=new Promise((x,g)=>{o=x,s=g}),l=x=>{var g;r||(p(new jk(x)),(g=e.abort)==null||g.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Cy.isFocused()||e.networkMode!=="always"&&!Yd.isOnline(),f=x=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,x),i==null||i(),o(x))},p=x=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,x),i==null||i(),s(x))},h=()=>new Promise(x=>{var g;i=y=>{const v=r||!d();return v&&x(y),v},(g=e.onPause)==null||g.call(e)}).then(()=>{var x;i=void 0,r||(x=e.onContinue)==null||x.call(e)}),m=()=>{if(r)return;let x;try{x=e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(f).catch(g=>{var E;if(r)return;const y=e.retry??(ra?0:3),v=e.retryDelay??_9,w=typeof v=="function"?v(n,g):v,C=y===!0||typeof y=="number"&&n{if(d())return h()}).then(()=>{t?p(g):m()})})};return Ey(e.networkMode)?m():h().then(m),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function A9(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=f=>setTimeout(f,0);const o=f=>{i=f},s=f=>{let p;t++;try{p=f()}finally{t--,t||u()}return p},a=f=>{t?e.push(f):i(()=>{n(f)})},l=f=>(...p)=>{a(()=>{f(...p)})},u=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(p=>{n(p)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:o}}var xt=A9(),mo,pC,Fk=(pC=class{constructor(){X(this,mo,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qg(this.gcTime)&&G(this,mo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ra?1/0:5*60*1e3))}clearGcTimeout(){O(this,mo)&&(clearTimeout(O(this,mo)),G(this,mo,void 0))}},mo=new WeakMap,pC),As,Is,pn,At,ct,au,go,Fn,gr,hC,I9=(hC=class extends Fk{constructor(t){super();X(this,Fn);X(this,As,void 0);X(this,Is,void 0);X(this,pn,void 0);X(this,At,void 0);X(this,ct,void 0);X(this,au,void 0);X(this,go,void 0);G(this,go,!1),G(this,au,t.defaultOptions),this.setOptions(t.options),G(this,ct,[]),G(this,pn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,As,t.state||L9(this.options)),this.state=O(this,As),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...O(this,au),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!O(this,ct).length&&this.state.fetchStatus==="idle"&&O(this,pn).remove(this)}setData(t,n){const r=Zg(this.state.data,t,this.options);return pe(this,Fn,gr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,Fn,gr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=O(this,At))==null?void 0:r.promise;return(i=O(this,At))==null||i.cancel(t),n?n.then(gn).catch(gn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,As))}isActive(){return O(this,ct).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?O(this,ct).some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Lk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=O(this,ct).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,At))==null||n.continue()}onOnline(){var n;const t=O(this,ct).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=O(this,At))==null||n.continue()}addObserver(t){O(this,ct).includes(t)||(O(this,ct).push(t),this.clearGcTimeout(),O(this,pn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){O(this,ct).includes(t)&&(G(this,ct,O(this,ct).filter(n=>n!==t)),O(this,ct).length||(O(this,At)&&(O(this,go)?O(this,At).cancel({revert:!0}):O(this,At).cancelRetry()),this.scheduleGc()),O(this,pn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return O(this,ct).length}invalidate(){this.state.isInvalidated||pe(this,Fn,gr).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(O(this,At))return O(this,At).continueRetry(),O(this,At).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=O(this,ct).find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(G(this,go,!0),r.signal)})};o(i);const s=()=>!this.options.queryFn||this.options.queryFn===Sy?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(G(this,go,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(a),(u=this.options.behavior)==null||u.onFetch(a,this),G(this,Is,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&pe(this,Fn,gr).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,h,m,x;Bh(f)&&f.silent||pe(this,Fn,gr).call(this,{type:"error",error:f}),Bh(f)||((h=(p=O(this,pn).config).onError)==null||h.call(p,f,this),(x=(m=O(this,pn).config).onSettled)==null||x.call(m,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return G(this,At,Dk({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(h=(p=O(this,pn).config).onSuccess)==null||h.call(p,f,this),(x=(m=O(this,pn).config).onSettled)==null||x.call(m,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(f,p)=>{pe(this,Fn,gr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pe(this,Fn,gr).call(this,{type:"pause"})},onContinue:()=>{pe(this,Fn,gr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),O(this,At).promise}},As=new WeakMap,Is=new WeakMap,pn=new WeakMap,At=new WeakMap,ct=new WeakMap,au=new WeakMap,go=new WeakMap,Fn=new WeakSet,gr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Nk(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Bh(i)&&i.revert&&O(this,Is)?{...O(this,Is),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xt.batch(()=>{O(this,ct).forEach(r=>{r.onQueryUpdate()}),O(this,pn).notify({query:this,type:"updated",action:t})})},hC);function Nk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ey(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function L9(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Zn,mC,$9=(mC=class extends Nu{constructor(t={}){super();X(this,Zn,void 0);this.config=t,G(this,Zn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??by(i,n);let s=this.get(o);return s||(s=new I9({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){O(this,Zn).has(t.queryHash)||(O(this,Zn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=O(this,Zn).get(t.queryHash);n&&(t.destroy(),n===t&&O(this,Zn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return O(this,Zn).get(t)}getAll(){return[...O(this,Zn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Mb(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Mb(t,r)):n}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zn=new WeakMap,mC),Jn,lu,Yt,Ls,er,Jr,gC,j9=(gC=class extends Fk{constructor(t){super();X(this,er);X(this,Jn,void 0);X(this,lu,void 0);X(this,Yt,void 0);X(this,Ls,void 0);this.mutationId=t.mutationId,G(this,lu,t.defaultOptions),G(this,Yt,t.mutationCache),G(this,Jn,[]),this.state=t.state||D9(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...O(this,lu),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){O(this,Jn).includes(t)||(O(this,Jn).push(t),this.clearGcTimeout(),O(this,Yt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Jn,O(this,Jn).filter(n=>n!==t)),this.scheduleGc(),O(this,Yt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){O(this,Jn).length||(this.state.status==="pending"?this.scheduleGc():O(this,Yt).remove(this))}continue(){var t;return((t=O(this,Ls))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,u,c,d,f,p,h,m,x,g,y,v,w,C,E,T;const n=()=>(G(this,Ls,Dk({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,M)=>{pe(this,er,Jr).call(this,{type:"failed",failureCount:P,error:M})},onPause:()=>{pe(this,er,Jr).call(this,{type:"pause"})},onContinue:()=>{pe(this,er,Jr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),O(this,Ls).promise),r=this.state.status==="pending";try{if(!r){pe(this,er,Jr).call(this,{type:"pending",variables:t}),await((o=(i=O(this,Yt).config).onMutate)==null?void 0:o.call(i,t,this));const M=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));M!==this.state.context&&pe(this,er,Jr).call(this,{type:"pending",context:M,variables:t})}const P=await n();return await((u=(l=O(this,Yt).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,P,t,this.state.context)),await((p=(f=O(this,Yt).config).onSettled)==null?void 0:p.call(f,P,null,this.state.variables,this.state.context,this)),await((m=(h=this.options).onSettled)==null?void 0:m.call(h,P,null,t,this.state.context)),pe(this,er,Jr).call(this,{type:"success",data:P}),P}catch(P){try{throw await((g=(x=O(this,Yt).config).onError)==null?void 0:g.call(x,P,t,this.state.context,this)),await((v=(y=this.options).onError)==null?void 0:v.call(y,P,t,this.state.context)),await((C=(w=O(this,Yt).config).onSettled)==null?void 0:C.call(w,void 0,P,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,P,t,this.state.context)),P}finally{pe(this,er,Jr).call(this,{type:"error",error:P})}}}},Jn=new WeakMap,lu=new WeakMap,Yt=new WeakMap,Ls=new WeakMap,er=new WeakSet,Jr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ey(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xt.batch(()=>{O(this,Jn).forEach(r=>{r.onMutationUpdate(t)}),O(this,Yt).notify({mutation:this,type:"updated",action:t})})},gC);function D9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hn,uu,vo,vC,F9=(vC=class extends Nu{constructor(t={}){super();X(this,hn,void 0);X(this,uu,void 0);X(this,vo,void 0);this.config=t,G(this,hn,[]),G(this,uu,0)}build(t,n,r){const i=new j9({mutationCache:this,mutationId:++Hu(this,uu)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){O(this,hn).push(t),this.notify({type:"added",mutation:t})}remove(t){G(this,hn,O(this,hn).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){xt.batch(()=>{O(this,hn).forEach(t=>{this.remove(t)})})}getAll(){return O(this,hn)}find(t){const n={exact:!0,...t};return O(this,hn).find(r=>Ob(n,r))}findAll(t={}){return O(this,hn).filter(n=>Ob(t,n))}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return G(this,vo,(O(this,vo)??Promise.resolve()).then(()=>{const t=O(this,hn).filter(n=>n.state.isPaused);return xt.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(gn)),Promise.resolve()))}).then(()=>{G(this,vo,void 0)})),O(this,vo)}},hn=new WeakMap,uu=new WeakMap,vo=new WeakMap,vC);function N9(e){return{onFetch:(t,n)=>{const r=async()=>{var h,m,x,g,y;const i=t.options,o=(x=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:x.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],a=((y=t.state.data)==null?void 0:y.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn&&t.options.queryFn!==Sy?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),f=async(v,w,C)=>{if(u)return Promise.reject();if(w==null&&v.pages.length)return Promise.resolve(v);const E={queryKey:t.queryKey,pageParam:w,direction:C?"backward":"forward",meta:t.options.meta};c(E);const T=await d(E),{maxPages:P}=t.options,M=C?M9:k9;return{pages:M(v.pages,T,P),pageParams:M(v.pageParams,w,P)}};let p;if(o&&s.length){const v=o==="backward",w=v?z9:Ab,C={pages:s,pageParams:a},E=w(i,C);p=await f(C,E,v)}else{p=await f(l,a[0]??i.initialPageParam);const v=e??s.length;for(let w=1;w{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function Ab(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function z9(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Be,ci,di,$s,js,fi,Ds,Fs,yC,V9=(yC=class{constructor(e={}){X(this,Be,void 0);X(this,ci,void 0);X(this,di,void 0);X(this,$s,void 0);X(this,js,void 0);X(this,fi,void 0);X(this,Ds,void 0);X(this,Fs,void 0);G(this,Be,e.queryCache||new $9),G(this,ci,e.mutationCache||new F9),G(this,di,e.defaultOptions||{}),G(this,$s,new Map),G(this,js,new Map),G(this,fi,0)}mount(){Hu(this,fi)._++,O(this,fi)===1&&(G(this,Ds,Cy.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,Be).onFocus())})),G(this,Fs,Yd.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,Be).onOnline())})))}unmount(){var e,t;Hu(this,fi)._--,O(this,fi)===0&&((e=O(this,Ds))==null||e.call(this),G(this,Ds,void 0),(t=O(this,Fs))==null||t.call(this),G(this,Fs,void 0))}isFetching(e){return O(this,Be).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,ci).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,Be).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=O(this,Be).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return O(this,Be).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=O(this,Be).get(r.queryHash),o=i==null?void 0:i.state.data,s=P9(t,o);if(s!==void 0)return O(this,Be).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>O(this,Be).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=O(this,Be).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=O(this,Be);xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=O(this,Be),r={type:"active",...e};return xt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=xt.batch(()=>O(this,Be).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(gn).catch(gn)}invalidateQueries(e={},t={}){return xt.batch(()=>{if(O(this,Be).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=xt.batch(()=>O(this,Be).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(gn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(gn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=O(this,Be).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gn).catch(gn)}fetchInfiniteQuery(e){return e.behavior=N9(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gn).catch(gn)}resumePausedMutations(){return Yd.isOnline()?O(this,ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,Be)}getMutationCache(){return O(this,ci)}getDefaultOptions(){return O(this,di)}setDefaultOptions(e){G(this,di,e)}setQueryDefaults(e,t){O(this,$s).set(tu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...O(this,$s).values()];let n={};return t.forEach(r=>{nu(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){O(this,js).set(tu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...O(this,js).values()];let n={};return t.forEach(r=>{nu(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...O(this,di).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=by(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Sy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,di).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,Be).clear(),O(this,ci).clear()}},Be=new WeakMap,ci=new WeakMap,di=new WeakMap,$s=new WeakMap,js=new WeakMap,fi=new WeakMap,Ds=new WeakMap,Fs=new WeakMap,yC),Ft,ke,cu,It,yo,Ns,tr,du,zs,Vs,xo,wo,pi,Bs,bo,Ka,fu,Jg,pu,e0,hu,t0,mu,n0,gu,r0,vu,i0,yu,o0,cf,zk,xC,B9=(xC=class extends Nu{constructor(t,n){super();X(this,bo);X(this,fu);X(this,pu);X(this,hu);X(this,mu);X(this,gu);X(this,vu);X(this,yu);X(this,cf);X(this,Ft,void 0);X(this,ke,void 0);X(this,cu,void 0);X(this,It,void 0);X(this,yo,void 0);X(this,Ns,void 0);X(this,tr,void 0);X(this,du,void 0);X(this,zs,void 0);X(this,Vs,void 0);X(this,xo,void 0);X(this,wo,void 0);X(this,pi,void 0);X(this,Bs,new Set);this.options=n,G(this,Ft,t),G(this,tr,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,ke).addObserver(this),Ib(O(this,ke),this.options)?pe(this,bo,Ka).call(this):this.updateResult(),pe(this,mu,n0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return s0(O(this,ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return s0(O(this,ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,gu,r0).call(this),pe(this,vu,i0).call(this),O(this,ke).removeObserver(this)}setOptions(t,n){const r=this.options,i=O(this,ke);if(this.options=O(this,Ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");pe(this,yu,o0).call(this),O(this,ke).setOptions(this.options),r._defaulted&&!Yg(this.options,r)&&O(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,ke),observer:this});const o=this.hasListeners();o&&Lb(O(this,ke),i,this.options,r)&&pe(this,bo,Ka).call(this),this.updateResult(n),o&&(O(this,ke)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&pe(this,fu,Jg).call(this);const s=pe(this,pu,e0).call(this);o&&(O(this,ke)!==i||this.options.enabled!==r.enabled||s!==O(this,pi))&&pe(this,hu,t0).call(this,s)}getOptimisticResult(t){const n=O(this,Ft).getQueryCache().build(O(this,Ft),t),r=this.createResult(n,t);return W9(this,r)&&(G(this,It,r),G(this,Ns,this.options),G(this,yo,O(this,ke).state)),r}getCurrentResult(){return O(this,It)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){O(this,Bs).add(t)}getCurrentQuery(){return O(this,ke)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=O(this,Ft).defaultQueryOptions(t),r=O(this,Ft).getQueryCache().build(O(this,Ft),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,bo,Ka).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,It)))}createResult(t,n){var T;const r=O(this,ke),i=this.options,o=O(this,It),s=O(this,yo),a=O(this,Ns),u=t!==r?t.state:O(this,cu),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const P=this.hasListeners(),M=!P&&Ib(t,n),k=P&&Lb(t,r,n,i);(M||k)&&(d={...d,...Nk(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:x}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===O(this,du))p=O(this,zs);else try{G(this,du,n.select),p=n.select(d.data),p=Zg(o==null?void 0:o.data,p,n),G(this,zs,p),G(this,tr,null)}catch(P){G(this,tr,P)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&x==="pending"){let P;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))P=o.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData((T=O(this,Vs))==null?void 0:T.state.data,O(this,Vs)):n.placeholderData,n.select&&P!==void 0)try{P=n.select(P),G(this,tr,null)}catch(M){G(this,tr,M)}P!==void 0&&(x="success",p=Zg(o==null?void 0:o.data,P,n),f=!0)}O(this,tr)&&(h=O(this,tr),p=O(this,zs),m=Date.now(),x="error");const g=d.fetchStatus==="fetching",y=x==="pending",v=x==="error",w=y&&g,C=p!==void 0;return{status:x,fetchStatus:d.fetchStatus,isPending:y,isSuccess:x==="success",isError:v,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:v&&!C,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:v&&C,isStale:Py(t,n),refetch:this.refetch}}updateResult(t){const n=O(this,It),r=this.createResult(O(this,ke),this.options);if(G(this,yo,O(this,ke).state),G(this,Ns,this.options),O(this,yo).data!==void 0&&G(this,Vs,O(this,ke)),Yg(r,n))return;G(this,It,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!O(this,Bs).size)return!0;const l=new Set(a??O(this,Bs));return this.options.throwOnError&&l.add("error"),Object.keys(O(this,It)).some(u=>{const c=u;return O(this,It)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),pe(this,cf,zk).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,mu,n0).call(this)}},Ft=new WeakMap,ke=new WeakMap,cu=new WeakMap,It=new WeakMap,yo=new WeakMap,Ns=new WeakMap,tr=new WeakMap,du=new WeakMap,zs=new WeakMap,Vs=new WeakMap,xo=new WeakMap,wo=new WeakMap,pi=new WeakMap,Bs=new WeakMap,bo=new WeakSet,Ka=function(t){pe(this,yu,o0).call(this);let n=O(this,ke).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(gn)),n},fu=new WeakSet,Jg=function(){if(pe(this,gu,r0).call(this),ra||O(this,It).isStale||!Qg(this.options.staleTime))return;const n=Lk(O(this,It).dataUpdatedAt,this.options.staleTime)+1;G(this,xo,setTimeout(()=>{O(this,It).isStale||this.updateResult()},n))},pu=new WeakSet,e0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,ke)):this.options.refetchInterval)??!1},hu=new WeakSet,t0=function(t){pe(this,vu,i0).call(this),G(this,pi,t),!(ra||this.options.enabled===!1||!Qg(O(this,pi))||O(this,pi)===0)&&G(this,wo,setInterval(()=>{(this.options.refetchIntervalInBackground||Cy.isFocused())&&pe(this,bo,Ka).call(this)},O(this,pi)))},mu=new WeakSet,n0=function(){pe(this,fu,Jg).call(this),pe(this,hu,t0).call(this,pe(this,pu,e0).call(this))},gu=new WeakSet,r0=function(){O(this,xo)&&(clearTimeout(O(this,xo)),G(this,xo,void 0))},vu=new WeakSet,i0=function(){O(this,wo)&&(clearInterval(O(this,wo)),G(this,wo,void 0))},yu=new WeakSet,o0=function(){const t=O(this,Ft).getQueryCache().build(O(this,Ft),this.options);if(t===O(this,ke))return;const n=O(this,ke);G(this,ke,t),G(this,cu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},cf=new WeakSet,zk=function(t){xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(O(this,It))}),O(this,Ft).getQueryCache().notify({query:O(this,ke),type:"observerResultsUpdated"})})},xC);function U9(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ib(e,t){return U9(e,t)||e.state.data!==void 0&&s0(e,t,t.refetchOnMount)}function s0(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Py(e,t)}return!1}function Lb(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Py(e,n)}function Py(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function W9(e,t){return!Yg(e.getCurrentResult(),t)}var Vk=b.createContext(void 0),H9=e=>{const t=b.useContext(Vk);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},G9=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(Vk.Provider,{value:e,children:t})),Bk=b.createContext(!1),q9=()=>b.useContext(Bk);Bk.Provider;function K9(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Q9=b.createContext(K9()),Y9=()=>b.useContext(Q9);function X9(e,t){return typeof e=="function"?e(...t):!!e}var Z9=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},J9=e=>{b.useEffect(()=>{e.clearReset()},[e])},eV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&X9(n,[e.error,r]),tV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},nV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,rV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function iV(e,t,n){const r=H9(n),i=q9(),o=Y9(),s=r.defaultQueryOptions(e);s._optimisticResults=i?"isRestoring":"optimistic",tV(s),Z9(s,o),J9(o);const[a]=b.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(b.useSyncExternalStore(b.useCallback(u=>{const c=i?()=>{}:a.subscribe(xt.batchCalls(u));return a.updateResult(),c},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),b.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),nV(s,l))throw rV(s,a,o);if(eV({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function Uk(e,t){return iV(e,B9,t)}async function oV(){try{return(await ma.get("/projects")).data}catch{return[{_id:"66292f8768dc79f8d04536ad",name:"Space Safety Visualizer",organization:"Amazon",description:"The Fall 2023 Amazon project was a low Earth orbit satellite visualization system. This was designed for Project Kuiper as a way to visualize satellite collision risk to non-technical stakeholders at Amazon.",members:[{memberInfo:{_id:"66292f8768dc79f8d0453673",firstName:"Samai",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/8a7fb3e66260f050539a6d8021a733635298861369c9ba60278abeb78e8c6216"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368b",firstName:"Ishan",lastName:"Revankar",profileUrl:"https://gravatar.com/avatar/66e5f9478a8c5c1090326d16f13ac2f9d56540fbc38c86e0b16061dd4d6c31d9"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045368d",firstName:"Nitish",lastName:"Vobilisetti",profileUrl:"https://gravatar.com/avatar/eb8416def562dd101a91cb9ad66731467420be6dafff0a691f33b184d796d7f5"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368f",firstName:"Neil",lastName:"Hajela",profileUrl:"https://gravatar.com/avatar/9ec79c36a878d718e93405ec8431d2f414d1e6e021376763b85ec2555418bcd2"},role:"Engineer"},{memberInfo:{_id:"66292f8768dc79f8d0453691",firstName:"Hadijat",lastName:"Oke",profileUrl:"https://gravatar.com/avatar/4e7a51f508246f5a290cd93aead661a323322a0fecc28e2ebb44714f5825a7ef"},role:"Project Manager"},{memberInfo:{_id:"66292f8768dc79f8d0453693",firstName:"Nand",lastName:"Vinchhi",profileUrl:"https://gravatar.com/avatar/5c7e99e4bd1a8bc12f56605f7ec6a09a95472ebb07dd30f4d4e1ef134655c35a"},role:"Tech Lead"}],cover:null,semester:"Fall 2023",__v:0},{_id:"66292f8768dc79f8d04536b9",name:"Pattern of Life Application",organization:"Praxis Engineering",description:`The Fall 2023 GDIT project was a "pattern of life" understanding system. This Android application collects key data metrics from users including location, application usage, and message data and coallates it to form an understanding of a user's pattern of life.`,members:[{memberInfo:{_id:"66292f8768dc79f8d0453670",firstName:"Aidan",lastName:"Melvin",profileUrl:"https://gravatar.com/avatar/5e99dcb1de10b83cd0e90620d77b046c13ff633b688f72dbb5a3c22202b2f1d7"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453695",firstName:"Mohammad",lastName:"Abd-Elmoniem",profileUrl:"https://gravatar.com/avatar/767766ff1d10a3d06a4e222b42a3ae7ff16a11bb83e25385202089a77efab30e"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453697",firstName:"Nishkal",lastName:"Hundia",profileUrl:"https://gravatar.com/avatar/bb1facd1c2182bdc9f840b9b4c396e67ea94ad2395f76a4fac43a7d43b6a437e"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453699",firstName:"Ojas",lastName:"Jagtap",profileUrl:"https://gravatar.com/avatar/68e78c20b977b3ff0f44d1e1f9f5a0ec6be745620062d6709fcbf8a73ff773df"},role:"Full-stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369b",firstName:"Josiah",lastName:"Lim",profileUrl:"https://gravatar.com/avatar/b277c291ff3c46b46124f62ae5f8d9fc5cd052300814f5bdbd89580759bcc027"},role:"ML Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369d",firstName:"Om",lastName:"Duggineni",profileUrl:"https://gravatar.com/avatar/00b197895f49ed34677306f551bddceaaa7c65756a238e2aee72b6ef95fd8525"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369f",firstName:"Dev",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/fb0bc07ce80323d4513cf2b60118de6dca5dd70a9edf08d12aa2b3c4451733ab"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a1",firstName:"Ananth",lastName:"Sankaralingam",profileUrl:"https://gravatar.com/avatar/ef0cd3559a6c30fc53bebd50c1533136de0d10c69b6b7a5df1fbe607b6b19e7d"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a3",firstName:"Advik",lastName:"Sachdeva",profileUrl:"https://gravatar.com/avatar/3b4653ea5eec167a3498fce281baf6ad961c465805b7758b0d77a090a3b666eb"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a5",firstName:"Rahul",lastName:"Ramasubramanian",profileUrl:"https://gravatar.com/avatar/9b42bb4f4bdb330a258afce57cee5b14b67de14c5ebbcc86814fcd270fff669c"},role:"Full-Stack Engineer"}],cover:null,semester:"Fall 2023",__v:0}]}}async function sV(e){try{return(await ma.get(`/projects/${e}`)).data}catch{return{_id:"66292f8768dc79f8d04536ad",name:"Space Safety Visualizer",organization:"Amazon",description:"The Fall 2023 Amazon project was a low Earth orbit satellite visualization system. This was designed for Project Kuiper as a way to visualize satellite collision risk to non-technical stakeholders at Amazon.",members:[{memberInfo:{_id:"66292f8768dc79f8d0453673",firstName:"Samai",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/8a7fb3e66260f050539a6d8021a733635298861369c9ba60278abeb78e8c6216"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368b",firstName:"Ishan",lastName:"Revankar",profileUrl:"https://gravatar.com/avatar/66e5f9478a8c5c1090326d16f13ac2f9d56540fbc38c86e0b16061dd4d6c31d9"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045368d",firstName:"Nitish",lastName:"Vobilisetti",profileUrl:"https://gravatar.com/avatar/eb8416def562dd101a91cb9ad66731467420be6dafff0a691f33b184d796d7f5"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368f",firstName:"Neil",lastName:"Hajela",profileUrl:"https://gravatar.com/avatar/9ec79c36a878d718e93405ec8431d2f414d1e6e021376763b85ec2555418bcd2"},role:"Engineer"},{memberInfo:{_id:"66292f8768dc79f8d0453691",firstName:"Hadijat",lastName:"Oke",profileUrl:"https://gravatar.com/avatar/4e7a51f508246f5a290cd93aead661a323322a0fecc28e2ebb44714f5825a7ef"},role:"Project Manager"},{memberInfo:{_id:"66292f8768dc79f8d0453693",firstName:"Nand",lastName:"Vinchhi",profileUrl:"https://gravatar.com/avatar/5c7e99e4bd1a8bc12f56605f7ec6a09a95472ebb07dd30f4d4e1ef134655c35a"},role:"Tech Lead"}],demo:"https://www.youtube.com/embed/UFwHEMrSO-M?si=NmlpAyAtZwOLEPiE",cover:null,semester:"Fall 2023",__v:0}}}const Wk={getAll:oV,getById:sV};var Qa={},Hk={},Tp={},us=ge&&ge.__assign||function(){return us=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(!((c=h==null?void 0:h.in)===null||c===void 0)&&c.style)&&(h.in.style.transform=function(v){return m.in.map(function(w){return $b(w,v)}).join(" ")}),m.out.length>0&&(!((d=h==null?void 0:h.out)===null||d===void 0)&&d.style)&&(h.out.style.transform=function(v){return m.out.map(function(w){return $b(w,v)}).join(" ")}),h};Tp.batch=aV;var _i={},Do={},Ty={},a0=ge&&ge.__assign||function(){return a0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")){if(t==="height")return jb&&Db?window.screen.height-80:window.innerHeight;if(t==="width")return jb&&Db?window.screen.width:window.innerWidth}}});ky.default=uV;var kp={};Object.defineProperty(kp,"__esModule",{value:!0});kp.SimpleInterpolation=void 0;var cV=function(e,t,n){return e*(1-n)+t*n};kp.SimpleInterpolation=cV;(function(e){var t=ge&&ge.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.computeStyle=e.SimpleInterpolation=e.environment=void 0;var n=t(Ty);e.computeStyle=n.default;var r=t(ky);e.environment=r.default;var i=kp;Object.defineProperty(e,"SimpleInterpolation",{enumerable:!0,get:function(){return i.SimpleInterpolation}})})(Do);Object.defineProperty(_i,"__esModule",{value:!0});_i.FadeOut=_i.FadeIn=_i.Fade=void 0;var Xd=Do,dV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{in:{style:{opacity:function(n){return(0,Xd.SimpleInterpolation)(e,t,n)}}},out:{style:{opacity:function(n){return(0,Xd.SimpleInterpolation)(t,e,n)}}}}};_i.Fade=dV;var fV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{in:{style:{opacity:function(n){return(0,Xd.SimpleInterpolation)(e,t,n)}}}}};_i.FadeIn=fV;var pV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{out:{style:{opacity:function(n){return(0,Xd.SimpleInterpolation)(e,t,n)}}}}};_i.FadeOut=pV;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MoveOut=Ai.MoveIn=Ai.Move=void 0;var wi=Do,hV=function(e,t,n,r){return e===void 0&&(e=0),t===void 0&&(t=100),n===void 0&&(n=null),r===void 0&&(r=-100),{in:{style:{transform:function(i){return"translate(".concat((0,wi.SimpleInterpolation)(e,0,i),"px, ").concat((0,wi.SimpleInterpolation)(t,0,i),"px)")}}},out:{style:{transform:function(i){return"translate(".concat((0,wi.SimpleInterpolation)(0,n||e,i),"px, ").concat((0,wi.SimpleInterpolation)(0,r||t,i),"px)")}}}}};Ai.Move=hV;var mV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=100),{in:{style:{transform:function(n){return"translate(".concat((0,wi.SimpleInterpolation)(e,0,n),"px, ").concat((0,wi.SimpleInterpolation)(t,0,n),"px)")}}}}};Ai.MoveIn=mV;var gV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=-100),{out:{style:{transform:function(n){return"translate(".concat((0,wi.SimpleInterpolation)(0,e,n),"px, ").concat((0,wi.SimpleInterpolation)(0,t,n),"px)")}}}}};Ai.MoveOut=gV;var Ii={};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.StickyOut=Ii.StickyIn=Ii.Sticky=void 0;var En=Do,vV=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:function(){return"".concat(e*En.environment.width/100,"px")},top:function(){return"".concat(t*En.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}},out:{style:{left:function(){return"".concat(e*En.environment.width/100,"px")},top:function(){return"".concat(t*En.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}}}};Ii.Sticky=vV;var yV=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:function(){return"".concat(e*En.environment.width/100,"px")},top:function(){return"".concat(t*En.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}},out:{style:{left:function(){return"".concat(e*En.environment.width/100,"px")},top:function(){return"".concat(t*En.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"absolute"}}}};Ii.StickyIn=yV;var xV=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:"".concat(e*En.environment.width/100,"px"),top:"".concat(t*En.environment.height/100,"px"),transform:"translate(-50%, -50%)",position:"absolute"}},out:{style:{left:"".concat(e*En.environment.width/100,"px"),top:"".concat(t*En.environment.height/100,"px"),transform:"translate(-50%, -50%)",position:"fixed"}}}};Ii.StickyOut=xV;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});Li.ZoomOut=Li.ZoomIn=Li.Zoom=void 0;var Zd=Do,wV=function(e,t){return e===void 0&&(e=10),t===void 0&&(t=1),{in:{style:{transform:function(n){return"scale(".concat((0,Zd.SimpleInterpolation)(e,t,n),")")}}},out:{style:{transform:function(n){return"scale(".concat((0,Zd.SimpleInterpolation)(t,e,n),")")}}}}};Li.Zoom=wV;var bV=function(e,t){return e===void 0&&(e=10),t===void 0&&(t=1),{in:{style:{transform:function(n){return"scale(".concat((0,Zd.SimpleInterpolation)(e,t,n),")")}}}}};Li.ZoomIn=bV;var SV=function(e,t){return e===void 0&&(e=1),t===void 0&&(t=10),{out:{style:{transform:function(n){return"scale(".concat((0,Zd.SimpleInterpolation)(e,t,n),")")}}}}};Li.ZoomOut=SV;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomOut=e.ZoomIn=e.Zoom=e.StickyOut=e.StickyIn=e.Sticky=e.MoveOut=e.MoveIn=e.Move=e.FadeOut=e.FadeIn=e.Fade=e.batch=void 0;var t=Tp;Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return t.batch}});var n=_i;Object.defineProperty(e,"Fade",{enumerable:!0,get:function(){return n.Fade}}),Object.defineProperty(e,"FadeIn",{enumerable:!0,get:function(){return n.FadeIn}}),Object.defineProperty(e,"FadeOut",{enumerable:!0,get:function(){return n.FadeOut}});var r=Ai;Object.defineProperty(e,"Move",{enumerable:!0,get:function(){return r.Move}}),Object.defineProperty(e,"MoveIn",{enumerable:!0,get:function(){return r.MoveIn}}),Object.defineProperty(e,"MoveOut",{enumerable:!0,get:function(){return r.MoveOut}});var i=Ii;Object.defineProperty(e,"Sticky",{enumerable:!0,get:function(){return i.Sticky}}),Object.defineProperty(e,"StickyIn",{enumerable:!0,get:function(){return i.StickyIn}}),Object.defineProperty(e,"StickyOut",{enumerable:!0,get:function(){return i.StickyOut}});var o=Li;Object.defineProperty(e,"Zoom",{enumerable:!0,get:function(){return o.Zoom}}),Object.defineProperty(e,"ZoomIn",{enumerable:!0,get:function(){return o.ZoomIn}}),Object.defineProperty(e,"ZoomOut",{enumerable:!0,get:function(){return o.ZoomOut}})})(Hk);var My={},Mp={},Op={},Vi={},Oy={};Object.defineProperty(Oy,"__esModule",{value:!0});var CV={currentY:0,viewportHeight:0,totalPage:0,totalHeight:0,totalProgress:0,realPage:0,currentPage:0,currentProgress:0};Oy.default=CV;var Ry={};Object.defineProperty(Ry,"__esModule",{value:!0});var EV={page:0};Ry.default=EV;var Gk=ge&&ge.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.initialScrollPage=Vi.initialScrollData=void 0;var PV=Gk(Oy);Vi.initialScrollData=PV.default;var TV=Gk(Ry);Vi.initialScrollPage=TV.default;Object.defineProperty(Op,"__esModule",{value:!0});Op.ScrollDataContext=void 0;var kV=b,MV=Vi;Op.ScrollDataContext=(0,kV.createContext)(MV.initialScrollData);var Rp={};Object.defineProperty(Rp,"__esModule",{value:!0});Rp.ScrollPageContext=void 0;var OV=b,RV=Vi;Rp.ScrollPageContext=(0,OV.createContext)(RV.initialScrollPage);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollPageContext=e.ScrollDataContext=void 0;var t=Op;Object.defineProperty(e,"ScrollDataContext",{enumerable:!0,get:function(){return t.ScrollDataContext}});var n=Rp;Object.defineProperty(e,"ScrollPageContext",{enumerable:!0,get:function(){return n.ScrollPageContext}})})(Mp);var cs=ge&&ge.__assign||function(){return cs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=qV(l),l in Vb)return;Vb[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===l&&(!u||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":GV,u||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},Qh="generated",oq="pointerdown",sq="pointerup",aq="pointerleave",lq="pointerout",uq="pointermove",cq="touchstart",dq="touchend",fq="touchmove",pq="touchcancel",hq="resize",mq="visibilitychange",Iy="tsParticles - Error",ds=100,Bb=.5,qk=1e3;function gq(e){return typeof e=="boolean"}function ru(e){return typeof e=="string"}function va(e){return typeof e=="number"}function xc(e){return typeof e=="object"&&e!==null}function Fo(e){return Array.isArray(e)}const Xn={x:0,y:0,z:0},Ub=2,KV=1;class jn{constructor(t,n,r){if(this._updateFromAngle=(i,o)=>{this.x=Math.cos(i)*o,this.y=Math.sin(i)*o},!va(t)&&t){this.x=t.x,this.y=t.y;const i=t;this.z=i.z?i.z:Xn.z}else if(t!==void 0&&n!==void 0)this.x=t,this.y=n,this.z=r??Xn.z;else throw new Error(`${Iy} Vector3d not initialized correctly`)}static get origin(){return jn.create(Xn.x,Xn.y,Xn.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return jn.create(t.x,t.y,t.z)}static create(t,n,r){return new jn(t,n,r)}add(t){return jn.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return jn.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return jn.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**Ub+this.y**Ub}mult(t){return jn.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=0&&this.multTo(KV/t)}rotate(t){return jn.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),Xn.z)}setTo(t){this.x=t.x,this.y=t.y;const n=t;this.z=n.z?n.z:Xn.z}sub(t){return jn.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class Eo extends jn{constructor(t,n){super(t,n,Xn.z)}static get origin(){return Eo.create(Xn.x,Xn.y)}static clone(t){return Eo.create(t.x,t.y)}static create(t,n){return new Eo(t,n)}}let QV=Math.random;const l0=new Map,YV=2,XV=Math.PI*YV;function vq(e,t){l0.get(e)||l0.set(e,t)}function yq(e){return l0.get(e)??(t=>t)}function fr(){return Ly(QV(),0,1-Number.EPSILON)}function Ly(e,t,n){return Math.min(Math.max(e,t),n)}function Yh(e,t,n,r){return Math.floor((e*n+t*r)/(n+r))}function Ms(e){const t=Ap(e),n=0;let r=_p(e);return t===r&&(r=n),fr()*(t-r)+r}function pt(e){return va(e)?e:Ms(e)}function _p(e){return va(e)?e:e.min}function Ap(e){return va(e)?e:e.max}function ml(e,t){if(e===t||t===void 0&&va(e))return e;const n=_p(e),r=Ap(e);return t!==void 0?{min:Math.min(n,t),max:Math.max(r,t)}:ml(n,r)}function Kk(e,t){const n=e.x-t.x,r=e.y-t.y,i=2;return{dx:n,dy:r,distance:Math.sqrt(n**i+r**i)}}function xq(e,t){return Kk(e,t).distance}function ZV(e){return e*Math.PI/180}function wq(e,t,n){if(va(e))return ZV(e);const r=0,i=.5,o=.25,s=i+o;switch(e){case"top":return-Math.PI*i;case"top-right":return-Math.PI*o;case"right":return r;case"bottom-right":return Math.PI*o;case"bottom":return Math.PI*i;case"bottom-left":return Math.PI*s;case"left":return Math.PI;case"top-left":return-Math.PI*s;case"inside":return Math.atan2(n.y-t.y,n.x-t.x);case"outside":return Math.atan2(t.y-n.y,t.x-n.x);default:return fr()*XV}}function bq(e){const t=Eo.origin;return t.length=1,t.angle=e,t}function Wb(e,t,n,r){return Eo.create(e.x*(n-r)/(n+r)+t.x*2*r/(n+r),e.y)}function Sq(e){var t,n;return{x:((t=e.position)==null?void 0:t.x)??fr()*e.size.width,y:((n=e.position)==null?void 0:n.y)??fr()*e.size.height}}function Qk(e){return e?e.endsWith("%")?parseFloat(e)/ds:parseFloat(e):1}const JV={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function e7(){return JV}function Hb(e){const t={bounced:!1},{pSide:n,pOtherSide:r,rectSide:i,rectOtherSide:o,velocity:s,factor:a}=e,l=.5,u=0;return r.mino.max||r.maxo.max||(n.max>=i.min&&n.max<=(i.max+i.min)*l&&s>u||n.min<=i.max&&n.min>(i.max+i.min)*l&&se.matches(r));return Fo(n)?n.some(r=>r):n}function Ip(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function n7(){return!Ip()&&typeof matchMedia<"u"}function Cq(e){if(n7())return matchMedia(e)}function Eq(e){if(!(Ip()||typeof IntersectionObserver>"u"))return new IntersectionObserver(e)}function Pq(e){if(!(Ip()||typeof MutationObserver>"u"))return new MutationObserver(e)}function Yk(e,t){return e===t||Fo(t)&&t.indexOf(e)>-1}async function Tq(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function r7(e){return Math.floor(fr()*e.length)}function $y(e,t,n=!0){return e[t!==void 0&&n?t%e.length:r7(e)]}function kq(e,t,n,r,i){return i7(Xk(e,r??0),t,n,i)}function i7(e,t,n,r){let i=!0;return(!r||r==="bottom")&&(i=e.topn.x),i&&(!r||r==="right")&&(i=e.leftn.y),i}function Xk(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function Gb(e,...t){for(const n of t){if(n==null)continue;if(!xc(n)){e=n;continue}const r=Array.isArray(n);r&&(xc(e)||!e||!Array.isArray(e))?e=[]:!r&&(xc(e)||!e||Array.isArray(e))&&(e={});for(const i in n){if(i==="__proto__")continue;const o=n,s=o[i],a=e;a[i]=xc(s)&&Array.isArray(s)?s.map(l=>Gb(a[i],l)):Gb(a[i],s)}}return e}function Mq(e,t){return!!Jk(t,n=>n.enable&&Yk(e,n.mode))}function Oq(e,t,n){iu(t,r=>{const i=r.mode;r.enable&&Yk(e,i)&&o7(r,n)})}function o7(e,t){const n=e.selectors;iu(n,r=>{t(r,e)})}function Rq(e,t){if(!(!t||!e))return Jk(e,n=>t7(t,n.selectors))}function _q(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:Eo.create(pt(e.options.bounce.horizontal.value),pt(e.options.bounce.vertical.value))}}function Aq(e,t){const{x:n,y:r}=e.velocity.sub(t.velocity),[i,o]=[e.position,t.position],{dx:s,dy:a}=Kk(o,i);if(n*s+r*a<0)return;const u=-Math.atan2(a,s),c=e.mass,d=t.mass,f=e.velocity.rotate(u),p=t.velocity.rotate(u),h=Wb(f,p,c,d),m=Wb(p,f,c,d),x=h.rotate(-u),g=m.rotate(-u);e.velocity.x=x.x*e.factor.x,e.velocity.y=x.y*e.factor.y,t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y}function Iq(e,t){const n=e.getPosition(),r=e.getRadius(),i=Xk(n,r),o=e.options.bounce,s=Hb({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:pt(o.horizontal.value)});s.bounced&&(s.velocity!==void 0&&(e.velocity.x=s.velocity),s.position!==void 0&&(e.position.x=s.position));const a=Hb({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:pt(o.vertical.value)});a.bounced&&(a.velocity!==void 0&&(e.velocity.y=a.velocity),a.position!==void 0&&(e.position.y=a.position))}function iu(e,t){return Fo(e)?e.map((r,i)=>t(r,i)):t(e,0)}function Zk(e,t,n){return Fo(e)?$y(e,t,n):e}function Jk(e,t){return Fo(e)?e.find((r,i)=>t(r,i)):t(e,0)?e:void 0}function Lq(e,t){const n=e.value,r=e.animation,i={delayTime:pt(r.delay)*qk,enable:r.enable,value:pt(e.value)*t,max:Ap(n)*t,min:_p(n)*t,loops:0,maxLoops:pt(r.count),time:0},o=1;if(r.enable){switch(i.decay=o-pt(r.decay),r.mode){case"increase":i.status="increasing";break;case"decrease":i.status="decreasing";break;case"random":i.status=fr()>=Bb?"increasing":"decreasing";break}const s=r.mode==="auto";switch(r.startValue){case"min":i.value=i.min,s&&(i.status="increasing");break;case"max":i.value=i.max,s&&(i.status="decreasing");break;case"random":default:i.value=Ms(i),s&&(i.status=fr()>=Bb?"increasing":"decreasing");break}}return i.initialValue=i.value,i}function s7(e,t){if(!(e.mode==="percent")){const{mode:i,...o}=e;return o}return"x"in e?{x:e.x/ds*t.width,y:e.y/ds*t.height}:{width:e.width/ds*t.width,height:e.height/ds*t.height}}function $q(e,t){return s7(e,t)}function a7(e,t,n,r,i){switch(t){case"max":n>=i&&e.destroy();break;case"min":n<=r&&e.destroy();break}}function jq(e,t,n,r,i){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const c=(t.velocity??0)*i.factor,d=t.min,f=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case"increasing":t.value>=f?(n?t.status="decreasing":t.value-=f,t.loops||(t.loops=0),t.loops++):t.value+=c;break;case"decreasing":t.value<=d?(n?t.status="increasing":t.value+=f,t.loops||(t.loops=0),t.loops++):t.value-=c}t.velocity&&p!==1&&(t.velocity*=p),a7(e,r,t.value,d,f),e.destroyed||(t.value=Ly(t.value,d,f))}}class l7{constructor(){this._listeners=new Map}addEventListener(t,n){this.removeEventListener(t,n);let r=this._listeners.get(t);r||(r=[],this._listeners.set(t,r)),r.push(n)}dispatchEvent(t,n){const r=this._listeners.get(t);r==null||r.forEach(i=>i(n))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,n){const r=this._listeners.get(t);if(!r)return;const i=r.length,o=r.indexOf(n);if(o<0)return;const a=1;i===a?this._listeners.delete(t):r.splice(o,a)}}async function Xh(e,t,n,r=!1){let i=t.get(e);return(!i||r)&&(i=await Promise.all([...n.values()].map(o=>o(e))),t.set(e,i)),i}async function u7(e){const t=Zk(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():(e7().error(`${Iy} ${n.status} while retrieving config file`),e.fallback)}class c7{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new l7,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[n,r]of this._configs)t[n]=r;return t}get version(){return"3.3.0"}addConfig(t){const n=t.key??t.name??"default";this._configs.set(n,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:n,config:t}})}async addEffect(t,n,r=!0){iu(t,i=>{this.getEffectDrawer(i)||this.effectDrawers.set(i,n)}),await this.refresh(r)}addEventListener(t,n){this._eventDispatcher.addEventListener(t,n)}async addInteractor(t,n,r=!0){this._initializers.interactors.set(t,n),await this.refresh(r)}async addMover(t,n,r=!0){this._initializers.movers.set(t,n),await this.refresh(r)}async addParticleUpdater(t,n,r=!0){this._initializers.updaters.set(t,n),await this.refresh(r)}async addPathGenerator(t,n,r=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,n),await this.refresh(r)}async addPlugin(t,n=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(n)}async addPreset(t,n,r=!1,i=!0){(r||!this.getPreset(t))&&this.presets.set(t,n),await this.refresh(i)}async addShape(t,n,r=!0){iu(t,i=>{this.getShapeDrawer(i)||this.shapeDrawers.set(i,n)}),await this.refresh(r)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,n){this._eventDispatcher.dispatchEvent(t,n)}dom(){return this._domArray}domItem(t){const n=this.dom(),r=n[t];if(!r||r.destroyed){n.splice(t,1);return}return r}async getAvailablePlugins(t){const n=new Map;for(const r of this.plugins)r.needsPlugin(t.actualOptions)&&n.set(r.id,await r.getPlugin(t));return n}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,n=!1){return await Xh(t,this.interactors,this._initializers.interactors,n)}async getMovers(t,n=!1){return await Xh(t,this.movers,this._initializers.movers,n)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(n=>n.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,n=!1){return await Xh(t,this.updaters,this._initializers.updaters,n)}init(){this._initialized||(this._initialized=!0)}async load(t){var m;const r=t.id??((m=t.element)==null?void 0:m.id)??`tsparticles${Math.floor(fr()*1e4)}`,{index:i,url:o}=t,s=o?await u7({fallback:t.options,url:o,index:i}):t.options;let a=t.element??document.getElementById(r);a||(a=document.createElement("div"),a.id=r,document.body.append(a));const l=Zk(s,i),u=this.dom(),c=u.findIndex(x=>x.id.description===r),d=0;if(c>=d){const x=this.domItem(c);x&&!x.destroyed&&(x.destroy(),u.splice(c,1))}let f;if(a.tagName.toLowerCase()==="canvas")f=a,f.dataset[Qh]="false";else{const x=a.getElementsByTagName("canvas");x.length?(f=x[0],f.dataset[Qh]="false"):(f=document.createElement("canvas"),f.dataset[Qh]="true",a.appendChild(f))}f.style.width||(f.style.width="100%"),f.style.height||(f.style.height="100%");const{Container:p}=await Te(()=>import("./Container-CwQSRyJL.js"),__vite__mapDeps([0,1,2,3,4])),h=new p(this,r,l);return c>=d?u.splice(c,0,h):u.push(h),h.canvas.loadCanvas(f),await h.start(),h}loadOptions(t,n){for(const r of this.plugins)r.loadOptions(t,n)}loadParticlesOptions(t,n,...r){var o;const i=this.updaters.get(t);if(i)for(const s of i)(o=s.loadOptions)==null||o.call(s,n,...r)}async refresh(t=!0){t&&await Promise.all(this.dom().map(n=>n.refresh()))}removeEventListener(t,n){this._eventDispatcher.removeEventListener(t,n)}setOnClickHandler(t){const n=this.dom();if(!n.length)throw new Error(`${Iy} can only set click handlers after calling tsParticles.load()`);for(const r of n)r.addClickHandler(t)}}const ef="random",Kc="mid",Lp=new Map;function qb(e){Lp.set(e.key,e)}function d7(e){for(const[,l]of Lp)if(e.startsWith(l.stringPrefix))return l.parseString(e);const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=e.replace(t,(l,u,c,d,f)=>u+u+c+c+d+d+(f!==void 0?f+f:"")),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,i=r.exec(n),o=16;return i?{a:i[4]!==void 0?parseInt(i[4],o)/255:1,b:parseInt(i[3],o),g:parseInt(i[2],o),r:parseInt(i[1],o)}:void 0}function tf(e,t,n=!0){if(!e)return;const r=ru(e)?{value:e}:e;if(ru(r.value))return eM(r.value,t,n);if(Fo(r.value))return tf({value:$y(r.value,t,n)});for(const[,i]of Lp){const o=i.handleRangeColor(r);if(o)return o}}function eM(e,t,n=!0){if(!e)return;const r=ru(e)?{value:e}:e;if(ru(r.value))return r.value===ef?tM():p7(r.value);if(Fo(r.value))return eM({value:$y(r.value,t,n)});for(const[,i]of Lp){const o=i.handleColor(r);if(o)return o}}function Dq(e,t,n=!0){const r=tf(e,t,n);return r?f7(r):void 0}function f7(e){const c=e.r/255,d=e.g/255,f=e.b/255,p=Math.max(c,d,f),h=Math.min(c,d,f),m={h:0,l:(p+h)*.5,s:0};return p!==h&&(m.s=m.l<.5?(p-h)/(p+h):(p-h)/(2-p-h),m.h=c===p?(d-f)/(p-h):m.h=d===p?2+(f-c)/(p-h):2*2+(c-d)/(p-h)),m.l*=100,m.s*=100,m.h*=60,m.h<0&&(m.h+=360),m.h>=360&&(m.h-=360),m}function p7(e){return d7(e)}function ia(e){const s=(e.h%360+360)%360,a=Math.max(0,Math.min(100,e.s)),l=Math.max(0,Math.min(100,e.l)),u=s/360,c=a/100,d=l/100,f=255,p=3;if(a===0){const M=Math.round(d*f);return{r:M,g:M,b:M}}const h=.5,m=2,x=(M,k,A)=>{if(A<0&&A++,A>1&&A--,A*6<1)return M+(k-M)*6*A;if(A*m<1)return k;if(A*p<1*m){const B=m/p;return M+(k-M)*(B-A)*6}return M},g=1,y=d0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=r.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const c=e.offset?Ms(e.offset):0,d=(e.velocity??0)*r.factor+c*3.6,f=e.decay??1,p=Ap(t),h=_p(t);!n||e.status==="increasing"?(e.value+=d,e.value>p&&(e.loops||(e.loops=0),e.loops++,n?e.status="decreasing":e.value-=p)):(e.value-=d,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing")),e.velocity&&f!==1&&(e.velocity*=f),e.value=Ly(e.value,h,p)}function Wq(e,t){if(!e)return;const{h:n,s:r,l:i}=e,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};n&&Jh(n,o.h,!1,t),r&&Jh(r,o.s,!0,t),i&&Jh(i,o.l,!0,t)}class g7{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.s!==void 0&&r.l!==void 0)return ia(r)}handleRangeColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.l!==void 0)return ia({h:pt(r.h),l:pt(r.l),s:pt(r.s)})}parseString(t){if(!t.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,r=n.exec(t),i=4,o=1,s=10;return r?h7({a:r.length>i?Qk(r[5]):o,h:parseInt(r[1],s),l:parseInt(r[3],s),s:parseInt(r[2],s)}):void 0}}class v7{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return r}handleRangeColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return{r:pt(r.r),g:pt(r.g),b:pt(r.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,r=n.exec(t),i=10;return r?{a:r.length>4?Qk(r[5]):1,b:parseInt(r[3],i),g:parseInt(r[2],i),r:parseInt(r[1],i)}:void 0}}function y7(){const e=new v7,t=new g7;qb(e),qb(t);const n=new c7;return n.init(),n}const jy=y7();Ip()||(window.tsParticles=jy);const x7=e=>{const t=e.id??"tsparticles";return b.useEffect(()=>{let n;return jy.load({id:t,url:e.url,options:e.options}).then(r=>{var i;n=r,(i=e.particlesLoaded)==null||i.call(e,r)}),()=>{n==null||n.destroy()}},[t,e,e.url,e.options]),S.jsx("div",{id:t,className:e.className})};async function w7(e){await e(jy)}async function b7(e,t=!0){const{loadParallaxMover:n}=await Te(()=>import("./index-DTnviRFa.js"),[]),{loadExternalAttractInteraction:r}=await Te(()=>import("./index-CU9ntlVE.js"),[]),{loadExternalBounceInteraction:i}=await Te(()=>import("./index-Dex8x5sq.js"),[]),{loadExternalBubbleInteraction:o}=await Te(()=>import("./index-Dxcs0UKz.js"),__vite__mapDeps([5,2])),{loadExternalConnectInteraction:s}=await Te(()=>import("./index-BGyF8PgE.js"),[]),{loadExternalGrabInteraction:a}=await Te(()=>import("./index-D0mBiceO.js"),__vite__mapDeps([6,2])),{loadExternalPauseInteraction:l}=await Te(()=>import("./index-DLULLknW.js"),[]),{loadExternalPushInteraction:u}=await Te(()=>import("./index-BRlKzsgu.js"),[]),{loadExternalRemoveInteraction:c}=await Te(()=>import("./index-DzgRBc1Z.js"),[]),{loadExternalRepulseInteraction:d}=await Te(()=>import("./index-kWzwevuU.js"),[]),{loadExternalSlowInteraction:f}=await Te(()=>import("./index-_cpfFoC0.js"),[]),{loadParticlesAttractInteraction:p}=await Te(()=>import("./index-Uy2IqHz2.js"),[]),{loadParticlesCollisionsInteraction:h}=await Te(()=>import("./index-DAZDQalY.js"),[]),{loadParticlesLinksInteraction:m}=await Te(()=>import("./index-Hv8I8PQE.js"),__vite__mapDeps([7,2])),{loadEasingQuadPlugin:x}=await Te(()=>import("./index-4z1oJj1v.js"),[]),{loadEmojiShape:g}=await Te(()=>import("./index-DpxouOhY.js").then(A=>A.i),[]),{loadImageShape:y}=await Te(()=>import("./index-LDb9jKip.js").then(A=>A.i),[]),{loadLineShape:v}=await Te(()=>import("./index-DZeCeBqW.js"),[]),{loadPolygonShape:w}=await Te(()=>import("./index-Cj3Eb7FU.js"),[]),{loadSquareShape:C}=await Te(()=>import("./index-Bx4LgAhS.js"),[]),{loadStarShape:E}=await Te(()=>import("./index-Chj5qFiT.js"),[]),{loadLifeUpdater:T}=await Te(()=>import("./index-CueqtFgO.js"),[]),{loadRotateUpdater:P}=await Te(()=>import("./index-BTkuQGA5.js"),[]),{loadStrokeColorUpdater:M}=await Te(()=>import("./index-D5dHnt_J.js"),[]),{loadBasic:k}=await Te(()=>import("./index-n6cAyR6z.js"),[]);await n(e,!1),await r(e,!1),await i(e,!1),await o(e,!1),await s(e,!1),await a(e,!1),await l(e,!1),await u(e,!1),await c(e,!1),await d(e,!1),await f(e,!1),await p(e,!1),await h(e,!1),await m(e,!1),await x(),await g(e,!1),await y(e,!1),await v(e,!1),await w(e,!1),await C(e,!1),await E(e,!1),await T(e,!1),await P(e,!1),await M(e,!1),await k(e,t)}const Dy="-";function S7(e){const t=E7(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(s){const a=s.split(Dy);return a[0]===""&&a.length!==1&&a.shift(),nM(a,t)||C7(s)}function o(s,a){const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:o}}function nM(e,t){var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?nM(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Dy);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId}const Kb=/^\[(.+)\]$/;function C7(e){if(Kb.test(e)){const t=Kb.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function E7(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return T7(Object.entries(e.classGroups),n).forEach(([o,s])=>{u0(s,r,o,t)}),r}function u0(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:Qb(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(P7(i)){u0(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{u0(s,Qb(t,o),n,r)})})}function Qb(e,t){let n=e;return t.split(Dy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function P7(e){return e.isThemeGetter}function T7(e,t){return t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,i]}):e}function k7(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(o,s){n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}}const rM="!";function M7(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(s){const a=[];let l=0,u=0,c;for(let m=0;mu?c-u:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}}}function O7(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function R7(e){return{cache:k7(e.cacheSize),splitModifiers:M7(e),...S7(e)}}const _7=/\s+/;function A7(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=new Set;return e.trim().split(_7).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(s);let d=r(c?u.substring(0,c):u),f=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:s};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:s};f=!1}const p=O7(a).join(":");return{isTailwindClass:!0,modifierId:l?p+rM:p,classGroupId:d,originalClassName:s,hasPostfixModifier:f}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=s,c=a+l;return o.has(c)?!1:(o.add(c),i(l,u).forEach(d=>o.add(a+d)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function I7(){let e=0,t,n,r="";for(;ed(c),e());return n=R7(u),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=A7(l,n);return i(l,c),c}return function(){return o(I7.apply(null,arguments))}}function Re(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const oM=/^\[(?:([a-z-]+):)?(.+)\]$/i,$7=/^\d+\/\d+$/,j7=new Set(["px","full","screen"]),D7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F7=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,N7=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,z7=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,V7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function hr(e){return fo(e)||j7.has(e)||$7.test(e)}function Xr(e){return ya(e,"length",Q7)}function fo(e){return!!e&&!Number.isNaN(Number(e))}function wc(e){return ya(e,"number",fo)}function Da(e){return!!e&&Number.isInteger(Number(e))}function B7(e){return e.endsWith("%")&&fo(e.slice(0,-1))}function ie(e){return oM.test(e)}function Zr(e){return D7.test(e)}const U7=new Set(["length","size","percentage"]);function W7(e){return ya(e,U7,sM)}function H7(e){return ya(e,"position",sM)}const G7=new Set(["image","url"]);function q7(e){return ya(e,G7,X7)}function K7(e){return ya(e,"",Y7)}function Fa(){return!0}function ya(e,t,n){const r=oM.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function Q7(e){return F7.test(e)&&!N7.test(e)}function sM(){return!1}function Y7(e){return z7.test(e)}function X7(e){return V7.test(e)}function Z7(){const e=Re("colors"),t=Re("spacing"),n=Re("blur"),r=Re("brightness"),i=Re("borderColor"),o=Re("borderRadius"),s=Re("borderSpacing"),a=Re("borderWidth"),l=Re("contrast"),u=Re("grayscale"),c=Re("hueRotate"),d=Re("invert"),f=Re("gap"),p=Re("gradientColorStops"),h=Re("gradientColorStopPositions"),m=Re("inset"),x=Re("margin"),g=Re("opacity"),y=Re("padding"),v=Re("saturate"),w=Re("scale"),C=Re("sepia"),E=Re("skew"),T=Re("space"),P=Re("translate"),M=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",ie,t],I=()=>[ie,t],$=()=>["",hr,Xr],D=()=>["auto",fo,ie],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",ie],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[fo,wc],ne=()=>[fo,ie];return{cacheSize:500,separator:":",theme:{colors:[Fa],spacing:[hr,Xr],blur:["none","",Zr,ie],brightness:K(),borderColor:[e],borderRadius:["none","","full",Zr,ie],borderSpacing:I(),borderWidth:$(),contrast:K(),grayscale:L(),hueRotate:ne(),invert:L(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[B7,Xr],inset:A(),margin:A(),opacity:K(),padding:I(),saturate:K(),scale:K(),sepia:L(),skew:ne(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Zr]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),ie]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Da,ie]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Da,ie]}],"grid-cols":[{"grid-cols":[Fa]}],"col-start-end":[{col:["auto",{span:["full",Da,ie]},ie]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Fa]}],"row-start-end":[{row:["auto",{span:[Da,ie]},ie]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[Zr]},Zr]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zr,Xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wc]}],"font-family":[{font:[Fa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",fo,wc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hr,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hr,Xr]}],"underline-offset":[{"underline-offset":["auto",hr,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),H7]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W7]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},q7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:N()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[hr,ie]}],"outline-w":[{outline:[hr,Xr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[hr,Xr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zr,K7]}],"shadow-color":[{shadow:[Fa]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zr,ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Da,ie]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hr,Xr,wc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const J7=L7(Z7);function eB(...e){return J7(oe(e))}const aM=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$p=b.createContext({}),Fy=b.createContext(null),Ny=typeof document<"u",zy=Ny?b.useLayoutEffect:b.useEffect,lM=b.createContext({strict:!1}),Vy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tB="framerAppearId",uM="data-"+Vy(tB),nB={skipAnimations:!1,useManualTiming:!1};class Yb{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function rB(e){let t=new Yb,n=new Yb,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=rB(()=>n=!0),d),{}),s=d=>{o[d].process(i)},a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,iB),1),i.timestamp=d,i.isProcessing=!0,bc.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:bc.reduce((d,f)=>{const p=o[f];return d[f]=(h,m=!1,x=!1)=>(n||l(),p.schedule(h,m,x)),d},{}),cancel:d=>bc.forEach(f=>o[f].cancel(d)),state:i,steps:o}}const{schedule:By,cancel:Hq}=cM(queueMicrotask,!1);function oB(e,t,n,r){const{visualElement:i}=b.useContext($p),o=b.useContext(lM),s=b.useContext(Fy),a=b.useContext(aM).reducedMotion,l=b.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;b.useInsertionEffect(()=>{u&&u.update(n,s)});const c=b.useRef(!!(n[uM]&&!window.HandoffComplete));return zy(()=>{u&&(By.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),b.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function fs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sB(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):fs(n)&&(n.current=r))},[t])}function ou(e){return typeof e=="string"||Array.isArray(e)}function jp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Uy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wy=["initial",...Uy];function Dp(e){return jp(e.animate)||Wy.some(t=>ou(e[t]))}function dM(e){return!!(Dp(e)||e.variants)}function aB(e,t){if(Dp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ou(n)?n:void 0,animate:ou(r)?r:void 0}}return e.inherit!==!1?t:{}}function lB(e){const{initial:t,animate:n}=aB(e,b.useContext($p));return b.useMemo(()=>({initial:t,animate:n}),[Xb(t),Xb(n)])}function Xb(e){return Array.isArray(e)?e.join(" "):e}const Zb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},su={};for(const e in Zb)su[e]={isEnabled:t=>Zb[e].some(n=>!!t[n])};function uB(e){for(const t in e)su[t]={...su[t],...e[t]}}const fM=b.createContext({}),pM=b.createContext({}),cB=Symbol.for("motionComponentSymbol");function dB({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&uB(e);function o(a,l){let u;const c={...b.useContext(aM),...a,layoutId:fB(a)},{isStatic:d}=c,f=lB(a),p=r(a,d);if(!d&&Ny){f.visualElement=oB(i,p,c,t);const h=b.useContext(pM),m=b.useContext(lM).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,m,e,h))}return S.jsxs($p.Provider,{value:f,children:[u&&f.visualElement?S.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,sB(p,f.visualElement,l),p,d,f.visualElement)]})}const s=b.forwardRef(o);return s[cB]=i,s}function fB({layoutId:e}){const t=b.useContext(fM).id;return t&&e!==void 0?t+"-"+e:e}function pB(e){function t(r,i={}){return dB(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const hB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hy(e){return typeof e!="string"||e.includes("-")?!1:!!(hB.indexOf(e)>-1||/[A-Z]/u.test(e))}const nf={};function mB(e){Object.assign(nf,e)}const zu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],No=new Set(zu);function hM(e,{layout:t,layoutId:n}){return No.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nf[e]||e==="opacity")}const Rt=e=>!!(e&&e.getVelocity),gB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vB=zu.length;function yB(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),gM=mM("--"),xB=mM("var(--"),Gy=e=>xB(e)?wB.test(e.split("/*")[0].trim()):!1,wB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Bi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},gl={...xa,transform:e=>Bi(0,1,e)},Sc={...xa,default:1},vl=e=>Math.round(e*1e5)/1e5,qy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,SB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,CB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Vu(e){return typeof e=="string"}const Bu=e=>({test:t=>Vu(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ei=Bu("deg"),cr=Bu("%"),Z=Bu("px"),EB=Bu("vh"),PB=Bu("vw"),Jb={...cr,parse:e=>cr.parse(e)/100,transform:e=>cr.transform(e*100)},eS={...xa,transform:Math.round},vM={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,size:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,rotate:ei,rotateX:ei,rotateY:ei,rotateZ:ei,scale:Sc,scaleX:Sc,scaleY:Sc,scaleZ:Sc,skew:ei,skewX:ei,skewY:ei,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:gl,originX:Jb,originY:Jb,originZ:Z,zIndex:eS,backgroundPositionX:Z,backgroundPositionY:Z,fillOpacity:gl,strokeOpacity:gl,numOctaves:eS};function Ky(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(gM(d)){o[d]=f;continue}const p=vM[d],h=bB(f,p);if(No.has(d)){if(l=!0,s[d]=h,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=h):i[d]=h}if(t.transform||(l||r?i.transform=yB(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;i.transformOrigin=`${d} ${f} ${p}`}}const Qy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yM(e,t,n){for(const r in t)!Rt(t[r])&&!hM(r,n)&&(e[r]=t[r])}function TB({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Qy();return Ky(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function kB(e,t,n){const r=e.style||{},i={};return yM(i,r,e),Object.assign(i,TB(e,t,n)),i}function MB(e,t,n){const r={},i=kB(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const OB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||OB.has(e)}let xM=e=>!rf(e);function RB(e){e&&(xM=t=>t.startsWith("on")?!rf(t):e(t))}try{RB(require("@emotion/is-prop-valid").default)}catch{}function _B(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(xM(i)||n===!0&&rf(i)||!t&&!rf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function tS(e,t,n){return typeof e=="string"?e:Z.transform(t+n*e)}function AB(e,t,n){const r=tS(t,e.x,e.width),i=tS(n,e.y,e.height);return`${r} ${i}`}const IB={offset:"stroke-dashoffset",array:"stroke-dasharray"},LB={offset:"strokeDashoffset",array:"strokeDasharray"};function $B(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?IB:LB;e[o.offset]=Z.transform(-r);const s=Z.transform(t),a=Z.transform(n);e[o.array]=`${s} ${a}`}function Yy(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(Ky(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:m}=e;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(i!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=AB(m,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&$B(p,s,a,l,!1)}const wM=()=>({...Qy(),attrs:{}}),Xy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function jB(e,t,n,r){const i=b.useMemo(()=>{const o=wM();return Yy(o,t,{enableHardwareAcceleration:!1},Xy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};yM(o,e.style,e),i.style={...o,...i.style}}return i}function DB(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Hy(n)?jB:MB)(r,o,s,n),u=_B(r,typeof n=="string",e),c=n!==b.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=b.useMemo(()=>Rt(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}function bM(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const SM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function CM(e,t,n,r){bM(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(SM.has(i)?i:Vy(i),t.attrs[i])}function Zy(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(Rt(i[s])||t.style&&Rt(t.style[s])||hM(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function EM(e,t,n){const r=Zy(e,t,n);for(const i in e)if(Rt(e[i])||Rt(t[i])){const o=zu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function Jy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function e1(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const c0=e=>Array.isArray(e),FB=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),NB=e=>c0(e)?e[e.length-1]||0:e;function Qc(e){const t=Rt(e)?e.get():e;return FB(t)?t.toValue():t}function zB({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:VB(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const PM=e=>(t,n)=>{const r=b.useContext($p),i=b.useContext(Fy),o=()=>zB(e,t,r,i);return n?o():e1(o)};function VB(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=Qc(o[f]);let{initial:s,animate:a}=e;const l=Dp(e),u=dM(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!jp(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const h=Jy(e,p);if(!h)return;const{transitionEnd:m,transition:x,...g}=h;for(const y in g){let v=g[y];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(i[y]=v)}for(const y in m)i[y]=m[y]}),i}const bt=e=>e,{schedule:Qe,cancel:Dr,state:dt,steps:em}=cM(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0),BB={useVisualState:PM({scrapeMotionValuesFromProps:EM,createRenderState:wM,onMount:(e,t,{renderState:n,latestValues:r})=>{Qe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Qe.render(()=>{Yy(n,r,{enableHardwareAcceleration:!1},Xy(t.tagName),e.transformTemplate),CM(t,n)})}})},UB={useVisualState:PM({scrapeMotionValuesFromProps:Zy,createRenderState:Qy})};function WB(e,{forwardMotionProps:t=!1},n,r){return{...Hy(e)?BB:UB,preloadedFeatures:n,useRender:DB(t),createVisualElement:r,Component:e}}function Cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const TM=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Fp(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const HB=e=>t=>TM(t)&&e(t,Fp(t));function Or(e,t,n,r){return Cr(e,t,HB(n),r)}const GB=(e,t)=>n=>t(e(n)),Rr=(...e)=>e.reduce(GB);function kM(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const nS=kM("dragHorizontal"),rS=kM("dragVertical");function MM(e){let t=!1;if(e==="y")t=rS();else if(e==="x")t=nS();else{const n=nS(),r=rS();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function OM(){const e=MM(!0);return e?(e(),!1):!0}class Ki{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iS(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||OM())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&l(o,s)};return Or(e.current,n,i,{passive:!e.getProps()[r]})}class qB extends Ki{mount(){this.unmount=Rr(iS(this.node,!0),iS(this.node,!1))}unmount(){}}class KB extends Ki{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rr(Cr(this.node.current,"focus",()=>this.onFocus()),Cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const RM=(e,t)=>t?e===t?!0:RM(e,t.parentElement):!1;function tm(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fp(n))}class QB extends Ki{constructor(){super(...arguments),this.removeStartListeners=bt,this.removeEndListeners=bt,this.removeAccessibleListeners=bt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Or(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();!d&&!RM(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)},{passive:!(r.onTap||r.onPointerUp)}),s=Or(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Rr(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||tm("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&c(l,u)})};this.removeEndListeners(),this.removeEndListeners=Cr(this.node.current,"keyup",s),tm("down",(a,l)=>{this.startPress(a,l)})},n=Cr(this.node.current,"keydown",t),r=()=>{this.isPressing&&tm("cancel",(o,s)=>this.cancelPress(o,s))},i=Cr(this.node.current,"blur",r);this.removeAccessibleListeners=Rr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!OM()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Or(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Cr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Rr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const d0=new WeakMap,nm=new WeakMap,YB=e=>{const t=d0.get(e.target);t&&t(e)},XB=e=>{e.forEach(YB)};function ZB({root:e,...t}){const n=e||document;nm.has(n)||nm.set(n,{});const r=nm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XB,{root:e,...t})),r[i]}function JB(e,t,n){const r=ZB(t);return d0.set(e,n),r.observe(e),()=>{d0.delete(e),r.unobserve(e)}}const eU={some:0,all:1};class tU extends Ki{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:eU[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return JB(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nU(t,n))&&this.startObserver()}unmount(){}}function nU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rU={inView:{Feature:tU},tap:{Feature:QB},focus:{Feature:KB},hover:{Feature:qB}};function _M(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function oU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Np(e,t,n){const r=e.getProps();return Jy(r,t,n!==void 0?n:r.custom,iU(e),oU(e))}const $i=e=>e*1e3,_r=e=>e/1e3,sU={type:"spring",stiffness:500,damping:25,restSpeed:10},aU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),lU={type:"keyframes",duration:.8},uU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cU=(e,{keyframes:t})=>t.length>2?lU:No.has(e)?e.startsWith("scale")?aU(t[1]):sU:uU;function dU({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function t1(e,t){return e[t]||e.default||e}const fU=e=>e!==null;function zp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(fU),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}let Yc;function pU(){Yc=void 0}const ji={now:()=>(Yc===void 0&&ji.set(dt.isProcessing||nB.useManualTiming?dt.timestamp:performance.now()),Yc),set:e=>{Yc=e,queueMicrotask(pU)}},AM=e=>/^0[^.\s]+$/u.test(e);function hU(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||AM(e):!0}let mU=bt,n1=bt;const IM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vU(e){const t=gU.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function LM(e,t,n=1){const[r,i]=vU(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return IM(s)?parseFloat(s):s}return Gy(i)?LM(i,t,n+1):i}const yU=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oS=e=>e===xa||e===Z,sS=(e,t)=>parseFloat(e.split(", ")[t]),aS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return sS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?sS(o[1],e):0}},xU=new Set(["x","y","z"]),wU=zu.filter(e=>!xU.has(e));function bU(e){const t=[];return wU.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const oa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:aS(4,13),y:aS(5,14)};oa.translateX=oa.x;oa.translateY=oa.y;const $M=e=>t=>t.test(e),SU={test:e=>e==="auto",parse:e=>e},jM=[xa,Z,cr,ei,PB,EB,SU],lS=e=>jM.find($M(e)),Po=new Set;let f0=!1,p0=!1;function DM(){if(p0){const e=Array.from(Po).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=bU(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}p0=!1,f0=!1,Po.forEach(e=>e.complete()),Po.clear()}function FM(){Po.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(p0=!0)})}function CU(){FM(),DM()}class r1{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Po.add(this),f0||(f0=!0,Qe.read(FM),Qe.resolveKeyframes(DM))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;on=>!!(Vu(n)&&CB.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),NM=(e,t,n)=>r=>{if(!Vu(r))return r;const[i,o,s,a]=r.match(qy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},EU=e=>Bi(0,255,e),rm={...xa,transform:e=>Math.round(EU(e))},po={test:i1("rgb","red"),parse:NM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rm.transform(e)+", "+rm.transform(t)+", "+rm.transform(n)+", "+vl(gl.transform(r))+")"};function PU(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const h0={test:i1("#"),parse:PU,transform:po.transform},ps={test:i1("hsl","hue"),parse:NM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+cr.transform(vl(t))+", "+cr.transform(vl(n))+", "+vl(gl.transform(r))+")"},Mt={test:e=>po.test(e)||h0.test(e)||ps.test(e),parse:e=>po.test(e)?po.parse(e):ps.test(e)?ps.parse(e):h0.parse(e),transform:e=>Vu(e)?e:e.hasOwnProperty("red")?po.transform(e):ps.transform(e)};function TU(e){var t,n;return isNaN(e)&&Vu(e)&&(((t=e.match(qy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(SB))===null||n===void 0?void 0:n.length)||0)>0}const zM="number",VM="color",kU="var",MU="var(",uS="${}",OU=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function of(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(OU,l=>(Mt.test(l)?(r.color.push(o),i.push(VM),n.push(Mt.parse(l))):l.startsWith(MU)?(r.var.push(o),i.push(kU),n.push(l)):(r.number.push(o),i.push(zM),n.push(parseFloat(l))),++o,uS)).split(uS);return{values:n,split:a,indexes:r,types:i}}function BM(e){return of(e).values}function UM(e){const{split:t,types:n}=of(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function _U(e){const t=BM(e);return UM(e)(t.map(RU))}const Ui={test:TU,parse:BM,createTransformer:UM,getAnimatableNone:_U},AU=new Set(["brightness","contrast","saturate","opacity"]);function IU(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qy)||[];if(!r)return e;const i=n.replace(r,"");let o=AU.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LU=/\b([a-z-]*)\(.*?\)/gu,m0={...Ui,getAnimatableNone:e=>{const t=e.match(LU);return t?t.map(IU).join(" "):e}},$U={...vM,color:Mt,backgroundColor:Mt,outlineColor:Mt,fill:Mt,stroke:Mt,borderColor:Mt,borderTopColor:Mt,borderRightColor:Mt,borderBottomColor:Mt,borderLeftColor:Mt,filter:m0,WebkitFilter:m0},o1=e=>$U[e];function WM(e,t){let n=o1(e);return n!==m0&&(n=Ui),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function jU(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function DU(e){let t;return()=>(t===void 0&&(t=e()),t)}const cS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ui.test(e)||e==="0")&&!e.startsWith("url("));function FU(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function s1(e,t){return t?e*(1e3/t):0}const zU=5;function qM(e,t,n){const r=Math.max(t-zU,0);return s1(n-e(r),t-r)}const im=.001,VU=.01,BU=10,UU=.05,WU=1;function HU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=Bi(UU,WU,s),e=Bi(VU,BU,_r(e)),s<1?(i=u=>{const c=u*s,d=c*e,f=c-n,p=g0(u,s),h=Math.exp(-d);return im-f/p*h},o=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-d),m=g0(Math.pow(u,2),s);return(-i(u)+im>0?-1:1)*((f-p)*h)/m}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-im+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=qU(i,o,a);if(e=$i(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const GU=12;function qU(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function YU(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!dS(e,QU)&&dS(e,KU)){const n=HU(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function KM({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=YU({...r,velocity:-_r(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(a*u)),m=o-i,x=_r(Math.sqrt(a/u)),g=Math.abs(m)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let y;if(h<1){const v=g0(x,h);y=w=>{const C=Math.exp(-h*x*w);return o-C*((p+h*x*m)/v*Math.sin(v*w)+m*Math.cos(v*w))}}else if(h===1)y=v=>o-Math.exp(-x*v)*(m+(p+x*m)*v);else{const v=x*Math.sqrt(h*h-1);y=w=>{const C=Math.exp(-h*x*w),E=Math.min(v*w,300);return o-C*((p+h*x*m)*Math.sinh(E)+v*m*Math.cosh(E))/v}}return{calculatedDuration:f&&c||null,next:v=>{const w=y(v);if(f)s.done=v>=c;else{let C=p;v!==0&&(h<1?C=qM(y,v,w):C=0);const E=Math.abs(C)<=n,T=Math.abs(o-w)<=t;s.done=E&&T}return s.value=s.done?o:w,s}}}function fS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=P=>a!==void 0&&Pl,h=P=>a===void 0?l:l===void 0||Math.abs(a-P)-m*Math.exp(-P/r),v=P=>g+y(P),w=P=>{const M=y(P),k=v(P);f.done=Math.abs(M)<=u,f.value=f.done?g:k};let C,E;const T=P=>{p(f.value)&&(C=P,E=KM({keyframes:[f.value,h(f.value)],velocity:qM(v,P,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:P=>{let M=!1;return!E&&C===void 0&&(M=!0,w(P),T(P)),C!==void 0&&P>=C?E.next(P-C):(!M&&w(P),f)}}}const QM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,XU=1e-7,ZU=12;function JU(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=QM(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>XU&&++aJU(o,0,1,e,n);return o=>o===0||o===1?o:QM(i(o),t,r)}const eW=Uu(.42,0,1,1),tW=Uu(0,0,.58,1),YM=Uu(.42,0,.58,1),nW=e=>Array.isArray(e)&&typeof e[0]!="number",XM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ZM=e=>t=>1-e(1-t),a1=e=>1-Math.sin(Math.acos(e)),JM=ZM(a1),rW=XM(a1),eO=Uu(.33,1.53,.69,.99),l1=ZM(eO),iW=XM(l1),oW=e=>(e*=2)<1?.5*l1(e):.5*(2-Math.pow(2,-10*(e-1))),sW={linear:bt,easeIn:eW,easeInOut:YM,easeOut:tW,circIn:a1,circInOut:rW,circOut:JM,backIn:l1,backInOut:iW,backOut:eO,anticipate:oW},pS=e=>{if(Array.isArray(e)){n1(e.length===4);const[t,n,r,i]=e;return Uu(t,n,r,i)}else if(typeof e=="string")return sW[e];return e},sa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},je=(e,t,n)=>e+(t-e)*n;function om(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aW({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=om(l,a,e+1/3),o=om(l,a,e),s=om(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const sm=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lW=[h0,po,ps],uW=e=>lW.find(t=>t.test(e));function hS(e){const t=uW(e);let n=t.parse(e);return t===ps&&(n=aW(n)),n}const mS=(e,t)=>{const n=hS(e),r=hS(t),i={...n};return o=>(i.red=sm(n.red,r.red,o),i.green=sm(n.green,r.green,o),i.blue=sm(n.blue,r.blue,o),i.alpha=je(n.alpha,r.alpha,o),po.transform(i))};function v0(e,t){return n=>n>0?t:e}function cW(e,t){return n=>je(e,t,n)}function u1(e){return typeof e=="number"?cW:typeof e=="string"?Gy(e)?v0:Mt.test(e)?mS:pW:Array.isArray(e)?tO:typeof e=="object"?Mt.test(e)?mS:dW:v0}function tO(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>u1(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function fW(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=Ui.createTransformer(t),r=of(e),i=of(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Rr(tO(fW(r,i),i.values),n):v0(e,t)};function nO(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?je(e,t,n):u1(e)(e,t)}function hW(e,t,n){const r=[],i=n||nO,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=hW(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Bi(e[0],e[o-1],u)):l}function mW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=sa(0,t,r);e.push(je(n,1,i))}}function iO(e){const t=[0];return mW(t,e.length-1),t}function gW(e,t){return e.map(n=>n*t)}function vW(e,t){return e.map(()=>t||YM).splice(0,e.length-1)}function sf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nW(r)?r.map(pS):pS(r),o={done:!1,value:t[0]},s=gW(n&&n.length===t.length?n:iO(t),e),a=rO(s,t,{ease:Array.isArray(i)?i:vW(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const gS=2e4;function yW(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=gS?1/0:t}const xW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qe.update(t,!0),stop:()=>Dr(t),now:()=>dt.isProcessing?dt.timestamp:ji.now()}},wW={decay:fS,inertia:fS,tween:sf,keyframes:sf,spring:KM},bW=e=>e/100;class c1 extends GM{constructor({KeyframeResolver:t=r1,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:i,keyframes:o}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,s,r,i):this.resolver=new t(o,s,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=wW[n]||sf;let l,u;a!==sf&&typeof t[0]!="number"&&(l=Rr(bW,nO(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=yW(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=o;if(p){const P=Math.min(this.currentTime,c)/d;let M=Math.floor(P),k=P%1;!k&&P>=1&&(k=1),k===1&&M--,M=Math.min(M,p+1),!!(M%2)&&(h==="reverse"?(k=1-k,m&&(k-=m/d)):h==="mirror"&&(w=s)),v=Bi(0,1,k)*d}const C=y?{done:!1,value:l[0]}:w.next(v);a&&(C.value=a(C.value));let{done:E}=C;!y&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return T&&i!==void 0&&(C.value=zp(l,this.options,i)),x&&x(C.value),T&&this.finish(),C}get duration(){const{resolved:t}=this;return t?_r(t.calculatedDuration):0}get time(){return _r(this.currentTime)}set time(t){t=$i(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=_r(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xW,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const oO=e=>Array.isArray(e)&&typeof e[0]=="number";function sO(e){return!!(!e||typeof e=="string"&&e in d1||oO(e)||Array.isArray(e)&&e.every(sO))}const Ya=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,d1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ya([0,.65,.55,1]),circOut:Ya([.55,0,1,.45]),backIn:Ya([.31,.01,.66,-.59]),backOut:Ya([.33,1.53,.69,.99])};function SW(e){return aO(e)||d1.easeOut}function aO(e){if(e)return oO(e)?Ya(e):Array.isArray(e)?e.map(SW):d1[e]}function CW(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=aO(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const EW=DU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),PW=new Set(["opacity","clipPath","filter","transform"]),af=10,TW=2e4;function kW(e){return e.type==="spring"||e.name==="backgroundColor"||!sO(e.ease)}function MW(e,t){const n=new c1({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(o,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(kW(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,m=MW(t,h);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,o=m.times,s=m.ease,a="keyframes"}const c=CW(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:s});return c.startTime=ji.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(zp(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return _r(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return _r(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$i(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return bt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return bt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...d}=this.options,f=new c1({...d,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),p=$i(this.time);l.setWithVelocity(f.sample(p-af).value,f.sample(p).value,af)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;return EW()&&r&&PW.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const f1=(e,t,n,r={},i,o)=>s=>{const a=t1(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-$i(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};dU(a)||(c={...c,...cU(e,c)}),c.duration&&(c.duration=$i(c.duration)),c.repeatDelay&&(c.repeatDelay=$i(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!o&&t.get()!==void 0){const f=zp(c.keyframes,a);if(f!==void 0){Qe.update(()=>{c.onUpdate(f),c.onComplete()});return}}return!o&&vS.supports(c)?new vS(c):new c1(c)};function lf(e){return!!(Rt(e)&&e.add)}function p1(e,t){e.indexOf(t)===-1&&e.push(t)}function h1(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class m1{constructor(){this.subscriptions=[]}add(t){return p1(this.subscriptions,t),()=>h1(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class RW{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ji.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=OW(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ji.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new m1);const r=this.events[t].add(n);return t==="change"?()=>{r(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ji.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yS);return s1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Er(e,t){return new RW(e,t)}function _W(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Er(n))}function g1(e,t){const n=Np(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=NB(o[s]);_W(e,s,a)}}function AW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function lO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;const u=e.getValue("willChange");r&&(s=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const p=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=l[f];if(h===void 0||d&&AW(d,f))continue;const m={delay:n,elapsed:0,...t1(s||{},f)};let x=!1;if(window.HandoffAppearAnimations){const v=e.getProps()[uM];if(v){const w=window.HandoffAppearAnimations(v,f);w!==null&&(m.elapsed=w,x=!0)}}p.start(f1(f,p,h,e.shouldReduceMotion&&No.has(f)?{type:!1}:m,e,x));const g=p.animation;g&&(lf(u)&&(u.add(f),g.then(()=>u.remove(f))),c.push(g))}return a&&Promise.all(c).then(()=>{Qe.update(()=>{a&&g1(e,a)})}),c}function y0(e,t,n={}){var r;const i=Np(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(lO(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return IW(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function IW(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(LW).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(y0(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function LW(e,t){return e.sortNodePosition(t)}function uO(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>y0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=y0(e,t,n);else{const i=typeof t=="function"?Np(e,t,n.custom):t;r=Promise.all(lO(e,i,n))}return r.then(()=>{Qe.postRender(()=>{e.notify("AnimationComplete",t)})})}const $W=[...Uy].reverse(),jW=Uy.length;function DW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>uO(e,n,r)))}function FW(e){let t=DW(e);const n=zW();let r=!0;const i=l=>(u,c)=>{var d;const f=Np(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...m}=f;u={...u,...m,...h}}return u};function o(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let x=0;xh&&w,M=!1;const k=Array.isArray(v)?v:[v];let A=k.reduce(i(g),{});C===!1&&(A={});const{prevResolvedValues:I={}}=y,$={...I,...A},D=B=>{P=!0,f.has(B)&&(M=!0,f.delete(B)),y.needsAnimating[B]=!0;const N=e.getValue(B);N&&(N.liveStyle=!1)};for(const B in $){const N=A[B],H=I[B];if(p.hasOwnProperty(B))continue;let _=!1;c0(N)&&c0(H)?_=!_M(N,H):_=N!==H,_?N!=null?D(B):f.add(B):N!==void 0&&f.has(B)?D(B):y.protectedKeys[B]=!0}y.prevProp=v,y.prevResolvedValues=A,y.isActive&&(p={...p,...A}),r&&e.blockInitialAnimation&&(P=!1),P&&(!E||M)&&d.push(...k.map(B=>({animation:B,options:{type:g}})))}if(f.size){const x={};f.forEach(g=>{const y=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),x[g]=y??null}),d.push({animation:x})}let m=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function NW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_M(t,e):!1}function Zi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zW(){return{animate:Zi(!0),whileInView:Zi(),whileHover:Zi(),whileTap:Zi(),whileDrag:Zi(),whileFocus:Zi(),exit:Zi()}}class VW extends Ki{constructor(t){super(t),t.animationState||(t.animationState=FW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),jp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let BW=0;class UW extends Ki{constructor(){super(...arguments),this.id=BW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const WW={animation:{Feature:VW},exit:{Feature:UW}},xS=(e,t)=>Math.abs(e-t);function HW(e,t){const n=xS(e.x,t.x),r=xS(e.y,t.y);return Math.sqrt(n**2+r**2)}class cO{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=lm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=HW(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:h}=d,{timestamp:m}=dt;this.history.push({...h,timestamp:m});const{onStart:x,onMove:g}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=am(f,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:h,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=lm(d.type==="pointercancel"?this.lastMoveEventInfo:am(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),h&&h(d,x)},!TM(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Fp(t),a=am(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=dt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,lm(a,this.history)),this.removeListeners=Rr(Or(this.contextWindow,"pointermove",this.handlePointerMove),Or(this.contextWindow,"pointerup",this.handlePointerUp),Or(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dr(this.updatePoint)}}function am(e,t){return t?{point:t(e.point)}:e}function wS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lm({point:e},t){return{point:e,delta:wS(e,dO(t)),offset:wS(e,GW(t)),velocity:qW(t,.1)}}function GW(e){return e[0]}function dO(e){return e[e.length-1]}function qW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=dO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$i(t)));)n--;if(!r)return{x:0,y:0};const o=_r(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function sn(e){return e.max-e.min}function x0(e,t=0,n=.01){return Math.abs(e-t)<=n}function bS(e,t,n,r=.5){e.origin=r,e.originPoint=je(t.min,t.max,e.origin),e.scale=sn(n)/sn(t),(x0(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=je(n.min,n.max,e.origin)-e.originPoint,(x0(e.translate)||isNaN(e.translate))&&(e.translate=0)}function yl(e,t,n,r){bS(e.x,t.x,n.x,r?r.originX:void 0),bS(e.y,t.y,n.y,r?r.originY:void 0)}function SS(e,t,n){e.min=n.min+t.min,e.max=e.min+sn(t)}function KW(e,t,n){SS(e.x,t.x,n.x),SS(e.y,t.y,n.y)}function CS(e,t,n){e.min=t.min-n.min,e.max=e.min+sn(t)}function xl(e,t,n){CS(e.x,t.x,n.x),CS(e.y,t.y,n.y)}function QW(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?je(n,e,r.max):Math.min(e,n)),e}function ES(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function YW(e,{top:t,left:n,bottom:r,right:i}){return{x:ES(e.x,n,i),y:ES(e.y,t,r)}}function PS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sa(t.min,t.max-r,e.min):r>i&&(n=sa(e.min,e.max-i,t.min)),Bi(0,1,n)}function JW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const w0=.35;function eH(e=w0){return e===!1?e=0:e===!0&&(e=w0),{x:TS(e,"left","right"),y:TS(e,"top","bottom")}}function TS(e,t,n){return{min:kS(e,t),max:kS(e,n)}}function kS(e,t){return typeof e=="number"?e:e[t]||0}const MS=()=>({translate:0,scale:1,origin:0,originPoint:0}),hs=()=>({x:MS(),y:MS()}),OS=()=>({min:0,max:0}),qe=()=>({x:OS(),y:OS()});function fn(e){return[e("x"),e("y")]}function fO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tH({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nH(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function um(e){return e===void 0||e===1}function b0({scale:e,scaleX:t,scaleY:n}){return!um(e)||!um(t)||!um(n)}function ro(e){return b0(e)||pO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pO(e){return RS(e.x)||RS(e.y)}function RS(e){return e&&e!=="0%"}function uf(e,t,n){const r=e-n,i=t*r;return n+i}function _S(e,t,n,r,i){return i!==void 0&&(e=uf(e,i,r)),uf(e,n,r)+t}function S0(e,t=0,n=1,r,i){e.min=_S(e.min,t,n,r,i),e.max=_S(e.max,t,n,r,i)}function hO(e,{x:t,y:n}){S0(e.x,t.translate,t.scale,t.originPoint),S0(e.y,n.translate,n.scale,n.originPoint)}function rH(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function ii(e,t){e.min=e.min+t,e.max=e.max+t}function IS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=je(e.min,e.max,o);S0(e,t[n],t[r],s,t.scale)}const iH=["x","scaleX","originX"],oH=["y","scaleY","originY"];function ms(e,t){IS(e.x,t,iH),IS(e.y,t,oH)}function mO(e,t){return fO(nH(e.getBoundingClientRect(),t))}function sH(e,t,n){const r=mO(e,n),{scroll:i}=t;return i&&(ii(r.x,i.offset.x),ii(r.y,i.offset.y)),r}const gO=({current:e})=>e?e.ownerDocument.defaultView:null,aH=new WeakMap;class lH{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Fp(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:h}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=MM(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fn(x=>{let g=this.getAxisMotionValue(x).get()||0;if(cr.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[x];v&&(g=sn(v)*(parseFloat(g)/100))}}this.originPoint[x]=g}),h&&h(c,d);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=uH(x),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),m&&m(c,d)},a=(c,d)=>this.stop(c,d),l=()=>fn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new cO(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:gO(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&o(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Cc(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=QW(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&fs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=YW(i.layoutBox,n):this.constraints=!1,this.elastic=eH(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&fn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=JW(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fs(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=sH(r,i.root,this.visualElement.getTransformPagePoint());let s=XW(i.layout.layoutBox,o);if(n){const a=n(tH(s));this.hasMutatedConstraints=!!a,a&&(s=fO(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=fn(c=>{if(!Cc(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,h)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(f1(t,r,0,n,this.visualElement))}stopAnimation(){fn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){fn(n=>{const{drag:r}=this.getProps();if(!Cc(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-je(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fs(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};fn(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=ZW({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),fn(s=>{if(!Cc(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(je(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;aH.set(this.visualElement,this);const t=this.visualElement.current,n=Or(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();fs(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Cr(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(fn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=w0,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Cc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cH extends Ki{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new lH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const LS=e=>(t,n)=>{e&&e(t,n)};class dH extends Ki{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new cO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:LS(t),onStart:LS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&i(o,s)}}}mount(){this.removePointerDownListener=Or(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function fH(){const e=b.useContext(Fy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Xc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $S(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Na={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Z.test(e))e=parseFloat(e);else return e;const n=$S(e,t.target.x),r=$S(e,t.target.y);return`${n}% ${r}%`}},pH={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ui.parse(e);if(i.length>5)return r;const o=Ui.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=je(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class hH extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;mB(mH),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Xc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Qe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),By.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function vO(e){const[t,n]=fH(),r=b.useContext(fM);return S.jsx(hH,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(pM),isPresent:t,safeToRemove:n})}const mH={borderRadius:{...Na,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Na,borderTopRightRadius:Na,borderBottomLeftRadius:Na,borderBottomRightRadius:Na,boxShadow:pH},yO=["TopLeft","TopRight","BottomLeft","BottomRight"],gH=yO.length,jS=e=>typeof e=="string"?parseFloat(e):e,DS=e=>typeof e=="number"||Z.test(e);function vH(e,t,n,r,i,o){i?(e.opacity=je(0,n.opacity!==void 0?n.opacity:1,yH(r)),e.opacityExit=je(t.opacity!==void 0?t.opacity:1,0,xH(r))):o&&(e.opacity=je(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(sa(e,t,r))}function NS(e,t){e.min=t.min,e.max=t.max}function dn(e,t){NS(e.x,t.x),NS(e.y,t.y)}function zS(e,t,n,r,i){return e-=t,e=uf(e,1/n,r),i!==void 0&&(e=uf(e,1/i,r)),e}function wH(e,t=0,n=1,r=.5,i,o=e,s=e){if(cr.test(t)&&(t=parseFloat(t),t=je(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=je(o.min,o.max,r);e===o&&(a-=t),e.min=zS(e.min,t,n,a,i),e.max=zS(e.max,t,n,a,i)}function VS(e,t,[n,r,i],o,s){wH(e,t[n],t[r],t[i],t.scale,o,s)}const bH=["x","scaleX","originX"],SH=["y","scaleY","originY"];function BS(e,t,n,r){VS(e.x,t,bH,n?n.x:void 0,r?r.x:void 0),VS(e.y,t,SH,n?n.y:void 0,r?r.y:void 0)}function US(e){return e.translate===0&&e.scale===1}function wO(e){return US(e.x)&&US(e.y)}function CH(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function bO(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function WS(e){return sn(e.x)/sn(e.y)}class EH{constructor(){this.members=[]}add(t){p1(this.members,t),t.scheduleRender()}remove(t){if(h1(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:h}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const PH=(e,t)=>e.depth-t.depth;class TH{constructor(){this.children=[],this.isDirty=!1}add(t){p1(this.children,t),this.isDirty=!0}remove(t){h1(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PH),this.isDirty=!1,this.children.forEach(t)}}function kH(e,t){const n=ji.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Dr(r),e(o-t))};return Qe.read(r,!0),()=>Dr(r)}function MH(e){window.MotionDebug&&window.MotionDebug.record(e)}function OH(e){return e instanceof SVGElement&&e.tagName!=="svg"}function RH(e,t,n){const r=Rt(e)?e:Er(e);return r.start(f1("",r,t,n)),r.animation}const cm=["","X","Y","Z"],_H={visibility:"hidden"},GS=1e3;let AH=0;const io={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function dm(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function SO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=AH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,io.totalNodes=io.resolvedTargetDeltas=io.recalculatedProjection=0,this.nodes.forEach($H),this.nodes.forEach(zH),this.nodes.forEach(VH),this.nodes.forEach(jH),MH(io)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=kH(f,250),Xc.hasAnimatedSinceResize&&(Xc.hasAnimatedSinceResize=!1,this.nodes.forEach(KS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||GH,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!bO(this.targetLayout,h)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const w={...t1(m,"layout"),onPlay:x,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||KS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(BH),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(DH),this.sharedNodes.forEach(UH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=w/1e3;QS(d.x,s.x,C),QS(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),WH(this.relativeTarget,this.relativeTargetOrigin,f,C),v&&CH(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=qe()),dn(v,this.relativeTarget)),m&&(this.animationValues=c,vH(c,u,this.latestValues,C,y,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{Xc.hasAnimatedSinceResize=!0,this.currentAnimation=RH(0,GS,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(GS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&CO(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||qe();const d=sn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=sn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}dn(a,l),ms(a,c),yl(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new EH),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&dm("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(qS),this.root.sharedNodes.clear()}}}function IH(e){e.updateLayout()}function LH(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?fn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=sn(f);f.min=r[d].min,f.max=f.min+p}):CO(o,n.layoutBox,r)&&fn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=sn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=hs();yl(a,r,n.layoutBox);const l=hs();s?yl(l,e.applyTransform(i,!0),n.measuredBox):yl(l,r,n.layoutBox);const u=!wO(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const h=qe();xl(h,n.layoutBox,f.layoutBox);const m=qe();xl(m,r,p.layoutBox),bO(h,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $H(e){io.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function DH(e){e.clearSnapshot()}function qS(e){e.clearMeasurements()}function FH(e){e.isLayoutDirty=!1}function NH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function KS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zH(e){e.resolveTargetDelta()}function VH(e){e.calcProjection()}function BH(e){e.resetSkewAndRotation()}function UH(e){e.removeLeadSnapshot()}function QS(e,t,n){e.translate=je(t.translate,0,n),e.scale=je(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function YS(e,t,n,r){e.min=je(t.min,n.min,r),e.max=je(t.max,n.max,r)}function WH(e,t,n,r){YS(e.x,t.x,n.x,r),YS(e.y,t.y,n.y,r)}function HH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GH={duration:.45,ease:[.4,0,.1,1]},XS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ZS=XS("applewebkit/")&&!XS("chrome/")?Math.round:bt;function JS(e){e.min=ZS(e.min),e.max=ZS(e.max)}function qH(e){JS(e.x),JS(e.y)}function CO(e,t,n){return e==="position"||e==="preserve-aspect"&&!x0(WS(t),WS(n),.2)}const KH=SO({attachResizeListener:(e,t)=>Cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fm={current:void 0},EO=SO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fm.current){const e=new KH({});e.mount(window),e.setOptions({layoutScroll:!0}),fm.current=e}return fm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),QH={pan:{Feature:dH},drag:{Feature:cH,ProjectionNode:EO,MeasureLayout:vO}},C0={current:null},PO={current:!1};function YH(){if(PO.current=!0,!!Ny)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>C0.current=e.matches;e.addListener(t),t()}else C0.current=!1}function XH(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Rt(o))e.addValue(i,o),lf(r)&&r.add(i);else if(Rt(s))e.addValue(i,Er(o,{owner:e})),lf(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Er(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const eC=new WeakMap,ZH=[...jM,Mt,Ui],JH=e=>ZH.find($M(e)),TO=Object.keys(su),eG=TO.length,tC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tG=Wy.length;function kO(e){if(e)return e.options.allowProjection!==!1?e.projection:kO(e.parent)}class nG{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.resolveKeyframes=(f,p,h,m)=>new this.KeyframeResolver(f,p,h,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=r1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Qe.render(this.render,!1,!0);const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Dp(n),this.isVariantNode=dM(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&Rt(p)&&(p.set(l[f],!1),lf(c)&&c.add(f))}}mount(t){this.current=t,eC.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),PO.current||YH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:C0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;eC.delete(this.current),this.projection&&this.projection.unmount(),Dr(this.notifyUpdate),Dr(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=No.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Er(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(IM(i)||AM(i))?i=parseFloat(i):!JH(i)&&Ui.test(n)&&(i=WM(t,n)),this.setBaseTarget(t,Rt(i)?i.get():i)),Rt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Jy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Rt(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new m1),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class MO extends nG{constructor(){super(...arguments),this.KeyframeResolver=HM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function rG(e){return window.getComputedStyle(e)}class iG extends MO{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(No.has(n)){const r=o1(n);return r&&r.default||0}else{const r=rG(t),i=(gM(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return mO(t,n)}build(t,n,r,i){Ky(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Zy(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){bM(t,n,r,i)}}class oG extends MO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(No.has(n)){const r=o1(n);return r&&r.default||0}return n=SM.has(n)?n:Vy(n),t.getAttribute(n)}measureInstanceViewportBox(){return qe()}scrapeMotionValuesFromProps(t,n,r){return EM(t,n,r)}build(t,n,r,i){Yy(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){CM(t,n,r,i)}mount(t){this.isSVGTag=Xy(t.tagName),super.mount(t)}}const sG=(e,t)=>Hy(e)?new oG(t,{enableHardwareAcceleration:!1}):new iG(t,{allowProjection:e!==b.Fragment,enableHardwareAcceleration:!0}),aG={layout:{ProjectionNode:EO,MeasureLayout:vO}},lG={...WW,...rU,...QH,...aG},uG=pB((e,t)=>WB(e,t,lG,sG));function cG(e,t,n){var r;if(typeof e=="string"){let i=document;t&&(n1(!!t.current),i=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}const Zc=new WeakMap;let ti;function dG(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function fG({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Zc.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return dG(e,n)}})})}function pG(e){e.forEach(fG)}function hG(){typeof ResizeObserver>"u"||(ti=new ResizeObserver(pG))}function mG(e,t){ti||hG();const n=cG(e);return n.forEach(r=>{let i=Zc.get(r);i||(i=new Set,Zc.set(r,i)),i.add(t),ti==null||ti.observe(r)}),()=>{n.forEach(r=>{const i=Zc.get(r);i==null||i.delete(t),i!=null&&i.size||ti==null||ti.unobserve(r)})}}const Jc=new Set;let wl;function gG(){wl=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Jc.forEach(n=>n(t))},window.addEventListener("resize",wl)}function vG(e){return Jc.add(e),wl||gG(),()=>{Jc.delete(e),!Jc.size&&wl&&(wl=void 0)}}function yG(e,t){return typeof e=="function"?vG(e):mG(e,t)}const xG=50,nC=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),wG=()=>({time:0,x:nC(),y:nC()}),bG={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function rC(e,t,n,r){const i=n[t],{length:o,position:s}=bG[t],a=i.current,l=n.time;i.current=e[`scroll${s}`],i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=sa(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>xG?0:s1(i.current-a,u)}function SG(e,t,n){rC(e,"x",t,n),rC(e,"y",t,n),t.time=n}function CG(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const o=r.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:o}=r.getBBox();n.x+=i,n.y+=o;let s=null,a=r.parentNode;for(;!s;)a.tagName==="svg"&&(s=a),a=r.parentNode;r=s}else break;return n}const EG={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},E0={start:0,center:.5,end:1};function iC(e,t,n=0){let r=0;if(e in E0&&(e=E0[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const PG=[0,0];function TG(e,t,n,r){let i=Array.isArray(e)?e:PG,o=0,s=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,E0[e]?e:"0"]),o=iC(i[0],n,r),s=iC(i[1],t),o-s}const kG={x:0,y:0};function MG(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function OG(e,t,n){const{offset:r=EG.All}=n,{target:i=e,axis:o="y"}=n,s=o==="y"?"height":"width",a=i!==e?CG(i,e):kG,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:MG(i),u={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let c=!t[o].interpolate;const d=r.length;for(let f=0;fRG(e,r.target,n),update:i=>{SG(e,n,i),(r.offset||r.target)&&OG(e,n,r)},notify:()=>t(n)}}const za=new WeakMap,oC=new WeakMap,pm=new WeakMap,sC=e=>e===document.documentElement?window:e;function AG(e,{container:t=document.documentElement,...n}={}){let r=pm.get(t);r||(r=new Set,pm.set(t,r));const i=wG(),o=_G(t,e,i,n);if(r.add(o),!za.has(t)){const a=()=>{for(const f of r)f.measure()},l=()=>{for(const f of r)f.update(dt.timestamp)},u=()=>{for(const f of r)f.notify()},c=()=>{Qe.read(a,!1,!0),Qe.read(l,!1,!0),Qe.update(u,!1,!0)};za.set(t,c);const d=sC(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&oC.set(t,yG(t,c)),d.addEventListener("scroll",c,{passive:!0})}const s=za.get(t);return Qe.read(s,!1,!0),()=>{var a;Dr(s);const l=pm.get(t);if(!l||(l.delete(o),l.size))return;const u=za.get(t);za.delete(t),u&&(sC(t).removeEventListener("scroll",u),(a=oC.get(t))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function aC(e,t){mU(!!(!t||t.current))}const IG=()=>({scrollX:Er(0),scrollY:Er(0),scrollXProgress:Er(0),scrollYProgress:Er(0)});function Vp({container:e,target:t,layoutEffect:n=!0,...r}={}){const i=e1(IG);return(n?zy:b.useEffect)(()=>(aC("target",t),aC("container",e),AG(({x:s,y:a})=>{i.scrollX.set(s.current),i.scrollXProgress.set(s.progress),i.scrollY.set(a.current),i.scrollYProgress.set(a.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),i}function LG(e){e.values.forEach(t=>t.stop())}function P0(e,t){[...t].reverse().forEach(r=>{const i=e.getVariant(r);i&&g1(e,i),e.variantChildren&&e.variantChildren.forEach(o=>{P0(o,t)})})}function $G(e,t){if(Array.isArray(t))return P0(e,t);if(typeof t=="string")return P0(e,[t]);g1(e,t)}function jG(){const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){const i=[];return e.forEach(o=>{i.push(uO(o,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return e.forEach(r=>{$G(r,n)})},stop(){e.forEach(n=>{LG(n)})},mount(){return()=>{t.stop()}}};return t}function DG(){const e=e1(jG);return zy(e.mount,[]),e}const FG=DG,T0=e=>{const{id:t,className:n,background:r,minSize:i,maxSize:o,speed:s,particleColor:a,particleDensity:l}=e,[u,c]=b.useState(!1);b.useEffect(()=>{w7(async p=>{await b7(p)}).then(()=>{c(!0)})},[]);const d=FG(),f=async p=>{p&&(console.log(p),d.start({opacity:1,transition:{duration:1}}))};return S.jsx(uG.div,{style:{...e.sx},animate:d,className:eB("opacity-0",n),children:u&&S.jsx(x7,{id:t||"tsparticles",particlesLoaded:f,options:{background:{color:{value:r||"#0d47a1"}},fullScreen:{enable:!1,zIndex:1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!1,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:200,duration:.4}}},particles:{bounce:{horizontal:{value:1},vertical:{value:1}},collisions:{absorb:{speed:2},bounce:{horizontal:{value:1},vertical:{value:1}},enable:!1,maxSpeed:50,mode:"bounce",overlap:{enable:!0,retries:0}},color:{value:a||"#ffffff",animation:{h:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},s:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},l:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0}}},effect:{close:!0,fill:!0,options:{},type:{}},groups:{},move:{angle:{offset:0,value:90},attract:{distance:200,enable:!1,rotate:{x:3e3,y:3e3}},center:{x:50,y:50,mode:"percent",radius:0},decay:0,distance:{},direction:"none",drift:0,enable:!0,gravity:{acceleration:9.81,enable:!1,inverse:!1,maxSpeed:50},path:{clamp:!0,delay:{value:0},enable:!1,options:{}},outModes:{default:"out"},random:!1,size:!1,speed:{min:.1,max:1},spin:{acceleration:0,enable:!1},straight:!1,trail:{enable:!1,length:10,fill:{}},vibrate:!1,warp:!1},number:{density:{enable:!0,width:400,height:400},limit:{mode:"delete",value:0},value:l||120},opacity:{value:{min:.1,max:1},animation:{count:0,enable:!0,speed:s||4,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},reduceDuplicates:!1,shadow:{blur:0,color:{value:"#000"},enable:!1,offset:{x:0,y:0}},shape:{close:!0,fill:!0,options:{},type:"circle"},size:{value:{min:i||1,max:o||3},animation:{count:0,enable:!1,speed:5,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},stroke:{width:0},zIndex:{value:0,opacityRate:1,sizeRate:1,velocityRate:1},destroy:{bounds:{},mode:"none",split:{count:1,factor:{value:3},rate:{value:{min:4,max:9}},sizeOffset:!0}},roll:{darken:{enable:!1,value:0},enable:!1,enlighten:{enable:!1,value:0},mode:"vertical",speed:25},tilt:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",enable:!1},twinkle:{lines:{enable:!1,frequency:.05,opacity:1},particles:{enable:!1,frequency:.05,opacity:1}},wobble:{distance:5,enable:!1,speed:{angle:50,move:10}},life:{count:0,delay:{value:0,sync:!1},duration:{value:0,sync:!1}},rotate:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",path:!1},orbit:{animation:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!1},enable:!1,opacity:1,rotation:{value:45},width:1},links:{blink:!1,color:{value:"#fff"},consent:!1,distance:100,enable:!1,frequency:1,opacity:1,shadow:{blur:5,color:{value:"#000"},enable:!1},triangles:{enable:!1,frequency:1},width:1,warp:!1},repulse:{value:0,enabled:!1,distance:1,duration:1,factor:1,speed:1}},detectRetina:!0}})})};function lC(e){let t="",n="";e.project.tier=="Silver"?(t="#E5E4E2",n="#9E9E9E"):e.project.tier=="Gold"?(t="#EBD197",n="#B48811"):(t="#DC8E41",n="#BE7023");function r(i){let o=i.toLowerCase().replaceAll("-","").replaceAll(" ","-");return`${ma.getUri()}/sponsor-logos/${o}.png`}return S.jsx(Q,{sx:{...e.sx,boxShadow:5,position:"sticky",height:"60vh",width:{xs:"100%",md:"50vw"},borderRadius:"20px",padding:"30px",background:"linear-gradient(90deg,"+t+", "+n+")"},children:S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",height:"100%",gap:"15px"},children:[S.jsx("img",{style:{maxWidth:"48px",mixBlendMode:"luminosity"},src:"/logo256.png"}),S.jsx(Q,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"30px",maxWidth:"100%"},children:e.project.members.map(i=>S.jsx("img",{style:{maxHeight:"50px",maxWidth:"100%"},src:r(i)}))}),S.jsx(Q,{sx:{flexGrow:1}}),S.jsx(ae,{sx:{lineHeight:.7,fontSize:"2.8rem",fontWeight:"bold",color:"black",textAlign:"end"},children:e.project.tier})]})})}function OO(e){const t=W.useRef(null),[n,r]=W.useState(1),[i,o]=W.useState(0),{scrollYProgress:s}=Vp({target:t,offset:["start start","end end"]});return W.useEffect(()=>{s.on("change",a=>{a<.9&&(r(Math.abs(1-a*.08)),o(Math.abs(200*a)))})},[]),S.jsxs(Q,{sx:{...e==null?void 0:e.sx,display:"flex",flexDirection:"column",alignItems:"center",gap:"50px",minHeight:`calc(${400*(e.children.length+1)}px)`,transform:`scale(${n})`},children:[S.jsx(ae,{sx:{position:"sticky",top:`calc(${e.stickyPosition?"33vh":"130px"} - ${i}px)`,fontSize:"2.3rem",fontWeight:"bold",lineHeight:e.stickyPosition?.4:"unset"},children:e.title}),e.children.map((a,l)=>W.cloneElement(a,{sx:{position:"sticky",top:`calc(${e.stickyPosition??"25vh"} + ${l*40}px - ${i}px)`,transform:`scale(${1+l*.03})`}}))]})}function NG(e){const t=W.useRef(null),[n,r]=W.useState(1),[i,o]=W.useState([]),{scrollYProgress:s}=Vp({target:t,offset:["start start","end end"]});return W.useEffect(()=>{s.on("change",a=>{a<.9&&r(Math.abs(1-a*.08))}),o(()=>[{tier:"Gold",members:["IONQ","Amazon Project Kuiper","Fischell Institute","US News","MITRE"]},{tier:"Silver",members:["Lockheed Martin","Booz Allen Hamilton","Children's National Hospital","SECU","Accenture"]},{tier:"Bronze",members:["NSA","General Dynamics IT"]}])},[]),S.jsxs(Q,{sx:{width:"100%",height:"100%",display:"flex",position:"relative",justifyContent:"center",padding:{xs:"15px",md:"0px 100px 0px 50px"}},children:[S.jsxs(Q,{sx:{display:{xs:"none",md:"flex"},flexDirection:"column",width:"100%",height:"max-content",position:"sticky",top:"45vh",left:"0px",textAlign:"center"},children:[S.jsx(ae,{sx:{fontSize:"2.5rem",fontWeight:"bold"},children:"Our Sponsors"}),S.jsx(Mg,{href:"/#/sponsor-us",color:"text.primary",sx:{fontWeight:"bold"},children:"Want to be a part of something amazing? Sponsor us today!"})]}),e!=null&&e.mobileView?S.jsxs(Q,{sx:{display:"flex",flexDirection:"column"},children:[S.jsx(OO,{title:"Our Sponsors",stickyPosition:"40vh",children:i.map(a=>S.jsx(lC,{project:a}))}),S.jsx(Mg,{href:"/sponsor-us",color:"text.primary",sx:{fontWeight:"bold",textAlign:"center"},children:"Want to be a part of something amazing? Sponsor us today!"})]}):S.jsx(Q,{ref:t,sx:{...e==null?void 0:e.sx,flexGrow:1,display:"flex",flexDirection:"column",alignItems:"center",gap:"50px",width:"100%",minHeight:`${60*(i.length+1)}vh`,transform:`scale(${n})`},children:i.map((a,l)=>S.jsx(lC,{project:a,sx:{top:`calc(22vh + ${l*40}px)`,transform:`scale(${1+l*.03})`}}))})]})}function zG(e){const[t,n]=W.useState(""),r=()=>{var i;(i=window.open(`mailto:umdappdev@gmail.com?subject=Information Request&body=${t}`))==null||i.focus()};return S.jsxs(Q,{id:e==null?void 0:e.id,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[S.jsx(ae,{id:"contact-us",sx:{fontSize:"3rem",fontWeight:"bold",textAlign:"center"},children:"Stay Connected!"}),S.jsx(ae,{sx:{textAlign:"center"},children:"We hold a lot of events thoughout the year, Keep in touch with us!"}),S.jsx(p2,{sx:{marginTop:"25px"},fontSize:"2rem"}),S.jsx(fF,{sx:{minWidth:{xs:"90%",md:"60%",lg:"40%"},marginTop:"40px"},placeholder:"Drop us an Email!",value:t,onChange:i=>{n(i.target.value)},endAdornment:S.jsx(Wl,{onClick:r,children:S.jsx(MF,{})})})]})}const VG=e=>{for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e},Va=e=>(console.warn(e.highlights),S.jsx(Q,{sx:{width:"100%",...e.sx},id:e.id,children:S.jsx(x2,{autoFill:!0,...e.marquee,style:{padding:e.scale==""?"15px":"20px",margin:e.scale==""?"0px":"-35px 0px -35px 0px"},children:VG(e.highlights).map(t=>S.jsx(ea,{elevation:8,sx:{display:"flex",borderRadius:"20px",background:"white",position:"relative",margin:"0px 50px 0px 50px",scale:e.scale,overflow:"hidden"},children:S.jsx("img",{src:t.imageURL,style:{maxWidth:"400px",maxHeight:"300px"}})}))})}));function BG(){const[e,t]=W.useState([]);return W.useEffect(()=>{t([{imageURL:"https://picsum.photos/800/500",redirect:"",description:"a"},{imageURL:"https://picsum.photos/600/700",redirect:"",description:"a"},{imageURL:"https://picsum.photos/400/600",redirect:"",description:"a"},{imageURL:"https://picsum.photos/600/300",redirect:"",description:"a"},{imageURL:"https://picsum.photos/900/500",redirect:"",description:"a"}])},[]),S.jsxs(Q,{sx:{width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},children:[S.jsx(T0,{background:"transparent",minSize:.5,maxSize:1.3,particleDensity:40,sx:{position:"absolute",zIndex:1,width:"100%",height:"100%",top:"50px"}}),S.jsx(Va,{id:"bg01-highlightscontainer",marquee:{direction:"left",speed:70},highlights:e,scale:"0.6",sx:{filter:"blur(6px)",opacity:"0.4",zIndex:1}}),S.jsx(Va,{id:"fg-highlightscontainer",marquee:{direction:"right",speed:50},highlights:e,scale:"",sx:{position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:4}}),S.jsx(Va,{id:"bg02-highlightscontainer",marquee:{direction:"left",speed:90},highlights:e,scale:"0.6",sx:{filter:"blur(6px)",marginTop:"-170px",zIndex:3,opacity:"0.4"}}),S.jsx(Va,{id:"bg03-highlightscontainer",marquee:{direction:"left",speed:110},highlights:e,scale:"0.6",sx:{filter:"blur(6px)",marginTop:"-140px",opacity:"0.4",zIndex:2}}),S.jsx(Va,{id:"bg04-highlightscontainer",marquee:{direction:"left",speed:40},highlights:e,scale:"0.6",sx:{filter:"blur(6px)",marginTop:"-170px",opacity:"0.4",zIndex:1}})]})}const uC=b.forwardRef((e,t)=>{if(e.isLoading)return"Loading...";if(e.error)return e.error.message;const n=W.useRef(null),r=W.useRef(null),{scrollYProgress:i}=Vp({target:n,offset:["start start","end end"]});return W.useEffect(()=>{i.on("change",o=>{r.current&&(r.current.scrollLeft=(r.current.scrollWidth-r.current.clientWidth)*o)})},[]),S.jsx(Q,{ref:t,children:e.mobileView?S.jsx(OO,{title:"Projects",sx:{padding:"20px"},children:e.data.map(o=>S.jsx(Kw,{mobileView:!0,project:o},o._id))}):S.jsx(Q,{ref:n,sx:{height:`${e.data.length*600}px`},children:S.jsx(Q,{id:e.id,ref:r,sx:{display:"flex",gap:"30px",padding:"80px 50px 80px 50px",maxWidth:"100%",overflowX:"hidden",top:"100px",position:"sticky"},children:e.data.map(o=>S.jsx(Kw,{mobileView:!1,project:o},o._id))})})})}),cC=[{title:"About",anchor:"/#maindiv-001"},{title:"Projects",anchor:"/#subdiv-002"},{title:"Our Team",anchor:"/#team"},{title:"Sponsors",anchor:"/#sponsors"},{title:"Highlights",anchor:"/#highlights"},{title:"Contact Us",anchor:"/#contact"}];function UG(){function e(w){switch(w){case 1:return"linear-gradient(30deg, #1e1e1e, #5626a1);";case 0:return"radial-gradient(55% 55% at -3% 104%, #0F114AFF 13%, #07074178 41%, #00000014 76%, #073AFF00 99%),radial-gradient(25% 25% at 62% 54%, #2324A9C4 0%, #073AFF00 100%),radial-gradient(25% 44% at 83% 33%, #434EA3FF 0%, #44579D29 65%, #073AFF00 93%),radial-gradient(49% 81% at 45% 47%, #0891A245 0%, #073AFF00 100%),radial-gradient(113% 91% at 17% -2%, #6122A6FF 1%, #FF000000 99%),radial-gradient(142% 91% at 83% 7%, #0522A9FF 1%, #FF000000 99%),radial-gradient(142% 91% at -6% 74%, #1C2581FF 1%, #FF000000 99%),radial-gradient(142% 91% at 109% 60%, #131B36FF 0%, #205353FF 99%)0";case-1:return"linear-gradient(to right, #667db6, #0082c8, #0082c8, #667db6);";case 2:return"linear-gradient(135deg, #000000, #120037, #2e002b, #170018);";case 3:return"radial-gradient(circle at 30% 30%, #5F0F40 0%, #310E68 30%, #5626a1 50%, #1e1e1e 70%, #330136 80%, #560bad 100%), linear-gradient(135deg, #5F0F40, #310E68);";case 4:return"linear-gradient(135deg, #060101, #0e0202, #160303, #1e0404);";case-2:return"linear-gradient(to right, #667db6, #0082c8, #0082c8, #667db6);";default:return"black"}}const t=D3(m2.baseTheme.breakpoints.down("md")),[n,r]=W.useState(-120),[i]=W.useState([]),[o,s]=W.useState({start:0,end:0}),[a,l]=W.useState(!1);W.useEffect(()=>{a&&setTimeout(()=>{s(w=>(l(!1),w.start=w.end,w))},200)},[a]);function u(w){s(C=>(C.end!=w&&(l(!0),C.start=C.end,C.end=w,console.warn(`Gradient Transition: ${C.start} -> ${C.end}`)),C))}const c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(null),h=b.useRef(null),{scrollYProgress:m}=Vp({target:c,offset:["start start","end end"]});W.useEffect(()=>{m.on("change",w=>{var $,D,B,N,H,_,L;r(Math.min(-120*(1-30*w),0));const C=((($=c.current)==null?void 0:$.offsetHeight)??0)*w,E=(((D=f==null?void 0:f.current)==null?void 0:D.offsetTop)??0)-100,T=E+(((B=f==null?void 0:f.current)==null?void 0:B.offsetHeight)??0)+50,P=(((N=p==null?void 0:p.current)==null?void 0:N.offsetTop)??0)-50,M=P+(((H=p==null?void 0:p.current)==null?void 0:H.offsetHeight)??0)+100,k=(((_=h==null?void 0:h.current)==null?void 0:_.offsetTop)??0)-100,A=k+(((L=h==null?void 0:h.current)==null?void 0:L.offsetHeight)??0)+400,I=A;C>E&&CP&&Ck&&CI?u(4):u(0)})},[]);const[x]=W.useState("fixed"),{data:g,isLoading:y,error:v}=Uk({queryKey:["projects"],queryFn:async()=>await Wk.getAll()});return S.jsxs(S.Fragment,{children:[S.jsxs(Q,{ref:c,id:"maindiv-001",sx:{position:"relative"},children:[i.length<1?S.jsx(S.Fragment,{}):S.jsx(BF,{events:i}),S.jsx(jd,{links:cC,fullWidth:!0}),S.jsx(Q,{id:"paddingdiv-001",sx:{height:"50px"}}),S.jsx(Qa.ScrollContainer,{style:{position:x,scrollBehavior:"smooth",overflow:"visible",width:"100%",height:"100%"},children:S.jsx(Qa.ScrollPage,{style:{width:"100%",overflow:"visible",flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:S.jsxs(Qa.Animator,{style:{width:"100%",overflow:"visible"},animation:Qa.batch(HG(1,-.5,0),WG(3,1,0),GG(0,-400,0)),children:[S.jsx("div",{id:"stars1"}),S.jsx("div",{id:"stars2"}),S.jsx("div",{id:"stars3"}),S.jsxs(ae,{sx:{flexGrow:1,fontSize:"4vw",fontWeight:"bold",textAlign:"center"},children:["Empower Code. Inspire Design.",S.jsx("br",{}),"Drive Innovation."]}),S.jsxs(Q,{id:"subdiv-001",ref:d,sx:{display:"flex",flex:1,flexWrap:"wrap",gap:4,marginLeft:{md:8},marginRight:{md:8},marginTop:"5vw",flexDirection:{xs:"column",md:"row"}},children:[S.jsx(Vh,{end:1e6,title:"Dollars Saved",prefix:"$",minWidth:336,alignSelf:{xs:"center",md:"flex-start"}}),S.jsx(Vh,{end:300,title:"Members",minWidth:81}),S.jsx(Vh,{end:5e4,title:"Lines of Code",minWidth:267,alignSelf:{xs:"center",md:"flex-end"}})]})]})})}),S.jsx(Q,{id:"paddingdiv-002",sx:{height:"100vh"}}),t?S.jsx(Q,{ref:f,sx:{padding:"10px"},id:"subdiv-002",children:S.jsx(uC,{sx:{},mobileView:!0,data:g,isLoading:y,error:v})}):S.jsx(Q,{ref:f,id:"subdiv-002",children:S.jsx(uC,{sx:{height:"300vh"},data:g,isLoading:y,error:v})}),t&&!t?S.jsx(S.Fragment,{}):S.jsxs(Q,{id:"team",ref:p,sx:{paddingTop:"100px",background:"linear-gradient(0deg, #00FFFF00 0%, #000000FF 44%, #000000FF 50%, #000000FF 56%, #073AFF00 100%)",transition:"opacity 0.5s ease"},children:[S.jsx(T0,{id:"members_sparkles",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:50,particleColor:"#FFFFFF"}),S.jsx(Q,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:S.jsx(Jz,{id:"member-carousel"})}),S.jsx(T0,{id:"members_sparkles2",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:50,particleColor:"#FFFFFF"})]}),S.jsx(Q,{id:"paddingdiv-003",sx:{height:"150px"}}),S.jsx(Q,{id:"sponsors",ref:h,children:S.jsx(NG,{mobileView:t})}),S.jsx(Q,{id:"paddingdiv-004",sx:{height:"300px"}}),S.jsx(ae,{id:"highlights",sx:{fontSize:"3rem",fontWeight:"bold",textAlign:"center"},children:"Highlights"}),S.jsx(BG,{}),S.jsx(Q,{id:"paddingdiv-006",sx:{height:"200px"}}),S.jsx(zG,{id:"contact"}),S.jsx(Q,{id:"paddingdiv-006",sx:{height:"200px"}}),S.jsx(h2,{}),S.jsx(jd,{links:cC,translucent:!0,sx:{marginTop:"25px",zIndex:5,position:"fixed",top:`${n}px`,left:"0px"}})]}),S.jsx(Q,{id:"maindiv-002",sx:{height:"100vh",width:"100vw",position:"fixed",zIndex:-1,top:"0px","::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e(o.start),transition:"opacity 0.4s",animation:"plasma 6s ease infinite",backgroundBlendMode:o.start==3?"color-dodge":"unset",opacity:a?.5:1,zIndex:1},"::after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e(o.end),animation:"plasma 6s ease infinite",transition:"opacity 0.4s",opacity:a?1:.5,zIndex:0}}})]})}const WG=(e,t,n)=>({out:{style:{transform:r=>(r=Math.max(r-n,0),`scale(${t*(1-r)+e*r})`)}}}),HG=(e,t,n)=>({out:{style:{opacity:r=>(r=Math.max(r-n,0),e*(1-r)+t*r)}}}),GG=(e,t,n)=>({out:{style:{transform:r=>(r=Math.max(r-n,0),`translate(${0*(1-r)+e*r}px, ${0*(1-r)+t*r}px)`)}}});function qG(){const{projectId:e}=A5(),{data:t,isFetching:n,error:r}=Uk({queryKey:["project"],queryFn:async()=>await Wk.getById(e)});return b.useEffect(()=>{window.scrollTo(0,0)},[]),n?S.jsx(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",minHeight:"100vh"},children:S.jsx(gD,{})}):r?S.jsx(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",minHeight:"100vh"},children:S.jsx(k$,{variant:"filled",severity:"error",children:"Unable to retrieve project data..."})}):S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:"20px",justifyContent:"center",alignItems:"center",minHeight:"100vh"},children:[S.jsx(KG,{name:t.name,organization:t.organization}),S.jsx(QG,{description:t.description}),S.jsx(YG,{demo:t.demo}),S.jsx(XG,{members:t.members})]})}function KG(e){return S.jsxs(Q,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[S.jsx(ae,{variant:"h2",sx:{fontWeight:"bold"},children:e.name}),S.jsxs(ae,{variant:"h4",sx:{fontStyle:"italic"},children:["In collaboration with ",e.organization]})]})}function QG(e){return S.jsxs(Q,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[S.jsx(ae,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Overview"}),S.jsx(Qv,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),S.jsx(ae,{children:e.description})]})}function YG(e){return S.jsxs(Q,{children:[S.jsx(ae,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Demo"}),S.jsx(Qv,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),S.jsx(Zj,{sx:{marginTop:"15px",borderRadius:"5px",width:"clamp(25rem, 50vw, 60rem)",backgroundColor:"white",color:"black"},children:e.demo?S.jsx(sD,{component:"iframe",image:e.demo,sx:{width:"inherit",aspectRatio:"16/9",border:"none"}}):S.jsx(ae,{sx:{padding:"15px"},children:"To see a demo of this product, please contact us at umdappdev@gmail.com"})})]})}function XG(e){return S.jsxs(Q,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[S.jsx(ae,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Members"}),S.jsx(Qv,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),S.jsx(Q,{sx:{marginTop:"15px",display:"flex",justifyContent:"center",alignItems:"center",flexWrap:"wrap",gap:"10px"},children:e.members.map((t,n)=>S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",backgroundColor:"white",borderRadius:"5px",color:"black",minWidth:"15%",padding:"1rem"},children:[t.memberInfo.profileUrl?S.jsx($d,{src:t.memberInfo.profileUrl,sx:{width:"50px",height:"50px"}},n):b.createElement($d,{...v2(`${t.memberInfo.firstName} ${t.memberInfo.lastName}`),sx:{width:"50px",height:"50px"},key:n}),S.jsx(ae,{variant:"subtitle1",sx:{fontWeight:"bold",marginTop:"5px"},children:`${t.memberInfo.firstName} ${t.memberInfo.lastName}`}),S.jsx(ae,{variant:"subtitle2",sx:{opacity:"0.75"},children:t.role})]}))})]})}function ZG(){return S.jsx("h1",{children:"WebTierPage"})}function hm(e){return S.jsxs(Q,{sx:{...e==null?void 0:e.sx,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",width:e.width,backgroundColor:"white",borderRadius:"5px",boxShadow:5,color:"black",wordBreak:"break-word"},children:[S.jsx(JG,{tier:e.tier,backgroundColor:e.backgroundColor,price:e.price}),S.jsx(tq,{backgroundColor:e.backgroundColor,benefits:e.benefits,prereq:e.prereq})]})}function JG(e){return S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"60%"},children:[S.jsx(ae,{variant:"h4",sx:{textShadow:"-2px 2px 3px gray"},children:e.tier}),S.jsxs(ae,{variant:"h2",sx:{textShadow:"-2px 2px 3px gray"},children:["$",e.price,"+"]}),S.jsx(ae,{variant:"h6",gutterBottom:!0,sx:{textShadow:"-2px 2px 3px gray"},children:"per year"}),S.jsx(eq,{tier:e.tier,backgroundColor:e.backgroundColor})]})}function eq(e){const t=Rf();return S.jsx(Q,{sx:{marginTop:"0.75rem",padding:"0.5rem 1rem",boxShadow:1,backgroundColor:e.backgroundColor,borderRadius:"5px",width:"80%",textAlign:"center",cursor:"pointer"},onClick:()=>t(`/tier/${e.tier}`),children:S.jsxs(ae,{children:["Select ",e.tier," Tier →"]})})}function tq(e){return S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"left",alignItems:"top",backgroundColor:e.backgroundColor,borderRadius:"5px",padding:"1.5rem",boxShadow:12,width:"105.5%",height:"40%",boxSizing:"border-box"},children:[e.prereq&&S.jsx(ae,{gutterBottom:!0,children:`< Everything included in ${e.prereq}, plus...`}),e.benefits.map((t,n)=>S.jsx(ae,{children:`> ${t}`},n))]})}function nq(){return S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",gap:"35px",marginBottom:"100px"},children:[S.jsx(ae,{sx:{textAlign:"center"},variant:"h3",children:"Sponsorship Tiers"}),S.jsxs(Q,{sx:{marginTop:"40px",width:{xs:"100%",md:"75%"},display:"flex",flexDirection:"row",gap:"100px",height:"100vh",flexWrap:"wrap"},children:[S.jsx(hm,{tier:"Gold",backgroundColor:"gold",price:500,benefits:["Apple","ball","cat"],sx:{height:"100%",flexGrow:1}}),S.jsx(hm,{tier:"Silver",backgroundColor:"silver",price:500,benefits:["Apple","ball","cat"],sx:{height:"100%",flexGrow:1}}),S.jsx(hm,{tier:"Bronze",backgroundColor:"#CD7F32",price:500,benefits:["Apple","ball","cat"],sx:{height:"100%",flexGrow:1}})]})]})}const rq=new V9;mm.createRoot(document.getElementById("root")).render(S.jsx(nA,{children:S.jsx(G9,{client:rq,children:S.jsxs(bL,{theme:m2.baseTheme,children:[S.jsx(wD,{}),S.jsxs(K5,{children:[S.jsx(Qo,{path:"/",element:S.jsx(UG,{})}),S.jsxs(Qo,{path:"/",element:S.jsx(zF,{}),children:[S.jsx(Qo,{path:"/project/:projectId",element:S.jsx(qG,{})}),S.jsx(Qo,{path:"tier/:tier",element:S.jsx(ZG,{})}),S.jsx(Qo,{path:"/sponsor-us",element:S.jsx(nq,{})})]})]})]})})}));export{_q as $,mq as A,hq as B,aq as C,lq as D,Sq as E,bq as F,ZV as G,pt as H,Ms as I,fr as J,xq as K,Ly as L,$q as M,wq as N,Eo as O,Bq as P,Zk as Q,Lq as R,Yk as S,Ip as T,Eq as U,jn as V,Kk as W,yq as X,Oq as Y,Aq as Z,Te as _,vq as a,Iq as a0,Xk as a1,Mq as a2,Ap as a3,f7 as a4,m7 as a5,Rq as a6,Vq as a7,zq as a8,$y as a9,Tq as aa,jq as ab,Uq as ac,Wq as ad,ds as ae,kq as af,e7 as b,Iy as c,ru as d,iu as e,Gb as f,Nq as g,va as h,Fo as i,xc as j,gq as k,Cq as l,tf as m,Fq as n,Pq as o,Qh as p,qk as q,Dq as r,ml as s,uq as t,cq as u,fq as v,dq as w,sq as x,oq as y,pq as z}; +`):" "+Ww(o[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ig};function kh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $u(null,e)}function Hw(e){return kh(e),e.headers=kr.from(e.headers),e.data=Th.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),F2.getAdapter(e.adapter||ty.adapter)(e).then(function(r){return kh(e),r.data=Th.call(e,e.transformResponse,r),r.headers=kr.from(r.headers),r},function(r){return j2(r)||(kh(e),r&&r.response&&(r.response.data=Th.call(e,e.transformResponse,r.response),r.response.headers=kr.from(r.response.headers))),Promise.reject(r)})}const Gw=e=>e instanceof kr?{...e}:e;function na(e,t){t=t||{};const n={};function r(u,c,d){return j.isPlainObject(u)&&j.isPlainObject(c)?j.merge.call({caseless:d},u,c):j.isPlainObject(c)?j.merge({},c):j.isArray(c)?c.slice():c}function i(u,c,d){if(j.isUndefined(c)){if(!j.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!j.isUndefined(c))return r(void 0,c)}function s(u,c){if(j.isUndefined(c)){if(!j.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(Gw(u),Gw(c),!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,f=d(e[c],t[c],c);j.isUndefined(f)&&d!==a||(n[c]=f)}),n}const N2="1.6.8",ny={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ny[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qw={};ny.transitional=function(t,n,r){function i(o,s){return"[Axios v"+N2+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new me(i(s," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!qw[s]&&(qw[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function pN(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new me("option "+o+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+o,me.ERR_BAD_OPTION)}}const Lg={assertOptions:pN,validators:ny},Kr=Lg.validators;class zd{constructor(t){this.defaults=t,this.interceptors={request:new Vw,response:new Vw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=na(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Lg.assertOptions(r,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1),i!=null&&(j.isFunction(i)?n.paramsSerializer={serialize:i}:Lg.assertOptions(i,{encode:Kr.function,serialize:Kr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&j.merge(o.common,o[n.method]);o&&j.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=kr.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!l){const h=[Hw.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),f=h.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new $u(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ry(function(i){t=i}),cancel:t}}}const hN=ry;function mN(e){return function(n){return e.apply(null,n)}}function gN(e){return j.isObject(e)&&e.isAxiosError===!0}const $g={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($g).forEach(([e,t])=>{$g[t]=e});const vN=$g;function z2(e){const t=new Wc(e),n=w2(Wc.prototype.request,t);return j.extend(n,Wc.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return z2(na(e,i))},n}const nt=z2(ty);nt.Axios=Wc;nt.CanceledError=$u;nt.CancelToken=hN;nt.isCancel=j2;nt.VERSION=N2;nt.toFormData=gp;nt.AxiosError=me;nt.Cancel=nt.CanceledError;nt.all=function(t){return Promise.all(t)};nt.spread=mN;nt.isAxiosError=gN;nt.mergeConfig=na;nt.AxiosHeaders=kr;nt.formToJSON=e=>$2(j.isHTMLForm(e)?new FormData(e):e);nt.getAdapter=F2.getAdapter;nt.HttpStatusCode=vN;nt.default=nt;const Do=nt.create({baseURL:"https://webv2-backend.appdevclub.com"});function yN(e){let t=e.toLowerCase().replaceAll("-","").replaceAll(" ","-");return`${Do.getUri()}/sponsor-logos/${t}.png`}function Kw(e){const t=Of(),n=r=>t(`/project/${r._id}`);return e.mobileView?S.jsxs(ta,{elevation:5,onClick:()=>{n(e.project)},sx:{...e==null?void 0:e.sx,cursor:"pointer",borderRadius:"35px",padding:"30px",display:"flex",flexDirection:"column",gap:"15px",color:"#000000",bgcolor:"#ffffff",maxWidth:"100%",height:"400px",overflow:"hidden"},children:[S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",width:"100%"},children:[S.jsx(ae,{sx:{fontSize:"1.5rem",fontWeight:700},children:e.project.name}),S.jsx(ae,{sx:{fontSize:"1.3rem",fontWeight:500},children:e.project.organization}),S.jsx(ae,{sx:{marginTop:"10px"},variant:"body1",children:e.project.description})]}),S.jsx(Qw,{autoScroll:!0,members:e.project.members})]}):S.jsx(XF,{highlight:!1,onClick:()=>{n(e.project)},style:{minWidth:"800px",height:"60vh",cursor:"pointer"},children:S.jsx(ta,{sx:{...e==null?void 0:e.sx,borderRadius:"35px",padding:"30px",display:"flex",gap:"15px",color:"#000000",bgcolor:"#ffffff",width:"100%",height:"100%"},children:S.jsxs(Q,{sx:{display:"flex",flexDirection:"column"},children:[S.jsxs(Q,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:[S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[S.jsx(ae,{sx:{fontSize:"1.5rem",fontWeight:700},children:e.project.name}),S.jsx(ae,{sx:{fontSize:"1.3rem",fontWeight:500},children:e.project.organization})]}),S.jsx("img",{style:{maxHeight:"36px"},src:yN(e.project.organization)})]}),S.jsx(ae,{sx:{marginTop:"15px"},variant:"body1",children:e.project.description}),S.jsx(Qw,{members:e.project.members})]})})})}function Qw(e){function t(){return S.jsx(S.Fragment,{children:e.members.map((n,r)=>S.jsx(dj,{label:`${n.memberInfo.firstName} ${n.memberInfo.lastName}`,variant:"outlined",sx:{color:"black",margin:"5px"},avatar:n.memberInfo.profileUrl?S.jsx($d,{src:n.memberInfo.profileUrl}):S.jsx($d,{...v2(`${n.memberInfo.firstName} ${n.memberInfo.lastName}`)})},r))})}return e.autoScroll?S.jsx(x2,{children:S.jsx(t,{})}):S.jsx(Q,{sx:{marginTop:"10px",display:"flex",flexWrap:"wrap"},children:S.jsx(t,{})})}function Yw(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function iy(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Yw(t[n])&&Yw(e[n])&&Object.keys(t[n]).length>0&&iy(e[n],t[n])})}const V2={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Mr(){const e=typeof document<"u"?document:{};return iy(e,V2),e}const xN={document:V2,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function cn(){const e=typeof window<"u"?window:{};return iy(e,xN),e}function wN(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function bN(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function jg(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Vd(){return Date.now()}function SN(e){const t=cn();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function CN(e,t){t===void 0&&(t="x");const n=cn();let r,i,o;const s=SN(e);return n.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function hc(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function EN(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Zt(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(o)<0);for(let o=0,s=i.length;oo?"next":"prev",c=(f,p)=>u==="next"&&f>=p||u==="prev"&&f<=p,d=()=>{a=new Date().getTime(),s===null&&(s=a);const f=Math.max(Math.min((a-s)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=o+p*(n-o);if(c(h,n)&&(h=n),t.wrapperEl.scrollTo({[r]:h}),c(h,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:h})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function oy(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function Sr(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function Bd(e){try{console.warn(e);return}catch{}}function Ud(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:wN(t)),n}function PN(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function TN(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function vi(e,t){return cn().getComputedStyle(e,null).getPropertyValue(t)}function Xw(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function kN(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Zw(e,t,n){const r=cn();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Mh;function MN(){const e=cn(),t=Mr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function U2(){return Mh||(Mh=MN()),Mh}let _h;function _N(e){let{userAgent:t}=e===void 0?{}:e;const n=U2(),r=cn(),i=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let c=o.match(/(iPad).*OS\s([\d_]+)/);const d=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i==="Win32";let h=i==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&h&&n.touch&&m.indexOf(`${a}x${l}`)>=0&&(c=o.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),u&&!p&&(s.os="android",s.android=!0),(c||f||d)&&(s.os="ios",s.ios=!0),s}function W2(e){return e===void 0&&(e={}),_h||(_h=_N(e)),_h}let Oh;function ON(){const e=cn(),t=W2();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[l,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=l<16||l===16&&u<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r(),s=o||i&&t.ios;return{isSafari:n||o,needPerspectiveFix:n,need3dFix:s,isWebView:i}}function RN(){return Oh||(Oh=ON()),Oh}function AN(e){let{swiper:t,on:n,emit:r}=e;const i=cn();let o=null,s=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(o=new ResizeObserver(d=>{s=i.requestAnimationFrame(()=>{const{width:f,height:p}=t;let h=f,m=p;d.forEach(x=>{let{contentBoxSize:g,contentRect:y,target:v}=x;v&&v!==t.el||(h=y?y.width:(g[0]||g).inlineSize,m=y?y.height:(g[0]||g).blockSize)}),(h!==f||m!==p)&&a()})}),o.observe(t.el))},u=()=>{s&&i.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function IN(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=[],s=cn(),a=function(c,d){d===void 0&&(d={});const f=s.MutationObserver||s.WebkitMutationObserver,p=new f(h=>{if(t.__preventObserver__)return;if(h.length===1){i("observerUpdate",h[0]);return}const m=function(){i("observerUpdate",h[0])};s.requestAnimationFrame?s.requestAnimationFrame(m):s.setTimeout(m,0)});p.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),o.push(p)},l=()=>{if(t.params.observer){if(t.params.observeParents){const c=kN(t.hostEl);for(let d=0;d{o.forEach(c=>{c.disconnect()}),o.splice(0,o.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",u)}var LN={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var o=arguments.length,s=new Array(o),a=0;a=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,o=new Array(i),s=0;s{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(u=>{u.apply(r,n)})}),e}};function $N(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(vi(r,"padding-left")||0,10)-parseInt(vi(r,"padding-right")||0,10),n=n-parseInt(vi(r,"padding-top")||0,10)-parseInt(vi(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function jN(){const e=this;function t(k,A){return parseFloat(k.getPropertyValue(e.getDirectionLabel(A))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:o,rtlTranslate:s,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=Sr(i,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:c.length;let f=[];const p=[],h=[];let m=n.slidesOffsetBefore;typeof m=="function"&&(m=n.slidesOffsetBefore.call(e));let x=n.slidesOffsetAfter;typeof x=="function"&&(x=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,y=e.slidesGrid.length;let v=n.spaceBetween,w=-m,C=0,E=0;if(typeof o>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*o:typeof v=="string"&&(v=parseFloat(v)),e.virtualSize=-v,c.forEach(k=>{s?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(mc(r,"--swiper-centered-offset-before",""),mc(r,"--swiper-centered-offset-after",""));const T=n.grid&&n.grid.rows>1&&e.grid;T?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();let P;const M=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(k=>typeof n.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&f.push(e.virtualSize-o)}if(l&&n.loop){const k=h[0]+v;if(n.slidesPerGroup>1){const A=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),I=k*n.slidesPerGroup;for(let $=0;$!n.cssMode||n.loop?!0:I!==c.length-1).forEach(A=>{A.style[k]=`${v}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let k=0;h.forEach(I=>{k+=I+(v||0)}),k-=v;const A=k-o;f=f.map(I=>I<=0?-m:I>A?A+x:I)}if(n.centerInsufficientSlides){let k=0;if(h.forEach(A=>{k+=A+(v||0)}),k-=v,k{f[$]=I-A}),p.forEach((I,$)=>{p[$]=I+A})}}if(Object.assign(e,{slides:c,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){mc(r,"--swiper-centered-offset-before",`${-f[0]}px`),mc(r,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const k=-e.snapGrid[0],A=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(I=>I+k),e.slidesGrid=e.slidesGrid.map(I=>I+A)}if(d!==u&&e.emit("slidesLengthChange"),f.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==y&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const k=`${n.containerModifierClass}backface-hidden`,A=e.el.classList.contains(k);d<=n.maxBackfaceHiddenSlides?A||e.el.classList.add(k):A&&e.el.classList.remove(k)}}function DN(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(o=0;ot.slides.length&&!r)break;n.push(s(a))}else n.push(s(t.activeIndex));for(o=0;oi?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function FN(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r"u"&&t.updateSlidesOffset();let s=-e;i&&(s=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&p<=t.size-t.slidesSizesGrid[l];(p>=0&&p1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),m&&r[l].classList.add(n.slideFullyVisibleClass),u.progress=i?-d:d,u.originalProgress=i?-f:f}}function zN(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:s,progressLoop:a}=t;const l=o,u=s;if(r===0)i=0,o=!0,s=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;o=c||i<=0,s=d||i>=1,c&&(i=0),d&&(i=1)}if(n.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[c],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=f?a=(m-f)/h:a=(m+h-p)/h,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!s)&&t.emit("fromEdge"),t.emit("progress",i)}const Rh=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function VN(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,a=d=>Sr(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,u,c;if(o)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${d}"]`)}else l=a(`[data-swiper-slide-index="${i}"]`);else s?(l=t.filter(d=>d.column===i)[0],c=t.filter(d=>d.column===i+1)[0],u=t.filter(d=>d.column===i-1)[0]):l=t[i];l&&(s||(c=TN(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),u=PN(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u===0&&(u=t[t.length-1]))),t.forEach(d=>{Rh(d,d===l,n.slideActiveClass),Rh(d,d===c,n.slideNextClass),Rh(d,d===u,n.slidePrevClass)}),e.emitSlidesClasses()}const Hc=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},Ah=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Dg=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,a=[s-t];a.push(...Array.from({length:t}).map((l,u)=>s+r+u)),e.slides.forEach((l,u)=>{a.includes(l.column)&&Ah(e,u)});return}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let s=i-t;s<=o+t;s+=1){const a=(s%n+n)%n;(ao)&&Ah(e,a)}else for(let s=Math.max(i-t,0);s<=Math.min(o+t,n-1);s+=1)s!==i&&(s>o||s=t[o]&&r=t[o]&&r=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function UN(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:s,snapIndex:a}=t;let l=e,u;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=BN(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(i.slidesPerGroupSkip,l);u=p+Math.floor((l-p)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===o&&!t.params.loop){u!==a&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(l===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(l);return}const d=t.grid&&i.grid&&i.grid.rows>1;let f;if(t.virtual&&i.virtual.enabled&&i.loop)f=c(l);else if(d){const p=t.slides.filter(m=>m.column===l)[0];let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(p),0)),f=Math.floor(h/i.grid.rows)}else if(t.slides[l]){const p=t.slides[l].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=l}else f=l;Object.assign(t,{previousSnapIndex:a,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:o,activeIndex:l}),t.initialized&&Dg(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==f&&t.emit("realIndexChange"),t.emit("slideChange"))}function WN(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(i=a)});let o=!1,s;if(i){for(let a=0;al?c=l:r&&es?a="next":o"u"&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,s);let x=m+Math.floor((s-m)/o.params.slidesPerGroup);x>=l.length&&(x=l.length-1);const g=-l[x];if(a.normalizeSlideIndex)for(let v=0;v=C&&w=C&&w=C&&(s=v)}if(o.initialized&&s!==d&&(!o.allowSlideNext&&(f?g>o.translate&&g>o.minTranslate():go.translate&&g>o.maxTranslate()&&(d||0)!==s))return!1;s!==(c||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g);let y;if(s>d?y="next":s0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[v?"scrollLeft":"scrollTop"]=w})):p[v?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return B2({swiper:o,targetPosition:w,side:v?"left":"top"}),!0;p.scrollTo({[v?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,y),t===0?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function rz(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let s=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)s=s+i.virtual.slidesBefore;else{let a;if(o){const f=s*i.params.grid.rows;a=i.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=i.getSlideIndexByData(s);const l=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:u}=i.params;let c=i.params.slidesPerView;c==="auto"?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let d=l-ap.getAttribute("data-swiper-slide-index")*1===f)[0].column}else s=i.getSlideIndexByData(s)}return requestAnimationFrame(()=>{i.slideTo(s,t,n,r)}),i}function iz(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:i,params:o,animating:s}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let a=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function oz(e,t,n){t===void 0&&(t=!0);const r=this,{params:i,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=a?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=o.map(g=>f(g));let m=o[h.indexOf(p)-1];if(typeof m>"u"&&i.cssMode){let g;o.forEach((y,v)=>{p>=y&&(g=v)}),typeof g<"u"&&(m=o[g>0?g-1:g])}let x=0;if(typeof m<"u"&&(x=s.indexOf(m),x<0&&(x=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(x=x-r.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),i.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(x,e,t,n)}),!0;return r.slideTo(x,e,t,n)}function sz(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function az(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];l-u>(c-u)*r&&(o+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];l-u<=(c-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function lz(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?ie.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(Sr(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),jg(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(Sr(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),jg(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var uz={slideTo:nz,slideToLoop:rz,slideNext:iz,slidePrev:oz,slideReset:sz,slideToClosest:az,slideToClickedSlide:lz};function cz(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{Sr(r,`.${n.slideClass}, swiper-slide`).forEach((d,f)=>{d.setAttribute("data-swiper-slide-index",f)})},o=t.grid&&n.grid&&n.grid.rows>1,s=n.slidesPerGroup*(o?n.grid.rows:1),a=t.slides.length%s!==0,l=o&&t.slides.length%n.grid.rows!==0,u=c=>{for(let d=0;d1;u.length"u"?o=l.getSlideIndex(u.filter($=>$.classList.contains(p.slideActiveClass))[0]):C=o;const E=r==="next"||!r,T=r==="prev"||!r;let P=0,M=0;const k=y?Math.ceil(u.length/p.grid.rows):u.length,I=(y?u[o].column:o)+(h&&typeof i>"u"?-m/2+.5:0);if(I=0;N-=1)u[N].column===B&&v.push(N)}else v.push(k-D-1)}}else if(I+m>k-g){M=Math.max(I-(k-g*2),x);for(let $=0;${B.column===D&&w.push(N)}):w.push(D)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),T&&v.forEach($=>{u[$].swiperLoopMoveDOM=!0,f.prepend(u[$]),u[$].swiperLoopMoveDOM=!1}),E&&w.forEach($=>{u[$].swiperLoopMoveDOM=!0,f.append(u[$]),u[$].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():y&&(v.length>0&&T||w.length>0&&E)&&l.slides.forEach(($,D)=>{l.grid.updateSlide(D,$,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),n){if(v.length>0&&T){if(typeof t>"u"){const $=l.slidesGrid[C],B=l.slidesGrid[C+P]-$;a?l.setTranslate(l.translate-B):(l.slideTo(C+Math.ceil(P),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else if(i){const $=y?v.length/p.grid.rows:v.length;l.slideTo(l.activeIndex+$,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&E)if(typeof t>"u"){const $=l.slidesGrid[C],B=l.slidesGrid[C-M]-$;a?l.setTranslate(l.translate-B):(l.slideTo(C-M,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else{const $=y?w.length/p.grid.rows:w.length;l.slideTo(l.activeIndex-$,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!s){const $={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(D=>{!D.destroyed&&D.params.loop&&D.loopFix({...$,slideTo:D.params.slidesPerView===p.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...$,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?n:!1})}l.emit("loopFix")}function fz(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const o=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[o]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var pz={loopCreate:cz,loopFix:dz,loopDestroy:fz};function hz(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function mz(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var gz={setGrabCursor:hz,unsetGrabCursor:mz};function vz(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Mr()||r===cn())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function Jw(e,t,n){const r=cn(),{params:i}=e,o=i.edgeSwipeDetection,s=i.edgeSwipeThreshold;return o&&(n<=s||n>=r.innerWidth-s)?o==="prevent"?(t.preventDefault(),!0):!1:!0}function yz(e){const t=this,n=Mr();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Jw(t,r,r.targetTouches[0].pageX);return}const{params:o,touches:s,enabled:a}=t;if(!a||!o.simulateTouch&&r.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(l)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&o.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(l=c[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(o.noSwiping&&(f?vz(d,l):l.closest(d))){t.allowClick=!0;return}if(o.swipeHandler&&!l.closest(o.swipeHandler))return;s.currentX=r.pageX,s.currentY=r.pageY;const p=s.currentX,h=s.currentY;if(!Jw(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=h,i.touchStartTime=Vd(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();const x=m&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||x)&&!l.isContentEditable&&r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function xz(e){const t=Mr(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:s,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let u;if(l.type==="touchmove"){if(u=[...l.changedTouches].filter(E=>E.identifier===r.touchId)[0],!u||u.identifier!==r.touchId)return}else u=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=u.pageX,d=u.pageY;if(l.preventedByNestedSwiper){o.startX=c,o.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=Vd());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(do.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(co.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=c,o.currentY=d;const f=o.currentX-o.startX,p=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)"u"){let E;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:f*f+p*p>=25&&(E=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let h=n.isHorizontal()?f:p,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(h=Math.abs(h)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),o.diff=h,h*=i.touchRatio,s&&(h=-h,m=-m);const x=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!i.cssMode,y=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(g&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(E)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let v;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&x!==n.touchesDirection&&g&&y&&Math.abs(h)>=1){Object.assign(o,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=h+r.startTranslate;let w=!0,C=i.resistanceRatio;if(i.touchReleaseOnEdges&&(C=0),h>0?(g&&y&&!v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**C))):h<0&&(g&&y&&!v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(h)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function wz(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(C=>C.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:s,touches:a,rtlTranslate:l,slidesGrid:u,enabled:c}=t;if(!c||!s.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Vd(),f=d-n.touchStartTime;if(t.allowClick){const C=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(C&&C[0]||r.target,C),t.emit("tap click",r),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Vd(),jg(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(s.followFinger?p=l?t.translate:-t.translate:p=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const h=p>=-t.maxTranslate()&&!t.params.loop;let m=0,x=t.slidesSizesGrid[0];for(let C=0;C=u[C]&&p=u[C])&&(m=C,x=u[u.length-1]-u[u.length-2])}let g=null,y=null;s.rewind&&(t.isBeginning?y=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(p-u[m])/x,w=ms.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?g:m+w):t.slideTo(m)),t.swipeDirection==="prev"&&(v>1-s.longSwipesRatio?t.slideTo(m+w):y!==null&&v<0&&Math.abs(v)>s.longSwipesRatio?t.slideTo(y):t.slideTo(m))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+w):t.slideTo(m):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:m+w),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:m))}}function eb(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function bz(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Sz(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Cz(e){const t=this;Hc(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Ez(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const G2=(e,t)=>{const n=Mr(),{params:r,el:i,wrapperEl:o,device:s}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",u=t;n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",eb,!0):e[u]("observerUpdate",eb,!0),i[l]("load",e.onLoad,{capture:!0})};function Pz(){const e=this,{params:t}=e;e.onTouchStart=yz.bind(e),e.onTouchMove=xz.bind(e),e.onTouchEnd=wz.bind(e),e.onDocumentTouchStart=Ez.bind(e),t.cssMode&&(e.onScroll=Sz.bind(e)),e.onClick=bz.bind(e),e.onLoad=Cz.bind(e),G2(e,"on")}function Tz(){G2(this,"off")}var kz={attachEvents:Pz,detachEvents:Tz};const tb=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Mz(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const l=(s in o?o[s]:void 0)||e.originalParams,u=tb(e,r),c=tb(e,l),d=e.params.grabCursor,f=l.grabCursor,p=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!f?e.unsetGrabCursor():!d&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof l[v]>"u")return;const w=r[v]&&r[v].enabled,C=l[v]&&l[v].enabled;w&&!C&&e[v].disable(),!w&&C&&e[v].enable()});const h=l.direction&&l.direction!==r.direction,m=r.loop&&(l.slidesPerView!==r.slidesPerView||h),x=r.loop;h&&n&&e.changeDirection(),Zt(e.params,l);const g=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!g?e.disable():!p&&g&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),n&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!x&&y?(e.loopCreate(t),e.updateSlides()):x&&!y&&e.loopDestroy()),e.emit("breakpoint",l)}function _z(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=cn(),o=t==="window"?i.innerHeight:n.clientHeight,s=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:o*l,point:a}}return{value:a,point:a}});s.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function Az(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,s=Rz(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()}function Iz(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var Lz={addClasses:Az,removeClasses:Iz};function $z(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var jz={checkOverflow:$z},Fg={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Dz(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){Zt(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in o)){Zt(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Zt(t,r)}}const Ih={eventsEmitter:LN,update:HN,translate:XN,transition:tz,slide:uz,loop:pz,grabCursor:gz,events:kz,breakpoints:Oz,checkOverflow:jz,classes:Lz},Lh={};let sy=class mr{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),o=0;o1){const c=[];return s.querySelectorAll(n.el).forEach(d=>{const f=Zt({},n,{el:d});c.push(new mr(f))}),c}const a=this;a.__swiper__=!0,a.support=U2(),a.device=W2({userAgent:n.userAgent}),a.browser=RN(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};a.modules.forEach(c=>{c({params:n,swiper:a,extendParams:Dz(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=Zt({},Fg,l);return a.params=Zt({},u,Lh,n),a.originalParams=Zt({},a.params),a.passedParams=Zt({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=Sr(n,`.${r.slideClass}, swiper-slide`),o=Xw(i[0]);return Xw(t)-o}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Sr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),s=(r.maxTranslate()-i)*t+i;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:o,slidesGrid:s,slidesSizesGrid:a,size:l,activeIndex:u}=r;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=o[u]?Math.ceil(o[u].swiperSlideSize):0,f;for(let p=u+1;pl&&(f=!0));for(let p=u-1;p>=0;p-=1)o[p]&&!f&&(d+=o[p].swiperSlideSize,c+=1,d>l&&(f=!0))}else if(t==="current")for(let d=u+1;d=0;d-=1)s[u]-s[d]{s.complete&&Hc(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const s=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let o;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const s=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;o=t.slideTo(s.length-1,0,!1,!0)}else o=t.slideTo(t.activeIndex,0,!1,!0);o||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):Sr(r,i())[0];return!s&&n.params.createElements&&(s=Ud("div",n.params.wrapperClass),r.append(s),Sr(r,`.${n.params.slideClass}`).forEach(a=>{s.append(a)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:s,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||vi(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||vi(r,"direction")==="rtl"),wrongRTL:vi(s,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(o=>{o.complete?Hc(n,o):o.addEventListener("load",s=>{Hc(n,s.target)})}),Dg(n),n.initialized=!0,Dg(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:o,wrapperEl:s,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),s.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,bN(r)),r.destroyed=!0),null}static extendDefaults(t){Zt(Lh,t)}static get extendedDefaults(){return Lh}static get defaults(){return Fg}static installModule(t){mr.prototype.__modules__||(mr.prototype.__modules__=[]);const n=mr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>mr.installModule(n)),mr):(mr.installModule(t),mr)}};Object.keys(Ih).forEach(e=>{Object.keys(Ih[e]).forEach(t=>{sy.prototype[t]=Ih[e][t]})});sy.use([AN,IN]);const q2=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ao(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Ts(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Ao(t[r])&&Ao(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Ts(e[r],t[r]):e[r]=t[r]})}function K2(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Q2(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function Y2(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function X2(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Fz(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Nz(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:o,prevEl:s,scrollbarEl:a,paginationEl:l}=e;const u=i.filter(M=>M!=="children"&&M!=="direction"&&M!=="wrapperClass"),{params:c,pagination:d,navigation:f,scrollbar:p,virtual:h,thumbs:m}=t;let x,g,y,v,w,C,E,T;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(x=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(g=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(c.pagination||c.pagination===!1)&&d&&!d.el&&(y=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&(v=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||s)&&(r.navigation.nextEl||o)&&(c.navigation||c.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);const P=M=>{t[M]&&(t[M].destroy(),M==="navigation"?(t.isElement&&(t[M].prevEl.remove(),t[M].nextEl.remove()),c[M].prevEl=void 0,c[M].nextEl=void 0,t[M].prevEl=void 0,t[M].nextEl=void 0):(t.isElement&&t[M].el.remove(),c[M].el=void 0,t[M].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?C=!0:!c.loop&&r.loop?E=!0:T=!0),u.forEach(M=>{if(Ao(c[M])&&Ao(r[M]))Object.assign(c[M],r[M]),(M==="navigation"||M==="pagination"||M==="scrollbar")&&"enabled"in r[M]&&!r[M].enabled&&P(M);else{const k=r[M];(k===!0||k===!1)&&(M==="navigation"||M==="pagination"||M==="scrollbar")?k===!1&&P(M):c[M]=r[M]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&h&&c.virtual.enabled?(h.slides=n,h.update(!0)):i.includes("virtual")&&h&&c.virtual.enabled&&(n&&(h.slides=n),h.update(!0)),i.includes("children")&&n&&c.loop&&(T=!0),x&&m.init()&&m.update(!0),g&&(t.controller.control=c.controller.control),y&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),d.init(),d.render(),d.update()),v&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),p.init(),p.updateSize(),p.setTranslate()),w&&(t.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=t.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),t.el.appendChild(o)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),s.innerHTML=t.hostEl.constructor.prevButtonSvg,s.part.add("button-prev"),t.el.appendChild(s))),o&&(c.navigation.nextEl=o),s&&(c.navigation.prevEl=s),f.init(),f.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(C||T)&&t.loopDestroy(),(E||T)&&t.loopCreate(),t.update()}function zz(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};Ts(n,Fg),n._emitClasses=!0,n.init=!1;const o={},s=q2.map(l=>l.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(l=>{typeof e[l]>"u"||(s.indexOf(l)>=0?Ao(e[l])?(n[l]={},i[l]={},Ts(n[l],e[l]),Ts(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:o[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:o,events:r}}function Vz(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:o,scrollbarEl:s,swiper:a}=e;K2(t)&&r&&i&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),Q2(t)&&o&&(a.params.pagination.el=o,a.originalParams.pagination.el=o),Y2(t)&&s&&(a.params.scrollbar.el=s,a.originalParams.scrollbar.el=s),a.init(n)}function Bz(e,t,n,r,i){const o=[];if(!t)return o;const s=l=>{o.indexOf(l)<0&&o.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&s("children"),r.length!==n.length&&s("children")}return q2.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Ao(e[l])&&Ao(t[l])){const u=Object.keys(e[l]),c=Object.keys(t[l]);u.length!==c.length?s(l):(u.forEach(d=>{e[l][d]!==t[l][d]&&s(l)}),c.forEach(d=>{e[l][d]!==t[l][d]&&s(l)}))}else e[l]!==t[l]&&s(l)}),o}const Uz=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{Z2(n)?t.push(n):n.props&&n.props.children&&J2(n.props.children).forEach(r=>t.push(r))}),t}function Wz(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return W.Children.toArray(e).forEach(r=>{if(Z2(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=J2(r.props.children);i.length>0?i.forEach(o=>t.push(o)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Hz(e,t,n){if(!n)return null;const r=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:s}=n,a=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,u=[];for(let c=a;c=o&&c<=s&&u.push(t[r(c)]);return u.map((c,d)=>W.cloneElement(c,{swiper:e,style:i,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function ul(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const nb=b.createContext(null),Gz=b.createContext(null),ek=b.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:o,onSwiper:s,...a}=e===void 0?{}:e,l=!1;const[u,c]=b.useState("swiper"),[d,f]=b.useState(null),[p,h]=b.useState(!1),m=b.useRef(!1),x=b.useRef(null),g=b.useRef(null),y=b.useRef(null),v=b.useRef(null),w=b.useRef(null),C=b.useRef(null),E=b.useRef(null),T=b.useRef(null),{params:P,passedParams:M,rest:k,events:A}=zz(a),{slides:I,slots:$}=Wz(o),D=()=>{h(!p)};Object.assign(P.on,{_containerClasses(L,z){c(z)}});const B=()=>{Object.assign(P.on,A),l=!0;const L={...P};if(delete L.wrapperClass,g.current=new sy(L),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=I;const z={cache:!1,slides:I,renderExternal:f,renderExternalUpdate:!1};Ts(g.current.params.virtual,z),Ts(g.current.originalParams.virtual,z)}};x.current||B(),g.current&&g.current.on("_beforeBreakpoint",D);const N=()=>{l||!A||!g.current||Object.keys(A).forEach(L=>{g.current.on(L,A[L])})},H=()=>{!A||!g.current||Object.keys(A).forEach(L=>{g.current.off(L,A[L])})};b.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",D)}),b.useEffect(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),ul(()=>{if(t&&(t.current=x.current),!!x.current)return g.current.destroyed&&B(),Vz({el:x.current,nextEl:w.current,prevEl:C.current,paginationEl:E.current,scrollbarEl:T.current,swiper:g.current},P),s&&!g.current.destroyed&&s(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),ul(()=>{N();const L=Bz(M,y.current,I,v.current,z=>z.key);return y.current=M,v.current=I,L.length&&g.current&&!g.current.destroyed&&Nz({swiper:g.current,slides:I,passedParams:M,changedParams:L,nextEl:w.current,prevEl:C.current,scrollbarEl:T.current,paginationEl:E.current}),()=>{H()}}),ul(()=>{Uz(g.current)},[d]);function R(){return P.virtual?Hz(g.current,I,d):I.map((L,z)=>W.cloneElement(L,{swiper:g.current,swiperSlideIndex:z}))}return W.createElement(r,Wd({ref:x,className:X2(`${u}${n?` ${n}`:""}`)},k),W.createElement(Gz.Provider,{value:g.current},$["container-start"],W.createElement(i,{className:Fz(P.wrapperClass)},$["wrapper-start"],R(),$["wrapper-end"]),K2(P)&&W.createElement(W.Fragment,null,W.createElement("div",{ref:C,className:"swiper-button-prev"}),W.createElement("div",{ref:w,className:"swiper-button-next"})),Y2(P)&&W.createElement("div",{ref:T,className:"swiper-scrollbar"}),Q2(P)&&W.createElement("div",{ref:E,className:"swiper-pagination"}),$["container-end"]))});ek.displayName="Swiper";const tk=b.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:o,zoom:s,lazy:a,virtualIndex:l,swiperSlideIndex:u,...c}=e===void 0?{}:e;const d=b.useRef(null),[f,p]=b.useState("swiper-slide"),[h,m]=b.useState(!1);function x(w,C,E){C===d.current&&p(E)}ul(()=>{if(typeof u<"u"&&(d.current.swiperSlideIndex=u),t&&(t.current=d.current),!(!d.current||!o)){if(o.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return o.on("_slideClass",x),()=>{o&&o.off("_slideClass",x)}}}),ul(()=>{o&&d.current&&!o.destroyed&&p(o.getSlideClasses(d.current))},[o]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},y=()=>typeof r=="function"?r(g):r,v=()=>{m(!0)};return W.createElement(n,Wd({ref:d,className:X2(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:v},c),s&&W.createElement(nb.Provider,{value:g},W.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof s=="number"?s:void 0},y(),a&&!h&&W.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&W.createElement(nb.Provider,{value:g},y(),a&&!h&&W.createElement("div",{className:"swiper-lazy-preloader"})))});tk.displayName="SwiperSlide";function qz(e){let{swiper:t,extendParams:n,on:r,emit:i,params:o}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,a,l=o&&o.autoplay?o.autoplay.delay:3e3,u=o&&o.autoplay?o.autoplay.delay:3e3,c,d=new Date().getTime(),f,p,h,m,x,g,y;function v(R){!t||t.destroyed||!t.wrapperEl||R.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!y&&k())}const w=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?f=!0:f&&(u=c,f=!1);const R=t.autoplay.paused?c:d+u-new Date().getTime();t.autoplay.timeLeft=R,i("autoplayTimeLeft",R,R/l),a=requestAnimationFrame(()=>{w()})},C=()=>{let R;return t.virtual&&t.params.virtual.enabled?R=t.slides.filter(z=>z.classList.contains("swiper-slide-active"))[0]:R=t.slides[t.activeIndex],R?parseInt(R.getAttribute("data-swiper-autoplay"),10):void 0},E=R=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),w();let L=typeof R>"u"?t.params.autoplay.delay:R;l=t.params.autoplay.delay,u=t.params.autoplay.delay;const z=C();!Number.isNaN(z)&&z>0&&typeof R>"u"&&(L=z,l=z,u=z),c=L;const K=t.params.speed,ne=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(K,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,K,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(K,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,K,!0,!0),i("autoplay")),t.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{E()})))};return L>0?(clearTimeout(s),s=setTimeout(()=>{ne()},L)):requestAnimationFrame(()=>{ne()}),L},T=()=>{d=new Date().getTime(),t.autoplay.running=!0,E(),i("autoplayStart")},P=()=>{t.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(a),i("autoplayStop")},M=(R,L)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(s),R||(g=!0);const z=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):k()};if(t.autoplay.paused=!0,L){x&&(c=t.params.autoplay.delay),x=!1,z();return}c=(c||t.params.autoplay.delay)-(new Date().getTime()-d),!(t.isEnd&&c<0&&!t.params.loop)&&(c<0&&(c=0),z())},k=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=new Date().getTime(),g?(g=!1,E(c)):E(),t.autoplay.paused=!1,i("autoplayResume"))},A=()=>{if(t.destroyed||!t.autoplay.running)return;const R=Mr();R.visibilityState==="hidden"&&(g=!0,M(!0)),R.visibilityState==="visible"&&k()},I=R=>{R.pointerType==="mouse"&&(g=!0,y=!0,!(t.animating||t.autoplay.paused)&&M(!0))},$=R=>{R.pointerType==="mouse"&&(y=!1,t.autoplay.paused&&k())},D=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",I),t.el.addEventListener("pointerleave",$))},B=()=>{t.el.removeEventListener("pointerenter",I),t.el.removeEventListener("pointerleave",$)},N=()=>{Mr().addEventListener("visibilitychange",A)},H=()=>{Mr().removeEventListener("visibilitychange",A)};r("init",()=>{t.params.autoplay.enabled&&(D(),N(),T())}),r("destroy",()=>{B(),H(),t.autoplay.running&&P()}),r("_freeModeStaticRelease",()=>{(h||g)&&k()}),r("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?P():M(!0,!0)}),r("beforeTransitionStart",(R,L,z)=>{t.destroyed||!t.autoplay.running||(z||!t.params.autoplay.disableOnInteraction?M(!0,!0):P())}),r("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){P();return}p=!0,h=!1,g=!1,m=setTimeout(()=>{g=!0,h=!0,M(!0)},200)}}),r("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!p)){if(clearTimeout(m),clearTimeout(s),t.params.autoplay.disableOnInteraction){h=!1,p=!1;return}h&&t.params.cssMode&&k(),h=!1,p=!1}}),r("slideChange",()=>{t.destroyed||!t.autoplay.running||(x=!0)}),Object.assign(t.autoplay,{start:T,stop:P,pause:M,resume:k})}function Kz(e){const{effect:t,swiper:n,on:r,setTranslate:i,setTransition:o,overwriteParams:s,perspective:a,recreateShadows:l,getEffectParams:u}=e;r("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),a&&a()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const d=s?s():{};Object.assign(n.params,d),Object.assign(n.originalParams,d)}),r("setTranslate",()=>{n.params.effect===t&&i()}),r("setTransition",(d,f)=>{n.params.effect===t&&o(f)}),r("transitionEnd",()=>{if(n.params.effect===t&&l){if(!u||!u().slideShadows)return;n.slides.forEach(d=>{d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),l()}});let c;r("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(c=!0),requestAnimationFrame(()=>{c&&n.slides&&n.slides.length&&(i(),c=!1)}))})}function Qz(e,t){const n=oy(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function rb(e,t,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=oy(t);let o=i.querySelector(`.${r.split(" ").join(".")}`);return o||(o=Ud("div",r.split(" ")),i.append(o)),o}function Yz(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Kz({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{const{width:s,height:a,slides:l,slidesSizesGrid:u}=t,c=t.params.coverflowEffect,d=t.isHorizontal(),f=t.translate,p=d?-f+s/2:-f+a/2,h=d?c.rotate:-c.rotate,m=c.depth;for(let x=0,g=l.length;x0?E:0),H&&(H.style.opacity=-E>0?-E:0)}}},setTransition:s=>{t.slides.map(l=>oy(l)).forEach(l=>{l.style.transitionDuration=`${s}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${s}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function Xz(e){let t=`${e.firstName}-${e.lastName}`;return t=t.toLowerCase().replace(" ","-"),`${Do.getUri()}/team-images/${t}.jpeg`}function Zz(e){let t="";return t=e.leadership.join(", "),t}function Jz(e){const[t,n]=W.useState([]);return W.useEffect(()=>{Do.get("members/leaders/").then(r=>{n(()=>r.data)})},[]),S.jsxs(Q,{...e,sx:{...e==null?void 0:e.sx,borderRadius:"35px",display:"flex",flexDirection:"column",gap:"15px",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:[S.jsx(ae,{sx:{fontSize:"3rem",fontWeight:"bold",marginBottom:"30px"},children:"Our Team"}),t.length<1?S.jsx(S.Fragment,{}):S.jsx(ek,{modules:[Yz,qz],effect:"coverflow",centeredSlides:!0,loop:!0,loopAdditionalSlides:2,slidesPerView:"auto",spaceBetween:3,coverflowEffect:{rotate:0,stretch:0,depth:200,modifier:1},autoplay:{delay:1200,disableOnInteraction:!1},children:t.map(r=>S.jsx(tk,{children:S.jsxs(Q,{sx:{position:"relative",overflow:"hidden",width:"100%"},children:[S.jsx("img",{src:Xz(r),alt:"member_image"}),S.jsxs(Q,{sx:{position:"absolute",bottom:"0px",color:"white",width:"100%",height:"130px",left:"50%",transform:"translateX(-50%)",background:"linear-gradient(to top, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0) 100%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"end",textAlign:"center",paddingBottom:"20px"},children:[S.jsx(ae,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:`${r.firstName} ${r.lastName}`}),S.jsx(ae,{sx:{fontSize:"1rem"},children:Zz(r)})]})]})}))})]})}var e8=Object.defineProperty,t8=(e,t)=>{for(var n in t)e8(e,n,{get:t[n],enumerable:!0})},Gn={};t8(Gn,{assign:()=>i8,colors:()=>Oi,createStringInterpolator:()=>py,skipAnimation:()=>lk,to:()=>ak,willAdvance:()=>hy});var ay=Du(),te=e=>ju(e,ay),ly=Du();te.write=e=>ju(e,ly);var yp=Du();te.onStart=e=>ju(e,yp);var uy=Du();te.onFrame=e=>ju(e,uy);var cy=Du();te.onFinish=e=>ju(e,cy);var ks=[];te.setTimeout=(e,t)=>{const n=te.now()+t,r=()=>{const o=ks.findIndex(s=>s.cancel==r);~o&&ks.splice(o,1),xi-=~o?1:0},i={time:n,handler:e,cancel:r};return ks.splice(nk(n),0,i),xi+=1,rk(),i};var nk=e=>~(~ks.findIndex(t=>t.time>e)||~ks.length);te.cancel=e=>{yp.delete(e),uy.delete(e),cy.delete(e),ay.delete(e),ly.delete(e)};te.sync=e=>{Ng=!0,te.batchedUpdates(e),Ng=!1};te.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,te.onStart(n)}return r.handler=e,r.cancel=()=>{yp.delete(n),t=null},r};var dy=typeof window<"u"?window.requestAnimationFrame:()=>{};te.use=e=>dy=e;te.now=typeof performance<"u"?()=>performance.now():Date.now;te.batchedUpdates=e=>e();te.catch=console.error;te.frameLoop="always";te.advance=()=>{te.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ok()};var yi=-1,xi=0,Ng=!1;function ju(e,t){Ng?(t.delete(e),e(0)):(t.add(e),rk())}function rk(){yi<0&&(yi=0,te.frameLoop!=="demand"&&dy(ik))}function n8(){yi=-1}function ik(){~yi&&(dy(ik),te.batchedUpdates(ok))}function ok(){const e=yi;yi=te.now();const t=nk(yi);if(t&&(sk(ks.splice(0,t),n=>n.handler()),xi-=t),!xi){n8();return}yp.flush(),ay.flush(e?Math.min(64,yi-e):16.667),uy.flush(),ly.flush(),cy.flush()}function Du(){let e=new Set,t=e;return{add(n){xi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return xi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,xi-=t.size,sk(t,r=>r(n)&&e.add(r)),xi+=e.size,t=e)}}}function sk(e,t){e.forEach(n=>{try{t(n)}catch(r){te.catch(r)}})}function zg(){}var r8=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),V={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function yr(e,t){if(V.arr(e)){if(!V.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function dr(e,t,n){if(V.arr(e)){for(let r=0;rV.und(e)?[]:V.arr(e)?e:[e];function cl(e,t){if(e.size){const n=Array.from(e);e.clear(),he(n,t)}}var qa=(e,...t)=>cl(e,n=>n(...t)),fy=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),py,ak,Oi=null,lk=!1,hy=zg,i8=e=>{e.to&&(ak=e.to),e.now&&(te.now=e.now),e.colors!==void 0&&(Oi=e.colors),e.skipAnimation!=null&&(lk=e.skipAnimation),e.createStringInterpolator&&(py=e.createStringInterpolator),e.requestAnimationFrame&&te.use(e.requestAnimationFrame),e.batchedUpdates&&(te.batchedUpdates=e.batchedUpdates),e.willAdvance&&(hy=e.willAdvance),e.frameLoop&&(te.frameLoop=e.frameLoop)},dl=new Set,Sn=[],$h=[],Hd=0,xp={get idle(){return!dl.size&&!Sn.length},start(e){Hd>e.priority?(dl.add(e),te.onStart(o8)):(uk(e),te(Vg))},advance:Vg,sort(e){if(Hd)te.onFrame(()=>xp.sort(e));else{const t=Sn.indexOf(e);~t&&(Sn.splice(t,1),ck(e))}},clear(){Sn=[],dl.clear()}};function o8(){dl.forEach(uk),dl.clear(),te(Vg)}function uk(e){Sn.includes(e)||ck(e)}function ck(e){Sn.splice(s8(Sn,t=>t.priority>e.priority),0,e)}function Vg(e){const t=$h;for(let n=0;n0}function s8(e,t){const n=e.findIndex(t);return n<0?e.length:n}var a8=(e,t,n)=>Math.min(Math.max(n,e),t),l8={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Bn="[-+]?\\d*\\.?\\d+",Gd=Bn+"%";function wp(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var u8=new RegExp("rgb"+wp(Bn,Bn,Bn)),c8=new RegExp("rgba"+wp(Bn,Bn,Bn,Bn)),d8=new RegExp("hsl"+wp(Bn,Gd,Gd)),f8=new RegExp("hsla"+wp(Bn,Gd,Gd,Bn)),p8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,h8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,m8=/^#([0-9a-fA-F]{6})$/,g8=/^#([0-9a-fA-F]{8})$/;function v8(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=m8.exec(e))?parseInt(t[1]+"ff",16)>>>0:Oi&&Oi[e]!==void 0?Oi[e]:(t=u8.exec(e))?(Ko(t[1])<<24|Ko(t[2])<<16|Ko(t[3])<<8|255)>>>0:(t=c8.exec(e))?(Ko(t[1])<<24|Ko(t[2])<<16|Ko(t[3])<<8|sb(t[4]))>>>0:(t=p8.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=g8.exec(e))?parseInt(t[1],16)>>>0:(t=h8.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=d8.exec(e))?(ib(ob(t[1]),gc(t[2]),gc(t[3]))|255)>>>0:(t=f8.exec(e))?(ib(ob(t[1]),gc(t[2]),gc(t[3]))|sb(t[4]))>>>0:null}function jh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ib(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=jh(i,r,e+1/3),s=jh(i,r,e),a=jh(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Ko(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ob(e){return(parseFloat(e)%360+360)%360/360}function sb(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function gc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ab(e){let t=v8(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var Gl=(e,t,n)=>{if(V.fun(e))return e;if(V.arr(e))return Gl({range:e,output:t,extrapolate:n});if(V.str(e.output[0]))return py(e);const r=e,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=x8(u,o);return y8(u,o[c],o[c+1],i[c],i[c+1],l,s,a,r.map)}};function y8(e,t,n,r,i,o,s,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function x8(e,t){for(var n=1;n=e);++n);return n-1}var w8=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return a8(0,1,i/e)},qd=1.70158,vc=qd*1.525,lb=qd+1,ub=2*Math.PI/3,cb=2*Math.PI/4.5,yc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,b8={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>lb*e*e*e-qd*e*e,easeOutBack:e=>1+lb*Math.pow(e-1,3)+qd*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vc+1)*2*e-vc)/2:(Math.pow(2*e-2,2)*((vc+1)*(e*2-2)+vc)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*ub),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*ub)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*cb))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*cb)/2+1,easeInBounce:e=>1-yc(1-e),easeOutBounce:yc,easeInOutBounce:e=>e<.5?(1-yc(1-2*e))/2:(1+yc(2*e-1))/2,steps:w8},ql=Symbol.for("FluidValue.get"),ra=Symbol.for("FluidValue.observers"),bn=e=>!!(e&&e[ql]),Nt=e=>e&&e[ql]?e[ql]():e,db=e=>e[ra]||null;function S8(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Kl(e,t){const n=e[ra];n&&n.forEach(r=>{S8(r,t)})}var dk=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");C8(this,e)}},C8=(e,t)=>fk(e,ql,t);function ga(e,t){if(e[ql]){let n=e[ra];n||fk(e,ra,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ql(e,t){const n=e[ra];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ra]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var fk=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Gc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,E8=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,fb=new RegExp(`(${Gc.source})(%|[a-z]+)`,"i"),P8=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,bp=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,pk=e=>{const[t,n]=T8(e);if(!t||fy())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&bp.test(n))return pk(n);if(n)return n}return e},T8=e=>{const t=bp.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Dh,k8=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,hk=e=>{Dh||(Dh=Oi?new RegExp(`(${Object.keys(Oi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Nt(o).replace(bp,pk).replace(E8,ab).replace(Dh,ab)),n=t.map(o=>o.match(Gc).map(Number)),i=n[0].map((o,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(o=>Gl({...e,output:o}));return o=>{var l;const s=!fb.test(t[0])&&((l=t.find(u=>fb.test(u)))==null?void 0:l.replace(Gc,""));let a=0;return t[0].replace(Gc,()=>`${i[a++](o)}${s||""}`).replace(P8,k8)}},my="react-spring: ",mk=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${my}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},M8=mk(console.warn);function _8(){M8(`${my}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var O8=mk(console.warn);function R8(){O8(`${my}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Sp(e){return V.str(e)&&(e[0]=="#"||/\d/.test(e)||!fy()&&bp.test(e)||e in(Oi||{}))}var gy=fy()?b.useEffect:b.useLayoutEffect,A8=()=>{const e=b.useRef(!1);return gy(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function gk(){const e=b.useState()[1],t=A8();return()=>{t.current&&e(Math.random())}}function I8(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&L8(t,o.inputs)||(o={inputs:t,result:e()}):o=n,b.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function L8(e,t){if(e.length!==t.length)return!1;for(let n=0;nb.useEffect(e,$8),$8=[];function pb(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Yl=Symbol.for("Animated:node"),j8=e=>!!e&&e[Yl]===e,Yn=e=>e&&e[Yl],vy=(e,t)=>r8(e,Yl,t),Cp=e=>e&&e[Yl]&&e[Yl].getPayload(),yk=class{constructor(){vy(this,this)}getPayload(){return this.payload||[]}},Fu=class extends yk{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,V.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Fu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return V.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,V.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Xl=class extends Fu{constructor(e){super(0),this._string=null,this._toString=Gl({output:[e,e]})}static create(e){return new Xl(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(V.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Gl({output:[this.getValue(),e]})),this._value=0,super.reset()}},Kd={dependencies:null},Ep=class extends yk{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return dr(this.source,(n,r)=>{j8(n)?t[r]=n.getValue(e):bn(n)?t[r]=Nt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&he(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return dr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Kd.dependencies&&bn(e)&&Kd.dependencies.add(e);const t=Cp(e);t&&he(t,n=>this.add(n))}},xk=class extends Ep{constructor(e){super(e)}static create(e){return new xk(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(D8)),!0)}};function D8(e){return(Sp(e)?Xl:Fu).create(e)}function Bg(e){const t=Yn(e);return t?t.constructor:V.arr(e)?xk:Sp(e)?Xl:Fu}var hb=(e,t)=>{const n=!V.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const o=b.useRef(null),s=n&&b.useCallback(h=>{o.current=z8(i,h)},[i]),[a,l]=N8(r,t),u=gk(),c=()=>{const h=o.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,a.getValue(!0)):!1)===!1&&u()},d=new F8(c,l),f=b.useRef();gy(()=>(f.current=d,he(l,h=>ga(h,d)),()=>{f.current&&(he(f.current.deps,h=>Ql(h,f.current)),te.cancel(f.current.update))})),b.useEffect(c,[]),vk(()=>()=>{const h=f.current;he(h.deps,m=>Ql(m,h))});const p=t.getComponentProps(a.getValue());return b.createElement(e,{...p,ref:s})})},F8=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&te.write(this.update)}};function N8(e,t){const n=new Set;return Kd.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ep(e),Kd.dependencies=null,[e,n]}function z8(e,t){return e&&(V.fun(e)?e(t):e.current=t),t}var mb=Symbol.for("AnimatedComponent"),V8=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Ep(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=s=>{const a=gb(s)||"Anonymous";return V.str(s)?s=o[s]||(o[s]=hb(s,i)):s=s[mb]||(s[mb]=hb(s,i)),s.displayName=`Animated(${a})`,s};return dr(e,(s,a)=>{V.arr(e)&&(a=gb(s)),o[a]=o(s)}),{animated:o}},gb=e=>V.str(e)?e:e&&V.str(e.displayName)?e.displayName:V.fun(e)&&e.name||null;function oo(e,...t){return V.fun(e)?e(...t):e}var fl=(e,t)=>e===!0||!!(t&&e&&(V.fun(e)?e(t):tn(e).includes(t))),wk=(e,t)=>V.obj(e)?t&&e[t]:e,bk=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,B8=e=>e,yy=(e,t=B8)=>{let n=U8;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);V.und(o)||(r[i]=o)}return r},U8=["config","onProps","onStart","onChange","onPause","onResume","onRest"],W8={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function H8(e){const t={};let n=0;if(dr(e,(r,i)=>{W8[i]||(t[i]=r,n++)}),n)return t}function Sk(e){const t=H8(e);if(t){const n={to:t};return dr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Zl(e){return e=Nt(e),V.arr(e)?e.map(Zl):Sp(e)?Gn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function G8(e){for(const t in e)return!0;return!1}function Ug(e){return V.fun(e)||V.arr(e)&&V.obj(e[0])}function q8(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function K8(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Q8={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Wg={...Q8.default,mass:1,damping:1,easing:b8.linear,clamp:!1},Y8=class{constructor(){this.velocity=0,Object.assign(this,Wg)}};function X8(e,t,n){n&&(n={...n},vb(n,t),t={...n,...t}),vb(e,t),Object.assign(e,t);for(const s in Wg)e[s]==null&&(e[s]=Wg[s]);let{frequency:r,damping:i}=e;const{mass:o}=e;return V.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function vb(e,t){if(!V.und(t.decay))e.duration=void 0;else{const n=!V.und(t.tension)||!V.und(t.friction);(n||!V.und(t.frequency)||!V.und(t.damping)||!V.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var yb=[],Z8=class{constructor(){this.changed=!1,this.values=yb,this.toValues=null,this.fromValues=yb,this.config=new Y8,this.immediate=!1}};function Ck(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,a)=>{let l,u,c=fl(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{V.und(n.pause)||(i.paused=fl(n.pause,t));let h=r==null?void 0:r.pause;h!==!0&&(h=i.paused||fl(h,t)),l=oo(n.delay||0,t),h?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-te.now()}function f(){l>0&&!Gn.skipAnimation?(i.delayed=!0,u=te.setTimeout(p,l),i.pauseQueue.add(d),i.timeouts.add(u)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},s)}catch(h){a(h)}}})}var xy=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ms(e.get()):t.every(n=>n.noop)?Ek(e.get()):Vn(e.get(),t.every(n=>n.finished)),Ek=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Vn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ms=e=>({value:e,cancelled:!0,finished:!1});function Pk(e,t,n,r){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:a,promise:l}=n;return!o&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=yy(t,(x,g)=>g==="onRest"?void 0:x);let c,d;const f=new Promise((x,g)=>(c=x,d=g)),p=x=>{const g=i<=(n.cancelId||0)&&Ms(r)||i!==n.asyncId&&Vn(r,!1);if(g)throw x.result=g,d(x),x},h=(x,g)=>{const y=new xb,v=new wb;return(async()=>{if(Gn.skipAnimation)throw Jl(n),v.result=Vn(r,!1),d(v),v;p(y);const w=V.obj(x)?{...x}:{...g,to:x};w.parentId=i,dr(u,(E,T)=>{V.und(w[T])&&(w[T]=E)});const C=await r.start(w);return p(y),n.paused&&await new Promise(E=>{n.resumeQueue.add(E)}),C})()};let m;if(Gn.skipAnimation)return Jl(n),Vn(r,!1);try{let x;V.arr(e)?x=(async g=>{for(const y of g)await h(y)})(e):x=Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([x.then(c),f]),m=Vn(r.get(),!0,!1)}catch(x){if(x instanceof xb)m=x.result;else if(x instanceof wb)m=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?a:void 0,n.promise=o?l:void 0)}return V.fun(s)&&te.batchedUpdates(()=>{s(m,r,r.item)}),m})()}function Jl(e,t){cl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xb=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},wb=class extends Error{constructor(){super("SkipAnimationSignal")}},Hg=e=>e instanceof wy,J8=1,wy=class extends dk{constructor(){super(...arguments),this.id=J8++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Yn(this);return e&&e.getValue()}to(...e){return Gn.to(this,e)}interpolate(...e){return _8(),Gn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Kl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||xp.sort(this),Kl(this,{type:"priority",parent:this,priority:e})}},Io=Symbol.for("SpringPhase"),Tk=1,Gg=2,qg=4,Fh=e=>(e[Io]&Tk)>0,Qr=e=>(e[Io]&Gg)>0,La=e=>(e[Io]&qg)>0,bb=(e,t)=>t?e[Io]|=Gg|Tk:e[Io]&=~Gg,Sb=(e,t)=>t?e[Io]|=qg:e[Io]&=~qg,e9=class extends wy{constructor(e,t){if(super(),this.animation=new Z8,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!V.und(e)||!V.und(t)){const n=V.obj(e)?{...e}:{...t,from:e};V.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Qr(this)||this._state.asyncTo)||La(this)}get goal(){return Nt(this.animation.to)}get velocity(){const e=Yn(this);return e instanceof Fu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Fh(this)}get isAnimating(){return Qr(this)}get isPaused(){return La(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=Cp(r.to);!s&&bn(r.to)&&(i=tn(Nt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Xl?1:s?s[c].lastPosition:i[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,o.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const m=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=V.arr(o.velocity)?o.velocity[c]:o.velocity;let g;const y=o.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(V.und(o.duration))if(o.decay){const v=o.decay===!0?.998:o.decay,w=Math.exp(-(1-v)*h);p=m+x/(1-v)*(1-w),f=Math.abs(u.lastPosition-p)<=y,g=x*w}else{g=u.lastVelocity==null?x:u.lastVelocity;const v=o.restVelocity||y/10,w=o.clamp?0:o.bounce,C=!V.und(w),E=m==d?u.v0>0:mv,!(!T&&(f=Math.abs(d-p)<=y,f)));++A){C&&(P=p==d||p>d==E,P&&(g=-g*w,p=d));const I=-o.tension*1e-6*(p-d),$=-o.friction*.001*g,D=(I+$)/o.mass;g=g+D*M,p=p+g*M}}else{let v=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,u.durationProgress>0&&(u.elapsedTime=o.duration*u.durationProgress,h=u.elapsedTime+=e)),v=(o.progress||0)+h/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),p=m+o.easing(v)*(d-m),g=(p-u.lastPosition)/e,f=v==1}u.lastVelocity=g,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,o.round)&&(n=!0)});const a=Yn(this),l=a.getValue();if(t){const u=Nt(r.to);(l!==u||n)&&!o.decay?(a.setValue(u),this._onChange(u)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return te.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Qr(this)){const{to:e,config:t}=this.animation;te.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return V.und(e)?(n=this.queue||[],this.queue=[]):n=[V.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>xy(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Jl(this._state,e&&this._lastCallId),te.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=V.obj(n)?n[t]:n,(n==null||Ug(n))&&(n=void 0),r=V.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Fh(this)||(e.reverse&&([n,r]=[r,n]),r=Nt(r),V.und(r)?Yn(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yy(e,(s,a)=>/^on/.test(a)?wk(s,n):s)),Eb(this,e,"onProps"),ja(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Ck(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{La(this)||(Sb(this,!0),qa(o.pauseQueue),ja(this,"onPause",Vn(this,$a(this,this.animation.to)),this))},resume:()=>{La(this)&&(Sb(this,!1),Qr(this)&&this._resume(),qa(o.resumeQueue),ja(this,"onResume",Vn(this,$a(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=kk(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ms(this));const r=!V.und(e.to),i=!V.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ms(this));const{key:o,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||V.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!yr(d,u);f&&(a.from=d),d=Nt(d);const p=!yr(c,l);p&&this._focus(c);const h=Ug(t.to),{config:m}=a,{decay:x,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!h&&X8(m,oo(t.config,o),t.config!==s.config?oo(s.config,o):void 0);let y=Yn(this);if(!y||V.und(c))return n(Vn(this,!0));const v=V.und(t.reset)?i&&!t.default:!V.und(d)&&fl(t.reset,o),w=v?d:this.get(),C=Zl(c),E=V.num(C)||V.arr(C)||Sp(C),T=!h&&(!E||fl(s.immediate||t.immediate,o));if(p){const A=Bg(c);if(A!==y.constructor)if(T)y=this._set(C);else throw Error(`Cannot animate between ${y.constructor.name} and ${A.name}, as the "to" prop suggests`)}const P=y.constructor;let M=bn(c),k=!1;if(!M){const A=v||!Fh(this)&&f;(p||A)&&(k=yr(Zl(w),C),M=!k),(!yr(a.immediate,T)&&!T||!yr(m.decay,x)||!yr(m.velocity,g))&&(M=!0)}if(k&&Qr(this)&&(a.changed&&!v?M=!0:M||this._stop(l)),!h&&((M||bn(l))&&(a.values=y.getPayload(),a.toValues=bn(c)?null:P==Xl?[1]:tn(C)),a.immediate!=T&&(a.immediate=T,!T&&!v&&this._set(l)),M)){const{onRest:A}=a;he(n9,$=>Eb(this,t,$));const I=Vn(this,$a(this,l));qa(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&te.batchedUpdates(()=>{var $;a.changed=!v,A==null||A(I,this),v?oo(s.onRest,I):($=a.onStart)==null||$.call(a,I,this)})}v&&this._set(w),h?n(Pk(t.to,t,this._state,this)):M?this._start():Qr(this)&&!p?this._pendingCalls.add(n):n(Ek(w))}_focus(e){const t=this.animation;e!==t.to&&(db(this)&&this._detach(),t.to=e,db(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;bn(t)&&(ga(t,this),Hg(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;bn(e)&&Ql(e,this)}_set(e,t=!0){const n=Nt(e);if(!V.und(n)){const r=Yn(this);if(!r||!yr(n,r.getValue())){const i=Bg(n);!r||r.constructor!=i?vy(this,i.create(n)):r.setValue(n),r&&te.batchedUpdates(()=>{this._onChange(n,t)})}}return Yn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ja(this,"onStart",Vn(this,$a(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),oo(this.animation.onChange,e,this)),oo(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Yn(this).reset(Nt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Qr(this)||(bb(this,!0),La(this)||this._resume())}_resume(){Gn.skipAnimation?this.finish():xp.start(this)}_stop(e,t){if(Qr(this)){bb(this,!1);const n=this.animation;he(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Kl(this,{type:"idle",parent:this});const r=t?Ms(this.get()):Vn(this.get(),$a(this,e??n.to));qa(this._pendingCalls,r),n.changed&&(n.changed=!1,ja(this,"onRest",r,this))}}};function $a(e,t){const n=Zl(t),r=Zl(e.get());return yr(r,n)}function kk(e,t=e.loop,n=e.to){const r=oo(t);if(r){const i=r!==!0&&Sk(r),o=(i||e).reverse,s=!i||i.reset;return eu({...e,loop:t,default:!1,pause:void 0,to:!o||Ug(n)?n:void 0,from:s?e.from:void 0,reset:s,...i})}}function eu(e){const{to:t,from:n}=e=Sk(e),r=new Set;return V.obj(t)&&Cb(t,r),V.obj(n)&&Cb(n,r),e.keys=r.size?Array.from(r):null,e}function t9(e){const t=eu(e);return V.und(t.default)&&(t.default=yy(t)),t}function Cb(e,t){dr(e,(n,r)=>n!=null&&t.add(r))}var n9=["onStart","onRest","onChange","onPause","onResume"];function Eb(e,t,n){e.animation[n]=t[n]!==bk(t,n)?wk(t[n],e.key):void 0}function ja(e,t,...n){var r,i,o,s;(i=(r=e.animation)[t])==null||i.call(r,...n),(s=(o=e.defaultProps)[t])==null||s.call(o,...n)}var r9=["onStart","onChange","onRest"],i9=1,o9=class{constructor(e,t){this.id=i9++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];V.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(eu(e)),this}start(e){let{queue:t}=this;return e?t=tn(e).map(eu):this.queue=[],this._flush?this._flush(this,t):(Ak(this,t),Kg(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;he(tn(t),r=>n[r].stop(!!e))}else Jl(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(V.und(e))this.start({pause:!0});else{const t=this.springs;he(tn(e),n=>t[n].pause())}return this}resume(e){if(V.und(e))this.start({pause:!1});else{const t=this.springs;he(tn(e),n=>t[n].resume())}return this}each(e){dr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,cl(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&t.size&&cl(t,([a,l])=>{l.value=s,a(l,this,this._item)}),o&&(this._started=!1,cl(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;te.onFrame(this._onFrame)}};function Kg(e,t){return Promise.all(t.map(n=>Mk(e,n))).then(n=>xy(e,n))}async function Mk(e,t,n){const{keys:r,to:i,from:o,loop:s,onRest:a,onResolve:l}=t,u=V.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const c=V.arr(i)||V.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):he(r9,m=>{const x=t[m];if(V.fun(x)){const g=e._events[m];t[m]=({finished:y,cancelled:v})=>{const w=g.get(x);w?(y||(w.finished=!1),v&&(w.cancelled=!0)):g.set(x,{value:null,finished:y||!1,cancelled:v||!1})},u&&(u[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,qa(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),p=t.cancel===!0||bk(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push(Ck(++e._lastAsyncId,{props:t,state:d,actions:{pause:zg,resume:zg,start(m,x){p?(Jl(d,e._lastAsyncId),x(Ms(e))):(m.onRest=a,x(Pk(c,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const h=xy(e,await Promise.all(f));if(s&&h.finished&&!(n&&h.noop)){const m=kk(t,s,i);if(m)return Ak(e,[m]),Mk(e,m,!0)}return l&&te.batchedUpdates(()=>l(h,e,e.item)),h}function Pb(e,t){const n={...e.springs};return t&&he(tn(t),r=>{V.und(r.keys)&&(r=eu(r)),V.obj(r.to)||(r={...r,to:void 0}),Rk(n,r,i=>Ok(i))}),_k(e,n),n}function _k(e,t){dr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ga(n,e))})}function Ok(e,t){const n=new e9;return n.key=e,t&&ga(n,t),n}function Rk(e,t,n){t.keys&&he(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Ak(e,t){he(t,n=>{Rk(e.springs,n,r=>Ok(r,e))})}var Pp=({children:e,...t})=>{const n=b.useContext(Qd),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=I8(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=Qd;return b.createElement(o,{value:t},e)},Qd=s9(Pp,{});Pp.Provider=Qd.Provider;Pp.Consumer=Qd.Consumer;function s9(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var a9=()=>{const e=[],t=function(r){R8();const i=[];return he(e,(o,s)=>{if(V.und(r))i.push(o.start());else{const a=n(r,o,s);a&&i.push(o.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return he(e,r=>r.pause(...arguments)),this},t.resume=function(){return he(e,r=>r.resume(...arguments)),this},t.set=function(r){he(e,(i,o)=>{const s=V.fun(r)?r(o,i):r;s&&i.set(s)})},t.start=function(r){const i=[];return he(e,(o,s)=>{if(V.und(r))i.push(o.start());else{const a=this._getProps(r,o,s);a&&i.push(o.start(a))}}),i},t.stop=function(){return he(e,r=>r.stop(...arguments)),this},t.update=function(r){return he(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return V.fun(r)?r(o,i):r};return t._getProps=n,t};function l9(e,t,n){const r=V.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?a9():void 0,[]),o=b.useRef(0),s=gk(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,y){const v=Pb(g,y);return o.current>0&&!a.queue.length&&!Object.keys(v).some(C=>!g.springs[C])?Kg(g,y):new Promise(C=>{_k(g,v),a.queue.push(()=>{C(Kg(g,y))}),s()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=pb(e)||0;b.useMemo(()=>{he(l.current.slice(e,c),g=>{q8(g,i),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,y){for(let v=g;vPb(g,u[y])),p=b.useContext(Pp),h=pb(p),m=p!==h&&G8(p);gy(()=>{o.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],he(g,y=>y())),he(l.current,(y,v)=>{i==null||i.add(y),m&&y.start({default:p});const w=u[v];w&&(K8(y,w.ref),y.ref?y.queue.push(w):y.start(w))})}),vk(()=>()=>{he(a.ctrls,g=>g.stop(!0))});const x=f.map(g=>({...g}));return i?[x,i]:x}function u9(e,t){const n=V.fun(e),[[r],i]=l9(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}var c9=class extends wy{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Gl(...t);const n=this._get(),r=Bg(n);vy(this,r.create(n))}advance(e){const t=this._get(),n=this.get();yr(t,n)||(Yn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Tb(this._active)&&Nh(this)}_get(){const e=V.arr(this.source)?this.source.map(Nt):tn(Nt(this.source));return this.calc(...e)}_start(){this.idle&&!Tb(this._active)&&(this.idle=!1,he(Cp(this),e=>{e.done=!1}),Gn.skipAnimation?(te.batchedUpdates(()=>this.advance()),Nh(this)):xp.start(this))}_attach(){let e=1;he(tn(this.source),t=>{bn(t)&&ga(t,this),Hg(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){he(tn(this.source),e=>{bn(e)&&Ql(e,this)}),this._active.clear(),Nh(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=tn(this.source).reduce((t,n)=>Math.max(t,(Hg(n)?n.priority:0)+1),0))}};function d9(e){return e.idle!==!1}function Tb(e){return!e.size||Array.from(e).every(d9)}function Nh(e){e.idle||(e.idle=!0,he(Cp(e),t=>{t.done=!0}),Kl(e,{type:"idle",parent:e}))}Gn.assign({createStringInterpolator:hk,to:(e,t)=>new c9(e,t)});var Ik=/^--/;function f9(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ik.test(e)&&!(pl.hasOwnProperty(e)&&pl[e])?t+"px":(""+t).trim()}var kb={};function p9(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:o,scrollLeft:s,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:kb[d]||(kb[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const f=f9(d,r[d]);Ik.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var pl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h9=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),m9=["Webkit","Ms","Moz","O"];pl=Object.keys(pl).reduce((e,t)=>(m9.forEach(n=>e[h9(n,t)]=e[t]),e),pl);var g9=/^(matrix|translate|scale|rotate|skew)/,v9=/^(translate)/,y9=/^(rotate|skew)/,zh=(e,t)=>V.num(e)&&e!==0?e+t:e,qc=(e,t)=>V.arr(e)?e.every(n=>qc(n,t)):V.num(e)?e===t:parseFloat(e)===t,x9=class extends Ep{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(s=>[`translate3d(${s.map(a=>zh(a,"px")).join(",")})`,qc(s,0)])),dr(r,(s,a)=>{if(a==="transform")i.push([s||""]),o.push(l=>[l,l===""]);else if(g9.test(a)){if(delete r[a],V.und(s))return;const l=v9.test(a)?"px":y9.test(a)?"deg":"";i.push(tn(s)),o.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${zh(f,l)})`,qc(f,0)]:u=>[`${a}(${u.map(c=>zh(c,l)).join(",")})`,qc(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new w9(i,o)),super(r)}},w9=class extends dk{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return he(this.inputs,(n,r)=>{const i=Nt(n[0]),[o,s]=this.transforms[r](V.arr(i)?i:n.map(Nt));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&he(this.inputs,t=>he(t,n=>bn(n)&&ga(n,this)))}observerRemoved(e){e==0&&he(this.inputs,t=>he(t,n=>bn(n)&&Ql(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Kl(this,e)}},b9=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Gn.assign({batchedUpdates:kf.unstable_batchedUpdates,createStringInterpolator:hk,colors:l8});var S9=V8(b9,{applyAnimatedValues:p9,createAnimatedStyle:e=>new x9(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),C9=S9.animated;const E9=C9(ae);function Vh({end:e,title:t,prefix:n,start:r,minWidth:i,alignSelf:o}){const{number:s}=u9({from:{number:r||0},number:e,config:{mass:1,tension:20,friction:10}});return S.jsx(Q,{sx:{display:"flex",justifyContent:"center",flexDirection:"column",flex:1,minWidth:i},children:S.jsxs(Q,{sx:{display:"flex",flex:1,alignItems:"center",flexDirection:"column"},children:[S.jsx(Q,{sx:{display:"flex",flex:1,alignItems:"flex-start",alignSelf:o||"center"},children:S.jsxs(Q,{sx:{flexDirection:"row",alignItems:"center",alignSelf:"center",justifyContent:"center",display:"flex",flex:1},children:[S.jsx(ae,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:n}),S.jsx(E9,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:s.to(a=>Math.floor(a).toLocaleString("en-US"))}),S.jsx(ae,{sx:{fontSize:"calc(40px + 2vw)",fontWeight:"bold"},children:"+"})]})}),S.jsx(ae,{sx:{fontSize:"calc(15px + 0.5vw)",alignSelf:o||"center"},children:t})]})})}var Nu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ia=typeof window>"u"||"Deno"in globalThis;function gn(){}function P9(e,t){return typeof e=="function"?e(t):e}function Qg(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mb(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==by(s,t.options))return!1}else if(!nu(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function _b(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(tu(t.options.mutationKey)!==tu(o))return!1}else if(!nu(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function by(e,t){return((t==null?void 0:t.queryKeyHashFn)||tu)(e)}function tu(e){return JSON.stringify(e,(t,n)=>Xg(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function nu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!nu(e[n],t[n])):!1}function $k(e,t){if(e===t)return e;const n=Ob(e)&&Ob(t);if(n||Xg(e)&&Xg(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function Zg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?$k(e,t):t}function k9(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function M9(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Sy=Symbol(),ho,li,Os,dC,_9=(dC=class extends Nu{constructor(){super();X(this,ho,void 0);X(this,li,void 0);X(this,Os,void 0);G(this,Os,t=>{if(!ia&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,li)||this.setEventListener(_(this,Os))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,li))==null||t.call(this),G(this,li,void 0))}setEventListener(t){var n;G(this,Os,t),(n=_(this,li))==null||n.call(this),G(this,li,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_(this,ho)!==t&&(G(this,ho,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,ho)=="boolean"?_(this,ho):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ho=new WeakMap,li=new WeakMap,Os=new WeakMap,dC),Cy=new _9,Rs,ui,As,fC,O9=(fC=class extends Nu{constructor(){super();X(this,Rs,!0);X(this,ui,void 0);X(this,As,void 0);G(this,As,t=>{if(!ia&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_(this,ui)||this.setEventListener(_(this,As))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,ui))==null||t.call(this),G(this,ui,void 0))}setEventListener(t){var n;G(this,As,t),(n=_(this,ui))==null||n.call(this),G(this,ui,t(this.setOnline.bind(this)))}setOnline(t){_(this,Rs)!==t&&(G(this,Rs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _(this,Rs)}},Rs=new WeakMap,ui=new WeakMap,As=new WeakMap,fC),Yd=new O9;function R9(e){return Math.min(1e3*2**e,3e4)}function Ey(e){return(e??"online")==="online"?Yd.isOnline():!0}var jk=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Bh(e){return e instanceof jk}function Dk(e){let t=!1,n=0,r=!1,i,o,s;const a=new Promise((x,g)=>{o=x,s=g}),l=x=>{var g;r||(p(new jk(x)),(g=e.abort)==null||g.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Cy.isFocused()||e.networkMode!=="always"&&!Yd.isOnline(),f=x=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,x),i==null||i(),o(x))},p=x=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,x),i==null||i(),s(x))},h=()=>new Promise(x=>{var g;i=y=>{const v=r||!d();return v&&x(y),v},(g=e.onPause)==null||g.call(e)}).then(()=>{var x;i=void 0,r||(x=e.onContinue)==null||x.call(e)}),m=()=>{if(r)return;let x;try{x=e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(f).catch(g=>{var E;if(r)return;const y=e.retry??(ia?0:3),v=e.retryDelay??R9,w=typeof v=="function"?v(n,g):v,C=y===!0||typeof y=="number"&&n{if(d())return h()}).then(()=>{t?p(g):m()})})};return Ey(e.networkMode)?m():h().then(m),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function A9(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=f=>setTimeout(f,0);const o=f=>{i=f},s=f=>{let p;t++;try{p=f()}finally{t--,t||u()}return p},a=f=>{t?e.push(f):i(()=>{n(f)})},l=f=>(...p)=>{a(()=>{f(...p)})},u=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(p=>{n(p)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:o}}var xt=A9(),mo,pC,Fk=(pC=class{constructor(){X(this,mo,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qg(this.gcTime)&&G(this,mo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ia?1/0:5*60*1e3))}clearGcTimeout(){_(this,mo)&&(clearTimeout(_(this,mo)),G(this,mo,void 0))}},mo=new WeakMap,pC),Is,Ls,pn,At,ct,au,go,Fn,gr,hC,I9=(hC=class extends Fk{constructor(t){super();X(this,Fn);X(this,Is,void 0);X(this,Ls,void 0);X(this,pn,void 0);X(this,At,void 0);X(this,ct,void 0);X(this,au,void 0);X(this,go,void 0);G(this,go,!1),G(this,au,t.defaultOptions),this.setOptions(t.options),G(this,ct,[]),G(this,pn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,Is,t.state||L9(this.options)),this.state=_(this,Is),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={..._(this,au),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!_(this,ct).length&&this.state.fetchStatus==="idle"&&_(this,pn).remove(this)}setData(t,n){const r=Zg(this.state.data,t,this.options);return pe(this,Fn,gr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,Fn,gr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=_(this,At))==null?void 0:r.promise;return(i=_(this,At))==null||i.cancel(t),n?n.then(gn).catch(gn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,Is))}isActive(){return _(this,ct).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?_(this,ct).some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Lk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=_(this,ct).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,At))==null||n.continue()}onOnline(){var n;const t=_(this,ct).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,At))==null||n.continue()}addObserver(t){_(this,ct).includes(t)||(_(this,ct).push(t),this.clearGcTimeout(),_(this,pn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){_(this,ct).includes(t)&&(G(this,ct,_(this,ct).filter(n=>n!==t)),_(this,ct).length||(_(this,At)&&(_(this,go)?_(this,At).cancel({revert:!0}):_(this,At).cancelRetry()),this.scheduleGc()),_(this,pn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return _(this,ct).length}invalidate(){this.state.isInvalidated||pe(this,Fn,gr).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,At))return _(this,At).continueRetry(),_(this,At).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=_(this,ct).find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(G(this,go,!0),r.signal)})};o(i);const s=()=>!this.options.queryFn||this.options.queryFn===Sy?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(G(this,go,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(a),(u=this.options.behavior)==null||u.onFetch(a,this),G(this,Ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&pe(this,Fn,gr).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,h,m,x;Bh(f)&&f.silent||pe(this,Fn,gr).call(this,{type:"error",error:f}),Bh(f)||((h=(p=_(this,pn).config).onError)==null||h.call(p,f,this),(x=(m=_(this,pn).config).onSettled)==null||x.call(m,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return G(this,At,Dk({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,m,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(h=(p=_(this,pn).config).onSuccess)==null||h.call(p,f,this),(x=(m=_(this,pn).config).onSettled)==null||x.call(m,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(f,p)=>{pe(this,Fn,gr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pe(this,Fn,gr).call(this,{type:"pause"})},onContinue:()=>{pe(this,Fn,gr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),_(this,At).promise}},Is=new WeakMap,Ls=new WeakMap,pn=new WeakMap,At=new WeakMap,ct=new WeakMap,au=new WeakMap,go=new WeakMap,Fn=new WeakSet,gr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Nk(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Bh(i)&&i.revert&&_(this,Ls)?{..._(this,Ls),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xt.batch(()=>{_(this,ct).forEach(r=>{r.onQueryUpdate()}),_(this,pn).notify({query:this,type:"updated",action:t})})},hC);function Nk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ey(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function L9(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Zn,mC,$9=(mC=class extends Nu{constructor(t={}){super();X(this,Zn,void 0);this.config=t,G(this,Zn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??by(i,n);let s=this.get(o);return s||(s=new I9({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){_(this,Zn).has(t.queryHash)||(_(this,Zn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,Zn).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,Zn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,Zn).get(t)}getAll(){return[..._(this,Zn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Mb(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Mb(t,r)):n}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zn=new WeakMap,mC),Jn,lu,Yt,$s,er,Jr,gC,j9=(gC=class extends Fk{constructor(t){super();X(this,er);X(this,Jn,void 0);X(this,lu,void 0);X(this,Yt,void 0);X(this,$s,void 0);this.mutationId=t.mutationId,G(this,lu,t.defaultOptions),G(this,Yt,t.mutationCache),G(this,Jn,[]),this.state=t.state||D9(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={..._(this,lu),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,Jn).includes(t)||(_(this,Jn).push(t),this.clearGcTimeout(),_(this,Yt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Jn,_(this,Jn).filter(n=>n!==t)),this.scheduleGc(),_(this,Yt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,Jn).length||(this.state.status==="pending"?this.scheduleGc():_(this,Yt).remove(this))}continue(){var t;return((t=_(this,$s))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,u,c,d,f,p,h,m,x,g,y,v,w,C,E,T;const n=()=>(G(this,$s,Dk({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,M)=>{pe(this,er,Jr).call(this,{type:"failed",failureCount:P,error:M})},onPause:()=>{pe(this,er,Jr).call(this,{type:"pause"})},onContinue:()=>{pe(this,er,Jr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),_(this,$s).promise),r=this.state.status==="pending";try{if(!r){pe(this,er,Jr).call(this,{type:"pending",variables:t}),await((o=(i=_(this,Yt).config).onMutate)==null?void 0:o.call(i,t,this));const M=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));M!==this.state.context&&pe(this,er,Jr).call(this,{type:"pending",context:M,variables:t})}const P=await n();return await((u=(l=_(this,Yt).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,P,t,this.state.context)),await((p=(f=_(this,Yt).config).onSettled)==null?void 0:p.call(f,P,null,this.state.variables,this.state.context,this)),await((m=(h=this.options).onSettled)==null?void 0:m.call(h,P,null,t,this.state.context)),pe(this,er,Jr).call(this,{type:"success",data:P}),P}catch(P){try{throw await((g=(x=_(this,Yt).config).onError)==null?void 0:g.call(x,P,t,this.state.context,this)),await((v=(y=this.options).onError)==null?void 0:v.call(y,P,t,this.state.context)),await((C=(w=_(this,Yt).config).onSettled)==null?void 0:C.call(w,void 0,P,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,P,t,this.state.context)),P}finally{pe(this,er,Jr).call(this,{type:"error",error:P})}}}},Jn=new WeakMap,lu=new WeakMap,Yt=new WeakMap,$s=new WeakMap,er=new WeakSet,Jr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ey(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xt.batch(()=>{_(this,Jn).forEach(r=>{r.onMutationUpdate(t)}),_(this,Yt).notify({mutation:this,type:"updated",action:t})})},gC);function D9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hn,uu,vo,vC,F9=(vC=class extends Nu{constructor(t={}){super();X(this,hn,void 0);X(this,uu,void 0);X(this,vo,void 0);this.config=t,G(this,hn,[]),G(this,uu,0)}build(t,n,r){const i=new j9({mutationCache:this,mutationId:++Hu(this,uu)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){_(this,hn).push(t),this.notify({type:"added",mutation:t})}remove(t){G(this,hn,_(this,hn).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){xt.batch(()=>{_(this,hn).forEach(t=>{this.remove(t)})})}getAll(){return _(this,hn)}find(t){const n={exact:!0,...t};return _(this,hn).find(r=>_b(n,r))}findAll(t={}){return _(this,hn).filter(n=>_b(t,n))}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return G(this,vo,(_(this,vo)??Promise.resolve()).then(()=>{const t=_(this,hn).filter(n=>n.state.isPaused);return xt.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(gn)),Promise.resolve()))}).then(()=>{G(this,vo,void 0)})),_(this,vo)}},hn=new WeakMap,uu=new WeakMap,vo=new WeakMap,vC);function N9(e){return{onFetch:(t,n)=>{const r=async()=>{var h,m,x,g,y;const i=t.options,o=(x=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:x.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],a=((y=t.state.data)==null?void 0:y.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn&&t.options.queryFn!==Sy?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),f=async(v,w,C)=>{if(u)return Promise.reject();if(w==null&&v.pages.length)return Promise.resolve(v);const E={queryKey:t.queryKey,pageParam:w,direction:C?"backward":"forward",meta:t.options.meta};c(E);const T=await d(E),{maxPages:P}=t.options,M=C?M9:k9;return{pages:M(v.pages,T,P),pageParams:M(v.pageParams,w,P)}};let p;if(o&&s.length){const v=o==="backward",w=v?z9:Ab,C={pages:s,pageParams:a},E=w(i,C);p=await f(C,E,v)}else{p=await f(l,a[0]??i.initialPageParam);const v=e??s.length;for(let w=1;w{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function Ab(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function z9(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Be,ci,di,js,Ds,fi,Fs,Ns,yC,V9=(yC=class{constructor(e={}){X(this,Be,void 0);X(this,ci,void 0);X(this,di,void 0);X(this,js,void 0);X(this,Ds,void 0);X(this,fi,void 0);X(this,Fs,void 0);X(this,Ns,void 0);G(this,Be,e.queryCache||new $9),G(this,ci,e.mutationCache||new F9),G(this,di,e.defaultOptions||{}),G(this,js,new Map),G(this,Ds,new Map),G(this,fi,0)}mount(){Hu(this,fi)._++,_(this,fi)===1&&(G(this,Fs,Cy.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,Be).onFocus())})),G(this,Ns,Yd.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,Be).onOnline())})))}unmount(){var e,t;Hu(this,fi)._--,_(this,fi)===0&&((e=_(this,Fs))==null||e.call(this),G(this,Fs,void 0),(t=_(this,Ns))==null||t.call(this),G(this,Ns,void 0))}isFetching(e){return _(this,Be).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,ci).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,Be).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=_(this,Be).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return _(this,Be).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=_(this,Be).get(r.queryHash),o=i==null?void 0:i.state.data,s=P9(t,o);if(s!==void 0)return _(this,Be).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>_(this,Be).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,Be).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,Be);xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,Be),r={type:"active",...e};return xt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=xt.batch(()=>_(this,Be).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(gn).catch(gn)}invalidateQueries(e={},t={}){return xt.batch(()=>{if(_(this,Be).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=xt.batch(()=>_(this,Be).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(gn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(gn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,Be).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gn).catch(gn)}fetchInfiniteQuery(e){return e.behavior=N9(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gn).catch(gn)}resumePausedMutations(){return Yd.isOnline()?_(this,ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,Be)}getMutationCache(){return _(this,ci)}getDefaultOptions(){return _(this,di)}setDefaultOptions(e){G(this,di,e)}setQueryDefaults(e,t){_(this,js).set(tu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,js).values()];let n={};return t.forEach(r=>{nu(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){_(this,Ds).set(tu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,Ds).values()];let n={};return t.forEach(r=>{nu(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,di).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=by(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Sy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,di).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,Be).clear(),_(this,ci).clear()}},Be=new WeakMap,ci=new WeakMap,di=new WeakMap,js=new WeakMap,Ds=new WeakMap,fi=new WeakMap,Fs=new WeakMap,Ns=new WeakMap,yC),Ft,ke,cu,It,yo,zs,tr,du,Vs,Bs,xo,wo,pi,Us,bo,Ka,fu,Jg,pu,e0,hu,t0,mu,n0,gu,r0,vu,i0,yu,o0,cf,zk,xC,B9=(xC=class extends Nu{constructor(t,n){super();X(this,bo);X(this,fu);X(this,pu);X(this,hu);X(this,mu);X(this,gu);X(this,vu);X(this,yu);X(this,cf);X(this,Ft,void 0);X(this,ke,void 0);X(this,cu,void 0);X(this,It,void 0);X(this,yo,void 0);X(this,zs,void 0);X(this,tr,void 0);X(this,du,void 0);X(this,Vs,void 0);X(this,Bs,void 0);X(this,xo,void 0);X(this,wo,void 0);X(this,pi,void 0);X(this,Us,new Set);this.options=n,G(this,Ft,t),G(this,tr,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,ke).addObserver(this),Ib(_(this,ke),this.options)?pe(this,bo,Ka).call(this):this.updateResult(),pe(this,mu,n0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return s0(_(this,ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return s0(_(this,ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,gu,r0).call(this),pe(this,vu,i0).call(this),_(this,ke).removeObserver(this)}setOptions(t,n){const r=this.options,i=_(this,ke);if(this.options=_(this,Ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");pe(this,yu,o0).call(this),_(this,ke).setOptions(this.options),r._defaulted&&!Yg(this.options,r)&&_(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,ke),observer:this});const o=this.hasListeners();o&&Lb(_(this,ke),i,this.options,r)&&pe(this,bo,Ka).call(this),this.updateResult(n),o&&(_(this,ke)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&pe(this,fu,Jg).call(this);const s=pe(this,pu,e0).call(this);o&&(_(this,ke)!==i||this.options.enabled!==r.enabled||s!==_(this,pi))&&pe(this,hu,t0).call(this,s)}getOptimisticResult(t){const n=_(this,Ft).getQueryCache().build(_(this,Ft),t),r=this.createResult(n,t);return W9(this,r)&&(G(this,It,r),G(this,zs,this.options),G(this,yo,_(this,ke).state)),r}getCurrentResult(){return _(this,It)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){_(this,Us).add(t)}getCurrentQuery(){return _(this,ke)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_(this,Ft).defaultQueryOptions(t),r=_(this,Ft).getQueryCache().build(_(this,Ft),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,bo,Ka).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,It)))}createResult(t,n){var T;const r=_(this,ke),i=this.options,o=_(this,It),s=_(this,yo),a=_(this,zs),u=t!==r?t.state:_(this,cu),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const P=this.hasListeners(),M=!P&&Ib(t,n),k=P&&Lb(t,r,n,i);(M||k)&&(d={...d,...Nk(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:m,status:x}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===_(this,du))p=_(this,Vs);else try{G(this,du,n.select),p=n.select(d.data),p=Zg(o==null?void 0:o.data,p,n),G(this,Vs,p),G(this,tr,null)}catch(P){G(this,tr,P)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&x==="pending"){let P;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))P=o.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData((T=_(this,Bs))==null?void 0:T.state.data,_(this,Bs)):n.placeholderData,n.select&&P!==void 0)try{P=n.select(P),G(this,tr,null)}catch(M){G(this,tr,M)}P!==void 0&&(x="success",p=Zg(o==null?void 0:o.data,P,n),f=!0)}_(this,tr)&&(h=_(this,tr),p=_(this,Vs),m=Date.now(),x="error");const g=d.fetchStatus==="fetching",y=x==="pending",v=x==="error",w=y&&g,C=p!==void 0;return{status:x,fetchStatus:d.fetchStatus,isPending:y,isSuccess:x==="success",isError:v,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:v&&!C,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:v&&C,isStale:Py(t,n),refetch:this.refetch}}updateResult(t){const n=_(this,It),r=this.createResult(_(this,ke),this.options);if(G(this,yo,_(this,ke).state),G(this,zs,this.options),_(this,yo).data!==void 0&&G(this,Bs,_(this,ke)),Yg(r,n))return;G(this,It,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!_(this,Us).size)return!0;const l=new Set(a??_(this,Us));return this.options.throwOnError&&l.add("error"),Object.keys(_(this,It)).some(u=>{const c=u;return _(this,It)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),pe(this,cf,zk).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,mu,n0).call(this)}},Ft=new WeakMap,ke=new WeakMap,cu=new WeakMap,It=new WeakMap,yo=new WeakMap,zs=new WeakMap,tr=new WeakMap,du=new WeakMap,Vs=new WeakMap,Bs=new WeakMap,xo=new WeakMap,wo=new WeakMap,pi=new WeakMap,Us=new WeakMap,bo=new WeakSet,Ka=function(t){pe(this,yu,o0).call(this);let n=_(this,ke).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(gn)),n},fu=new WeakSet,Jg=function(){if(pe(this,gu,r0).call(this),ia||_(this,It).isStale||!Qg(this.options.staleTime))return;const n=Lk(_(this,It).dataUpdatedAt,this.options.staleTime)+1;G(this,xo,setTimeout(()=>{_(this,It).isStale||this.updateResult()},n))},pu=new WeakSet,e0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,ke)):this.options.refetchInterval)??!1},hu=new WeakSet,t0=function(t){pe(this,vu,i0).call(this),G(this,pi,t),!(ia||this.options.enabled===!1||!Qg(_(this,pi))||_(this,pi)===0)&&G(this,wo,setInterval(()=>{(this.options.refetchIntervalInBackground||Cy.isFocused())&&pe(this,bo,Ka).call(this)},_(this,pi)))},mu=new WeakSet,n0=function(){pe(this,fu,Jg).call(this),pe(this,hu,t0).call(this,pe(this,pu,e0).call(this))},gu=new WeakSet,r0=function(){_(this,xo)&&(clearTimeout(_(this,xo)),G(this,xo,void 0))},vu=new WeakSet,i0=function(){_(this,wo)&&(clearInterval(_(this,wo)),G(this,wo,void 0))},yu=new WeakSet,o0=function(){const t=_(this,Ft).getQueryCache().build(_(this,Ft),this.options);if(t===_(this,ke))return;const n=_(this,ke);G(this,ke,t),G(this,cu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},cf=new WeakSet,zk=function(t){xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_(this,It))}),_(this,Ft).getQueryCache().notify({query:_(this,ke),type:"observerResultsUpdated"})})},xC);function U9(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ib(e,t){return U9(e,t)||e.state.data!==void 0&&s0(e,t,t.refetchOnMount)}function s0(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Py(e,t)}return!1}function Lb(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Py(e,n)}function Py(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function W9(e,t){return!Yg(e.getCurrentResult(),t)}var Vk=b.createContext(void 0),H9=e=>{const t=b.useContext(Vk);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},G9=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(Vk.Provider,{value:e,children:t})),Bk=b.createContext(!1),q9=()=>b.useContext(Bk);Bk.Provider;function K9(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Q9=b.createContext(K9()),Y9=()=>b.useContext(Q9);function X9(e,t){return typeof e=="function"?e(...t):!!e}var Z9=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},J9=e=>{b.useEffect(()=>{e.clearReset()},[e])},eV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&X9(n,[e.error,r]),tV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},nV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,rV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function iV(e,t,n){const r=H9(n),i=q9(),o=Y9(),s=r.defaultQueryOptions(e);s._optimisticResults=i?"isRestoring":"optimistic",tV(s),Z9(s,o),J9(o);const[a]=b.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(b.useSyncExternalStore(b.useCallback(u=>{const c=i?()=>{}:a.subscribe(xt.batchCalls(u));return a.updateResult(),c},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),b.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),nV(s,l))throw rV(s,a,o);if(eV({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function Uk(e,t){return iV(e,B9,t)}async function oV(){try{return(await Do.get("/projects")).data}catch{return[{_id:"66292f8768dc79f8d04536ad",name:"Space Safety Visualizer",organization:"Amazon",description:"The Fall 2023 Amazon project was a low Earth orbit satellite visualization system. This was designed for Project Kuiper as a way to visualize satellite collision risk to non-technical stakeholders at Amazon.",members:[{memberInfo:{_id:"66292f8768dc79f8d0453673",firstName:"Samai",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/8a7fb3e66260f050539a6d8021a733635298861369c9ba60278abeb78e8c6216"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368b",firstName:"Ishan",lastName:"Revankar",profileUrl:"https://gravatar.com/avatar/66e5f9478a8c5c1090326d16f13ac2f9d56540fbc38c86e0b16061dd4d6c31d9"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045368d",firstName:"Nitish",lastName:"Vobilisetti",profileUrl:"https://gravatar.com/avatar/eb8416def562dd101a91cb9ad66731467420be6dafff0a691f33b184d796d7f5"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368f",firstName:"Neil",lastName:"Hajela",profileUrl:"https://gravatar.com/avatar/9ec79c36a878d718e93405ec8431d2f414d1e6e021376763b85ec2555418bcd2"},role:"Engineer"},{memberInfo:{_id:"66292f8768dc79f8d0453691",firstName:"Hadijat",lastName:"Oke",profileUrl:"https://gravatar.com/avatar/4e7a51f508246f5a290cd93aead661a323322a0fecc28e2ebb44714f5825a7ef"},role:"Project Manager"},{memberInfo:{_id:"66292f8768dc79f8d0453693",firstName:"Nand",lastName:"Vinchhi",profileUrl:"https://gravatar.com/avatar/5c7e99e4bd1a8bc12f56605f7ec6a09a95472ebb07dd30f4d4e1ef134655c35a"},role:"Tech Lead"}],cover:null,semester:"Fall 2023",__v:0},{_id:"66292f8768dc79f8d04536b9",name:"Pattern of Life Application",organization:"Praxis Engineering",description:`The Fall 2023 GDIT project was a "pattern of life" understanding system. This Android application collects key data metrics from users including location, application usage, and message data and coallates it to form an understanding of a user's pattern of life.`,members:[{memberInfo:{_id:"66292f8768dc79f8d0453670",firstName:"Aidan",lastName:"Melvin",profileUrl:"https://gravatar.com/avatar/5e99dcb1de10b83cd0e90620d77b046c13ff633b688f72dbb5a3c22202b2f1d7"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453695",firstName:"Mohammad",lastName:"Abd-Elmoniem",profileUrl:"https://gravatar.com/avatar/767766ff1d10a3d06a4e222b42a3ae7ff16a11bb83e25385202089a77efab30e"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453697",firstName:"Nishkal",lastName:"Hundia",profileUrl:"https://gravatar.com/avatar/bb1facd1c2182bdc9f840b9b4c396e67ea94ad2395f76a4fac43a7d43b6a437e"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d0453699",firstName:"Ojas",lastName:"Jagtap",profileUrl:"https://gravatar.com/avatar/68e78c20b977b3ff0f44d1e1f9f5a0ec6be745620062d6709fcbf8a73ff773df"},role:"Full-stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369b",firstName:"Josiah",lastName:"Lim",profileUrl:"https://gravatar.com/avatar/b277c291ff3c46b46124f62ae5f8d9fc5cd052300814f5bdbd89580759bcc027"},role:"ML Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369d",firstName:"Om",lastName:"Duggineni",profileUrl:"https://gravatar.com/avatar/00b197895f49ed34677306f551bddceaaa7c65756a238e2aee72b6ef95fd8525"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045369f",firstName:"Dev",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/fb0bc07ce80323d4513cf2b60118de6dca5dd70a9edf08d12aa2b3c4451733ab"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a1",firstName:"Ananth",lastName:"Sankaralingam",profileUrl:"https://gravatar.com/avatar/ef0cd3559a6c30fc53bebd50c1533136de0d10c69b6b7a5df1fbe607b6b19e7d"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a3",firstName:"Advik",lastName:"Sachdeva",profileUrl:"https://gravatar.com/avatar/3b4653ea5eec167a3498fce281baf6ad961c465805b7758b0d77a090a3b666eb"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d04536a5",firstName:"Rahul",lastName:"Ramasubramanian",profileUrl:"https://gravatar.com/avatar/9b42bb4f4bdb330a258afce57cee5b14b67de14c5ebbcc86814fcd270fff669c"},role:"Full-Stack Engineer"}],cover:null,semester:"Fall 2023",__v:0}]}}async function sV(e){try{return(await Do.get(`/projects/${e}`)).data}catch{return{_id:"66292f8768dc79f8d04536ad",name:"Space Safety Visualizer",organization:"Amazon",description:"The Fall 2023 Amazon project was a low Earth orbit satellite visualization system. This was designed for Project Kuiper as a way to visualize satellite collision risk to non-technical stakeholders at Amazon.",members:[{memberInfo:{_id:"66292f8768dc79f8d0453673",firstName:"Samai",lastName:"Patel",profileUrl:"https://gravatar.com/avatar/8a7fb3e66260f050539a6d8021a733635298861369c9ba60278abeb78e8c6216"},role:"Project Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368b",firstName:"Ishan",lastName:"Revankar",profileUrl:"https://gravatar.com/avatar/66e5f9478a8c5c1090326d16f13ac2f9d56540fbc38c86e0b16061dd4d6c31d9"},role:"Full-Stack Engineer"},{memberInfo:{_id:"66292f8768dc79f8d045368d",firstName:"Nitish",lastName:"Vobilisetti",profileUrl:"https://gravatar.com/avatar/eb8416def562dd101a91cb9ad66731467420be6dafff0a691f33b184d796d7f5"},role:"Tech Lead"},{memberInfo:{_id:"66292f8768dc79f8d045368f",firstName:"Neil",lastName:"Hajela",profileUrl:"https://gravatar.com/avatar/9ec79c36a878d718e93405ec8431d2f414d1e6e021376763b85ec2555418bcd2"},role:"Engineer"},{memberInfo:{_id:"66292f8768dc79f8d0453691",firstName:"Hadijat",lastName:"Oke",profileUrl:"https://gravatar.com/avatar/4e7a51f508246f5a290cd93aead661a323322a0fecc28e2ebb44714f5825a7ef"},role:"Project Manager"},{memberInfo:{_id:"66292f8768dc79f8d0453693",firstName:"Nand",lastName:"Vinchhi",profileUrl:"https://gravatar.com/avatar/5c7e99e4bd1a8bc12f56605f7ec6a09a95472ebb07dd30f4d4e1ef134655c35a"},role:"Tech Lead"}],demo:"https://www.youtube.com/embed/UFwHEMrSO-M?si=NmlpAyAtZwOLEPiE",cover:null,semester:"Fall 2023",__v:0}}}const Wk={getAll:oV,getById:sV};var Qa={},Hk={},Tp={},cs=ge&&ge.__assign||function(){return cs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(!((c=h==null?void 0:h.in)===null||c===void 0)&&c.style)&&(h.in.style.transform=function(v){return m.in.map(function(w){return $b(w,v)}).join(" ")}),m.out.length>0&&(!((d=h==null?void 0:h.out)===null||d===void 0)&&d.style)&&(h.out.style.transform=function(v){return m.out.map(function(w){return $b(w,v)}).join(" ")}),h};Tp.batch=aV;var Ri={},Fo={},Ty={},a0=ge&&ge.__assign||function(){return a0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")){if(t==="height")return jb&&Db?window.screen.height-80:window.innerHeight;if(t==="width")return jb&&Db?window.screen.width:window.innerWidth}}});ky.default=uV;var kp={};Object.defineProperty(kp,"__esModule",{value:!0});kp.SimpleInterpolation=void 0;var cV=function(e,t,n){return e*(1-n)+t*n};kp.SimpleInterpolation=cV;(function(e){var t=ge&&ge.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.computeStyle=e.SimpleInterpolation=e.environment=void 0;var n=t(Ty);e.computeStyle=n.default;var r=t(ky);e.environment=r.default;var i=kp;Object.defineProperty(e,"SimpleInterpolation",{enumerable:!0,get:function(){return i.SimpleInterpolation}})})(Fo);Object.defineProperty(Ri,"__esModule",{value:!0});Ri.FadeOut=Ri.FadeIn=Ri.Fade=void 0;var Xd=Fo,dV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{in:{style:{opacity:function(n){return(0,Xd.SimpleInterpolation)(e,t,n)}}},out:{style:{opacity:function(n){return(0,Xd.SimpleInterpolation)(t,e,n)}}}}};Ri.Fade=dV;var fV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{in:{style:{opacity:function(n){return(0,Xd.SimpleInterpolation)(e,t,n)}}}}};Ri.FadeIn=fV;var pV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=1),{out:{style:{opacity:function(n){return(0,Xd.SimpleInterpolation)(e,t,n)}}}}};Ri.FadeOut=pV;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MoveOut=Ai.MoveIn=Ai.Move=void 0;var wi=Fo,hV=function(e,t,n,r){return e===void 0&&(e=0),t===void 0&&(t=100),n===void 0&&(n=null),r===void 0&&(r=-100),{in:{style:{transform:function(i){return"translate(".concat((0,wi.SimpleInterpolation)(e,0,i),"px, ").concat((0,wi.SimpleInterpolation)(t,0,i),"px)")}}},out:{style:{transform:function(i){return"translate(".concat((0,wi.SimpleInterpolation)(0,n||e,i),"px, ").concat((0,wi.SimpleInterpolation)(0,r||t,i),"px)")}}}}};Ai.Move=hV;var mV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=100),{in:{style:{transform:function(n){return"translate(".concat((0,wi.SimpleInterpolation)(e,0,n),"px, ").concat((0,wi.SimpleInterpolation)(t,0,n),"px)")}}}}};Ai.MoveIn=mV;var gV=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=-100),{out:{style:{transform:function(n){return"translate(".concat((0,wi.SimpleInterpolation)(0,e,n),"px, ").concat((0,wi.SimpleInterpolation)(0,t,n),"px)")}}}}};Ai.MoveOut=gV;var Ii={};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.StickyOut=Ii.StickyIn=Ii.Sticky=void 0;var En=Fo,vV=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:function(){return"".concat(e*En.environment.width/100,"px")},top:function(){return"".concat(t*En.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}},out:{style:{left:function(){return"".concat(e*En.environment.width/100,"px")},top:function(){return"".concat(t*En.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}}}};Ii.Sticky=vV;var yV=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:function(){return"".concat(e*En.environment.width/100,"px")},top:function(){return"".concat(t*En.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"fixed"}},out:{style:{left:function(){return"".concat(e*En.environment.width/100,"px")},top:function(){return"".concat(t*En.environment.height/100,"px")},transform:"translate(-50%, -50%)",position:"absolute"}}}};Ii.StickyIn=yV;var xV=function(e,t){return e===void 0&&(e=50),t===void 0&&(t=50),{in:{style:{left:"".concat(e*En.environment.width/100,"px"),top:"".concat(t*En.environment.height/100,"px"),transform:"translate(-50%, -50%)",position:"absolute"}},out:{style:{left:"".concat(e*En.environment.width/100,"px"),top:"".concat(t*En.environment.height/100,"px"),transform:"translate(-50%, -50%)",position:"fixed"}}}};Ii.StickyOut=xV;var Li={};Object.defineProperty(Li,"__esModule",{value:!0});Li.ZoomOut=Li.ZoomIn=Li.Zoom=void 0;var Zd=Fo,wV=function(e,t){return e===void 0&&(e=10),t===void 0&&(t=1),{in:{style:{transform:function(n){return"scale(".concat((0,Zd.SimpleInterpolation)(e,t,n),")")}}},out:{style:{transform:function(n){return"scale(".concat((0,Zd.SimpleInterpolation)(t,e,n),")")}}}}};Li.Zoom=wV;var bV=function(e,t){return e===void 0&&(e=10),t===void 0&&(t=1),{in:{style:{transform:function(n){return"scale(".concat((0,Zd.SimpleInterpolation)(e,t,n),")")}}}}};Li.ZoomIn=bV;var SV=function(e,t){return e===void 0&&(e=1),t===void 0&&(t=10),{out:{style:{transform:function(n){return"scale(".concat((0,Zd.SimpleInterpolation)(e,t,n),")")}}}}};Li.ZoomOut=SV;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomOut=e.ZoomIn=e.Zoom=e.StickyOut=e.StickyIn=e.Sticky=e.MoveOut=e.MoveIn=e.Move=e.FadeOut=e.FadeIn=e.Fade=e.batch=void 0;var t=Tp;Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return t.batch}});var n=Ri;Object.defineProperty(e,"Fade",{enumerable:!0,get:function(){return n.Fade}}),Object.defineProperty(e,"FadeIn",{enumerable:!0,get:function(){return n.FadeIn}}),Object.defineProperty(e,"FadeOut",{enumerable:!0,get:function(){return n.FadeOut}});var r=Ai;Object.defineProperty(e,"Move",{enumerable:!0,get:function(){return r.Move}}),Object.defineProperty(e,"MoveIn",{enumerable:!0,get:function(){return r.MoveIn}}),Object.defineProperty(e,"MoveOut",{enumerable:!0,get:function(){return r.MoveOut}});var i=Ii;Object.defineProperty(e,"Sticky",{enumerable:!0,get:function(){return i.Sticky}}),Object.defineProperty(e,"StickyIn",{enumerable:!0,get:function(){return i.StickyIn}}),Object.defineProperty(e,"StickyOut",{enumerable:!0,get:function(){return i.StickyOut}});var o=Li;Object.defineProperty(e,"Zoom",{enumerable:!0,get:function(){return o.Zoom}}),Object.defineProperty(e,"ZoomIn",{enumerable:!0,get:function(){return o.ZoomIn}}),Object.defineProperty(e,"ZoomOut",{enumerable:!0,get:function(){return o.ZoomOut}})})(Hk);var My={},Mp={},_p={},Vi={},_y={};Object.defineProperty(_y,"__esModule",{value:!0});var CV={currentY:0,viewportHeight:0,totalPage:0,totalHeight:0,totalProgress:0,realPage:0,currentPage:0,currentProgress:0};_y.default=CV;var Oy={};Object.defineProperty(Oy,"__esModule",{value:!0});var EV={page:0};Oy.default=EV;var Gk=ge&&ge.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.initialScrollPage=Vi.initialScrollData=void 0;var PV=Gk(_y);Vi.initialScrollData=PV.default;var TV=Gk(Oy);Vi.initialScrollPage=TV.default;Object.defineProperty(_p,"__esModule",{value:!0});_p.ScrollDataContext=void 0;var kV=b,MV=Vi;_p.ScrollDataContext=(0,kV.createContext)(MV.initialScrollData);var Op={};Object.defineProperty(Op,"__esModule",{value:!0});Op.ScrollPageContext=void 0;var _V=b,OV=Vi;Op.ScrollPageContext=(0,_V.createContext)(OV.initialScrollPage);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollPageContext=e.ScrollDataContext=void 0;var t=_p;Object.defineProperty(e,"ScrollDataContext",{enumerable:!0,get:function(){return t.ScrollDataContext}});var n=Op;Object.defineProperty(e,"ScrollPageContext",{enumerable:!0,get:function(){return n.ScrollPageContext}})})(Mp);var ds=ge&&ge.__assign||function(){return ds=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=qV(l),l in Vb)return;Vb[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===l&&(!u||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":GV,u||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},Qh="generated",oq="pointerdown",sq="pointerup",aq="pointerleave",lq="pointerout",uq="pointermove",cq="touchstart",dq="touchend",fq="touchmove",pq="touchcancel",hq="resize",mq="visibilitychange",Iy="tsParticles - Error",fs=100,Bb=.5,qk=1e3;function gq(e){return typeof e=="boolean"}function ru(e){return typeof e=="string"}function va(e){return typeof e=="number"}function xc(e){return typeof e=="object"&&e!==null}function No(e){return Array.isArray(e)}const Xn={x:0,y:0,z:0},Ub=2,KV=1;class jn{constructor(t,n,r){if(this._updateFromAngle=(i,o)=>{this.x=Math.cos(i)*o,this.y=Math.sin(i)*o},!va(t)&&t){this.x=t.x,this.y=t.y;const i=t;this.z=i.z?i.z:Xn.z}else if(t!==void 0&&n!==void 0)this.x=t,this.y=n,this.z=r??Xn.z;else throw new Error(`${Iy} Vector3d not initialized correctly`)}static get origin(){return jn.create(Xn.x,Xn.y,Xn.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return jn.create(t.x,t.y,t.z)}static create(t,n,r){return new jn(t,n,r)}add(t){return jn.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return jn.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return jn.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**Ub+this.y**Ub}mult(t){return jn.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=0&&this.multTo(KV/t)}rotate(t){return jn.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),Xn.z)}setTo(t){this.x=t.x,this.y=t.y;const n=t;this.z=n.z?n.z:Xn.z}sub(t){return jn.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class Eo extends jn{constructor(t,n){super(t,n,Xn.z)}static get origin(){return Eo.create(Xn.x,Xn.y)}static clone(t){return Eo.create(t.x,t.y)}static create(t,n){return new Eo(t,n)}}let QV=Math.random;const l0=new Map,YV=2,XV=Math.PI*YV;function vq(e,t){l0.get(e)||l0.set(e,t)}function yq(e){return l0.get(e)??(t=>t)}function fr(){return Ly(QV(),0,1-Number.EPSILON)}function Ly(e,t,n){return Math.min(Math.max(e,t),n)}function Yh(e,t,n,r){return Math.floor((e*n+t*r)/(n+r))}function _s(e){const t=Ap(e),n=0;let r=Rp(e);return t===r&&(r=n),fr()*(t-r)+r}function pt(e){return va(e)?e:_s(e)}function Rp(e){return va(e)?e:e.min}function Ap(e){return va(e)?e:e.max}function ml(e,t){if(e===t||t===void 0&&va(e))return e;const n=Rp(e),r=Ap(e);return t!==void 0?{min:Math.min(n,t),max:Math.max(r,t)}:ml(n,r)}function Kk(e,t){const n=e.x-t.x,r=e.y-t.y,i=2;return{dx:n,dy:r,distance:Math.sqrt(n**i+r**i)}}function xq(e,t){return Kk(e,t).distance}function ZV(e){return e*Math.PI/180}function wq(e,t,n){if(va(e))return ZV(e);const r=0,i=.5,o=.25,s=i+o;switch(e){case"top":return-Math.PI*i;case"top-right":return-Math.PI*o;case"right":return r;case"bottom-right":return Math.PI*o;case"bottom":return Math.PI*i;case"bottom-left":return Math.PI*s;case"left":return Math.PI;case"top-left":return-Math.PI*s;case"inside":return Math.atan2(n.y-t.y,n.x-t.x);case"outside":return Math.atan2(t.y-n.y,t.x-n.x);default:return fr()*XV}}function bq(e){const t=Eo.origin;return t.length=1,t.angle=e,t}function Wb(e,t,n,r){return Eo.create(e.x*(n-r)/(n+r)+t.x*2*r/(n+r),e.y)}function Sq(e){var t,n;return{x:((t=e.position)==null?void 0:t.x)??fr()*e.size.width,y:((n=e.position)==null?void 0:n.y)??fr()*e.size.height}}function Qk(e){return e?e.endsWith("%")?parseFloat(e)/fs:parseFloat(e):1}const JV={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function e7(){return JV}function Hb(e){const t={bounced:!1},{pSide:n,pOtherSide:r,rectSide:i,rectOtherSide:o,velocity:s,factor:a}=e,l=.5,u=0;return r.mino.max||r.maxo.max||(n.max>=i.min&&n.max<=(i.max+i.min)*l&&s>u||n.min<=i.max&&n.min>(i.max+i.min)*l&&se.matches(r));return No(n)?n.some(r=>r):n}function Ip(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function n7(){return!Ip()&&typeof matchMedia<"u"}function Cq(e){if(n7())return matchMedia(e)}function Eq(e){if(!(Ip()||typeof IntersectionObserver>"u"))return new IntersectionObserver(e)}function Pq(e){if(!(Ip()||typeof MutationObserver>"u"))return new MutationObserver(e)}function Yk(e,t){return e===t||No(t)&&t.indexOf(e)>-1}async function Tq(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function r7(e){return Math.floor(fr()*e.length)}function $y(e,t,n=!0){return e[t!==void 0&&n?t%e.length:r7(e)]}function kq(e,t,n,r,i){return i7(Xk(e,r??0),t,n,i)}function i7(e,t,n,r){let i=!0;return(!r||r==="bottom")&&(i=e.topn.x),i&&(!r||r==="right")&&(i=e.leftn.y),i}function Xk(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function Gb(e,...t){for(const n of t){if(n==null)continue;if(!xc(n)){e=n;continue}const r=Array.isArray(n);r&&(xc(e)||!e||!Array.isArray(e))?e=[]:!r&&(xc(e)||!e||Array.isArray(e))&&(e={});for(const i in n){if(i==="__proto__")continue;const o=n,s=o[i],a=e;a[i]=xc(s)&&Array.isArray(s)?s.map(l=>Gb(a[i],l)):Gb(a[i],s)}}return e}function Mq(e,t){return!!Jk(t,n=>n.enable&&Yk(e,n.mode))}function _q(e,t,n){iu(t,r=>{const i=r.mode;r.enable&&Yk(e,i)&&o7(r,n)})}function o7(e,t){const n=e.selectors;iu(n,r=>{t(r,e)})}function Oq(e,t){if(!(!t||!e))return Jk(e,n=>t7(t,n.selectors))}function Rq(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:Eo.create(pt(e.options.bounce.horizontal.value),pt(e.options.bounce.vertical.value))}}function Aq(e,t){const{x:n,y:r}=e.velocity.sub(t.velocity),[i,o]=[e.position,t.position],{dx:s,dy:a}=Kk(o,i);if(n*s+r*a<0)return;const u=-Math.atan2(a,s),c=e.mass,d=t.mass,f=e.velocity.rotate(u),p=t.velocity.rotate(u),h=Wb(f,p,c,d),m=Wb(p,f,c,d),x=h.rotate(-u),g=m.rotate(-u);e.velocity.x=x.x*e.factor.x,e.velocity.y=x.y*e.factor.y,t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y}function Iq(e,t){const n=e.getPosition(),r=e.getRadius(),i=Xk(n,r),o=e.options.bounce,s=Hb({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:pt(o.horizontal.value)});s.bounced&&(s.velocity!==void 0&&(e.velocity.x=s.velocity),s.position!==void 0&&(e.position.x=s.position));const a=Hb({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:pt(o.vertical.value)});a.bounced&&(a.velocity!==void 0&&(e.velocity.y=a.velocity),a.position!==void 0&&(e.position.y=a.position))}function iu(e,t){return No(e)?e.map((r,i)=>t(r,i)):t(e,0)}function Zk(e,t,n){return No(e)?$y(e,t,n):e}function Jk(e,t){return No(e)?e.find((r,i)=>t(r,i)):t(e,0)?e:void 0}function Lq(e,t){const n=e.value,r=e.animation,i={delayTime:pt(r.delay)*qk,enable:r.enable,value:pt(e.value)*t,max:Ap(n)*t,min:Rp(n)*t,loops:0,maxLoops:pt(r.count),time:0},o=1;if(r.enable){switch(i.decay=o-pt(r.decay),r.mode){case"increase":i.status="increasing";break;case"decrease":i.status="decreasing";break;case"random":i.status=fr()>=Bb?"increasing":"decreasing";break}const s=r.mode==="auto";switch(r.startValue){case"min":i.value=i.min,s&&(i.status="increasing");break;case"max":i.value=i.max,s&&(i.status="decreasing");break;case"random":default:i.value=_s(i),s&&(i.status=fr()>=Bb?"increasing":"decreasing");break}}return i.initialValue=i.value,i}function s7(e,t){if(!(e.mode==="percent")){const{mode:i,...o}=e;return o}return"x"in e?{x:e.x/fs*t.width,y:e.y/fs*t.height}:{width:e.width/fs*t.width,height:e.height/fs*t.height}}function $q(e,t){return s7(e,t)}function a7(e,t,n,r,i){switch(t){case"max":n>=i&&e.destroy();break;case"min":n<=r&&e.destroy();break}}function jq(e,t,n,r,i){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const c=(t.velocity??0)*i.factor,d=t.min,f=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case"increasing":t.value>=f?(n?t.status="decreasing":t.value-=f,t.loops||(t.loops=0),t.loops++):t.value+=c;break;case"decreasing":t.value<=d?(n?t.status="increasing":t.value+=f,t.loops||(t.loops=0),t.loops++):t.value-=c}t.velocity&&p!==1&&(t.velocity*=p),a7(e,r,t.value,d,f),e.destroyed||(t.value=Ly(t.value,d,f))}}class l7{constructor(){this._listeners=new Map}addEventListener(t,n){this.removeEventListener(t,n);let r=this._listeners.get(t);r||(r=[],this._listeners.set(t,r)),r.push(n)}dispatchEvent(t,n){const r=this._listeners.get(t);r==null||r.forEach(i=>i(n))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,n){const r=this._listeners.get(t);if(!r)return;const i=r.length,o=r.indexOf(n);if(o<0)return;const a=1;i===a?this._listeners.delete(t):r.splice(o,a)}}async function Xh(e,t,n,r=!1){let i=t.get(e);return(!i||r)&&(i=await Promise.all([...n.values()].map(o=>o(e))),t.set(e,i)),i}async function u7(e){const t=Zk(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():(e7().error(`${Iy} ${n.status} while retrieving config file`),e.fallback)}class c7{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new l7,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[n,r]of this._configs)t[n]=r;return t}get version(){return"3.3.0"}addConfig(t){const n=t.key??t.name??"default";this._configs.set(n,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:n,config:t}})}async addEffect(t,n,r=!0){iu(t,i=>{this.getEffectDrawer(i)||this.effectDrawers.set(i,n)}),await this.refresh(r)}addEventListener(t,n){this._eventDispatcher.addEventListener(t,n)}async addInteractor(t,n,r=!0){this._initializers.interactors.set(t,n),await this.refresh(r)}async addMover(t,n,r=!0){this._initializers.movers.set(t,n),await this.refresh(r)}async addParticleUpdater(t,n,r=!0){this._initializers.updaters.set(t,n),await this.refresh(r)}async addPathGenerator(t,n,r=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,n),await this.refresh(r)}async addPlugin(t,n=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(n)}async addPreset(t,n,r=!1,i=!0){(r||!this.getPreset(t))&&this.presets.set(t,n),await this.refresh(i)}async addShape(t,n,r=!0){iu(t,i=>{this.getShapeDrawer(i)||this.shapeDrawers.set(i,n)}),await this.refresh(r)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,n){this._eventDispatcher.dispatchEvent(t,n)}dom(){return this._domArray}domItem(t){const n=this.dom(),r=n[t];if(!r||r.destroyed){n.splice(t,1);return}return r}async getAvailablePlugins(t){const n=new Map;for(const r of this.plugins)r.needsPlugin(t.actualOptions)&&n.set(r.id,await r.getPlugin(t));return n}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,n=!1){return await Xh(t,this.interactors,this._initializers.interactors,n)}async getMovers(t,n=!1){return await Xh(t,this.movers,this._initializers.movers,n)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(n=>n.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,n=!1){return await Xh(t,this.updaters,this._initializers.updaters,n)}init(){this._initialized||(this._initialized=!0)}async load(t){var m;const r=t.id??((m=t.element)==null?void 0:m.id)??`tsparticles${Math.floor(fr()*1e4)}`,{index:i,url:o}=t,s=o?await u7({fallback:t.options,url:o,index:i}):t.options;let a=t.element??document.getElementById(r);a||(a=document.createElement("div"),a.id=r,document.body.append(a));const l=Zk(s,i),u=this.dom(),c=u.findIndex(x=>x.id.description===r),d=0;if(c>=d){const x=this.domItem(c);x&&!x.destroyed&&(x.destroy(),u.splice(c,1))}let f;if(a.tagName.toLowerCase()==="canvas")f=a,f.dataset[Qh]="false";else{const x=a.getElementsByTagName("canvas");x.length?(f=x[0],f.dataset[Qh]="false"):(f=document.createElement("canvas"),f.dataset[Qh]="true",a.appendChild(f))}f.style.width||(f.style.width="100%"),f.style.height||(f.style.height="100%");const{Container:p}=await Te(()=>import("./Container-DgfTSijT.js"),__vite__mapDeps([0,1,2,3,4])),h=new p(this,r,l);return c>=d?u.splice(c,0,h):u.push(h),h.canvas.loadCanvas(f),await h.start(),h}loadOptions(t,n){for(const r of this.plugins)r.loadOptions(t,n)}loadParticlesOptions(t,n,...r){var o;const i=this.updaters.get(t);if(i)for(const s of i)(o=s.loadOptions)==null||o.call(s,n,...r)}async refresh(t=!0){t&&await Promise.all(this.dom().map(n=>n.refresh()))}removeEventListener(t,n){this._eventDispatcher.removeEventListener(t,n)}setOnClickHandler(t){const n=this.dom();if(!n.length)throw new Error(`${Iy} can only set click handlers after calling tsParticles.load()`);for(const r of n)r.addClickHandler(t)}}const ef="random",Kc="mid",Lp=new Map;function qb(e){Lp.set(e.key,e)}function d7(e){for(const[,l]of Lp)if(e.startsWith(l.stringPrefix))return l.parseString(e);const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=e.replace(t,(l,u,c,d,f)=>u+u+c+c+d+d+(f!==void 0?f+f:"")),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,i=r.exec(n),o=16;return i?{a:i[4]!==void 0?parseInt(i[4],o)/255:1,b:parseInt(i[3],o),g:parseInt(i[2],o),r:parseInt(i[1],o)}:void 0}function tf(e,t,n=!0){if(!e)return;const r=ru(e)?{value:e}:e;if(ru(r.value))return eM(r.value,t,n);if(No(r.value))return tf({value:$y(r.value,t,n)});for(const[,i]of Lp){const o=i.handleRangeColor(r);if(o)return o}}function eM(e,t,n=!0){if(!e)return;const r=ru(e)?{value:e}:e;if(ru(r.value))return r.value===ef?tM():p7(r.value);if(No(r.value))return eM({value:$y(r.value,t,n)});for(const[,i]of Lp){const o=i.handleColor(r);if(o)return o}}function Dq(e,t,n=!0){const r=tf(e,t,n);return r?f7(r):void 0}function f7(e){const c=e.r/255,d=e.g/255,f=e.b/255,p=Math.max(c,d,f),h=Math.min(c,d,f),m={h:0,l:(p+h)*.5,s:0};return p!==h&&(m.s=m.l<.5?(p-h)/(p+h):(p-h)/(2-p-h),m.h=c===p?(d-f)/(p-h):m.h=d===p?2+(f-c)/(p-h):2*2+(c-d)/(p-h)),m.l*=100,m.s*=100,m.h*=60,m.h<0&&(m.h+=360),m.h>=360&&(m.h-=360),m}function p7(e){return d7(e)}function oa(e){const s=(e.h%360+360)%360,a=Math.max(0,Math.min(100,e.s)),l=Math.max(0,Math.min(100,e.l)),u=s/360,c=a/100,d=l/100,f=255,p=3;if(a===0){const M=Math.round(d*f);return{r:M,g:M,b:M}}const h=.5,m=2,x=(M,k,A)=>{if(A<0&&A++,A>1&&A--,A*6<1)return M+(k-M)*6*A;if(A*m<1)return k;if(A*p<1*m){const B=m/p;return M+(k-M)*(B-A)*6}return M},g=1,y=d0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=r.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const c=e.offset?_s(e.offset):0,d=(e.velocity??0)*r.factor+c*3.6,f=e.decay??1,p=Ap(t),h=Rp(t);!n||e.status==="increasing"?(e.value+=d,e.value>p&&(e.loops||(e.loops=0),e.loops++,n?e.status="decreasing":e.value-=p)):(e.value-=d,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing")),e.velocity&&f!==1&&(e.velocity*=f),e.value=Ly(e.value,h,p)}function Wq(e,t){if(!e)return;const{h:n,s:r,l:i}=e,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};n&&Jh(n,o.h,!1,t),r&&Jh(r,o.s,!0,t),i&&Jh(i,o.l,!0,t)}class g7{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.s!==void 0&&r.l!==void 0)return oa(r)}handleRangeColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.l!==void 0)return oa({h:pt(r.h),l:pt(r.l),s:pt(r.s)})}parseString(t){if(!t.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,r=n.exec(t),i=4,o=1,s=10;return r?h7({a:r.length>i?Qk(r[5]):o,h:parseInt(r[1],s),l:parseInt(r[3],s),s:parseInt(r[2],s)}):void 0}}class v7{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return r}handleRangeColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return{r:pt(r.r),g:pt(r.g),b:pt(r.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,r=n.exec(t),i=10;return r?{a:r.length>4?Qk(r[5]):1,b:parseInt(r[3],i),g:parseInt(r[2],i),r:parseInt(r[1],i)}:void 0}}function y7(){const e=new v7,t=new g7;qb(e),qb(t);const n=new c7;return n.init(),n}const jy=y7();Ip()||(window.tsParticles=jy);const x7=e=>{const t=e.id??"tsparticles";return b.useEffect(()=>{let n;return jy.load({id:t,url:e.url,options:e.options}).then(r=>{var i;n=r,(i=e.particlesLoaded)==null||i.call(e,r)}),()=>{n==null||n.destroy()}},[t,e,e.url,e.options]),S.jsx("div",{id:t,className:e.className})};async function w7(e){await e(jy)}async function b7(e,t=!0){const{loadParallaxMover:n}=await Te(()=>import("./index-XfIYD3kU.js"),[]),{loadExternalAttractInteraction:r}=await Te(()=>import("./index-Bsb0ODzd.js"),[]),{loadExternalBounceInteraction:i}=await Te(()=>import("./index-H2xFEDUi.js"),[]),{loadExternalBubbleInteraction:o}=await Te(()=>import("./index-Cyi3q7NY.js"),__vite__mapDeps([5,2])),{loadExternalConnectInteraction:s}=await Te(()=>import("./index-CpYebIb2.js"),[]),{loadExternalGrabInteraction:a}=await Te(()=>import("./index-D4B8HC_p.js"),__vite__mapDeps([6,2])),{loadExternalPauseInteraction:l}=await Te(()=>import("./index-CbvRTKHC.js"),[]),{loadExternalPushInteraction:u}=await Te(()=>import("./index-DeJl6bSD.js"),[]),{loadExternalRemoveInteraction:c}=await Te(()=>import("./index-CmOj1iTh.js"),[]),{loadExternalRepulseInteraction:d}=await Te(()=>import("./index-DieO57wC.js"),[]),{loadExternalSlowInteraction:f}=await Te(()=>import("./index-Bv4Ri9Dl.js"),[]),{loadParticlesAttractInteraction:p}=await Te(()=>import("./index-CMiNQEXp.js"),[]),{loadParticlesCollisionsInteraction:h}=await Te(()=>import("./index-qvjFb8Na.js"),[]),{loadParticlesLinksInteraction:m}=await Te(()=>import("./index-B1uaaKWk.js"),__vite__mapDeps([7,2])),{loadEasingQuadPlugin:x}=await Te(()=>import("./index-xhEDNmcn.js"),[]),{loadEmojiShape:g}=await Te(()=>import("./index-DtthGcYK.js").then(A=>A.i),[]),{loadImageShape:y}=await Te(()=>import("./index-COUjS28G.js").then(A=>A.i),[]),{loadLineShape:v}=await Te(()=>import("./index-B9x42VQJ.js"),[]),{loadPolygonShape:w}=await Te(()=>import("./index-BagHnuxb.js"),[]),{loadSquareShape:C}=await Te(()=>import("./index-C4gw71pV.js"),[]),{loadStarShape:E}=await Te(()=>import("./index-DtOIm4kO.js"),[]),{loadLifeUpdater:T}=await Te(()=>import("./index-DmxnH_zU.js"),[]),{loadRotateUpdater:P}=await Te(()=>import("./index-BGxGhBke.js"),[]),{loadStrokeColorUpdater:M}=await Te(()=>import("./index-wa-izovl.js"),[]),{loadBasic:k}=await Te(()=>import("./index-DvFJ0GAq.js"),[]);await n(e,!1),await r(e,!1),await i(e,!1),await o(e,!1),await s(e,!1),await a(e,!1),await l(e,!1),await u(e,!1),await c(e,!1),await d(e,!1),await f(e,!1),await p(e,!1),await h(e,!1),await m(e,!1),await x(),await g(e,!1),await y(e,!1),await v(e,!1),await w(e,!1),await C(e,!1),await E(e,!1),await T(e,!1),await P(e,!1),await M(e,!1),await k(e,t)}const Dy="-";function S7(e){const t=E7(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(s){const a=s.split(Dy);return a[0]===""&&a.length!==1&&a.shift(),nM(a,t)||C7(s)}function o(s,a){const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:o}}function nM(e,t){var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?nM(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Dy);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId}const Kb=/^\[(.+)\]$/;function C7(e){if(Kb.test(e)){const t=Kb.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function E7(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return T7(Object.entries(e.classGroups),n).forEach(([o,s])=>{u0(s,r,o,t)}),r}function u0(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:Qb(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(P7(i)){u0(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{u0(s,Qb(t,o),n,r)})})}function Qb(e,t){let n=e;return t.split(Dy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function P7(e){return e.isThemeGetter}function T7(e,t){return t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,i]}):e}function k7(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(o,s){n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}}const rM="!";function M7(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(s){const a=[];let l=0,u=0,c;for(let m=0;mu?c-u:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}}}function _7(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function O7(e){return{cache:k7(e.cacheSize),splitModifiers:M7(e),...S7(e)}}const R7=/\s+/;function A7(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=new Set;return e.trim().split(R7).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(s);let d=r(c?u.substring(0,c):u),f=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:s};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:s};f=!1}const p=_7(a).join(":");return{isTailwindClass:!0,modifierId:l?p+rM:p,classGroupId:d,originalClassName:s,hasPostfixModifier:f}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=s,c=a+l;return o.has(c)?!1:(o.add(c),i(l,u).forEach(d=>o.add(a+d)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function I7(){let e=0,t,n,r="";for(;ed(c),e());return n=O7(u),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=A7(l,n);return i(l,c),c}return function(){return o(I7.apply(null,arguments))}}function Oe(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const oM=/^\[(?:([a-z-]+):)?(.+)\]$/i,$7=/^\d+\/\d+$/,j7=new Set(["px","full","screen"]),D7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F7=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,N7=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,z7=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,V7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function hr(e){return fo(e)||j7.has(e)||$7.test(e)}function Xr(e){return ya(e,"length",Q7)}function fo(e){return!!e&&!Number.isNaN(Number(e))}function wc(e){return ya(e,"number",fo)}function Da(e){return!!e&&Number.isInteger(Number(e))}function B7(e){return e.endsWith("%")&&fo(e.slice(0,-1))}function ie(e){return oM.test(e)}function Zr(e){return D7.test(e)}const U7=new Set(["length","size","percentage"]);function W7(e){return ya(e,U7,sM)}function H7(e){return ya(e,"position",sM)}const G7=new Set(["image","url"]);function q7(e){return ya(e,G7,X7)}function K7(e){return ya(e,"",Y7)}function Fa(){return!0}function ya(e,t,n){const r=oM.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function Q7(e){return F7.test(e)&&!N7.test(e)}function sM(){return!1}function Y7(e){return z7.test(e)}function X7(e){return V7.test(e)}function Z7(){const e=Oe("colors"),t=Oe("spacing"),n=Oe("blur"),r=Oe("brightness"),i=Oe("borderColor"),o=Oe("borderRadius"),s=Oe("borderSpacing"),a=Oe("borderWidth"),l=Oe("contrast"),u=Oe("grayscale"),c=Oe("hueRotate"),d=Oe("invert"),f=Oe("gap"),p=Oe("gradientColorStops"),h=Oe("gradientColorStopPositions"),m=Oe("inset"),x=Oe("margin"),g=Oe("opacity"),y=Oe("padding"),v=Oe("saturate"),w=Oe("scale"),C=Oe("sepia"),E=Oe("skew"),T=Oe("space"),P=Oe("translate"),M=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",ie,t],I=()=>[ie,t],$=()=>["",hr,Xr],D=()=>["auto",fo,ie],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",ie],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[fo,wc],ne=()=>[fo,ie];return{cacheSize:500,separator:":",theme:{colors:[Fa],spacing:[hr,Xr],blur:["none","",Zr,ie],brightness:K(),borderColor:[e],borderRadius:["none","","full",Zr,ie],borderSpacing:I(),borderWidth:$(),contrast:K(),grayscale:L(),hueRotate:ne(),invert:L(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[B7,Xr],inset:A(),margin:A(),opacity:K(),padding:I(),saturate:K(),scale:K(),sepia:L(),skew:ne(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Zr]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),ie]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Da,ie]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Da,ie]}],"grid-cols":[{"grid-cols":[Fa]}],"col-start-end":[{col:["auto",{span:["full",Da,ie]},ie]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Fa]}],"row-start-end":[{row:["auto",{span:[Da,ie]},ie]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[Zr]},Zr]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zr,Xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wc]}],"font-family":[{font:[Fa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",fo,wc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hr,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hr,Xr]}],"underline-offset":[{"underline-offset":["auto",hr,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),H7]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W7]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},q7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:N()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[hr,ie]}],"outline-w":[{outline:[hr,Xr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[hr,Xr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zr,K7]}],"shadow-color":[{shadow:[Fa]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zr,ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Da,ie]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hr,Xr,wc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const J7=L7(Z7);function eB(...e){return J7(oe(e))}const aM=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$p=b.createContext({}),Fy=b.createContext(null),Ny=typeof document<"u",zy=Ny?b.useLayoutEffect:b.useEffect,lM=b.createContext({strict:!1}),Vy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tB="framerAppearId",uM="data-"+Vy(tB),nB={skipAnimations:!1,useManualTiming:!1};class Yb{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function rB(e){let t=new Yb,n=new Yb,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=rB(()=>n=!0),d),{}),s=d=>{o[d].process(i)},a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,iB),1),i.timestamp=d,i.isProcessing=!0,bc.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:bc.reduce((d,f)=>{const p=o[f];return d[f]=(h,m=!1,x=!1)=>(n||l(),p.schedule(h,m,x)),d},{}),cancel:d=>bc.forEach(f=>o[f].cancel(d)),state:i,steps:o}}const{schedule:By,cancel:Hq}=cM(queueMicrotask,!1);function oB(e,t,n,r){const{visualElement:i}=b.useContext($p),o=b.useContext(lM),s=b.useContext(Fy),a=b.useContext(aM).reducedMotion,l=b.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;b.useInsertionEffect(()=>{u&&u.update(n,s)});const c=b.useRef(!!(n[uM]&&!window.HandoffComplete));return zy(()=>{u&&(By.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),b.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sB(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ps(n)&&(n.current=r))},[t])}function ou(e){return typeof e=="string"||Array.isArray(e)}function jp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Uy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wy=["initial",...Uy];function Dp(e){return jp(e.animate)||Wy.some(t=>ou(e[t]))}function dM(e){return!!(Dp(e)||e.variants)}function aB(e,t){if(Dp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ou(n)?n:void 0,animate:ou(r)?r:void 0}}return e.inherit!==!1?t:{}}function lB(e){const{initial:t,animate:n}=aB(e,b.useContext($p));return b.useMemo(()=>({initial:t,animate:n}),[Xb(t),Xb(n)])}function Xb(e){return Array.isArray(e)?e.join(" "):e}const Zb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},su={};for(const e in Zb)su[e]={isEnabled:t=>Zb[e].some(n=>!!t[n])};function uB(e){for(const t in e)su[t]={...su[t],...e[t]}}const fM=b.createContext({}),pM=b.createContext({}),cB=Symbol.for("motionComponentSymbol");function dB({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&uB(e);function o(a,l){let u;const c={...b.useContext(aM),...a,layoutId:fB(a)},{isStatic:d}=c,f=lB(a),p=r(a,d);if(!d&&Ny){f.visualElement=oB(i,p,c,t);const h=b.useContext(pM),m=b.useContext(lM).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,m,e,h))}return S.jsxs($p.Provider,{value:f,children:[u&&f.visualElement?S.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,sB(p,f.visualElement,l),p,d,f.visualElement)]})}const s=b.forwardRef(o);return s[cB]=i,s}function fB({layoutId:e}){const t=b.useContext(fM).id;return t&&e!==void 0?t+"-"+e:e}function pB(e){function t(r,i={}){return dB(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const hB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hy(e){return typeof e!="string"||e.includes("-")?!1:!!(hB.indexOf(e)>-1||/[A-Z]/u.test(e))}const nf={};function mB(e){Object.assign(nf,e)}const zu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zo=new Set(zu);function hM(e,{layout:t,layoutId:n}){return zo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nf[e]||e==="opacity")}const Ot=e=>!!(e&&e.getVelocity),gB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vB=zu.length;function yB(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),gM=mM("--"),xB=mM("var(--"),Gy=e=>xB(e)?wB.test(e.split("/*")[0].trim()):!1,wB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Bi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},gl={...xa,transform:e=>Bi(0,1,e)},Sc={...xa,default:1},vl=e=>Math.round(e*1e5)/1e5,qy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,SB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,CB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Vu(e){return typeof e=="string"}const Bu=e=>({test:t=>Vu(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ei=Bu("deg"),cr=Bu("%"),Z=Bu("px"),EB=Bu("vh"),PB=Bu("vw"),Jb={...cr,parse:e=>cr.parse(e)/100,transform:e=>cr.transform(e*100)},eS={...xa,transform:Math.round},vM={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,size:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,rotate:ei,rotateX:ei,rotateY:ei,rotateZ:ei,scale:Sc,scaleX:Sc,scaleY:Sc,scaleZ:Sc,skew:ei,skewX:ei,skewY:ei,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:gl,originX:Jb,originY:Jb,originZ:Z,zIndex:eS,backgroundPositionX:Z,backgroundPositionY:Z,fillOpacity:gl,strokeOpacity:gl,numOctaves:eS};function Ky(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(gM(d)){o[d]=f;continue}const p=vM[d],h=bB(f,p);if(zo.has(d)){if(l=!0,s[d]=h,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=h):i[d]=h}if(t.transform||(l||r?i.transform=yB(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;i.transformOrigin=`${d} ${f} ${p}`}}const Qy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yM(e,t,n){for(const r in t)!Ot(t[r])&&!hM(r,n)&&(e[r]=t[r])}function TB({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Qy();return Ky(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function kB(e,t,n){const r=e.style||{},i={};return yM(i,r,e),Object.assign(i,TB(e,t,n)),i}function MB(e,t,n){const r={},i=kB(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const _B=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_B.has(e)}let xM=e=>!rf(e);function OB(e){e&&(xM=t=>t.startsWith("on")?!rf(t):e(t))}try{OB(require("@emotion/is-prop-valid").default)}catch{}function RB(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(xM(i)||n===!0&&rf(i)||!t&&!rf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function tS(e,t,n){return typeof e=="string"?e:Z.transform(t+n*e)}function AB(e,t,n){const r=tS(t,e.x,e.width),i=tS(n,e.y,e.height);return`${r} ${i}`}const IB={offset:"stroke-dashoffset",array:"stroke-dasharray"},LB={offset:"strokeDashoffset",array:"strokeDasharray"};function $B(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?IB:LB;e[o.offset]=Z.transform(-r);const s=Z.transform(t),a=Z.transform(n);e[o.array]=`${s} ${a}`}function Yy(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(Ky(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:m}=e;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(i!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=AB(m,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&$B(p,s,a,l,!1)}const wM=()=>({...Qy(),attrs:{}}),Xy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function jB(e,t,n,r){const i=b.useMemo(()=>{const o=wM();return Yy(o,t,{enableHardwareAcceleration:!1},Xy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};yM(o,e.style,e),i.style={...o,...i.style}}return i}function DB(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Hy(n)?jB:MB)(r,o,s,n),u=RB(r,typeof n=="string",e),c=n!==b.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=b.useMemo(()=>Ot(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}function bM(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const SM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function CM(e,t,n,r){bM(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(SM.has(i)?i:Vy(i),t.attrs[i])}function Zy(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(Ot(i[s])||t.style&&Ot(t.style[s])||hM(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function EM(e,t,n){const r=Zy(e,t,n);for(const i in e)if(Ot(e[i])||Ot(t[i])){const o=zu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function Jy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function e1(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const c0=e=>Array.isArray(e),FB=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),NB=e=>c0(e)?e[e.length-1]||0:e;function Qc(e){const t=Ot(e)?e.get():e;return FB(t)?t.toValue():t}function zB({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:VB(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const PM=e=>(t,n)=>{const r=b.useContext($p),i=b.useContext(Fy),o=()=>zB(e,t,r,i);return n?o():e1(o)};function VB(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=Qc(o[f]);let{initial:s,animate:a}=e;const l=Dp(e),u=dM(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!jp(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const h=Jy(e,p);if(!h)return;const{transitionEnd:m,transition:x,...g}=h;for(const y in g){let v=g[y];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(i[y]=v)}for(const y in m)i[y]=m[y]}),i}const bt=e=>e,{schedule:Qe,cancel:Dr,state:dt,steps:em}=cM(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0),BB={useVisualState:PM({scrapeMotionValuesFromProps:EM,createRenderState:wM,onMount:(e,t,{renderState:n,latestValues:r})=>{Qe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Qe.render(()=>{Yy(n,r,{enableHardwareAcceleration:!1},Xy(t.tagName),e.transformTemplate),CM(t,n)})}})},UB={useVisualState:PM({scrapeMotionValuesFromProps:Zy,createRenderState:Qy})};function WB(e,{forwardMotionProps:t=!1},n,r){return{...Hy(e)?BB:UB,preloadedFeatures:n,useRender:DB(t),createVisualElement:r,Component:e}}function Cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const TM=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Fp(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const HB=e=>t=>TM(t)&&e(t,Fp(t));function _r(e,t,n,r){return Cr(e,t,HB(n),r)}const GB=(e,t)=>n=>t(e(n)),Or=(...e)=>e.reduce(GB);function kM(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const nS=kM("dragHorizontal"),rS=kM("dragVertical");function MM(e){let t=!1;if(e==="y")t=rS();else if(e==="x")t=nS();else{const n=nS(),r=rS();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function _M(){const e=MM(!0);return e?(e(),!1):!0}class Ki{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iS(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||_M())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&l(o,s)};return _r(e.current,n,i,{passive:!e.getProps()[r]})}class qB extends Ki{mount(){this.unmount=Or(iS(this.node,!0),iS(this.node,!1))}unmount(){}}class KB extends Ki{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Or(Cr(this.node.current,"focus",()=>this.onFocus()),Cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const OM=(e,t)=>t?e===t?!0:OM(e,t.parentElement):!1;function tm(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fp(n))}class QB extends Ki{constructor(){super(...arguments),this.removeStartListeners=bt,this.removeEndListeners=bt,this.removeAccessibleListeners=bt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=_r(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();!d&&!OM(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)},{passive:!(r.onTap||r.onPointerUp)}),s=_r(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Or(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||tm("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&c(l,u)})};this.removeEndListeners(),this.removeEndListeners=Cr(this.node.current,"keyup",s),tm("down",(a,l)=>{this.startPress(a,l)})},n=Cr(this.node.current,"keydown",t),r=()=>{this.isPressing&&tm("cancel",(o,s)=>this.cancelPress(o,s))},i=Cr(this.node.current,"blur",r);this.removeAccessibleListeners=Or(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_M()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=_r(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Cr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Or(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const d0=new WeakMap,nm=new WeakMap,YB=e=>{const t=d0.get(e.target);t&&t(e)},XB=e=>{e.forEach(YB)};function ZB({root:e,...t}){const n=e||document;nm.has(n)||nm.set(n,{});const r=nm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XB,{root:e,...t})),r[i]}function JB(e,t,n){const r=ZB(t);return d0.set(e,n),r.observe(e),()=>{d0.delete(e),r.unobserve(e)}}const eU={some:0,all:1};class tU extends Ki{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:eU[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return JB(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nU(t,n))&&this.startObserver()}unmount(){}}function nU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rU={inView:{Feature:tU},tap:{Feature:QB},focus:{Feature:KB},hover:{Feature:qB}};function RM(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function oU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Np(e,t,n){const r=e.getProps();return Jy(r,t,n!==void 0?n:r.custom,iU(e),oU(e))}const $i=e=>e*1e3,Rr=e=>e/1e3,sU={type:"spring",stiffness:500,damping:25,restSpeed:10},aU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),lU={type:"keyframes",duration:.8},uU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cU=(e,{keyframes:t})=>t.length>2?lU:zo.has(e)?e.startsWith("scale")?aU(t[1]):sU:uU;function dU({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function t1(e,t){return e[t]||e.default||e}const fU=e=>e!==null;function zp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(fU),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}let Yc;function pU(){Yc=void 0}const ji={now:()=>(Yc===void 0&&ji.set(dt.isProcessing||nB.useManualTiming?dt.timestamp:performance.now()),Yc),set:e=>{Yc=e,queueMicrotask(pU)}},AM=e=>/^0[^.\s]+$/u.test(e);function hU(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||AM(e):!0}let mU=bt,n1=bt;const IM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vU(e){const t=gU.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function LM(e,t,n=1){const[r,i]=vU(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return IM(s)?parseFloat(s):s}return Gy(i)?LM(i,t,n+1):i}const yU=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),oS=e=>e===xa||e===Z,sS=(e,t)=>parseFloat(e.split(", ")[t]),aS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return sS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?sS(o[1],e):0}},xU=new Set(["x","y","z"]),wU=zu.filter(e=>!xU.has(e));function bU(e){const t=[];return wU.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const sa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:aS(4,13),y:aS(5,14)};sa.translateX=sa.x;sa.translateY=sa.y;const $M=e=>t=>t.test(e),SU={test:e=>e==="auto",parse:e=>e},jM=[xa,Z,cr,ei,PB,EB,SU],lS=e=>jM.find($M(e)),Po=new Set;let f0=!1,p0=!1;function DM(){if(p0){const e=Array.from(Po).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=bU(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}p0=!1,f0=!1,Po.forEach(e=>e.complete()),Po.clear()}function FM(){Po.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(p0=!0)})}function CU(){FM(),DM()}class r1{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Po.add(this),f0||(f0=!0,Qe.read(FM),Qe.resolveKeyframes(DM))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;on=>!!(Vu(n)&&CB.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),NM=(e,t,n)=>r=>{if(!Vu(r))return r;const[i,o,s,a]=r.match(qy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},EU=e=>Bi(0,255,e),rm={...xa,transform:e=>Math.round(EU(e))},po={test:i1("rgb","red"),parse:NM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rm.transform(e)+", "+rm.transform(t)+", "+rm.transform(n)+", "+vl(gl.transform(r))+")"};function PU(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const h0={test:i1("#"),parse:PU,transform:po.transform},hs={test:i1("hsl","hue"),parse:NM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+cr.transform(vl(t))+", "+cr.transform(vl(n))+", "+vl(gl.transform(r))+")"},Mt={test:e=>po.test(e)||h0.test(e)||hs.test(e),parse:e=>po.test(e)?po.parse(e):hs.test(e)?hs.parse(e):h0.parse(e),transform:e=>Vu(e)?e:e.hasOwnProperty("red")?po.transform(e):hs.transform(e)};function TU(e){var t,n;return isNaN(e)&&Vu(e)&&(((t=e.match(qy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(SB))===null||n===void 0?void 0:n.length)||0)>0}const zM="number",VM="color",kU="var",MU="var(",uS="${}",_U=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function of(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(_U,l=>(Mt.test(l)?(r.color.push(o),i.push(VM),n.push(Mt.parse(l))):l.startsWith(MU)?(r.var.push(o),i.push(kU),n.push(l)):(r.number.push(o),i.push(zM),n.push(parseFloat(l))),++o,uS)).split(uS);return{values:n,split:a,indexes:r,types:i}}function BM(e){return of(e).values}function UM(e){const{split:t,types:n}=of(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function RU(e){const t=BM(e);return UM(e)(t.map(OU))}const Ui={test:TU,parse:BM,createTransformer:UM,getAnimatableNone:RU},AU=new Set(["brightness","contrast","saturate","opacity"]);function IU(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qy)||[];if(!r)return e;const i=n.replace(r,"");let o=AU.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LU=/\b([a-z-]*)\(.*?\)/gu,m0={...Ui,getAnimatableNone:e=>{const t=e.match(LU);return t?t.map(IU).join(" "):e}},$U={...vM,color:Mt,backgroundColor:Mt,outlineColor:Mt,fill:Mt,stroke:Mt,borderColor:Mt,borderTopColor:Mt,borderRightColor:Mt,borderBottomColor:Mt,borderLeftColor:Mt,filter:m0,WebkitFilter:m0},o1=e=>$U[e];function WM(e,t){let n=o1(e);return n!==m0&&(n=Ui),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function jU(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function DU(e){let t;return()=>(t===void 0&&(t=e()),t)}const cS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ui.test(e)||e==="0")&&!e.startsWith("url("));function FU(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function s1(e,t){return t?e*(1e3/t):0}const zU=5;function qM(e,t,n){const r=Math.max(t-zU,0);return s1(n-e(r),t-r)}const im=.001,VU=.01,BU=10,UU=.05,WU=1;function HU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=Bi(UU,WU,s),e=Bi(VU,BU,Rr(e)),s<1?(i=u=>{const c=u*s,d=c*e,f=c-n,p=g0(u,s),h=Math.exp(-d);return im-f/p*h},o=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-d),m=g0(Math.pow(u,2),s);return(-i(u)+im>0?-1:1)*((f-p)*h)/m}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-im+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=qU(i,o,a);if(e=$i(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const GU=12;function qU(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function YU(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!dS(e,QU)&&dS(e,KU)){const n=HU(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function KM({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=YU({...r,velocity:-Rr(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(a*u)),m=o-i,x=Rr(Math.sqrt(a/u)),g=Math.abs(m)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let y;if(h<1){const v=g0(x,h);y=w=>{const C=Math.exp(-h*x*w);return o-C*((p+h*x*m)/v*Math.sin(v*w)+m*Math.cos(v*w))}}else if(h===1)y=v=>o-Math.exp(-x*v)*(m+(p+x*m)*v);else{const v=x*Math.sqrt(h*h-1);y=w=>{const C=Math.exp(-h*x*w),E=Math.min(v*w,300);return o-C*((p+h*x*m)*Math.sinh(E)+v*m*Math.cosh(E))/v}}return{calculatedDuration:f&&c||null,next:v=>{const w=y(v);if(f)s.done=v>=c;else{let C=p;v!==0&&(h<1?C=qM(y,v,w):C=0);const E=Math.abs(C)<=n,T=Math.abs(o-w)<=t;s.done=E&&T}return s.value=s.done?o:w,s}}}function fS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=P=>a!==void 0&&Pl,h=P=>a===void 0?l:l===void 0||Math.abs(a-P)-m*Math.exp(-P/r),v=P=>g+y(P),w=P=>{const M=y(P),k=v(P);f.done=Math.abs(M)<=u,f.value=f.done?g:k};let C,E;const T=P=>{p(f.value)&&(C=P,E=KM({keyframes:[f.value,h(f.value)],velocity:qM(v,P,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:P=>{let M=!1;return!E&&C===void 0&&(M=!0,w(P),T(P)),C!==void 0&&P>=C?E.next(P-C):(!M&&w(P),f)}}}const QM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,XU=1e-7,ZU=12;function JU(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=QM(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>XU&&++aJU(o,0,1,e,n);return o=>o===0||o===1?o:QM(i(o),t,r)}const eW=Uu(.42,0,1,1),tW=Uu(0,0,.58,1),YM=Uu(.42,0,.58,1),nW=e=>Array.isArray(e)&&typeof e[0]!="number",XM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ZM=e=>t=>1-e(1-t),a1=e=>1-Math.sin(Math.acos(e)),JM=ZM(a1),rW=XM(a1),e_=Uu(.33,1.53,.69,.99),l1=ZM(e_),iW=XM(l1),oW=e=>(e*=2)<1?.5*l1(e):.5*(2-Math.pow(2,-10*(e-1))),sW={linear:bt,easeIn:eW,easeInOut:YM,easeOut:tW,circIn:a1,circInOut:rW,circOut:JM,backIn:l1,backInOut:iW,backOut:e_,anticipate:oW},pS=e=>{if(Array.isArray(e)){n1(e.length===4);const[t,n,r,i]=e;return Uu(t,n,r,i)}else if(typeof e=="string")return sW[e];return e},aa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},je=(e,t,n)=>e+(t-e)*n;function om(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aW({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=om(l,a,e+1/3),o=om(l,a,e),s=om(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const sm=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lW=[h0,po,hs],uW=e=>lW.find(t=>t.test(e));function hS(e){const t=uW(e);let n=t.parse(e);return t===hs&&(n=aW(n)),n}const mS=(e,t)=>{const n=hS(e),r=hS(t),i={...n};return o=>(i.red=sm(n.red,r.red,o),i.green=sm(n.green,r.green,o),i.blue=sm(n.blue,r.blue,o),i.alpha=je(n.alpha,r.alpha,o),po.transform(i))};function v0(e,t){return n=>n>0?t:e}function cW(e,t){return n=>je(e,t,n)}function u1(e){return typeof e=="number"?cW:typeof e=="string"?Gy(e)?v0:Mt.test(e)?mS:pW:Array.isArray(e)?t_:typeof e=="object"?Mt.test(e)?mS:dW:v0}function t_(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>u1(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function fW(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=Ui.createTransformer(t),r=of(e),i=of(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Or(t_(fW(r,i),i.values),n):v0(e,t)};function n_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?je(e,t,n):u1(e)(e,t)}function hW(e,t,n){const r=[],i=n||n_,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=hW(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Bi(e[0],e[o-1],u)):l}function mW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=aa(0,t,r);e.push(je(n,1,i))}}function i_(e){const t=[0];return mW(t,e.length-1),t}function gW(e,t){return e.map(n=>n*t)}function vW(e,t){return e.map(()=>t||YM).splice(0,e.length-1)}function sf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nW(r)?r.map(pS):pS(r),o={done:!1,value:t[0]},s=gW(n&&n.length===t.length?n:i_(t),e),a=r_(s,t,{ease:Array.isArray(i)?i:vW(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const gS=2e4;function yW(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=gS?1/0:t}const xW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Qe.update(t,!0),stop:()=>Dr(t),now:()=>dt.isProcessing?dt.timestamp:ji.now()}},wW={decay:fS,inertia:fS,tween:sf,keyframes:sf,spring:KM},bW=e=>e/100;class c1 extends GM{constructor({KeyframeResolver:t=r1,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:i,keyframes:o}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,s,r,i):this.resolver=new t(o,s,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=wW[n]||sf;let l,u;a!==sf&&typeof t[0]!="number"&&(l=Or(bW,n_(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=yW(c));const{calculatedDuration:d}=c,f=d+i,p=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=o;if(p){const P=Math.min(this.currentTime,c)/d;let M=Math.floor(P),k=P%1;!k&&P>=1&&(k=1),k===1&&M--,M=Math.min(M,p+1),!!(M%2)&&(h==="reverse"?(k=1-k,m&&(k-=m/d)):h==="mirror"&&(w=s)),v=Bi(0,1,k)*d}const C=y?{done:!1,value:l[0]}:w.next(v);a&&(C.value=a(C.value));let{done:E}=C;!y&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return T&&i!==void 0&&(C.value=zp(l,this.options,i)),x&&x(C.value),T&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Rr(t.calculatedDuration):0}get time(){return Rr(this.currentTime)}set time(t){t=$i(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Rr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xW,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const o_=e=>Array.isArray(e)&&typeof e[0]=="number";function s_(e){return!!(!e||typeof e=="string"&&e in d1||o_(e)||Array.isArray(e)&&e.every(s_))}const Ya=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,d1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ya([0,.65,.55,1]),circOut:Ya([.55,0,1,.45]),backIn:Ya([.31,.01,.66,-.59]),backOut:Ya([.33,1.53,.69,.99])};function SW(e){return a_(e)||d1.easeOut}function a_(e){if(e)return o_(e)?Ya(e):Array.isArray(e)?e.map(SW):d1[e]}function CW(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=a_(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const EW=DU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),PW=new Set(["opacity","clipPath","filter","transform"]),af=10,TW=2e4;function kW(e){return e.type==="spring"||e.name==="backgroundColor"||!s_(e.ease)}function MW(e,t){const n=new c1({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(o,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(kW(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,m=MW(t,h);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,o=m.times,s=m.ease,a="keyframes"}const c=CW(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:s});return c.startTime=ji.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(zp(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Rr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Rr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$i(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return bt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return bt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...d}=this.options,f=new c1({...d,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),p=$i(this.time);l.setWithVelocity(f.sample(p-af).value,f.sample(p).value,af)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;return EW()&&r&&PW.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const f1=(e,t,n,r={},i,o)=>s=>{const a=t1(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-$i(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};dU(a)||(c={...c,...cU(e,c)}),c.duration&&(c.duration=$i(c.duration)),c.repeatDelay&&(c.repeatDelay=$i(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!o&&t.get()!==void 0){const f=zp(c.keyframes,a);if(f!==void 0){Qe.update(()=>{c.onUpdate(f),c.onComplete()});return}}return!o&&vS.supports(c)?new vS(c):new c1(c)};function lf(e){return!!(Ot(e)&&e.add)}function p1(e,t){e.indexOf(t)===-1&&e.push(t)}function h1(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class m1{constructor(){this.subscriptions=[]}add(t){return p1(this.subscriptions,t),()=>h1(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class OW{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ji.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=_W(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ji.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new m1);const r=this.events[t].add(n);return t==="change"?()=>{r(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ji.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yS);return s1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Er(e,t){return new OW(e,t)}function RW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Er(n))}function g1(e,t){const n=Np(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=NB(o[s]);RW(e,s,a)}}function AW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function l_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;const u=e.getValue("willChange");r&&(s=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const p=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=l[f];if(h===void 0||d&&AW(d,f))continue;const m={delay:n,elapsed:0,...t1(s||{},f)};let x=!1;if(window.HandoffAppearAnimations){const v=e.getProps()[uM];if(v){const w=window.HandoffAppearAnimations(v,f);w!==null&&(m.elapsed=w,x=!0)}}p.start(f1(f,p,h,e.shouldReduceMotion&&zo.has(f)?{type:!1}:m,e,x));const g=p.animation;g&&(lf(u)&&(u.add(f),g.then(()=>u.remove(f))),c.push(g))}return a&&Promise.all(c).then(()=>{Qe.update(()=>{a&&g1(e,a)})}),c}function y0(e,t,n={}){var r;const i=Np(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(l_(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return IW(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function IW(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(LW).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(y0(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function LW(e,t){return e.sortNodePosition(t)}function u_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>y0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=y0(e,t,n);else{const i=typeof t=="function"?Np(e,t,n.custom):t;r=Promise.all(l_(e,i,n))}return r.then(()=>{Qe.postRender(()=>{e.notify("AnimationComplete",t)})})}const $W=[...Uy].reverse(),jW=Uy.length;function DW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>u_(e,n,r)))}function FW(e){let t=DW(e);const n=zW();let r=!0;const i=l=>(u,c)=>{var d;const f=Np(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...m}=f;u={...u,...m,...h}}return u};function o(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let x=0;xh&&w,M=!1;const k=Array.isArray(v)?v:[v];let A=k.reduce(i(g),{});C===!1&&(A={});const{prevResolvedValues:I={}}=y,$={...I,...A},D=B=>{P=!0,f.has(B)&&(M=!0,f.delete(B)),y.needsAnimating[B]=!0;const N=e.getValue(B);N&&(N.liveStyle=!1)};for(const B in $){const N=A[B],H=I[B];if(p.hasOwnProperty(B))continue;let R=!1;c0(N)&&c0(H)?R=!RM(N,H):R=N!==H,R?N!=null?D(B):f.add(B):N!==void 0&&f.has(B)?D(B):y.protectedKeys[B]=!0}y.prevProp=v,y.prevResolvedValues=A,y.isActive&&(p={...p,...A}),r&&e.blockInitialAnimation&&(P=!1),P&&(!E||M)&&d.push(...k.map(B=>({animation:B,options:{type:g}})))}if(f.size){const x={};f.forEach(g=>{const y=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),x[g]=y??null}),d.push({animation:x})}let m=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function NW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!RM(t,e):!1}function Zi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zW(){return{animate:Zi(!0),whileInView:Zi(),whileHover:Zi(),whileTap:Zi(),whileDrag:Zi(),whileFocus:Zi(),exit:Zi()}}class VW extends Ki{constructor(t){super(t),t.animationState||(t.animationState=FW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),jp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let BW=0;class UW extends Ki{constructor(){super(...arguments),this.id=BW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const WW={animation:{Feature:VW},exit:{Feature:UW}},xS=(e,t)=>Math.abs(e-t);function HW(e,t){const n=xS(e.x,t.x),r=xS(e.y,t.y);return Math.sqrt(n**2+r**2)}class c_{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=lm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=HW(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:h}=d,{timestamp:m}=dt;this.history.push({...h,timestamp:m});const{onStart:x,onMove:g}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=am(f,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:h,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=lm(d.type==="pointercancel"?this.lastMoveEventInfo:am(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),h&&h(d,x)},!TM(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Fp(t),a=am(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=dt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,lm(a,this.history)),this.removeListeners=Or(_r(this.contextWindow,"pointermove",this.handlePointerMove),_r(this.contextWindow,"pointerup",this.handlePointerUp),_r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dr(this.updatePoint)}}function am(e,t){return t?{point:t(e.point)}:e}function wS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lm({point:e},t){return{point:e,delta:wS(e,d_(t)),offset:wS(e,GW(t)),velocity:qW(t,.1)}}function GW(e){return e[0]}function d_(e){return e[e.length-1]}function qW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=d_(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$i(t)));)n--;if(!r)return{x:0,y:0};const o=Rr(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function sn(e){return e.max-e.min}function x0(e,t=0,n=.01){return Math.abs(e-t)<=n}function bS(e,t,n,r=.5){e.origin=r,e.originPoint=je(t.min,t.max,e.origin),e.scale=sn(n)/sn(t),(x0(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=je(n.min,n.max,e.origin)-e.originPoint,(x0(e.translate)||isNaN(e.translate))&&(e.translate=0)}function yl(e,t,n,r){bS(e.x,t.x,n.x,r?r.originX:void 0),bS(e.y,t.y,n.y,r?r.originY:void 0)}function SS(e,t,n){e.min=n.min+t.min,e.max=e.min+sn(t)}function KW(e,t,n){SS(e.x,t.x,n.x),SS(e.y,t.y,n.y)}function CS(e,t,n){e.min=t.min-n.min,e.max=e.min+sn(t)}function xl(e,t,n){CS(e.x,t.x,n.x),CS(e.y,t.y,n.y)}function QW(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?je(n,e,r.max):Math.min(e,n)),e}function ES(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function YW(e,{top:t,left:n,bottom:r,right:i}){return{x:ES(e.x,n,i),y:ES(e.y,t,r)}}function PS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=aa(t.min,t.max-r,e.min):r>i&&(n=aa(e.min,e.max-i,t.min)),Bi(0,1,n)}function JW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const w0=.35;function eH(e=w0){return e===!1?e=0:e===!0&&(e=w0),{x:TS(e,"left","right"),y:TS(e,"top","bottom")}}function TS(e,t,n){return{min:kS(e,t),max:kS(e,n)}}function kS(e,t){return typeof e=="number"?e:e[t]||0}const MS=()=>({translate:0,scale:1,origin:0,originPoint:0}),ms=()=>({x:MS(),y:MS()}),_S=()=>({min:0,max:0}),qe=()=>({x:_S(),y:_S()});function fn(e){return[e("x"),e("y")]}function f_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tH({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nH(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function um(e){return e===void 0||e===1}function b0({scale:e,scaleX:t,scaleY:n}){return!um(e)||!um(t)||!um(n)}function ro(e){return b0(e)||p_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function p_(e){return OS(e.x)||OS(e.y)}function OS(e){return e&&e!=="0%"}function uf(e,t,n){const r=e-n,i=t*r;return n+i}function RS(e,t,n,r,i){return i!==void 0&&(e=uf(e,i,r)),uf(e,n,r)+t}function S0(e,t=0,n=1,r,i){e.min=RS(e.min,t,n,r,i),e.max=RS(e.max,t,n,r,i)}function h_(e,{x:t,y:n}){S0(e.x,t.translate,t.scale,t.originPoint),S0(e.y,n.translate,n.scale,n.originPoint)}function rH(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function ii(e,t){e.min=e.min+t,e.max=e.max+t}function IS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=je(e.min,e.max,o);S0(e,t[n],t[r],s,t.scale)}const iH=["x","scaleX","originX"],oH=["y","scaleY","originY"];function gs(e,t){IS(e.x,t,iH),IS(e.y,t,oH)}function m_(e,t){return f_(nH(e.getBoundingClientRect(),t))}function sH(e,t,n){const r=m_(e,n),{scroll:i}=t;return i&&(ii(r.x,i.offset.x),ii(r.y,i.offset.y)),r}const g_=({current:e})=>e?e.ownerDocument.defaultView:null,aH=new WeakMap;class lH{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Fp(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:h}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=MM(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fn(x=>{let g=this.getAxisMotionValue(x).get()||0;if(cr.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[x];v&&(g=sn(v)*(parseFloat(g)/100))}}this.originPoint[x]=g}),h&&h(c,d);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=uH(x),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),m&&m(c,d)},a=(c,d)=>this.stop(c,d),l=()=>fn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new c_(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:g_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&o(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Cc(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=QW(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=YW(i.layoutBox,n):this.constraints=!1,this.elastic=eH(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&fn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=JW(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ps(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=sH(r,i.root,this.visualElement.getTransformPagePoint());let s=XW(i.layout.layoutBox,o);if(n){const a=n(tH(s));this.hasMutatedConstraints=!!a,a&&(s=f_(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=fn(c=>{if(!Cc(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,h)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(f1(t,r,0,n,this.visualElement))}stopAnimation(){fn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){fn(n=>{const{drag:r}=this.getProps();if(!Cc(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-je(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ps(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};fn(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=ZW({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),fn(s=>{if(!Cc(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(je(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;aH.set(this.visualElement,this);const t=this.visualElement.current,n=_r(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ps(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Cr(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(fn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=w0,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Cc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cH extends Ki{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new lH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const LS=e=>(t,n)=>{e&&e(t,n)};class dH extends Ki{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new c_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:LS(t),onStart:LS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&i(o,s)}}}mount(){this.removePointerDownListener=_r(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function fH(){const e=b.useContext(Fy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Xc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $S(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Na={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Z.test(e))e=parseFloat(e);else return e;const n=$S(e,t.target.x),r=$S(e,t.target.y);return`${n}% ${r}%`}},pH={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ui.parse(e);if(i.length>5)return r;const o=Ui.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=je(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class hH extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;mB(mH),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Xc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Qe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),By.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function v_(e){const[t,n]=fH(),r=b.useContext(fM);return S.jsx(hH,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(pM),isPresent:t,safeToRemove:n})}const mH={borderRadius:{...Na,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Na,borderTopRightRadius:Na,borderBottomLeftRadius:Na,borderBottomRightRadius:Na,boxShadow:pH},y_=["TopLeft","TopRight","BottomLeft","BottomRight"],gH=y_.length,jS=e=>typeof e=="string"?parseFloat(e):e,DS=e=>typeof e=="number"||Z.test(e);function vH(e,t,n,r,i,o){i?(e.opacity=je(0,n.opacity!==void 0?n.opacity:1,yH(r)),e.opacityExit=je(t.opacity!==void 0?t.opacity:1,0,xH(r))):o&&(e.opacity=je(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(aa(e,t,r))}function NS(e,t){e.min=t.min,e.max=t.max}function dn(e,t){NS(e.x,t.x),NS(e.y,t.y)}function zS(e,t,n,r,i){return e-=t,e=uf(e,1/n,r),i!==void 0&&(e=uf(e,1/i,r)),e}function wH(e,t=0,n=1,r=.5,i,o=e,s=e){if(cr.test(t)&&(t=parseFloat(t),t=je(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=je(o.min,o.max,r);e===o&&(a-=t),e.min=zS(e.min,t,n,a,i),e.max=zS(e.max,t,n,a,i)}function VS(e,t,[n,r,i],o,s){wH(e,t[n],t[r],t[i],t.scale,o,s)}const bH=["x","scaleX","originX"],SH=["y","scaleY","originY"];function BS(e,t,n,r){VS(e.x,t,bH,n?n.x:void 0,r?r.x:void 0),VS(e.y,t,SH,n?n.y:void 0,r?r.y:void 0)}function US(e){return e.translate===0&&e.scale===1}function w_(e){return US(e.x)&&US(e.y)}function CH(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function b_(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function WS(e){return sn(e.x)/sn(e.y)}class EH{constructor(){this.members=[]}add(t){p1(this.members,t),t.scheduleRender()}remove(t){if(h1(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:h}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const PH=(e,t)=>e.depth-t.depth;class TH{constructor(){this.children=[],this.isDirty=!1}add(t){p1(this.children,t),this.isDirty=!0}remove(t){h1(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PH),this.isDirty=!1,this.children.forEach(t)}}function kH(e,t){const n=ji.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Dr(r),e(o-t))};return Qe.read(r,!0),()=>Dr(r)}function MH(e){window.MotionDebug&&window.MotionDebug.record(e)}function _H(e){return e instanceof SVGElement&&e.tagName!=="svg"}function OH(e,t,n){const r=Ot(e)?e:Er(e);return r.start(f1("",r,t,n)),r.animation}const cm=["","X","Y","Z"],RH={visibility:"hidden"},GS=1e3;let AH=0;const io={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function dm(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function S_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=AH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,io.totalNodes=io.resolvedTargetDeltas=io.recalculatedProjection=0,this.nodes.forEach($H),this.nodes.forEach(zH),this.nodes.forEach(VH),this.nodes.forEach(jH),MH(io)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=kH(f,250),Xc.hasAnimatedSinceResize&&(Xc.hasAnimatedSinceResize=!1,this.nodes.forEach(KS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||GH,{onLayoutAnimationStart:x,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!b_(this.targetLayout,h)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const w={...t1(m,"layout"),onPlay:x,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||KS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(BH),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(DH),this.sharedNodes.forEach(UH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=w/1e3;QS(d.x,s.x,C),QS(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),WH(this.relativeTarget,this.relativeTargetOrigin,f,C),v&&CH(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=qe()),dn(v,this.relativeTarget)),m&&(this.animationValues=c,vH(c,u,this.latestValues,C,y,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{Xc.hasAnimatedSinceResize=!0,this.currentAnimation=OH(0,GS,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(GS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&C_(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||qe();const d=sn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=sn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}dn(a,l),gs(a,c),yl(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new EH),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&dm("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(qS),this.root.sharedNodes.clear()}}}function IH(e){e.updateLayout()}function LH(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?fn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=sn(f);f.min=r[d].min,f.max=f.min+p}):C_(o,n.layoutBox,r)&&fn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=sn(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=ms();yl(a,r,n.layoutBox);const l=ms();s?yl(l,e.applyTransform(i,!0),n.measuredBox):yl(l,r,n.layoutBox);const u=!w_(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const h=qe();xl(h,n.layoutBox,f.layoutBox);const m=qe();xl(m,r,p.layoutBox),b_(h,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $H(e){io.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function DH(e){e.clearSnapshot()}function qS(e){e.clearMeasurements()}function FH(e){e.isLayoutDirty=!1}function NH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function KS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zH(e){e.resolveTargetDelta()}function VH(e){e.calcProjection()}function BH(e){e.resetSkewAndRotation()}function UH(e){e.removeLeadSnapshot()}function QS(e,t,n){e.translate=je(t.translate,0,n),e.scale=je(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function YS(e,t,n,r){e.min=je(t.min,n.min,r),e.max=je(t.max,n.max,r)}function WH(e,t,n,r){YS(e.x,t.x,n.x,r),YS(e.y,t.y,n.y,r)}function HH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GH={duration:.45,ease:[.4,0,.1,1]},XS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ZS=XS("applewebkit/")&&!XS("chrome/")?Math.round:bt;function JS(e){e.min=ZS(e.min),e.max=ZS(e.max)}function qH(e){JS(e.x),JS(e.y)}function C_(e,t,n){return e==="position"||e==="preserve-aspect"&&!x0(WS(t),WS(n),.2)}const KH=S_({attachResizeListener:(e,t)=>Cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fm={current:void 0},E_=S_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fm.current){const e=new KH({});e.mount(window),e.setOptions({layoutScroll:!0}),fm.current=e}return fm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),QH={pan:{Feature:dH},drag:{Feature:cH,ProjectionNode:E_,MeasureLayout:v_}},C0={current:null},P_={current:!1};function YH(){if(P_.current=!0,!!Ny)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>C0.current=e.matches;e.addListener(t),t()}else C0.current=!1}function XH(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Ot(o))e.addValue(i,o),lf(r)&&r.add(i);else if(Ot(s))e.addValue(i,Er(o,{owner:e})),lf(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Er(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const eC=new WeakMap,ZH=[...jM,Mt,Ui],JH=e=>ZH.find($M(e)),T_=Object.keys(su),eG=T_.length,tC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tG=Wy.length;function k_(e){if(e)return e.options.allowProjection!==!1?e.projection:k_(e.parent)}class nG{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.resolveKeyframes=(f,p,h,m)=>new this.KeyframeResolver(f,p,h,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=r1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Qe.render(this.render,!1,!0);const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Dp(n),this.isVariantNode=dM(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&Ot(p)&&(p.set(l[f],!1),lf(c)&&c.add(f))}}mount(t){this.current=t,eC.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),P_.current||YH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:C0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;eC.delete(this.current),this.projection&&this.projection.unmount(),Dr(this.notifyUpdate),Dr(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=zo.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Er(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(IM(i)||AM(i))?i=parseFloat(i):!JH(i)&&Ui.test(n)&&(i=WM(t,n)),this.setBaseTarget(t,Ot(i)?i.get():i)),Ot(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Jy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ot(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new m1),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class M_ extends nG{constructor(){super(...arguments),this.KeyframeResolver=HM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function rG(e){return window.getComputedStyle(e)}class iG extends M_{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(zo.has(n)){const r=o1(n);return r&&r.default||0}else{const r=rG(t),i=(gM(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return m_(t,n)}build(t,n,r,i){Ky(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Zy(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){bM(t,n,r,i)}}class oG extends M_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(zo.has(n)){const r=o1(n);return r&&r.default||0}return n=SM.has(n)?n:Vy(n),t.getAttribute(n)}measureInstanceViewportBox(){return qe()}scrapeMotionValuesFromProps(t,n,r){return EM(t,n,r)}build(t,n,r,i){Yy(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){CM(t,n,r,i)}mount(t){this.isSVGTag=Xy(t.tagName),super.mount(t)}}const sG=(e,t)=>Hy(e)?new oG(t,{enableHardwareAcceleration:!1}):new iG(t,{allowProjection:e!==b.Fragment,enableHardwareAcceleration:!0}),aG={layout:{ProjectionNode:E_,MeasureLayout:v_}},lG={...WW,...rU,...QH,...aG},uG=pB((e,t)=>WB(e,t,lG,sG));function cG(e,t,n){var r;if(typeof e=="string"){let i=document;t&&(n1(!!t.current),i=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}const Zc=new WeakMap;let ti;function dG(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function fG({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Zc.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return dG(e,n)}})})}function pG(e){e.forEach(fG)}function hG(){typeof ResizeObserver>"u"||(ti=new ResizeObserver(pG))}function mG(e,t){ti||hG();const n=cG(e);return n.forEach(r=>{let i=Zc.get(r);i||(i=new Set,Zc.set(r,i)),i.add(t),ti==null||ti.observe(r)}),()=>{n.forEach(r=>{const i=Zc.get(r);i==null||i.delete(t),i!=null&&i.size||ti==null||ti.unobserve(r)})}}const Jc=new Set;let wl;function gG(){wl=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Jc.forEach(n=>n(t))},window.addEventListener("resize",wl)}function vG(e){return Jc.add(e),wl||gG(),()=>{Jc.delete(e),!Jc.size&&wl&&(wl=void 0)}}function yG(e,t){return typeof e=="function"?vG(e):mG(e,t)}const xG=50,nC=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),wG=()=>({time:0,x:nC(),y:nC()}),bG={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function rC(e,t,n,r){const i=n[t],{length:o,position:s}=bG[t],a=i.current,l=n.time;i.current=e[`scroll${s}`],i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=aa(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>xG?0:s1(i.current-a,u)}function SG(e,t,n){rC(e,"x",t,n),rC(e,"y",t,n),t.time=n}function CG(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const o=r.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:o}=r.getBBox();n.x+=i,n.y+=o;let s=null,a=r.parentNode;for(;!s;)a.tagName==="svg"&&(s=a),a=r.parentNode;r=s}else break;return n}const EG={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},E0={start:0,center:.5,end:1};function iC(e,t,n=0){let r=0;if(e in E0&&(e=E0[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const PG=[0,0];function TG(e,t,n,r){let i=Array.isArray(e)?e:PG,o=0,s=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,E0[e]?e:"0"]),o=iC(i[0],n,r),s=iC(i[1],t),o-s}const kG={x:0,y:0};function MG(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function _G(e,t,n){const{offset:r=EG.All}=n,{target:i=e,axis:o="y"}=n,s=o==="y"?"height":"width",a=i!==e?CG(i,e):kG,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:MG(i),u={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let c=!t[o].interpolate;const d=r.length;for(let f=0;fOG(e,r.target,n),update:i=>{SG(e,n,i),(r.offset||r.target)&&_G(e,n,r)},notify:()=>t(n)}}const za=new WeakMap,oC=new WeakMap,pm=new WeakMap,sC=e=>e===document.documentElement?window:e;function AG(e,{container:t=document.documentElement,...n}={}){let r=pm.get(t);r||(r=new Set,pm.set(t,r));const i=wG(),o=RG(t,e,i,n);if(r.add(o),!za.has(t)){const a=()=>{for(const f of r)f.measure()},l=()=>{for(const f of r)f.update(dt.timestamp)},u=()=>{for(const f of r)f.notify()},c=()=>{Qe.read(a,!1,!0),Qe.read(l,!1,!0),Qe.update(u,!1,!0)};za.set(t,c);const d=sC(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&oC.set(t,yG(t,c)),d.addEventListener("scroll",c,{passive:!0})}const s=za.get(t);return Qe.read(s,!1,!0),()=>{var a;Dr(s);const l=pm.get(t);if(!l||(l.delete(o),l.size))return;const u=za.get(t);za.delete(t),u&&(sC(t).removeEventListener("scroll",u),(a=oC.get(t))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function aC(e,t){mU(!!(!t||t.current))}const IG=()=>({scrollX:Er(0),scrollY:Er(0),scrollXProgress:Er(0),scrollYProgress:Er(0)});function Vp({container:e,target:t,layoutEffect:n=!0,...r}={}){const i=e1(IG);return(n?zy:b.useEffect)(()=>(aC("target",t),aC("container",e),AG(({x:s,y:a})=>{i.scrollX.set(s.current),i.scrollXProgress.set(s.progress),i.scrollY.set(a.current),i.scrollYProgress.set(a.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),i}function LG(e){e.values.forEach(t=>t.stop())}function P0(e,t){[...t].reverse().forEach(r=>{const i=e.getVariant(r);i&&g1(e,i),e.variantChildren&&e.variantChildren.forEach(o=>{P0(o,t)})})}function $G(e,t){if(Array.isArray(t))return P0(e,t);if(typeof t=="string")return P0(e,[t]);g1(e,t)}function jG(){const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,r){const i=[];return e.forEach(o=>{i.push(u_(o,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return e.forEach(r=>{$G(r,n)})},stop(){e.forEach(n=>{LG(n)})},mount(){return()=>{t.stop()}}};return t}function DG(){const e=e1(jG);return zy(e.mount,[]),e}const FG=DG,T0=e=>{const{id:t,className:n,background:r,minSize:i,maxSize:o,speed:s,particleColor:a,particleDensity:l}=e,[u,c]=b.useState(!1);b.useEffect(()=>{w7(async p=>{await b7(p)}).then(()=>{c(!0)})},[]);const d=FG(),f=async p=>{p&&(console.log(p),d.start({opacity:1,transition:{duration:1}}))};return S.jsx(uG.div,{style:{...e.sx},animate:d,className:eB("opacity-0",n),children:u&&S.jsx(x7,{id:t||"tsparticles",particlesLoaded:f,options:{background:{color:{value:r||"#0d47a1"}},fullScreen:{enable:!1,zIndex:1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!1,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:200,duration:.4}}},particles:{bounce:{horizontal:{value:1},vertical:{value:1}},collisions:{absorb:{speed:2},bounce:{horizontal:{value:1},vertical:{value:1}},enable:!1,maxSpeed:50,mode:"bounce",overlap:{enable:!0,retries:0}},color:{value:a||"#ffffff",animation:{h:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},s:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},l:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0}}},effect:{close:!0,fill:!0,options:{},type:{}},groups:{},move:{angle:{offset:0,value:90},attract:{distance:200,enable:!1,rotate:{x:3e3,y:3e3}},center:{x:50,y:50,mode:"percent",radius:0},decay:0,distance:{},direction:"none",drift:0,enable:!0,gravity:{acceleration:9.81,enable:!1,inverse:!1,maxSpeed:50},path:{clamp:!0,delay:{value:0},enable:!1,options:{}},outModes:{default:"out"},random:!1,size:!1,speed:{min:.1,max:1},spin:{acceleration:0,enable:!1},straight:!1,trail:{enable:!1,length:10,fill:{}},vibrate:!1,warp:!1},number:{density:{enable:!0,width:400,height:400},limit:{mode:"delete",value:0},value:l||120},opacity:{value:{min:.1,max:1},animation:{count:0,enable:!0,speed:s||4,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},reduceDuplicates:!1,shadow:{blur:0,color:{value:"#000"},enable:!1,offset:{x:0,y:0}},shape:{close:!0,fill:!0,options:{},type:"circle"},size:{value:{min:i||1,max:o||3},animation:{count:0,enable:!1,speed:5,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},stroke:{width:0},zIndex:{value:0,opacityRate:1,sizeRate:1,velocityRate:1},destroy:{bounds:{},mode:"none",split:{count:1,factor:{value:3},rate:{value:{min:4,max:9}},sizeOffset:!0}},roll:{darken:{enable:!1,value:0},enable:!1,enlighten:{enable:!1,value:0},mode:"vertical",speed:25},tilt:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",enable:!1},twinkle:{lines:{enable:!1,frequency:.05,opacity:1},particles:{enable:!1,frequency:.05,opacity:1}},wobble:{distance:5,enable:!1,speed:{angle:50,move:10}},life:{count:0,delay:{value:0,sync:!1},duration:{value:0,sync:!1}},rotate:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",path:!1},orbit:{animation:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!1},enable:!1,opacity:1,rotation:{value:45},width:1},links:{blink:!1,color:{value:"#fff"},consent:!1,distance:100,enable:!1,frequency:1,opacity:1,shadow:{blur:5,color:{value:"#000"},enable:!1},triangles:{enable:!1,frequency:1},width:1,warp:!1},repulse:{value:0,enabled:!1,distance:1,duration:1,factor:1,speed:1}},detectRetina:!0}})})};function lC(e){let t="",n="";e.project.tier=="Silver"?(t="#E5E4E2",n="#9E9E9E"):e.project.tier=="Gold"?(t="#EBD197",n="#B48811"):(t="#DC8E41",n="#BE7023");function r(i){let o=i.toLowerCase().replaceAll("-","").replaceAll(" ","-");return`${Do.getUri()}/sponsor-logos/${o}.png`}return S.jsx(Q,{sx:{...e.sx,boxShadow:5,position:"sticky",height:"60vh",width:{xs:"100%",md:"50vw"},borderRadius:"20px",padding:"30px",background:"linear-gradient(90deg,"+t+", "+n+")"},children:S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",height:"100%",gap:"15px"},children:[S.jsx("img",{style:{maxWidth:"48px",mixBlendMode:"luminosity"},src:"/logo256.png"}),S.jsx(Q,{sx:{marginTop:"10px",display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"30px",maxWidth:"100%"},children:e.project.members.map(i=>S.jsx("img",{style:{maxHeight:"50px",maxWidth:"100%"},src:r(i)}))}),S.jsx(Q,{sx:{flexGrow:1}}),S.jsx(ae,{sx:{lineHeight:.7,fontSize:"2.8rem",fontWeight:"bold",color:"black",textAlign:"end"},children:e.project.tier})]})})}function __(e){const t=W.useRef(null),[n,r]=W.useState(1),[i,o]=W.useState(0),{scrollYProgress:s}=Vp({target:t,offset:["start start","end end"]});return W.useEffect(()=>{s.on("change",a=>{a<.9&&(r(Math.abs(1-a*.08)),o(Math.abs(200*a)))})},[]),S.jsxs(Q,{sx:{...e==null?void 0:e.sx,display:"flex",flexDirection:"column",alignItems:"center",gap:"50px",minHeight:`calc(${400*(e.children.length+1)}px)`,transform:`scale(${n})`},children:[S.jsx(ae,{sx:{position:"sticky",top:`calc(${e.stickyPosition?"33vh":"130px"} - ${i}px)`,fontSize:"2.3rem",fontWeight:"bold",lineHeight:e.stickyPosition?.4:"unset"},children:e.title}),e.children.map((a,l)=>W.cloneElement(a,{sx:{position:"sticky",top:`calc(${e.stickyPosition??"25vh"} + ${l*40}px - ${i}px)`,transform:`scale(${1+l*.03})`}}))]})}function NG(e){const t=W.useRef(null),[n,r]=W.useState(1),[i,o]=W.useState([]),{scrollYProgress:s}=Vp({target:t,offset:["start start","end end"]});return W.useEffect(()=>{s.on("change",a=>{a<.9&&r(Math.abs(1-a*.08))}),o(()=>[{tier:"Gold",members:["IONQ","Amazon Project Kuiper","Fischell Institute","US News","MITRE"]},{tier:"Silver",members:["Lockheed Martin","Booz Allen Hamilton","Children's National Hospital","SECU","Accenture"]},{tier:"Bronze",members:["NSA","General Dynamics IT"]}])},[]),S.jsxs(Q,{sx:{width:"100%",height:"100%",display:"flex",position:"relative",justifyContent:"center",padding:{xs:"15px",md:"0px 100px 0px 50px"}},children:[S.jsxs(Q,{sx:{display:{xs:"none",md:"flex"},flexDirection:"column",width:"100%",height:"max-content",position:"sticky",top:"45vh",left:"0px",textAlign:"center"},children:[S.jsx(ae,{sx:{fontSize:"2.5rem",fontWeight:"bold"},children:"Our Sponsors"}),S.jsx(Mg,{href:"/#/sponsor-us",color:"text.primary",sx:{fontWeight:"bold"},children:"Want to be a part of something amazing? Sponsor us today!"})]}),e!=null&&e.mobileView?S.jsxs(Q,{sx:{display:"flex",flexDirection:"column"},children:[S.jsx(__,{title:"Our Sponsors",stickyPosition:"40vh",children:i.map(a=>S.jsx(lC,{project:a}))}),S.jsx(Mg,{href:"/sponsor-us",color:"text.primary",sx:{fontWeight:"bold",textAlign:"center"},children:"Want to be a part of something amazing? Sponsor us today!"})]}):S.jsx(Q,{ref:t,sx:{...e==null?void 0:e.sx,flexGrow:1,display:"flex",flexDirection:"column",alignItems:"center",gap:"50px",width:"100%",minHeight:`${60*(i.length+1)}vh`,transform:`scale(${n})`},children:i.map((a,l)=>S.jsx(lC,{project:a,sx:{top:`calc(22vh + ${l*40}px)`,transform:`scale(${1+l*.03})`}}))})]})}function zG(e){const[t,n]=W.useState(""),r=()=>{var i;(i=window.open(`mailto:umdappdev@gmail.com?subject=Information Request&body=${t}`))==null||i.focus()};return S.jsxs(Q,{id:e==null?void 0:e.id,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[S.jsx(ae,{id:"contact-us",sx:{fontSize:"3rem",fontWeight:"bold",textAlign:"center"},children:"Stay Connected!"}),S.jsx(ae,{sx:{textAlign:"center"},children:"We hold a lot of events thoughout the year, Keep in touch with us!"}),S.jsx(p2,{sx:{marginTop:"25px"},fontSize:"2rem"}),S.jsx(fF,{sx:{minWidth:{xs:"90%",md:"60%",lg:"40%"},marginTop:"40px"},placeholder:"Drop us an Email!",value:t,onChange:i=>{n(i.target.value)},endAdornment:S.jsx(Wl,{onClick:r,children:S.jsx(MF,{})})})]})}const VG=e=>{for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e},Va=e=>(console.warn(e.highlights),S.jsx(Q,{sx:{width:"100%",...e.sx},id:e.id,children:S.jsx(x2,{autoFill:!0,...e.marquee,style:{padding:e.scale==""?"15px":"20px",margin:e.scale==""?"0px":"-35px 0px -35px 0px"},children:VG(e.highlights).map(t=>S.jsx(ta,{elevation:8,sx:{display:"flex",borderRadius:"20px",background:"white",position:"relative",margin:"0px 50px 0px 50px",scale:e.scale,overflow:"hidden"},children:S.jsx("img",{src:t.img,style:{maxWidth:"400px",maxHeight:"300px"}})}))})}));function BG(){const[e,t]=W.useState([]);return W.useEffect(()=>{Do.get("/api/highlights").then(n=>{if(n.status!=200)return null;t(n.data)})},[]),e.length<1?S.jsx("p",{children:S.jsx("center",{children:"Check us out on Instagram @appdev_umd"})}):S.jsxs(Q,{sx:{width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},children:[S.jsx(T0,{background:"transparent",minSize:.5,maxSize:1.3,particleDensity:40,sx:{position:"absolute",zIndex:1,width:"100%",height:"100%",top:"50px"}}),S.jsx(Va,{id:"bg01-highlightscontainer",marquee:{direction:"left",speed:70},highlights:e.slice(0,4),scale:"0.6",sx:{filter:"blur(6px)",opacity:"0.4",zIndex:1}}),S.jsx(Va,{id:"fg-highlightscontainer",marquee:{direction:"right",speed:50},highlights:e,scale:"",sx:{position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:4}}),S.jsx(Va,{id:"bg02-highlightscontainer",marquee:{direction:"left",speed:90},highlights:e.slice(0,4),scale:"0.6",sx:{filter:"blur(6px)",marginTop:"-170px",zIndex:3,opacity:"0.4"}}),S.jsx(Va,{id:"bg03-highlightscontainer",marquee:{direction:"left",speed:110},highlights:e.slice(0,4),scale:"0.6",sx:{filter:"blur(6px)",marginTop:"-140px",opacity:"0.4",zIndex:2}}),S.jsx(Va,{id:"bg04-highlightscontainer",marquee:{direction:"left",speed:40},highlights:e.slice(0,4),scale:"0.6",sx:{filter:"blur(6px)",marginTop:"-170px",opacity:"0.4",zIndex:1}})]})}const uC=b.forwardRef((e,t)=>{if(e.isLoading)return"Loading...";if(e.error)return e.error.message;const n=W.useRef(null),r=W.useRef(null),{scrollYProgress:i}=Vp({target:n,offset:["start start","end end"]});return W.useEffect(()=>{i.on("change",o=>{r.current&&(r.current.scrollLeft=(r.current.scrollWidth-r.current.clientWidth)*o)})},[]),S.jsx(Q,{ref:t,children:e.mobileView?S.jsx(__,{title:"Projects",sx:{padding:"20px"},children:e.data.map(o=>S.jsx(Kw,{mobileView:!0,project:o},o._id))}):S.jsx(Q,{ref:n,sx:{height:`${e.data.length*600}px`},children:S.jsx(Q,{id:e.id,ref:r,sx:{display:"flex",gap:"30px",padding:"80px 50px 80px 50px",maxWidth:"100%",overflowX:"hidden",top:"100px",position:"sticky"},children:e.data.map(o=>S.jsx(Kw,{mobileView:!1,project:o},o._id))})})})}),cC=[{title:"About",anchor:"/#maindiv-001"},{title:"Projects",anchor:"/#subdiv-002"},{title:"Our Team",anchor:"/#team"},{title:"Sponsors",anchor:"/#sponsors"},{title:"Highlights",anchor:"/#highlights"},{title:"Contact Us",anchor:"/#contact"}];function UG(){function e(w){switch(w){case 1:return"linear-gradient(30deg, #1e1e1e, #5626a1);";case 0:return"radial-gradient(55% 55% at -3% 104%, #0F114AFF 13%, #07074178 41%, #00000014 76%, #073AFF00 99%),radial-gradient(25% 25% at 62% 54%, #2324A9C4 0%, #073AFF00 100%),radial-gradient(25% 44% at 83% 33%, #434EA3FF 0%, #44579D29 65%, #073AFF00 93%),radial-gradient(49% 81% at 45% 47%, #0891A245 0%, #073AFF00 100%),radial-gradient(113% 91% at 17% -2%, #6122A6FF 1%, #FF000000 99%),radial-gradient(142% 91% at 83% 7%, #0522A9FF 1%, #FF000000 99%),radial-gradient(142% 91% at -6% 74%, #1C2581FF 1%, #FF000000 99%),radial-gradient(142% 91% at 109% 60%, #131B36FF 0%, #205353FF 99%)0";case-1:return"linear-gradient(to right, #667db6, #0082c8, #0082c8, #667db6);";case 2:return"linear-gradient(135deg, #000000, #120037, #2e002b, #170018);";case 3:return"radial-gradient(circle at 30% 30%, #5F0F40 0%, #310E68 30%, #5626a1 50%, #1e1e1e 70%, #330136 80%, #560bad 100%), linear-gradient(135deg, #5F0F40, #310E68);";case 4:return"linear-gradient(135deg, #060101, #0e0202, #160303, #1e0404);";case-2:return"linear-gradient(to right, #667db6, #0082c8, #0082c8, #667db6);";default:return"black"}}const t=D3(m2.baseTheme.breakpoints.down("md")),[n,r]=W.useState(-120),[i]=W.useState([]),[o,s]=W.useState({start:0,end:0}),[a,l]=W.useState(!1);W.useEffect(()=>{a&&setTimeout(()=>{s(w=>(l(!1),w.start=w.end,w))},200)},[a]);function u(w){s(C=>(C.end!=w&&(l(!0),C.start=C.end,C.end=w,console.warn(`Gradient Transition: ${C.start} -> ${C.end}`)),C))}const c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(null),h=b.useRef(null),{scrollYProgress:m}=Vp({target:c,offset:["start start","end end"]});W.useEffect(()=>{m.on("change",w=>{var $,D,B,N,H,R,L;r(Math.min(-120*(1-30*w),0));const C=((($=c.current)==null?void 0:$.offsetHeight)??0)*w,E=(((D=f==null?void 0:f.current)==null?void 0:D.offsetTop)??0)-100,T=E+(((B=f==null?void 0:f.current)==null?void 0:B.offsetHeight)??0)+50,P=(((N=p==null?void 0:p.current)==null?void 0:N.offsetTop)??0)-50,M=P+(((H=p==null?void 0:p.current)==null?void 0:H.offsetHeight)??0)+100,k=(((R=h==null?void 0:h.current)==null?void 0:R.offsetTop)??0)-100,A=k+(((L=h==null?void 0:h.current)==null?void 0:L.offsetHeight)??0)+400,I=A;C>E&&CP&&Ck&&CI?u(4):u(0)})},[]);const[x]=W.useState("fixed"),{data:g,isLoading:y,error:v}=Uk({queryKey:["projects"],queryFn:async()=>await Wk.getAll()});return S.jsxs(S.Fragment,{children:[S.jsxs(Q,{ref:c,id:"maindiv-001",sx:{position:"relative"},children:[i.length<1?S.jsx(S.Fragment,{}):S.jsx(BF,{events:i}),S.jsx(jd,{links:cC,fullWidth:!0}),S.jsx(Q,{id:"paddingdiv-001",sx:{height:"50px"}}),S.jsx(Qa.ScrollContainer,{style:{position:x,scrollBehavior:"smooth",overflow:"visible",width:"100%",height:"100%"},children:S.jsx(Qa.ScrollPage,{style:{width:"100%",overflow:"visible",flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:S.jsxs(Qa.Animator,{style:{width:"100%",overflow:"visible"},animation:Qa.batch(HG(1,-.5,0),WG(3,1,0),GG(0,-400,0)),children:[S.jsx("div",{id:"stars1"}),S.jsx("div",{id:"stars2"}),S.jsx("div",{id:"stars3"}),S.jsxs(ae,{sx:{flexGrow:1,fontSize:"4vw",fontWeight:"bold",textAlign:"center"},children:["Empower Code. Inspire Design.",S.jsx("br",{}),"Drive Innovation."]}),S.jsxs(Q,{id:"subdiv-001",ref:d,sx:{display:"flex",flex:1,flexWrap:"wrap",gap:4,marginLeft:{md:8},marginRight:{md:8},marginTop:"5vw",flexDirection:{xs:"column",md:"row"}},children:[S.jsx(Vh,{end:1e6,title:"Dollars Saved",prefix:"$",minWidth:336,alignSelf:{xs:"center",md:"flex-start"}}),S.jsx(Vh,{end:300,title:"Members",minWidth:81}),S.jsx(Vh,{end:9e4,title:"Lines of Code",minWidth:267,alignSelf:{xs:"center",md:"flex-end"}})]})]})})}),S.jsx(Q,{id:"paddingdiv-002",sx:{height:"100vh"}}),t?S.jsx(Q,{ref:f,sx:{padding:"10px"},id:"subdiv-002",children:S.jsx(uC,{sx:{},mobileView:!0,data:g,isLoading:y,error:v})}):S.jsx(Q,{ref:f,id:"subdiv-002",children:S.jsx(uC,{sx:{height:"300vh"},data:g,isLoading:y,error:v})}),t&&!t?S.jsx(S.Fragment,{}):S.jsxs(Q,{id:"team",ref:p,sx:{paddingTop:"100px",background:"linear-gradient(0deg, #00FFFF00 0%, #000000FF 44%, #000000FF 50%, #000000FF 56%, #073AFF00 100%)",transition:"opacity 0.5s ease"},children:[S.jsx(T0,{id:"members_sparkles",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:50,particleColor:"#FFFFFF"}),S.jsx(Q,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:S.jsx(Jz,{id:"member-carousel"})}),S.jsx(T0,{id:"members_sparkles2",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:50,particleColor:"#FFFFFF"})]}),S.jsx(Q,{id:"paddingdiv-003",sx:{height:"150px"}}),S.jsx(Q,{id:"sponsors",ref:h,children:S.jsx(NG,{mobileView:t})}),S.jsx(Q,{id:"paddingdiv-004",sx:{height:"300px"}}),S.jsx(ae,{id:"highlights",sx:{fontSize:"3rem",fontWeight:"bold",textAlign:"center"},children:"Highlights"}),S.jsx(BG,{}),S.jsx(Q,{id:"paddingdiv-006",sx:{height:"200px"}}),S.jsx(zG,{id:"contact"}),S.jsx(Q,{id:"paddingdiv-006",sx:{height:"200px"}}),S.jsx(h2,{}),S.jsx(jd,{links:cC,translucent:!0,sx:{marginTop:"25px",zIndex:5,position:"fixed",top:`${n}px`,left:"0px"}})]}),S.jsx(Q,{id:"maindiv-002",sx:{height:"100vh",width:"100vw",position:"fixed",zIndex:-1,top:"0px","::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e(o.start),transition:"opacity 0.4s",animation:"plasma 6s ease infinite",backgroundBlendMode:o.start==3?"color-dodge":"unset",opacity:a?.5:1,zIndex:1},"::after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e(o.end),animation:"plasma 6s ease infinite",transition:"opacity 0.4s",opacity:a?1:.5,zIndex:0}}})]})}const WG=(e,t,n)=>({out:{style:{transform:r=>(r=Math.max(r-n,0),`scale(${t*(1-r)+e*r})`)}}}),HG=(e,t,n)=>({out:{style:{opacity:r=>(r=Math.max(r-n,0),e*(1-r)+t*r)}}}),GG=(e,t,n)=>({out:{style:{transform:r=>(r=Math.max(r-n,0),`translate(${0*(1-r)+e*r}px, ${0*(1-r)+t*r}px)`)}}});function qG(){const{projectId:e}=A5(),{data:t,isFetching:n,error:r}=Uk({queryKey:["project"],queryFn:async()=>await Wk.getById(e)});return b.useEffect(()=>{window.scrollTo(0,0)},[]),n?S.jsx(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",minHeight:"100vh"},children:S.jsx(gD,{})}):r?S.jsx(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",minHeight:"100vh"},children:S.jsx(k$,{variant:"filled",severity:"error",children:"Unable to retrieve project data..."})}):S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",gap:"20px",justifyContent:"center",alignItems:"center",minHeight:"100vh"},children:[S.jsx(KG,{name:t.name,organization:t.organization}),S.jsx(QG,{description:t.description}),S.jsx(YG,{demo:t.demo}),S.jsx(XG,{members:t.members})]})}function KG(e){return S.jsxs(Q,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[S.jsx(ae,{variant:"h2",sx:{fontWeight:"bold"},children:e.name}),S.jsxs(ae,{variant:"h4",sx:{fontStyle:"italic"},children:["In collaboration with ",e.organization]})]})}function QG(e){return S.jsxs(Q,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[S.jsx(ae,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Overview"}),S.jsx(Qv,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),S.jsx(ae,{children:e.description})]})}function YG(e){return S.jsxs(Q,{children:[S.jsx(ae,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Demo"}),S.jsx(Qv,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),S.jsx(Zj,{sx:{marginTop:"15px",borderRadius:"5px",width:"clamp(25rem, 50vw, 60rem)",backgroundColor:"white",color:"black"},children:e.demo?S.jsx(sD,{component:"iframe",image:e.demo,sx:{width:"inherit",aspectRatio:"16/9",border:"none"}}):S.jsx(ae,{sx:{padding:"15px"},children:"To see a demo of this product, please contact us at umdappdev@gmail.com"})})]})}function XG(e){return S.jsxs(Q,{sx:{width:"clamp(25rem, 50vw, 60rem)"},children:[S.jsx(ae,{variant:"h5",sx:{fontWeight:"bold"},children:"Project Members"}),S.jsx(Qv,{sx:{margin:"0.5rem 0",backgroundColor:"white"}}),S.jsx(Q,{sx:{marginTop:"15px",display:"flex",justifyContent:"center",alignItems:"center",flexWrap:"wrap",gap:"10px"},children:e.members.map((t,n)=>S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",backgroundColor:"white",borderRadius:"5px",color:"black",minWidth:"15%",padding:"1rem"},children:[t.memberInfo.profileUrl?S.jsx($d,{src:t.memberInfo.profileUrl,sx:{width:"50px",height:"50px"}},n):b.createElement($d,{...v2(`${t.memberInfo.firstName} ${t.memberInfo.lastName}`),sx:{width:"50px",height:"50px"},key:n}),S.jsx(ae,{variant:"subtitle1",sx:{fontWeight:"bold",marginTop:"5px"},children:`${t.memberInfo.firstName} ${t.memberInfo.lastName}`}),S.jsx(ae,{variant:"subtitle2",sx:{opacity:"0.75"},children:t.role})]}))})]})}function ZG(){return S.jsx("h1",{children:"WebTierPage"})}function hm(e){return S.jsxs(Q,{sx:{...e==null?void 0:e.sx,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",width:e.width,backgroundColor:"white",borderRadius:"5px",boxShadow:5,color:"black",wordBreak:"break-word"},children:[S.jsx(JG,{tier:e.tier,backgroundColor:e.backgroundColor,price:e.price}),S.jsx(tq,{backgroundColor:e.backgroundColor,benefits:e.benefits,prereq:e.prereq})]})}function JG(e){return S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"60%"},children:[S.jsx(ae,{variant:"h4",sx:{textShadow:"-2px 2px 3px gray"},children:e.tier}),S.jsxs(ae,{variant:"h2",sx:{textShadow:"-2px 2px 3px gray"},children:["$",e.price,"+"]}),S.jsx(ae,{variant:"h6",gutterBottom:!0,sx:{textShadow:"-2px 2px 3px gray"},children:"per year"}),S.jsx(eq,{tier:e.tier,backgroundColor:e.backgroundColor})]})}function eq(e){const t=Of();return S.jsx(Q,{sx:{marginTop:"0.75rem",padding:"0.5rem 1rem",boxShadow:1,backgroundColor:e.backgroundColor,borderRadius:"5px",width:"80%",textAlign:"center",cursor:"pointer"},onClick:()=>t(`/tier/${e.tier}`),children:S.jsxs(ae,{children:["Select ",e.tier," Tier →"]})})}function tq(e){return S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",justifyContent:"left",alignItems:"top",backgroundColor:e.backgroundColor,borderRadius:"5px",padding:"1.5rem",boxShadow:12,width:"105.5%",height:"40%",boxSizing:"border-box"},children:[e.prereq&&S.jsx(ae,{gutterBottom:!0,children:`< Everything included in ${e.prereq}, plus...`}),e.benefits.map((t,n)=>S.jsx(ae,{children:`> ${t}`},n))]})}function nq(){return S.jsxs(Q,{sx:{display:"flex",flexDirection:"column",width:"100%",justifyContent:"center",alignItems:"center",gap:"35px",marginBottom:"100px"},children:[S.jsx(ae,{sx:{textAlign:"center"},variant:"h3",children:"Sponsorship Tiers"}),S.jsxs(Q,{sx:{marginTop:"40px",width:{xs:"100%",md:"75%"},display:"flex",flexDirection:"row",gap:"100px",height:"100vh",flexWrap:"wrap"},children:[S.jsx(hm,{tier:"Gold",backgroundColor:"gold",price:500,benefits:["Apple","ball","cat"],sx:{height:"100%",flexGrow:1}}),S.jsx(hm,{tier:"Silver",backgroundColor:"silver",price:500,benefits:["Apple","ball","cat"],sx:{height:"100%",flexGrow:1}}),S.jsx(hm,{tier:"Bronze",backgroundColor:"#CD7F32",price:500,benefits:["Apple","ball","cat"],sx:{height:"100%",flexGrow:1}})]})]})}const rq=new V9;mm.createRoot(document.getElementById("root")).render(S.jsx(nA,{children:S.jsx(G9,{client:rq,children:S.jsxs(bL,{theme:m2.baseTheme,children:[S.jsx(wD,{}),S.jsxs(K5,{children:[S.jsx(Yo,{path:"/",element:S.jsx(UG,{})}),S.jsxs(Yo,{path:"/",element:S.jsx(zF,{}),children:[S.jsx(Yo,{path:"/project/:projectId",element:S.jsx(qG,{})}),S.jsx(Yo,{path:"tier/:tier",element:S.jsx(ZG,{})}),S.jsx(Yo,{path:"/sponsor-us",element:S.jsx(nq,{})})]})]})]})})}));export{Rq as $,mq as A,hq as B,aq as C,lq as D,Sq as E,bq as F,ZV as G,pt as H,_s as I,fr as J,xq as K,Ly as L,$q as M,wq as N,Eo as O,Bq as P,Zk as Q,Lq as R,Yk as S,Ip as T,Eq as U,jn as V,Kk as W,yq as X,_q as Y,Aq as Z,Te as _,vq as a,Iq as a0,Xk as a1,Mq as a2,Ap as a3,f7 as a4,m7 as a5,Oq as a6,Vq as a7,zq as a8,$y as a9,Tq as aa,jq as ab,Uq as ac,Wq as ad,fs as ae,kq as af,e7 as b,Iy as c,ru as d,iu as e,Gb as f,Nq as g,va as h,No as i,xc as j,gq as k,Cq as l,tf as m,Fq as n,Pq as o,Qh as p,qk as q,Dq as r,ml as s,uq as t,cq as u,fq as v,dq as w,sq as x,oq as y,pq as z}; diff --git a/dist/assets/index-CZxBByzA.js b/dist/assets/index-CZxBByzA.js deleted file mode 100644 index 1c475e7..0000000 --- a/dist/assets/index-CZxBByzA.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/CircleDrawer-DUM8-Gh5.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as i}from"./index-BbPL1Txh.js";async function o(a,e=!0){const{CircleDrawer:r}=await i(()=>import("./CircleDrawer-DUM8-Gh5.js"),__vite__mapDeps([0,1,2]));await a.addShape("circle",new r,e)}export{o as loadCircleShape}; diff --git a/dist/assets/index-DLULLknW.js b/dist/assets/index-CbvRTKHC.js similarity index 87% rename from dist/assets/index-DLULLknW.js rename to dist/assets/index-CbvRTKHC.js index 35cb7ed..cb54a6b 100644 --- a/dist/assets/index-DLULLknW.js +++ b/dist/assets/index-CbvRTKHC.js @@ -4,4 +4,4 @@ function __vite__mapDeps(indexes) { } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as n}from"./index-BbPL1Txh.js";async function i(a,t=!0){await a.addInteractor("externalPause",async e=>{const{Pauser:r}=await n(()=>import("./Pauser-DNnHNTke.js"),__vite__mapDeps([0,1]));return new r(e)},t)}export{i as loadExternalPauseInteraction}; +import{_ as n}from"./index-CShsFACI.js";async function i(a,t=!0){await a.addInteractor("externalPause",async e=>{const{Pauser:r}=await n(()=>import("./Pauser-DNnHNTke.js"),__vite__mapDeps([0,1]));return new r(e)},t)}export{i as loadExternalPauseInteraction}; diff --git a/dist/assets/index-Chj5qFiT.js b/dist/assets/index-Chj5qFiT.js deleted file mode 100644 index fbefc7a..0000000 --- a/dist/assets/index-Chj5qFiT.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/StarDrawer-BGWkxu61.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as e}from"./index-BbPL1Txh.js";async function _(a,t=!0){const{StarDrawer:r}=await e(()=>import("./StarDrawer-BGWkxu61.js"),__vite__mapDeps([0,1,2]));await a.addShape("star",new r,t)}export{_ as loadStarShape}; diff --git a/dist/assets/index-Cj3Eb7FU.js b/dist/assets/index-Cj3Eb7FU.js deleted file mode 100644 index 7a58be1..0000000 --- a/dist/assets/index-Cj3Eb7FU.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/PolygonDrawer-DbYV5apv.js","assets/PolygonDrawerBase-BwGZ5jWk.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/TriangleDrawer-lfOOwZVf.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as n}from"./index-BbPL1Txh.js";async function e(a,o=!0){const{PolygonDrawer:t}=await n(()=>import("./PolygonDrawer-DbYV5apv.js"),__vite__mapDeps([0,1,2,3]));await a.addShape("polygon",new t,o)}async function i(a,o=!0){const{TriangleDrawer:t}=await n(()=>import("./TriangleDrawer-lfOOwZVf.js"),__vite__mapDeps([4,1,2,3]));await a.addShape("triangle",new t,o)}async function _(a,o=!0){await e(a,o),await i(a,o)}export{e as loadGenericPolygonShape,_ as loadPolygonShape,i as loadTriangleShape}; diff --git a/dist/assets/index-DzgRBc1Z.js b/dist/assets/index-CmOj1iTh.js similarity index 58% rename from dist/assets/index-DzgRBc1Z.js rename to dist/assets/index-CmOj1iTh.js index 0230a57..347fc92 100644 --- a/dist/assets/index-DzgRBc1Z.js +++ b/dist/assets/index-CmOj1iTh.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Remover-DLF4yMCL.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/Remover-Ckgil0zK.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{s as o,_ as r}from"./index-BbPL1Txh.js";class s{constructor(){this.quantity=2}load(t){if(!t)return;const e=t.quantity;e!==void 0&&(this.quantity=o(e))}}async function u(n,t=!0){await n.addInteractor("externalRemove",async e=>{const{Remover:a}=await r(()=>import("./Remover-DLF4yMCL.js"),__vite__mapDeps([0,1,2,3]));return new a(e)},t)}export{s as Remove,u as loadExternalRemoveInteraction}; +import{s as o,_ as r}from"./index-CShsFACI.js";class s{constructor(){this.quantity=2}load(t){if(!t)return;const e=t.quantity;e!==void 0&&(this.quantity=o(e))}}async function u(n,t=!0){await n.addInteractor("externalRemove",async e=>{const{Remover:a}=await r(()=>import("./Remover-Ckgil0zK.js"),__vite__mapDeps([0,1,2,3]));return new a(e)},t)}export{s as Remove,u as loadExternalRemoveInteraction}; diff --git a/dist/assets/index-BGyF8PgE.js b/dist/assets/index-CpYebIb2.js similarity index 72% rename from dist/assets/index-BGyF8PgE.js rename to dist/assets/index-CpYebIb2.js index 1816841..d1a428d 100644 --- a/dist/assets/index-BGyF8PgE.js +++ b/dist/assets/index-CpYebIb2.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Connector-DFByauI0.js","assets/CanvasUtils-DQ_CMgM7.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js"] + __vite__mapDeps.viteFileDeps = ["assets/Connector-CUk_Iy0P.js","assets/CanvasUtils-DvqPZfvK.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as s}from"./index-BbPL1Txh.js";class o{constructor(){this.opacity=.5}load(n){n&&n.opacity!==void 0&&(this.opacity=n.opacity)}}class c{constructor(){this.distance=80,this.links=new o,this.radius=60}load(n){n&&(n.distance!==void 0&&(this.distance=n.distance),this.links.load(n.links),n.radius!==void 0&&(this.radius=n.radius))}}async function a(i,n=!0){await i.addInteractor("externalConnect",async t=>{const{Connector:e}=await s(()=>import("./Connector-DFByauI0.js"),__vite__mapDeps([0,1,2,3,4]));return new e(t)},n)}export{c as Connect,o as ConnectLinks,a as loadExternalConnectInteraction}; +import{_ as s}from"./index-CShsFACI.js";class o{constructor(){this.opacity=.5}load(n){n&&n.opacity!==void 0&&(this.opacity=n.opacity)}}class c{constructor(){this.distance=80,this.links=new o,this.radius=60}load(n){n&&(n.distance!==void 0&&(this.distance=n.distance),this.links.load(n.links),n.radius!==void 0&&(this.radius=n.radius))}}async function a(i,n=!0){await i.addInteractor("externalConnect",async t=>{const{Connector:e}=await s(()=>import("./Connector-CUk_Iy0P.js"),__vite__mapDeps([0,1,2,3,4]));return new e(t)},n)}export{c as Connect,o as ConnectLinks,a as loadExternalConnectInteraction}; diff --git a/dist/assets/index-Dxcs0UKz.js b/dist/assets/index-Cyi3q7NY.js similarity index 69% rename from dist/assets/index-Dxcs0UKz.js rename to dist/assets/index-Cyi3q7NY.js index a86faad..f88779a 100644 --- a/dist/assets/index-Dxcs0UKz.js +++ b/dist/assets/index-Cyi3q7NY.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Bubbler-DBb423FI.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js","assets/Ranges-DOcs18nu.js","assets/OptionsColor-Ceq0kCZC.js"] + __vite__mapDeps.viteFileDeps = ["assets/Bubbler-D3Q8Q7o4.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js","assets/Ranges-Cgpup9mk.js","assets/OptionsColor-39-7GBLs.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{i as t,e as o,_ as u}from"./index-BbPL1Txh.js";import{O as c}from"./OptionsColor-Ceq0kCZC.js";class n{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const s=t(this.color)?void 0:this.color;this.color=o(e.color,i=>c.create(s,i))}e.size!==void 0&&(this.size=e.size)}}}class l extends n{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class h extends n{load(e){super.load(e),e&&(this.divs=o(e.divs,s=>{const i=new l;return i.load(s),i}))}}async function p(r,e=!0){await r.addInteractor("externalBubble",async s=>{const{Bubbler:i}=await u(()=>import("./Bubbler-DBb423FI.js"),__vite__mapDeps([0,1,2,3,4,5]));return new i(s)},e)}export{h as Bubble,n as BubbleBase,l as BubbleDiv,p as loadExternalBubbleInteraction}; +import{i as t,e as o,_ as u}from"./index-CShsFACI.js";import{O as c}from"./OptionsColor-39-7GBLs.js";class n{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const s=t(this.color)?void 0:this.color;this.color=o(e.color,i=>c.create(s,i))}e.size!==void 0&&(this.size=e.size)}}}class l extends n{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class h extends n{load(e){super.load(e),e&&(this.divs=o(e.divs,s=>{const i=new l;return i.load(s),i}))}}async function p(r,e=!0){await r.addInteractor("externalBubble",async s=>{const{Bubbler:i}=await u(()=>import("./Bubbler-D3Q8Q7o4.js"),__vite__mapDeps([0,1,2,3,4,5]));return new i(s)},e)}export{h as Bubble,n as BubbleBase,l as BubbleDiv,p as loadExternalBubbleInteraction}; diff --git a/dist/assets/index-DR0baXpM.js b/dist/assets/index-CyymV-gL.js similarity index 51% rename from dist/assets/index-DR0baXpM.js rename to dist/assets/index-CyymV-gL.js index c1be09a..f7718c1 100644 --- a/dist/assets/index-DR0baXpM.js +++ b/dist/assets/index-CyymV-gL.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/ColorUpdater-8gej-bYz.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/ColorUpdater-D9uYGMD0.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as e}from"./index-BbPL1Txh.js";async function i(r,o=!0){await r.addParticleUpdater("color",async t=>{const{ColorUpdater:a}=await e(()=>import("./ColorUpdater-8gej-bYz.js"),__vite__mapDeps([0,1,2]));return new a(t)},o)}export{i as loadColorUpdater}; +import{_ as e}from"./index-CShsFACI.js";async function i(r,o=!0){await r.addParticleUpdater("color",async t=>{const{ColorUpdater:a}=await e(()=>import("./ColorUpdater-D9uYGMD0.js"),__vite__mapDeps([0,1,2]));return new a(t)},o)}export{i as loadColorUpdater}; diff --git a/dist/assets/index-jKKFtAuZ.js b/dist/assets/index-CzzyTFZc.js similarity index 51% rename from dist/assets/index-jKKFtAuZ.js rename to dist/assets/index-CzzyTFZc.js index c2f1e21..c0f77d2 100644 --- a/dist/assets/index-jKKFtAuZ.js +++ b/dist/assets/index-CzzyTFZc.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/SizeUpdater-BqQzkQ-Q.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/SizeUpdater-CS0MnJFd.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as r}from"./index-BbPL1Txh.js";async function o(t,a=!0){await t.addParticleUpdater("size",async()=>{const{SizeUpdater:e}=await r(()=>import("./SizeUpdater-BqQzkQ-Q.js"),__vite__mapDeps([0,1,2]));return new e},a)}export{o as loadSizeUpdater}; +import{_ as r}from"./index-CShsFACI.js";async function o(t,a=!0){await t.addParticleUpdater("size",async()=>{const{SizeUpdater:e}=await r(()=>import("./SizeUpdater-CS0MnJFd.js"),__vite__mapDeps([0,1,2]));return new e},a)}export{o as loadSizeUpdater}; diff --git a/dist/assets/index-D0mBiceO.js b/dist/assets/index-D4B8HC_p.js similarity index 68% rename from dist/assets/index-D0mBiceO.js rename to dist/assets/index-D4B8HC_p.js index ab7840d..efb0d29 100644 --- a/dist/assets/index-D0mBiceO.js +++ b/dist/assets/index-D4B8HC_p.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Grabber-CexBlJXm.js","assets/CanvasUtils-DQ_CMgM7.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js","assets/OptionsColor-Ceq0kCZC.js"] + __vite__mapDeps.viteFileDeps = ["assets/Grabber-74PbJGjC.js","assets/CanvasUtils-DvqPZfvK.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js","assets/OptionsColor-39-7GBLs.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as e}from"./index-BbPL1Txh.js";import{O as s}from"./OptionsColor-Ceq0kCZC.js";class r{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(i){i&&(i.blink!==void 0&&(this.blink=i.blink),i.color!==void 0&&(this.color=s.create(this.color,i.color)),i.consent!==void 0&&(this.consent=i.consent),i.opacity!==void 0&&(this.opacity=i.opacity))}}class f{constructor(){this.distance=100,this.links=new r}load(i){i&&(i.distance!==void 0&&(this.distance=i.distance),this.links.load(i.links))}}async function a(n,i=!0){await n.addInteractor("externalGrab",async o=>{const{Grabber:t}=await e(()=>import("./Grabber-CexBlJXm.js"),__vite__mapDeps([0,1,2,3,4,5]));return new t(o)},i)}export{f as Grab,r as GrabLinks,a as loadExternalGrabInteraction}; +import{_ as e}from"./index-CShsFACI.js";import{O as s}from"./OptionsColor-39-7GBLs.js";class r{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(i){i&&(i.blink!==void 0&&(this.blink=i.blink),i.color!==void 0&&(this.color=s.create(this.color,i.color)),i.consent!==void 0&&(this.consent=i.consent),i.opacity!==void 0&&(this.opacity=i.opacity))}}class f{constructor(){this.distance=100,this.links=new r}load(i){i&&(i.distance!==void 0&&(this.distance=i.distance),this.links.load(i.links))}}async function a(n,i=!0){await n.addInteractor("externalGrab",async o=>{const{Grabber:t}=await e(()=>import("./Grabber-74PbJGjC.js"),__vite__mapDeps([0,1,2,3,4,5]));return new t(o)},i)}export{f as Grab,r as GrabLinks,a as loadExternalGrabInteraction}; diff --git a/dist/assets/index-D5dHnt_J.js b/dist/assets/index-D5dHnt_J.js deleted file mode 100644 index 471b2fc..0000000 --- a/dist/assets/index-D5dHnt_J.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/StrokeColorUpdater-C04wHVHf.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as e}from"./index-BbPL1Txh.js";async function i(r,o=!0){await r.addParticleUpdater("strokeColor",async t=>{const{StrokeColorUpdater:a}=await e(()=>import("./StrokeColorUpdater-C04wHVHf.js"),__vite__mapDeps([0,1,2]));return new a(t)},o)}export{i as loadStrokeColorUpdater}; diff --git a/dist/assets/index-BRlKzsgu.js b/dist/assets/index-DeJl6bSD.js similarity index 70% rename from dist/assets/index-BRlKzsgu.js rename to dist/assets/index-DeJl6bSD.js index e23df86..5588cb6 100644 --- a/dist/assets/index-BRlKzsgu.js +++ b/dist/assets/index-DeJl6bSD.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Pusher-DzZsxRS5.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js"] + __vite__mapDeps.viteFileDeps = ["assets/Pusher-VTV1xu9a.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/ExternalInteractorBase-CIi3zRdK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{s,_ as n}from"./index-BbPL1Txh.js";class o{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(!t)return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(u=>u)),this.groups.length||(this.default=!0);const e=t.quantity;e!==void 0&&(this.quantity=s(e))}}async function a(i,t=!0){await i.addInteractor("externalPush",async e=>{const{Pusher:u}=await n(()=>import("./Pusher-DzZsxRS5.js"),__vite__mapDeps([0,1,2,3]));return new u(e)},t)}export{o as Push,a as loadExternalPushInteraction}; +import{s,_ as n}from"./index-CShsFACI.js";class o{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(!t)return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(u=>u)),this.groups.length||(this.default=!0);const e=t.quantity;e!==void 0&&(this.quantity=s(e))}}async function a(i,t=!0){await i.addInteractor("externalPush",async e=>{const{Pusher:u}=await n(()=>import("./Pusher-VTV1xu9a.js"),__vite__mapDeps([0,1,2,3]));return new u(e)},t)}export{o as Push,a as loadExternalPushInteraction}; diff --git a/dist/assets/index-kWzwevuU.js b/dist/assets/index-DieO57wC.js similarity index 75% rename from dist/assets/index-kWzwevuU.js rename to dist/assets/index-DieO57wC.js index 46a0cde..af3850f 100644 --- a/dist/assets/index-kWzwevuU.js +++ b/dist/assets/index-DieO57wC.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Repulser-C9Ls11wj.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/Ranges-DOcs18nu.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/Repulser-CC8e7fmU.js","assets/ExternalInteractorBase-CIi3zRdK.js","assets/Ranges-Cgpup9mk.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{e as r,_ as o}from"./index-BbPL1Txh.js";class t{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class u extends t{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class c extends t{load(e){super.load(e),e&&(this.divs=r(e.divs,n=>{const i=new u;return i.load(n),i}))}}async function l(s,e=!0){await s.addInteractor("externalRepulse",async n=>{const{Repulser:i}=await o(()=>import("./Repulser-C9Ls11wj.js"),__vite__mapDeps([0,1,2,3,4]));return new i(s,n)},e)}export{c as Repulse,t as RepulseBase,u as RepulseDiv,l as loadExternalRepulseInteraction}; +import{e as r,_ as o}from"./index-CShsFACI.js";class t{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class u extends t{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class c extends t{load(e){super.load(e),e&&(this.divs=r(e.divs,n=>{const i=new u;return i.load(n),i}))}}async function l(s,e=!0){await s.addInteractor("externalRepulse",async n=>{const{Repulser:i}=await o(()=>import("./Repulser-CC8e7fmU.js"),__vite__mapDeps([0,1,2,3,4]));return new i(s,n)},e)}export{c as Repulse,t as RepulseBase,u as RepulseDiv,l as loadExternalRepulseInteraction}; diff --git a/dist/assets/index-CueqtFgO.js b/dist/assets/index-DmxnH_zU.js similarity index 54% rename from dist/assets/index-CueqtFgO.js rename to dist/assets/index-DmxnH_zU.js index 13fd3e4..2e3d404 100644 --- a/dist/assets/index-CueqtFgO.js +++ b/dist/assets/index-DmxnH_zU.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/LifeUpdater-DvmeYpZG.js","assets/ValueWithRandom-Dsu4V_5I.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/LifeUpdater-_A1XjI5y.js","assets/ValueWithRandom-BsNMdqfS.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as i}from"./index-BbPL1Txh.js";async function d(t,a=!0){await t.addParticleUpdater("life",async e=>{const{LifeUpdater:r}=await i(()=>import("./LifeUpdater-DvmeYpZG.js"),__vite__mapDeps([0,1,2,3]));return new r(e)},a)}export{d as loadLifeUpdater}; +import{_ as i}from"./index-CShsFACI.js";async function d(t,a=!0){await t.addParticleUpdater("life",async e=>{const{LifeUpdater:r}=await i(()=>import("./LifeUpdater-_A1XjI5y.js"),__vite__mapDeps([0,1,2,3]));return new r(e)},a)}export{d as loadLifeUpdater}; diff --git a/dist/assets/index-DtOIm4kO.js b/dist/assets/index-DtOIm4kO.js new file mode 100644 index 0000000..54ca072 --- /dev/null +++ b/dist/assets/index-DtOIm4kO.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/StarDrawer-o68z3SAe.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as e}from"./index-CShsFACI.js";async function _(a,t=!0){const{StarDrawer:r}=await e(()=>import("./StarDrawer-o68z3SAe.js"),__vite__mapDeps([0,1,2]));await a.addShape("star",new r,t)}export{_ as loadStarShape}; diff --git a/dist/assets/index-DpxouOhY.js b/dist/assets/index-DtthGcYK.js similarity index 58% rename from dist/assets/index-DpxouOhY.js rename to dist/assets/index-DtthGcYK.js index 2b03305..04439c7 100644 --- a/dist/assets/index-DpxouOhY.js +++ b/dist/assets/index-DtthGcYK.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/EmojiDrawer-ObwpP6eH.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/EmojiDrawer-Ddr8tlYS.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as a}from"./index-BbPL1Txh.js";const i=["emoji"];async function r(e,o=!0){const{EmojiDrawer:t}=await a(()=>import("./EmojiDrawer-ObwpP6eH.js"),__vite__mapDeps([0,1,2]));await e.addShape(i,new t,o)}const n=Object.freeze(Object.defineProperty({__proto__:null,loadEmojiShape:r},Symbol.toStringTag,{value:"Module"}));export{n as i,i as v}; +import{_ as a}from"./index-CShsFACI.js";const i=["emoji"];async function r(e,o=!0){const{EmojiDrawer:t}=await a(()=>import("./EmojiDrawer-Ddr8tlYS.js"),__vite__mapDeps([0,1,2]));await e.addShape(i,new t,o)}const n=Object.freeze(Object.defineProperty({__proto__:null,loadEmojiShape:r},Symbol.toStringTag,{value:"Module"}));export{n as i,i as v}; diff --git a/dist/assets/index-DvFJ0GAq.js b/dist/assets/index-DvFJ0GAq.js new file mode 100644 index 0000000..e7aca11 --- /dev/null +++ b/dist/assets/index-DvFJ0GAq.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/index-C5Yrt80Z.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/index-SbQKj88b.js","assets/index-CyymV-gL.js","assets/index-B-eNKEuG.js","assets/index-B_a7NW2Q.js","assets/index-CzzyTFZc.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as t}from"./index-CShsFACI.js";async function s(a,_=!0){const{loadBaseMover:o}=await t(()=>import("./index-C5Yrt80Z.js"),__vite__mapDeps([0,1,2])),{loadCircleShape:i}=await t(()=>import("./index-SbQKj88b.js"),__vite__mapDeps([3,1,2])),{loadColorUpdater:r}=await t(()=>import("./index-CyymV-gL.js"),__vite__mapDeps([4,1,2])),{loadOpacityUpdater:d}=await t(()=>import("./index-B-eNKEuG.js"),__vite__mapDeps([5,1,2])),{loadOutModesUpdater:e}=await t(()=>import("./index-B_a7NW2Q.js"),__vite__mapDeps([6,1,2])),{loadSizeUpdater:l}=await t(()=>import("./index-CzzyTFZc.js"),__vite__mapDeps([7,1,2]));await o(a,!1),await i(a,!1),await r(a,!1),await d(a,!1),await e(a,!1),await l(a,!1),await a.refresh(_)}export{s as loadBasic}; diff --git a/dist/assets/index-Dex8x5sq.js b/dist/assets/index-H2xFEDUi.js similarity index 55% rename from dist/assets/index-Dex8x5sq.js rename to dist/assets/index-H2xFEDUi.js index 711075c..9248101 100644 --- a/dist/assets/index-Dex8x5sq.js +++ b/dist/assets/index-H2xFEDUi.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Bouncer-6wC7AxvL.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/Ranges-DOcs18nu.js","assets/ExternalInteractorBase-CIi3zRdK.js"] + __vite__mapDeps.viteFileDeps = ["assets/Bouncer-BFBk-ddf.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/Ranges-Cgpup9mk.js","assets/ExternalInteractorBase-CIi3zRdK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as o}from"./index-BbPL1Txh.js";class i{constructor(){this.distance=200}load(n){n&&n.distance!==void 0&&(this.distance=n.distance)}}async function a(t,n=!0){await t.addInteractor("externalBounce",async e=>{const{Bouncer:r}=await o(()=>import("./Bouncer-6wC7AxvL.js"),__vite__mapDeps([0,1,2,3,4]));return new r(e)},n)}export{i as Bounce,a as loadExternalBounceInteraction}; +import{_ as o}from"./index-CShsFACI.js";class i{constructor(){this.distance=200}load(n){n&&n.distance!==void 0&&(this.distance=n.distance)}}async function a(t,n=!0){await t.addInteractor("externalBounce",async e=>{const{Bouncer:r}=await o(()=>import("./Bouncer-BFBk-ddf.js"),__vite__mapDeps([0,1,2,3,4]));return new r(e)},n)}export{i as Bounce,a as loadExternalBounceInteraction}; diff --git a/dist/assets/index-SbQKj88b.js b/dist/assets/index-SbQKj88b.js new file mode 100644 index 0000000..845efd4 --- /dev/null +++ b/dist/assets/index-SbQKj88b.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/CircleDrawer-2c1i4lI_.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as i}from"./index-CShsFACI.js";async function o(a,e=!0){const{CircleDrawer:r}=await i(()=>import("./CircleDrawer-2c1i4lI_.js"),__vite__mapDeps([0,1,2]));await a.addShape("circle",new r,e)}export{o as loadCircleShape}; diff --git a/dist/assets/index-Uy2IqHz2.js b/dist/assets/index-Uy2IqHz2.js deleted file mode 100644 index edaa75d..0000000 --- a/dist/assets/index-Uy2IqHz2.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Attractor-BG9gjKtA.js","assets/ParticlesInteractorBase-vfDeBun3.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as c}from"./index-BbPL1Txh.js";async function i(t,r=!0){await t.addInteractor("particlesAttract",async a=>{const{Attractor:o}=await c(()=>import("./Attractor-BG9gjKtA.js"),__vite__mapDeps([0,1,2,3]));return new o(a)},r)}export{i as loadParticlesAttractInteraction}; diff --git a/dist/assets/index-DTnviRFa.js b/dist/assets/index-XfIYD3kU.js similarity index 50% rename from dist/assets/index-DTnviRFa.js rename to dist/assets/index-XfIYD3kU.js index 528dec4..b107107 100644 --- a/dist/assets/index-DTnviRFa.js +++ b/dist/assets/index-XfIYD3kU.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/ParallaxMover-BA-dpb0_.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] + __vite__mapDeps.viteFileDeps = ["assets/ParallaxMover-B8zWFvWV.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as t}from"./index-BbPL1Txh.js";async function l(a,r=!0){await a.addMover("parallax",async()=>{const{ParallaxMover:o}=await t(()=>import("./ParallaxMover-BA-dpb0_.js"),__vite__mapDeps([0,1,2]));return new o},r)}export{l as loadParallaxMover}; +import{_ as t}from"./index-CShsFACI.js";async function l(a,r=!0){await a.addMover("parallax",async()=>{const{ParallaxMover:o}=await t(()=>import("./ParallaxMover-B8zWFvWV.js"),__vite__mapDeps([0,1,2]));return new o},r)}export{l as loadParallaxMover}; diff --git a/dist/assets/index-n6cAyR6z.js b/dist/assets/index-n6cAyR6z.js deleted file mode 100644 index 2f88db3..0000000 --- a/dist/assets/index-n6cAyR6z.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-BpVT3pP3.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/index-CZxBByzA.js","assets/index-DR0baXpM.js","assets/index-sGc9p_8U.js","assets/index-CGJZHg63.js","assets/index-jKKFtAuZ.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as t}from"./index-BbPL1Txh.js";async function s(a,_=!0){const{loadBaseMover:o}=await t(()=>import("./index-BpVT3pP3.js"),__vite__mapDeps([0,1,2])),{loadCircleShape:i}=await t(()=>import("./index-CZxBByzA.js"),__vite__mapDeps([3,1,2])),{loadColorUpdater:r}=await t(()=>import("./index-DR0baXpM.js"),__vite__mapDeps([4,1,2])),{loadOpacityUpdater:d}=await t(()=>import("./index-sGc9p_8U.js"),__vite__mapDeps([5,1,2])),{loadOutModesUpdater:e}=await t(()=>import("./index-CGJZHg63.js"),__vite__mapDeps([6,1,2])),{loadSizeUpdater:l}=await t(()=>import("./index-jKKFtAuZ.js"),__vite__mapDeps([7,1,2]));await o(a,!1),await i(a,!1),await r(a,!1),await d(a,!1),await e(a,!1),await l(a,!1),await a.refresh(_)}export{s as loadBasic}; diff --git a/dist/assets/index-DAZDQalY.js b/dist/assets/index-qvjFb8Na.js similarity index 56% rename from dist/assets/index-DAZDQalY.js rename to dist/assets/index-qvjFb8Na.js index a753734..15136d8 100644 --- a/dist/assets/index-DAZDQalY.js +++ b/dist/assets/index-qvjFb8Na.js @@ -1,7 +1,7 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Collider-DqsnJ90f.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/ParticlesInteractorBase-vfDeBun3.js"] + __vite__mapDeps.viteFileDeps = ["assets/Collider-CSRYd96m.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/ParticlesInteractorBase-vfDeBun3.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -import{_ as a}from"./index-BbPL1Txh.js";async function n(t,o=!0){await t.addInteractor("particlesCollisions",async i=>{const{Collider:r}=await a(()=>import("./Collider-DqsnJ90f.js"),__vite__mapDeps([0,1,2,3]));return new r(i)},o)}export{n as loadParticlesCollisionsInteraction}; +import{_ as a}from"./index-CShsFACI.js";async function n(t,o=!0){await t.addInteractor("particlesCollisions",async i=>{const{Collider:r}=await a(()=>import("./Collider-CSRYd96m.js"),__vite__mapDeps([0,1,2,3]));return new r(i)},o)}export{n as loadParticlesCollisionsInteraction}; diff --git a/dist/assets/index-wa-izovl.js b/dist/assets/index-wa-izovl.js new file mode 100644 index 0000000..9252db7 --- /dev/null +++ b/dist/assets/index-wa-izovl.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/StrokeColorUpdater-DKgLaWa7.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as e}from"./index-CShsFACI.js";async function i(r,o=!0){await r.addParticleUpdater("strokeColor",async t=>{const{StrokeColorUpdater:a}=await e(()=>import("./StrokeColorUpdater-DKgLaWa7.js"),__vite__mapDeps([0,1,2]));return new a(t)},o)}export{i as loadStrokeColorUpdater}; diff --git a/dist/assets/index-4z1oJj1v.js b/dist/assets/index-xhEDNmcn.js similarity index 72% rename from dist/assets/index-4z1oJj1v.js rename to dist/assets/index-xhEDNmcn.js index 9771602..6147c5a 100644 --- a/dist/assets/index-4z1oJj1v.js +++ b/dist/assets/index-xhEDNmcn.js @@ -1 +1 @@ -import{a as i}from"./index-BbPL1Txh.js";async function s(){i("ease-in-quad",a=>a**2),i("ease-out-quad",a=>1-(1-a)**2),i("ease-in-out-quad",a=>a<.5?2*a**2:1-(-2*a+2)**2/2),await Promise.resolve()}export{s as loadEasingQuadPlugin}; +import{a as i}from"./index-CShsFACI.js";async function s(){i("ease-in-quad",a=>a**2),i("ease-out-quad",a=>1-(1-a)**2),i("ease-in-out-quad",a=>a<.5?2*a**2:1-(-2*a+2)**2/2),await Promise.resolve()}export{s as loadEasingQuadPlugin}; diff --git a/dist/assets/interaction-TJRqQwCj.js b/dist/assets/interaction-TJRqQwCj.js deleted file mode 100644 index e60ea44..0000000 --- a/dist/assets/interaction-TJRqQwCj.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Linker-i7yvafQ3.js","assets/Ranges-DOcs18nu.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css","assets/index-Hv8I8PQE.js","assets/OptionsColor-Ceq0kCZC.js","assets/ParticlesInteractorBase-vfDeBun3.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as i}from"./index-BbPL1Txh.js";async function o(t,r=!0){await t.addInteractor("particlesLinks",async a=>{const{Linker:n}=await i(()=>import("./Linker-i7yvafQ3.js"),__vite__mapDeps([0,1,2,3,4,5,6]));return new n(a)},r)}export{o as loadLinksInteraction}; diff --git a/dist/assets/interaction-aCMNmKPM.js b/dist/assets/interaction-aCMNmKPM.js new file mode 100644 index 0000000..d0c74f8 --- /dev/null +++ b/dist/assets/interaction-aCMNmKPM.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/Linker-CD0yKFxt.js","assets/Ranges-Cgpup9mk.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css","assets/index-B1uaaKWk.js","assets/OptionsColor-39-7GBLs.js","assets/ParticlesInteractorBase-vfDeBun3.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as i}from"./index-CShsFACI.js";async function o(t,r=!0){await t.addInteractor("particlesLinks",async a=>{const{Linker:n}=await i(()=>import("./Linker-CD0yKFxt.js"),__vite__mapDeps([0,1,2,3,4,5,6]));return new n(a)},r)}export{o as loadLinksInteraction}; diff --git a/dist/assets/plugin-CNYMRRjJ.js b/dist/assets/plugin-CNYMRRjJ.js new file mode 100644 index 0000000..8cee989 --- /dev/null +++ b/dist/assets/plugin-CNYMRRjJ.js @@ -0,0 +1,7 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/LinksPlugin-DugPkvP4.js","assets/index-CShsFACI.js","assets/index-Cy_GvPgK.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +import{_ as o}from"./index-CShsFACI.js";async function r(i,n=!0){const{LinksPlugin:t}=await o(()=>import("./LinksPlugin-DugPkvP4.js"),__vite__mapDeps([0,1,2])),a=new t;await i.addPlugin(a,n)}export{r as loadLinksPlugin}; diff --git a/dist/assets/plugin-CZBYx9Lq.js b/dist/assets/plugin-CZBYx9Lq.js deleted file mode 100644 index 78ef2cd..0000000 --- a/dist/assets/plugin-CZBYx9Lq.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/LinksPlugin-DPL_ttiq.js","assets/index-BbPL1Txh.js","assets/index-Cy_GvPgK.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{_ as o}from"./index-BbPL1Txh.js";async function r(i,n=!0){const{LinksPlugin:t}=await o(()=>import("./LinksPlugin-DPL_ttiq.js"),__vite__mapDeps([0,1,2])),a=new t;await i.addPlugin(a,n)}export{r as loadLinksPlugin}; diff --git a/dist/index.html b/dist/index.html index ad0b600..e72aa94 100644 --- a/dist/index.html +++ b/dist/index.html @@ -9,7 +9,7 @@ - + diff --git a/src/components/HighlightsContainer/HighlightsContainer.tsx b/src/components/HighlightsContainer/HighlightsContainer.tsx index a0633a3..470a74b 100644 --- a/src/components/HighlightsContainer/HighlightsContainer.tsx +++ b/src/components/HighlightsContainer/HighlightsContainer.tsx @@ -3,6 +3,7 @@ import React from "react"; import { Highlight } from "./interfaces"; import Marquee from "react-fast-marquee"; import Sparkles from "../Sparkles"; +import api from "../../api/axios.config"; const RandomizeArray = (array: any[]) => { /* Uses the Fisher-Yates (Knuth) Shuffle algorithm */ @@ -47,7 +48,7 @@ const HighlightsCarousel = (props: { }} > ([]); React.useEffect(() => { - setHighlights([ - { - imageURL: 'https://picsum.photos/800/500', - redirect: '', - description: 'a' - }, - { - imageURL: 'https://picsum.photos/600/700', - redirect: '', - description: 'a' - }, - { - imageURL: 'https://picsum.photos/400/600', - redirect: '', - description: 'a' - }, - { - imageURL: 'https://picsum.photos/600/300', - redirect: '', - description: 'a' - }, - { - imageURL: 'https://picsum.photos/900/500', - redirect: '', - description: 'a' - } - ]); + api.get('/api/highlights').then((res) => { + if (res.status != 200) + return null; + + /* We Fetched Highlights Sucessfully! Set 'em */ + setHighlights(res.data); + }); }, []); return ( + (highlights.length < 1) ?

Check us out on Instagram @appdev_umd

: @@ -139,21 +122,21 @@ export default function HighlightsContainer() { diff --git a/src/components/HighlightsContainer/interfaces.ts b/src/components/HighlightsContainer/interfaces.ts index 18d6a8d..cc80414 100644 --- a/src/components/HighlightsContainer/interfaces.ts +++ b/src/components/HighlightsContainer/interfaces.ts @@ -1,5 +1,5 @@ export interface Highlight { - imageURL: string, + img: string, redirect: string, description: string }; \ No newline at end of file diff --git a/src/integrals/WebLandingPage.tsx b/src/integrals/WebLandingPage.tsx index 4efbb90..afc6bd4 100644 --- a/src/integrals/WebLandingPage.tsx +++ b/src/integrals/WebLandingPage.tsx @@ -289,7 +289,7 @@ export default function WebLandingPage() { />