From e785ebc9a07bc85c3c33940edc587ba33c7a4b47 Mon Sep 17 00:00:00 2001 From: Automated Date: Sat, 16 Nov 2024 10:27:25 +0000 Subject: [PATCH] Updates --- .../{About-Cy9qfuX9.js => About-i5R1jy45.js} | 2 +- ...tz-BuuC7UFN.js => Datenschutz-Cu6H6gyQ.js} | 2 +- ...{Footer-BEVKcqw5.js => Footer-Cn5RvAyN.js} | 2 +- ...ssum-O1V9FZWa.js => Impressum-CgX14S4L.js} | 2 +- assets/{Map-BrJAk4eL.js => Map-D9xkNy6Y.js} | 4 +-- ...Found-CI2r9Xpd.js => NotFound-B7VH-638.js} | 2 +- ...ion-BDBKazo-.js => Simulation-RZxs6R_p.js} | 6 ++-- assets/deflate-B6wx6bhZ.js | 1 + assets/deflate-BN4JYXk8.js | 1 - ...eading-GfTBNZPF.js => heading-DHsph2H5.js} | 2 +- .../{image-D_XEucjS.js => image-H-1NI3NN.js} | 2 +- .../{index-Ba81FydE.js => index-cA1eFW7V.js} | 28 +++++++++---------- assets/{lerc-44IRF6I9.js => lerc-cqroyPOz.js} | 2 +- ...ation-B7dRf9MH.js => location-D8PyOyjj.js} | 2 +- ...gl-Bok8Fwzh.js => maplibre-gl-DcBeTzQR.js} | 2 +- .../{stack-B6rX1mqT.js => stack-ABWX5mQg.js} | 2 +- index.html | 2 +- 17 files changed, 32 insertions(+), 32 deletions(-) rename assets/{About-Cy9qfuX9.js => About-i5R1jy45.js} (93%) rename assets/{Datenschutz-BuuC7UFN.js => Datenschutz-Cu6H6gyQ.js} (98%) rename assets/{Footer-BEVKcqw5.js => Footer-Cn5RvAyN.js} (99%) rename assets/{Impressum-O1V9FZWa.js => Impressum-CgX14S4L.js} (97%) rename assets/{Map-BrJAk4eL.js => Map-D9xkNy6Y.js} (98%) rename assets/{NotFound-CI2r9Xpd.js => NotFound-B7VH-638.js} (84%) rename assets/{Simulation-BDBKazo-.js => Simulation-RZxs6R_p.js} (99%) create mode 100644 assets/deflate-B6wx6bhZ.js delete mode 100644 assets/deflate-BN4JYXk8.js rename assets/{heading-GfTBNZPF.js => heading-DHsph2H5.js} (93%) rename assets/{image-D_XEucjS.js => image-H-1NI3NN.js} (91%) rename assets/{index-Ba81FydE.js => index-cA1eFW7V.js} (87%) rename assets/{lerc-44IRF6I9.js => lerc-cqroyPOz.js} (99%) rename assets/{location-B7dRf9MH.js => location-D8PyOyjj.js} (97%) rename assets/{maplibre-gl-Bok8Fwzh.js => maplibre-gl-DcBeTzQR.js} (99%) rename assets/{stack-B6rX1mqT.js => stack-ABWX5mQg.js} (91%) diff --git a/assets/About-Cy9qfuX9.js b/assets/About-i5R1jy45.js similarity index 93% rename from assets/About-Cy9qfuX9.js rename to assets/About-i5R1jy45.js index 30aec9f..9c8c2c5 100644 --- a/assets/About-Cy9qfuX9.js +++ b/assets/About-i5R1jy45.js @@ -1 +1 @@ -import{f as p,j as e,c as j,z as v,V as B,w as F,x as A,l as D,g as N,M as _,B as f}from"./index-Ba81FydE.js";import{T as x,O as M,a as u,F as P}from"./Footer-BEVKcqw5.js";import{C as V,a as H,H as w,b as I}from"./heading-GfTBNZPF.js";import{m as C,S as O}from"./stack-B6rX1mqT.js";import{I as Y}from"./image-D_XEucjS.js";const y=p(function(s,a){const{templateAreas:o,gap:i,rowGap:n,columnGap:r,column:c,row:m,autoFlow:h,autoRows:g,templateRows:S,autoColumns:R,templateColumns:T,...E}=s,L={display:"grid",gridTemplateAreas:o,gridGap:i,gridRowGap:n,gridColumnGap:r,gridAutoColumns:R,gridColumn:c,gridRow:m,gridAutoFlow:h,gridAutoRows:g,gridTemplateRows:S,gridTemplateColumns:T};return e.jsx(j.div,{ref:a,__css:L,...E})});y.displayName="Grid";const k=p(function(s,a){const{columns:o,spacingX:i,spacingY:n,spacing:r,minChildWidth:c,...m}=s,h=v(),g=c?W(c,h):$(o);return e.jsx(y,{ref:a,gap:r,columnGap:i,rowGap:n,templateColumns:g,...m})});k.displayName="SimpleGrid";function z(t){return typeof t=="number"?`${t}px`:t}function W(t,s){return C(t,a=>{const o=B("sizes",a,z(a))(s);return a===null?null:`repeat(auto-fit, minmax(${o}, 1fr))`})}function $(t){return C(t,s=>s===null?null:`repeat(${s}, minmax(0, 1fr))`)}const l=p(function(s,a){const o=F("Link",s),{className:i,isExternal:n,...r}=A(s);return e.jsx(j.a,{target:n?"_blank":void 0,rel:n?"noopener":void 0,ref:a,className:D("chakra-link",i),...r,__css:o})});l.displayName="Link";const G=p((t,s)=>e.jsx(O,{align:"center",...t,direction:"column",ref:s}));G.displayName="VStack";const U=()=>{const{t}=N();return e.jsxs(e.Fragment,{children:[e.jsx(_,{title:t("about.title"),description:t("about.description"),children:e.jsxs(V,{height:"100%",overflow:"auto",padding:"20px",children:[e.jsx(H,{children:e.jsx(w,{as:"h1",children:t("about.title")})}),e.jsx(I,{children:e.jsxs(G,{spacing:"6",align:"start",children:[e.jsx(x,{children:t("about.introduction")}),e.jsxs(d,{heading:t("about.generalDescription.h"),content:t("about.generalDescription.p"),children:[e.jsx(x,{children:t("about.steps.introduction")}),e.jsxs(M,{children:[e.jsx(u,{children:t("about.steps.1")}),e.jsx(u,{children:t("about.steps.2")}),e.jsx(u,{children:t("about.steps.3")}),e.jsx(u,{children:t("about.steps.4")})]})]}),e.jsx(b,{images:["images/about/about1.png","images/WelcomeMessage2.png","images/WelcomeMessage3.png"],alttext:["Screenshot of the map that is visible on the start screen of openpv.de.","Screenhot of a simulated building.","Screenshot of a PV system that is drawn on a simulated building together with an estimated annual PV yield."]}),e.jsxs(d,{heading:t("about.data.h"),children:[t("about.data.p1")," ",e.jsx(l,{href:"https://www.dwd.de/DE/leistungen/cdc/climate-data-center.html",isExternal:!0,color:"teal",children:"[CC-BY-4.0]"}),", ",t("about.data.p2")," ",e.jsx(l,{href:"https://sonny.4lima.de/",isExternal:!0,color:"teal",children:"[CC-BY-4.0]"}),", ",t("about.data.p3")," ",e.jsx(l,{href:"https://www.bkg.bund.de/DE/Home/home.html",isExternal:!0,color:"teal",children:"[DL-DE/BY-2-0]"}),"."]}),e.jsx(d,{heading:t("about.whyOpenSource.h"),content:t("about.whyOpenSource.p")}),e.jsx(d,{heading:t("about.team.h"),content:t("about.team.p"),children:e.jsx(l,{href:"https://github.com/orgs/open-pv/people",isExternal:!0,color:"teal",children:t("about.team.link")})}),e.jsx(d,{heading:t("about.sponsors.h"),content:t("about.sponsors.p")}),e.jsx(b,{images:["images/about/ptf.png","images/about/bmbf.jpg"],alttext:["Logo of the Prototypefund.","Logo of the German Federal Ministry of Education and Research."],links:["https://prototypefund.de/","https://www.bmbf.de"],objectFit:"contain"})]})})]})}),e.jsx(P,{})]})};function d({content:t,heading:s,children:a}){return e.jsxs(f,{children:[e.jsx(w,{as:"h3",size:"md",children:s}),e.jsx(x,{children:t}),a]})}const b=({images:t,alttext:s,links:a=[],objectFit:o="cover"})=>e.jsx(k,{columns:t.length,spacing:4,children:t.map((i,n)=>{const r=e.jsx(Y,{src:i,objectFit:o,width:"100%",height:"150px",borderRadius:"md",alt:s[n]});return e.jsx(f,{padding:2,children:a[n]?e.jsx(l,{href:a[n],isExternal:!0,children:r}):r},n)})});export{U as default}; +import{f as p,j as e,c as j,z as v,V as B,w as F,x as A,l as D,g as N,M as _,B as f}from"./index-cA1eFW7V.js";import{T as x,O as M,a as u,F as P}from"./Footer-Cn5RvAyN.js";import{C as V,a as H,H as w,b as I}from"./heading-DHsph2H5.js";import{m as C,S as O}from"./stack-ABWX5mQg.js";import{I as Y}from"./image-H-1NI3NN.js";const y=p(function(s,a){const{templateAreas:o,gap:i,rowGap:n,columnGap:r,column:c,row:m,autoFlow:h,autoRows:g,templateRows:S,autoColumns:R,templateColumns:T,...E}=s,L={display:"grid",gridTemplateAreas:o,gridGap:i,gridRowGap:n,gridColumnGap:r,gridAutoColumns:R,gridColumn:c,gridRow:m,gridAutoFlow:h,gridAutoRows:g,gridTemplateRows:S,gridTemplateColumns:T};return e.jsx(j.div,{ref:a,__css:L,...E})});y.displayName="Grid";const k=p(function(s,a){const{columns:o,spacingX:i,spacingY:n,spacing:r,minChildWidth:c,...m}=s,h=v(),g=c?W(c,h):$(o);return e.jsx(y,{ref:a,gap:r,columnGap:i,rowGap:n,templateColumns:g,...m})});k.displayName="SimpleGrid";function z(t){return typeof t=="number"?`${t}px`:t}function W(t,s){return C(t,a=>{const o=B("sizes",a,z(a))(s);return a===null?null:`repeat(auto-fit, minmax(${o}, 1fr))`})}function $(t){return C(t,s=>s===null?null:`repeat(${s}, minmax(0, 1fr))`)}const l=p(function(s,a){const o=F("Link",s),{className:i,isExternal:n,...r}=A(s);return e.jsx(j.a,{target:n?"_blank":void 0,rel:n?"noopener":void 0,ref:a,className:D("chakra-link",i),...r,__css:o})});l.displayName="Link";const G=p((t,s)=>e.jsx(O,{align:"center",...t,direction:"column",ref:s}));G.displayName="VStack";const U=()=>{const{t}=N();return e.jsxs(e.Fragment,{children:[e.jsx(_,{title:t("about.title"),description:t("about.description"),children:e.jsxs(V,{height:"100%",overflow:"auto",padding:"20px",children:[e.jsx(H,{children:e.jsx(w,{as:"h1",children:t("about.title")})}),e.jsx(I,{children:e.jsxs(G,{spacing:"6",align:"start",children:[e.jsx(x,{children:t("about.introduction")}),e.jsxs(d,{heading:t("about.generalDescription.h"),content:t("about.generalDescription.p"),children:[e.jsx(x,{children:t("about.steps.introduction")}),e.jsxs(M,{children:[e.jsx(u,{children:t("about.steps.1")}),e.jsx(u,{children:t("about.steps.2")}),e.jsx(u,{children:t("about.steps.3")}),e.jsx(u,{children:t("about.steps.4")})]})]}),e.jsx(b,{images:["images/about/about1.png","images/WelcomeMessage2.png","images/WelcomeMessage3.png"],alttext:["Screenshot of the map that is visible on the start screen of openpv.de.","Screenhot of a simulated building.","Screenshot of a PV system that is drawn on a simulated building together with an estimated annual PV yield."]}),e.jsxs(d,{heading:t("about.data.h"),children:[t("about.data.p1")," ",e.jsx(l,{href:"https://www.dwd.de/DE/leistungen/cdc/climate-data-center.html",isExternal:!0,color:"teal",children:"[CC-BY-4.0]"}),", ",t("about.data.p2")," ",e.jsx(l,{href:"https://sonny.4lima.de/",isExternal:!0,color:"teal",children:"[CC-BY-4.0]"}),", ",t("about.data.p3")," ",e.jsx(l,{href:"https://www.bkg.bund.de/DE/Home/home.html",isExternal:!0,color:"teal",children:"[DL-DE/BY-2-0]"}),"."]}),e.jsx(d,{heading:t("about.whyOpenSource.h"),content:t("about.whyOpenSource.p")}),e.jsx(d,{heading:t("about.team.h"),content:t("about.team.p"),children:e.jsx(l,{href:"https://github.com/orgs/open-pv/people",isExternal:!0,color:"teal",children:t("about.team.link")})}),e.jsx(d,{heading:t("about.sponsors.h"),content:t("about.sponsors.p")}),e.jsx(b,{images:["images/about/ptf.png","images/about/bmbf.jpg"],alttext:["Logo of the Prototypefund.","Logo of the German Federal Ministry of Education and Research."],links:["https://prototypefund.de/","https://www.bmbf.de"],objectFit:"contain"})]})})]})}),e.jsx(P,{})]})};function d({content:t,heading:s,children:a}){return e.jsxs(f,{children:[e.jsx(w,{as:"h3",size:"md",children:s}),e.jsx(x,{children:t}),a]})}const b=({images:t,alttext:s,links:a=[],objectFit:o="cover"})=>e.jsx(k,{columns:t.length,spacing:4,children:t.map((i,n)=>{const r=e.jsx(Y,{src:i,objectFit:o,width:"100%",height:"150px",borderRadius:"md",alt:s[n]});return e.jsx(f,{padding:2,children:a[n]?e.jsx(l,{href:a[n],isExternal:!0,children:r}):r},n)})});export{U as default}; diff --git a/assets/Datenschutz-BuuC7UFN.js b/assets/Datenschutz-Cu6H6gyQ.js similarity index 98% rename from assets/Datenschutz-BuuC7UFN.js rename to assets/Datenschutz-Cu6H6gyQ.js index 1c9a991..bcd0b33 100644 --- a/assets/Datenschutz-BuuC7UFN.js +++ b/assets/Datenschutz-Cu6H6gyQ.js @@ -1 +1 @@ -import{j as e,M as n}from"./index-Ba81FydE.js";import{C as r,a as i,H as t,b as s}from"./heading-GfTBNZPF.js";const u=()=>e.jsx(n,{title:"Datenschutz",description:"Datenschutzerklaerung der Website.",children:e.jsxs(r,{height:"100%",overflow:"auto",children:[e.jsx(i,{children:e.jsx(t,{as:"h1",children:"Datenschutz"})}),e.jsxs(s,{children:[e.jsx("h1",{children:"Datenschutzerklärung"}),e.jsx("p",{children:"Verantwortlicher im Sinne der Datenschutzgesetze, insbesondere der EU-Datenschutzgrundverordnung (DSGVO), ist:"}),e.jsxs("p",{children:["Großhauser Heidler Kotthoff Pöppel GbR ",e.jsx("br",{}),"p r i v a c y @ o p e n p v . d e"]}),e.jsx("h2",{children:"Ihre Betroffenenrechte"}),e.jsx("p",{children:"Unter den angegebenen Kontaktdaten unseres Datenschutzbeauftragten können Sie jederzeit folgende Rechte ausüben:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Auskunft über Ihre bei uns gespeicherten Daten und deren Verarbeitung (Art. 15 DSGVO),"}),e.jsx("li",{children:"Berichtigung unrichtiger personenbezogener Daten (Art. 16 DSGVO),"}),e.jsx("li",{children:"Löschung Ihrer bei uns gespeicherten Daten (Art. 17 DSGVO),"}),e.jsx("li",{children:"Einschränkung der Datenverarbeitung, sofern wir Ihre Daten aufgrund gesetzlicher Pflichten noch nicht löschen dürfen (Art. 18 DSGVO),"}),e.jsx("li",{children:"Widerspruch gegen die Verarbeitung Ihrer Daten bei uns (Art. 21 DSGVO) und"}),e.jsx("li",{children:"Datenübertragbarkeit, sofern Sie in die Datenverarbeitung eingewilligt haben oder einen Vertrag mit uns abgeschlossen haben (Art. 20 DSGVO)."})]}),e.jsx("p",{children:"Sofern Sie uns eine Einwilligung erteilt haben, können Sie diese jederzeit mit Wirkung für die Zukunft widerrufen."}),e.jsx("p",{children:"Sie können sich jederzeit mit einer Beschwerde an eine Aufsichtsbehörde wenden, z. B. an die zuständige Aufsichtsbehörde des Bundeslands Ihres Wohnsitzes oder an die für uns als verantwortliche Stelle zuständige Behörde."}),e.jsxs("p",{children:["Eine Liste der Aufsichtsbehörden (für den nichtöffentlichen Bereich) mit Anschrift finden Sie unter:"," ",e.jsx("a",{href:"https://www.bfdi.bund.de/DE/Service/Anschriften/Laender/Laender-node.html",target:"_blank",rel:"noopener nofollow",children:"https://www.bfdi.bund.de/DE/Service/Anschriften/Laender/Laender-node.html"}),"."]}),e.jsx("p",{}),e.jsx("h2",{children:"Erfassung allgemeiner Informationen beim Besuch unserer Website"}),e.jsx("h3",{children:"Art und Zweck der Verarbeitung:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Verkehrsdaten (wie zB IP-Adresse): Wenn Sie auf unsere Website zugreifen, werden automatisch Informationen allgemeiner Natur erfasst. Diese Informationen (Server-Logfiles) beinhalten die Art des Webbrowsers, das verwendete Betriebssystem, den Domainnamen Ihres Internet-Service-Providers, Ihre IP-Adresse und ähnliches. Ohne die IP-Adresse ist der Dienst und die Funktionsfähigkeit unserer Website nicht gewährleistet. Zudem können einzelne Dienste und Services nicht verfügbar oder eingeschränkt sein. Der Zweck dieser Datenverarbeitung ist die Sicherstellung eines problemlosen Verbindungsaufbaus der Website, Sicherstellung einer reibungslosen Nutzung unserer Website, Auswertung der Systemsicherheit und -stabilität sowie zur Optimierung unserer Website."}),e.jsx("li",{children:'Adresse und Koordinaten: Die Adresse, welche Sie in die Suchmaske eingeben, wird an Nominatim zur Koordinatenermittlung übermittelt. Weitere Infos zu Nominatim finden Sie unter dem Abschnitt "Plugins und Tools". Zur automatischen Adressvervollständigung wird die Eingabe in das Suchfeld an https://photon.komoot.io/ gesendet. Weitere Infos zu Photon von Komoot finden Sie unter dem Abschnitt "Plugins und Tools". Die Koordinaten werden verwendet, um die relevanten Gebäude und Geländedaten von unserem Server zu laden. Die genauen Koordinaten werden nicht auf unserem Server gespeichert. Zu statistischen Zwecken und zur Optimierung unseres Angebotes speichern wir die Region (gerundete Koordinaten) der angefragten Adresse (aufgelöst auf wenige Kilometer).'})]}),e.jsx("p",{children:"Wir verwenden Ihre Daten nicht, um Rückschlüsse auf Ihre Person zu ziehen."}),e.jsx("h3",{children:"Rechtsgrundlage und berechtigtes Interesse:"}),e.jsx("p",{children:"Die Verarbeitung erfolgt gemäß Art. 6 Abs. 1 lit. f DSGVO auf Basis unseres berechtigten Interesses an der Verbesserung der Stabilität und Funktionalität unserer Website."}),e.jsx("h3",{children:"Empfänger:"}),e.jsx("p",{children:"Empfänger der Daten sind technische Dienstleister, die den Betrieb unserer Server ermöglichen. Diese Dienstleister sind die netcup GmbH und Hetzner Online GmbH."}),e.jsx("h3",{children:"Drittlandtransfer:"}),e.jsx("p",{children:"Unsere eigene Datenverarbeitung findet in Deutschland statt. Für die Konvertierung von Adresse in Koordinaten werden Daten über Nominatim in Drittländern (Stand August 2024: Niederlande und UK) verarbeitet. Eine Auflistung dieser Drittländer finden Sie hier: https://osmfoundation.org/wiki/Privacy_Policy#Where_do_we_store_the_data"}),e.jsx("p",{}),e.jsx("h3",{children:"Speicherdauer:"}),e.jsx("p",{children:"Die Daten werden gelöscht, sobald diese für den Zweck der Erhebung nicht mehr erforderlich sind. Dies ist für die Daten, die der Bereitstellung der Website dienen, grundsätzlich der Fall, wenn die jeweilige Sitzung beendet ist."}),e.jsx("p",{children:"Im Falle der Speicherung der Verkehrsdaten in Logfiles ist dies nach 14 Tagen der Fall, es sei denn, es gibt einen besonderen Grund, Informationen länger aufzubewahren (z.B. wenn einzelne IP-Adressen gesperrt werden)."}),e.jsx("h3",{children:"Plugins und Tools"}),e.jsxs("p",{children:["Nominatim Geocoding ",e.jsx("br",{}),"Diese Seite nutzt über eine API Nominatim, den Geocoding Dienst von OpenStreetMaps.nominatim.openstreetmap.org Zur Nutzung der GeoCodingFunktion bei der Umwandlung ihrer Adresse in Koordinaten werden die eingegebenen Adressdaten an Nominatim zur Koordinatenermittlung übermittelt. Die Nutzung von Nominatim erfolgt im Interesse einer ansprechenden Darstellung unserer Online-Angebote und an einer leichten Auffindbarkeit der von uns simulierten PV-Erträge auf der Website. Dies stellt ein berechtigtes Interesse im Sinne von Art. 6 Abs. 1 lit. f DSGVO dar. Mehr Informationen zum Umgang mit Nutzerdaten finden Sie in der Datenschutzerklärung von OpenStreetMaps: https://wiki.osmfoundation.org/wiki/Privacy_Policy"]}),e.jsx("br",{}),e.jsxs("p",{children:["Photon von Komoot ",e.jsx("br",{}),"openpv nutzt die API von komoot zur automatischen Adressvervollständigung. Dabei werden die eingegebenen Buchstaben an https://photon.komoot.io/ gesendet. Die Auswahl einer finalen Adresse wird nicht an komoot mitgeteilt."]}),e.jsx("hr",{}),e.jsx("h2",{children:"Information über Ihr Widerspruchsrecht nach Art. 21 DSGVO"}),e.jsx("h3",{children:"Einzelfallbezogenes Widerspruchsrecht"}),e.jsx("p",{children:"Sie haben das Recht, aus Gründen, die sich aus Ihrer besonderen Situation ergeben, jederzeit gegen die Verarbeitung Sie betreffender personenbezogener Daten, die aufgrund Art. 6 Abs. 1 lit. f DSGVO (Datenverarbeitung auf der Grundlage einer Interessenabwägung) erfolgt, Widerspruch einzulegen."}),e.jsx("p",{children:"Legen Sie Widerspruch ein, werden wir Ihre personenbezogenen Daten nicht mehr verarbeiten, es sei denn, wir können zwingende schutzwürdige Gründe für die Verarbeitung nachweisen, die Ihre Interessen, Rechte und Freiheiten überwiegen, oder die Verarbeitung dient der Geltendmachung, Ausübung oder Verteidigung von Rechtsansprüchen."}),e.jsx("hr",{}),e.jsx("h2",{children:"Änderung unserer Datenschutzbestimmungen"}),e.jsx("p",{children:"Wir behalten uns vor, diese Datenschutzerklärung anzupassen, damit sie stets den aktuellen rechtlichen Anforderungen entspricht oder um Änderungen unserer Leistungen in der Datenschutzerklärung umzusetzen, z.B. bei der Einführung neuer Services. Für Ihren erneuten Besuch gilt dann die neue Datenschutzerklärung."}),e.jsx("h2",{children:"Fragen an den Datenschutzbeauftragten"}),e.jsx("p",{children:"Wenn Sie Fragen zum Datenschutz haben, schreiben Sie uns bitte eine E-Mail oder wenden Sie sich direkt an die für den Datenschutz verantwortliche Person in unserer Organisation:"}),e.jsx("p",{children:e.jsxs("em",{children:["Die Datenschutzerklärung wurde mithilfe der activeMind AG erstellt, den Experten für"," ",e.jsx("a",{href:"https://www.activemind.de/datenschutz/datenschutzbeauftragter/",target:"_blank",rel:"noopener",children:"externe Datenschutzbeauftragte"})," ","(Version #2020-09-30)."]})})]})]})});export{u as default}; +import{j as e,M as n}from"./index-cA1eFW7V.js";import{C as r,a as i,H as t,b as s}from"./heading-DHsph2H5.js";const u=()=>e.jsx(n,{title:"Datenschutz",description:"Datenschutzerklaerung der Website.",children:e.jsxs(r,{height:"100%",overflow:"auto",children:[e.jsx(i,{children:e.jsx(t,{as:"h1",children:"Datenschutz"})}),e.jsxs(s,{children:[e.jsx("h1",{children:"Datenschutzerklärung"}),e.jsx("p",{children:"Verantwortlicher im Sinne der Datenschutzgesetze, insbesondere der EU-Datenschutzgrundverordnung (DSGVO), ist:"}),e.jsxs("p",{children:["Großhauser Heidler Kotthoff Pöppel GbR ",e.jsx("br",{}),"p r i v a c y @ o p e n p v . d e"]}),e.jsx("h2",{children:"Ihre Betroffenenrechte"}),e.jsx("p",{children:"Unter den angegebenen Kontaktdaten unseres Datenschutzbeauftragten können Sie jederzeit folgende Rechte ausüben:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Auskunft über Ihre bei uns gespeicherten Daten und deren Verarbeitung (Art. 15 DSGVO),"}),e.jsx("li",{children:"Berichtigung unrichtiger personenbezogener Daten (Art. 16 DSGVO),"}),e.jsx("li",{children:"Löschung Ihrer bei uns gespeicherten Daten (Art. 17 DSGVO),"}),e.jsx("li",{children:"Einschränkung der Datenverarbeitung, sofern wir Ihre Daten aufgrund gesetzlicher Pflichten noch nicht löschen dürfen (Art. 18 DSGVO),"}),e.jsx("li",{children:"Widerspruch gegen die Verarbeitung Ihrer Daten bei uns (Art. 21 DSGVO) und"}),e.jsx("li",{children:"Datenübertragbarkeit, sofern Sie in die Datenverarbeitung eingewilligt haben oder einen Vertrag mit uns abgeschlossen haben (Art. 20 DSGVO)."})]}),e.jsx("p",{children:"Sofern Sie uns eine Einwilligung erteilt haben, können Sie diese jederzeit mit Wirkung für die Zukunft widerrufen."}),e.jsx("p",{children:"Sie können sich jederzeit mit einer Beschwerde an eine Aufsichtsbehörde wenden, z. B. an die zuständige Aufsichtsbehörde des Bundeslands Ihres Wohnsitzes oder an die für uns als verantwortliche Stelle zuständige Behörde."}),e.jsxs("p",{children:["Eine Liste der Aufsichtsbehörden (für den nichtöffentlichen Bereich) mit Anschrift finden Sie unter:"," ",e.jsx("a",{href:"https://www.bfdi.bund.de/DE/Service/Anschriften/Laender/Laender-node.html",target:"_blank",rel:"noopener nofollow",children:"https://www.bfdi.bund.de/DE/Service/Anschriften/Laender/Laender-node.html"}),"."]}),e.jsx("p",{}),e.jsx("h2",{children:"Erfassung allgemeiner Informationen beim Besuch unserer Website"}),e.jsx("h3",{children:"Art und Zweck der Verarbeitung:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Verkehrsdaten (wie zB IP-Adresse): Wenn Sie auf unsere Website zugreifen, werden automatisch Informationen allgemeiner Natur erfasst. Diese Informationen (Server-Logfiles) beinhalten die Art des Webbrowsers, das verwendete Betriebssystem, den Domainnamen Ihres Internet-Service-Providers, Ihre IP-Adresse und ähnliches. Ohne die IP-Adresse ist der Dienst und die Funktionsfähigkeit unserer Website nicht gewährleistet. Zudem können einzelne Dienste und Services nicht verfügbar oder eingeschränkt sein. Der Zweck dieser Datenverarbeitung ist die Sicherstellung eines problemlosen Verbindungsaufbaus der Website, Sicherstellung einer reibungslosen Nutzung unserer Website, Auswertung der Systemsicherheit und -stabilität sowie zur Optimierung unserer Website."}),e.jsx("li",{children:'Adresse und Koordinaten: Die Adresse, welche Sie in die Suchmaske eingeben, wird an Nominatim zur Koordinatenermittlung übermittelt. Weitere Infos zu Nominatim finden Sie unter dem Abschnitt "Plugins und Tools". Zur automatischen Adressvervollständigung wird die Eingabe in das Suchfeld an https://photon.komoot.io/ gesendet. Weitere Infos zu Photon von Komoot finden Sie unter dem Abschnitt "Plugins und Tools". Die Koordinaten werden verwendet, um die relevanten Gebäude und Geländedaten von unserem Server zu laden. Die genauen Koordinaten werden nicht auf unserem Server gespeichert. Zu statistischen Zwecken und zur Optimierung unseres Angebotes speichern wir die Region (gerundete Koordinaten) der angefragten Adresse (aufgelöst auf wenige Kilometer).'})]}),e.jsx("p",{children:"Wir verwenden Ihre Daten nicht, um Rückschlüsse auf Ihre Person zu ziehen."}),e.jsx("h3",{children:"Rechtsgrundlage und berechtigtes Interesse:"}),e.jsx("p",{children:"Die Verarbeitung erfolgt gemäß Art. 6 Abs. 1 lit. f DSGVO auf Basis unseres berechtigten Interesses an der Verbesserung der Stabilität und Funktionalität unserer Website."}),e.jsx("h3",{children:"Empfänger:"}),e.jsx("p",{children:"Empfänger der Daten sind technische Dienstleister, die den Betrieb unserer Server ermöglichen. Diese Dienstleister sind die netcup GmbH und Hetzner Online GmbH."}),e.jsx("h3",{children:"Drittlandtransfer:"}),e.jsx("p",{children:"Unsere eigene Datenverarbeitung findet in Deutschland statt. Für die Konvertierung von Adresse in Koordinaten werden Daten über Nominatim in Drittländern (Stand August 2024: Niederlande und UK) verarbeitet. Eine Auflistung dieser Drittländer finden Sie hier: https://osmfoundation.org/wiki/Privacy_Policy#Where_do_we_store_the_data"}),e.jsx("p",{}),e.jsx("h3",{children:"Speicherdauer:"}),e.jsx("p",{children:"Die Daten werden gelöscht, sobald diese für den Zweck der Erhebung nicht mehr erforderlich sind. Dies ist für die Daten, die der Bereitstellung der Website dienen, grundsätzlich der Fall, wenn die jeweilige Sitzung beendet ist."}),e.jsx("p",{children:"Im Falle der Speicherung der Verkehrsdaten in Logfiles ist dies nach 14 Tagen der Fall, es sei denn, es gibt einen besonderen Grund, Informationen länger aufzubewahren (z.B. wenn einzelne IP-Adressen gesperrt werden)."}),e.jsx("h3",{children:"Plugins und Tools"}),e.jsxs("p",{children:["Nominatim Geocoding ",e.jsx("br",{}),"Diese Seite nutzt über eine API Nominatim, den Geocoding Dienst von OpenStreetMaps.nominatim.openstreetmap.org Zur Nutzung der GeoCodingFunktion bei der Umwandlung ihrer Adresse in Koordinaten werden die eingegebenen Adressdaten an Nominatim zur Koordinatenermittlung übermittelt. Die Nutzung von Nominatim erfolgt im Interesse einer ansprechenden Darstellung unserer Online-Angebote und an einer leichten Auffindbarkeit der von uns simulierten PV-Erträge auf der Website. Dies stellt ein berechtigtes Interesse im Sinne von Art. 6 Abs. 1 lit. f DSGVO dar. Mehr Informationen zum Umgang mit Nutzerdaten finden Sie in der Datenschutzerklärung von OpenStreetMaps: https://wiki.osmfoundation.org/wiki/Privacy_Policy"]}),e.jsx("br",{}),e.jsxs("p",{children:["Photon von Komoot ",e.jsx("br",{}),"openpv nutzt die API von komoot zur automatischen Adressvervollständigung. Dabei werden die eingegebenen Buchstaben an https://photon.komoot.io/ gesendet. Die Auswahl einer finalen Adresse wird nicht an komoot mitgeteilt."]}),e.jsx("hr",{}),e.jsx("h2",{children:"Information über Ihr Widerspruchsrecht nach Art. 21 DSGVO"}),e.jsx("h3",{children:"Einzelfallbezogenes Widerspruchsrecht"}),e.jsx("p",{children:"Sie haben das Recht, aus Gründen, die sich aus Ihrer besonderen Situation ergeben, jederzeit gegen die Verarbeitung Sie betreffender personenbezogener Daten, die aufgrund Art. 6 Abs. 1 lit. f DSGVO (Datenverarbeitung auf der Grundlage einer Interessenabwägung) erfolgt, Widerspruch einzulegen."}),e.jsx("p",{children:"Legen Sie Widerspruch ein, werden wir Ihre personenbezogenen Daten nicht mehr verarbeiten, es sei denn, wir können zwingende schutzwürdige Gründe für die Verarbeitung nachweisen, die Ihre Interessen, Rechte und Freiheiten überwiegen, oder die Verarbeitung dient der Geltendmachung, Ausübung oder Verteidigung von Rechtsansprüchen."}),e.jsx("hr",{}),e.jsx("h2",{children:"Änderung unserer Datenschutzbestimmungen"}),e.jsx("p",{children:"Wir behalten uns vor, diese Datenschutzerklärung anzupassen, damit sie stets den aktuellen rechtlichen Anforderungen entspricht oder um Änderungen unserer Leistungen in der Datenschutzerklärung umzusetzen, z.B. bei der Einführung neuer Services. Für Ihren erneuten Besuch gilt dann die neue Datenschutzerklärung."}),e.jsx("h2",{children:"Fragen an den Datenschutzbeauftragten"}),e.jsx("p",{children:"Wenn Sie Fragen zum Datenschutz haben, schreiben Sie uns bitte eine E-Mail oder wenden Sie sich direkt an die für den Datenschutz verantwortliche Person in unserer Organisation:"}),e.jsx("p",{children:e.jsxs("em",{children:["Die Datenschutzerklärung wurde mithilfe der activeMind AG erstellt, den Experten für"," ",e.jsx("a",{href:"https://www.activemind.de/datenschutz/datenschutzbeauftragter/",target:"_blank",rel:"noopener",children:"externe Datenschutzbeauftragte"})," ","(Version #2020-09-30)."]})})]})]})});export{u as default}; diff --git a/assets/Footer-BEVKcqw5.js b/assets/Footer-Cn5RvAyN.js similarity index 99% rename from assets/Footer-BEVKcqw5.js rename to assets/Footer-Cn5RvAyN.js index 490ff0a..4113f82 100644 --- a/assets/Footer-BEVKcqw5.js +++ b/assets/Footer-Cn5RvAyN.js @@ -1,4 +1,4 @@ -import{d as c,i as Hn,X as Un,Y as Vn,Z as $n,k as ct,y as ge,l as I,j as v,c as E,Q as pe,$ as zn,f as O,w as Ft,x as He,a0 as Yn,q as ut,N as Ae,R as qn,D as Pt,I as Xn,v as lt,s as J,A as ye,P as Kn,a1 as Zn,m as ie,K as Qn,a2 as Jn,g as er,a3 as tr}from"./index-Ba81FydE.js";function nr(e){return c.Children.toArray(e).filter(t=>c.isValidElement(t))}const rr=e=>e.hasAttribute("tabindex");function ar(e){if(!Hn(e)||Un(e)||Vn(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():$n(e)?!0:rr(e)}const or=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],ir=or.join(),sr=e=>e.offsetWidth>0&&e.offsetHeight>0;function cr(e){const t=Array.from(e.querySelectorAll(ir));return t.unshift(e),t.filter(n=>ar(n)&&sr(n))}function ur(e={}){const{onClose:t,onOpen:n,isOpen:r,id:a}=e,o=ct(n),s=ct(t),[i,m]=c.useState(e.defaultIsOpen||!1),u=r!==void 0?r:i,h=r!==void 0,l=c.useId(),d=a??`disclosure-${l}`,p=c.useCallback(()=>{h||m(!1),s==null||s()},[h,s]),b=c.useCallback(()=>{h||m(!0),o==null||o()},[h,o]),f=c.useCallback(()=>{u?p():b()},[u,b,p]);function g(y={}){return{...y,"aria-expanded":u,"aria-controls":d,onClick(x){var S;(S=y.onClick)==null||S.call(y,x),f()}}}function w(y={}){return{...y,hidden:!u,id:d}}return{isOpen:u,onOpen:b,onClose:p,onToggle:f,isControlled:h,getButtonProps:g,getDisclosureProps:w}}const dt={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Z={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function jo(e){switch((e==null?void 0:e.direction)??"right"){case"right":return Z.slideRight;case"left":return Z.slideLeft;case"bottom":return Z.slideDown;case"top":return Z.slideUp;default:return Z.slideRight}}const D={enter:{duration:.2,ease:dt.easeOut},exit:{duration:.1,ease:dt.easeIn}},B={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},[Go,lr]=ge({strict:!1,name:"ButtonGroupContext"});function ee(e){const{children:t,className:n,...r}=e,a=c.isValidElement(t)?c.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=I("chakra-button__icon",n);return v.jsx(E.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:a})}ee.displayName="ButtonIcon";function Te(e){const{label:t,placement:n,spacing:r="0.5rem",children:a=v.jsx(zn,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...i}=e,m=I("chakra-button__spinner",o),u=n==="start"?"marginEnd":"marginStart",h=c.useMemo(()=>pe({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return v.jsx(E.div,{className:m,...i,__css:h,children:a})}Te.displayName="ButtonSpinner";function dr(e){const[t,n]=c.useState(!e);return{ref:c.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const Nt=O((e,t)=>{const n=lr(),r=Ft("Button",{...n,...e}),{isDisabled:a=n==null?void 0:n.isDisabled,isLoading:o,isActive:s,children:i,leftIcon:m,rightIcon:u,loadingText:h,iconSpacing:l="0.5rem",type:d,spinner:p,spinnerPlacement:b="start",className:f,as:g,shouldWrapChildren:w,...y}=He(e),x=c.useMemo(()=>{const N={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:N}}},[r,n]),{ref:S,type:C}=dr(g),F={rightIcon:u,leftIcon:m,iconSpacing:l,children:i,shouldWrapChildren:w};return v.jsxs(E.button,{disabled:a||o,ref:Yn(t,S),as:g,type:d??C,"data-active":ut(s),"data-loading":ut(o),__css:x,className:I("chakra-button",f),...y,children:[o&&b==="start"&&v.jsx(Te,{className:"chakra-button__spinner--start",label:h,placement:"start",spacing:l,children:p}),o?h||v.jsx(E.span,{opacity:0,children:v.jsx(ft,{...F})}):v.jsx(ft,{...F}),o&&b==="end"&&v.jsx(Te,{className:"chakra-button__spinner--end",label:h,placement:"end",spacing:l,children:p})]})});Nt.displayName="Button";function ft(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:a,shouldWrapChildren:o}=e;return o?v.jsxs("span",{style:{display:"contents"},children:[t&&v.jsx(ee,{marginEnd:a,children:t}),r,n&&v.jsx(ee,{marginStart:a,children:n})]}):v.jsxs(v.Fragment,{children:[t&&v.jsx(ee,{marginEnd:a,children:t}),r,n&&v.jsx(ee,{marginStart:a,children:n})]})}function fr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var _e="data-focus-lock",Et="data-focus-lock-disabled",vr="data-no-focus-lock",mr="data-autofocus-inside",hr="data-no-autofocus";function ke(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pr(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var br=typeof window<"u"?c.useLayoutEffect:c.useEffect,vt=new WeakMap;function It(e,t){var n=pr(null,function(r){return e.forEach(function(a){return ke(a,r)})});return br(function(){var r=vt.get(n);if(r){var a=new Set(r),o=new Set(e),s=n.current;a.forEach(function(i){o.has(i)||ke(i,null)}),o.forEach(function(i){a.has(i)||ke(i,s)})}vt.set(n,e)},[e]),n}var Fe={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},M=function(){return M=Object.assign||function(t){for(var n,r=1,a=arguments.length;r=0}).sort(Br)},jr=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Ye=jr.join(","),Gr="".concat(Ye,", [data-focus-guard]"),$t=function(e,t){return A((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?Gr:Ye)?[r]:[],$t(r))},[])},Wr=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?X([e.contentDocument.body],t):[e]},X=function(e,t){return e.reduce(function(n,r){var a,o=$t(r,t),s=(a=[]).concat.apply(a,o.map(function(i){return Wr(i,t)}));return n.concat(s,r.parentNode?A(r.parentNode.querySelectorAll(Ye)).filter(function(i){return i===r}):[])},[])},Hr=function(e){var t=e.querySelectorAll("[".concat(mr,"]"));return A(t).map(function(n){return X([n])}).reduce(function(n,r){return n.concat(r)},[])},qe=function(e,t){return A(e).filter(function(n){return Gt(t,n)}).filter(function(n){return _r(n)})},mt=function(e,t){return t===void 0&&(t=new Map),A(e).filter(function(n){return Wt(t,n)})},Xe=function(e,t,n){return ze(qe(X(e,n),t),!0,n)},re=function(e,t){return ze(qe(X(e),t),!1)},Ur=function(e,t){return qe(Hr(e),t)},R=function(e,t){return e.shadowRoot?R(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:A(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var a=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return a?R(a,t):!1}return R(n,t)})},Vr=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(a),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,i){return!t.has(i)})},zt=function(e){return e.parentNode?zt(e.parentNode):e},Ke=function(e){var t=j(e);return t.filter(Boolean).reduce(function(n,r){var a=r.getAttribute(_e);return n.push.apply(n,a?Vr(A(zt(r).querySelectorAll("[".concat(_e,'="').concat(a,'"]:not([').concat(Et,'="disabled"])')))):[r]),n},[])},$r=function(e){try{return e()}catch{return}},ae=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?ae(t.shadowRoot):t instanceof HTMLIFrameElement&&$r(function(){return t.contentWindow.document})?ae(t.contentWindow.document):t}},zr=function(e,t){return e===t},Yr=function(e,t){return!!A(e.querySelectorAll("iframe")).some(function(n){return zr(n,t)})},Yt=function(e,t){return t===void 0&&(t=ae(Bt(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Ke(e).some(function(n){return R(n,t)||Yr(n,t)})},qr=function(e){e===void 0&&(e=document);var t=ae(e);return t?A(e.querySelectorAll("[".concat(vr,"]"))).some(function(n){return R(n,t)}):!1},Xr=function(e,t){return t.filter(Vt).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Ze=function(e,t){return Vt(e)&&e.name?Xr(e,t):e},Kr=function(e){var t=new Set;return e.forEach(function(n){return t.add(Ze(n,e))}),e.filter(function(n){return t.has(n)})},ht=function(e){return e[0]&&e.length>1?Ze(e[0],e):e[0]},pt=function(e,t){return e.indexOf(Ze(t,e))},Be="NEW_FOCUS",Zr=function(e,t,n,r,a){var o=e.length,s=e[0],i=e[o-1],m=$e(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,h=a?n.indexOf(a):u,l=a?e.indexOf(a):-1;if(u===-1)return l!==-1?l:Be;if(l===-1)return Be;var d=u-h,p=n.indexOf(s),b=n.indexOf(i),f=Kr(n),g=r!==void 0?f.indexOf(r):-1,w=g-(a?f.indexOf(a):u);if(!d&&l>=0||t.length===0)return l;var y=pt(e,t[0]),x=pt(e,t[t.length-1]);if(u<=p&&m&&Math.abs(d)>1)return x;if(u>=b&&m&&Math.abs(d)>1)return y;if(d&&Math.abs(w)>1)return l;if(u<=p)return x;if(u>b)return y;if(d)return Math.abs(d)>1?l:(o+l+d)%o}},Qr=function(e){return function(t){var n,r=(n=Ht(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},bt=function(e,t,n){var r=e.map(function(o){var s=o.node;return s}),a=mt(r.filter(Qr(n)));return a&&a.length?ht(a):ht(mt(t))},Re=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Re(e.parentNode.host||e.parentNode,t),t},Pe=function(e,t){for(var n=Re(e),r=Re(t),a=0;a=0)return o}return!1},qt=function(e,t,n){var r=j(e),a=j(t),o=r[0],s=!1;return a.filter(Boolean).forEach(function(i){s=Pe(s||i,i)||s,n.filter(Boolean).forEach(function(m){var u=Pe(o,m);u&&(!s||R(u,s)?s=u:s=Pe(u,s))})}),s},gt=function(e,t){return e.reduce(function(n,r){return n.concat(Ur(r,t))},[])},Jr=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(Dr)},ea=function(e,t){var n=ae(j(e).length>0?document:Bt(e).ownerDocument),r=Ke(e).filter(De),a=qt(n||e,e,r),o=new Map,s=re(r,o),i=s.filter(function(b){var f=b.node;return De(f)});if(i[0]){var m=re([a],o).map(function(b){var f=b.node;return f}),u=Jr(m,i),h=u.map(function(b){var f=b.node;return f}),l=u.filter(function(b){var f=b.tabIndex;return f>=0}).map(function(b){var f=b.node;return f}),d=Zr(h,l,m,n,t);if(d===Be){var p=bt(s,l,gt(r,o))||bt(s,h,gt(r,o));if(p)return{node:p};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:u[d]}},ta=function(e){var t=Ke(e).filter(De),n=qt(e,e,t),r=ze(X([n],!0),!0,!0),a=X(t,!1);return r.map(function(o){var s=o.node,i=o.index;return{node:s,index:i,lockItem:a.indexOf(s)>=0,guard:$e(s)}})},Qe=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Ne=0,Ee=!1,Xt=function(e,t,n){n===void 0&&(n={});var r=ea(e,t);if(!Ee&&r){if(Ne>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Ee=!0,setTimeout(function(){Ee=!1},1);return}Ne++,Qe(r.node,n.focusOptions),Ne--}};function Q(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var na=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Q(n),parent:Q(n.parentElement),left:Q(n.previousElementSibling),right:Q(n.nextElementSibling)}),n=n.parentElement;return{element:Q(e),stack:t,ownerDocument:e.ownerDocument}},ra=function(e){var t,n,r,a,o;if(e)for(var s=e.stack,i=e.ownerDocument,m=new Map,u=0,h=s;u-1&&(g.filter(function(y){var x=y.guard,S=y.node;return x&&S.dataset.focusAutoGuard}).forEach(function(y){var x=y.node;return x.removeAttribute("tabIndex")}),xt(w,g.length,1,g),xt(w,-1,-1,g))}}}return t},tn=function(t){be()&&t&&(t.stopPropagation(),t.preventDefault())},tt=function(){return Je(be)},wa=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||ha(r,n)},Sa=function(){return null},nn=function(){et=!0},rn=function(){et=!1,oe="just",Je(function(){oe="meanwhile"})},Ca=function(){document.addEventListener("focusin",tn),document.addEventListener("focusout",tt),window.addEventListener("focus",nn),window.addEventListener("blur",rn)},ka=function(){document.removeEventListener("focusin",tn),document.removeEventListener("focusout",tt),window.removeEventListener("focus",nn),window.removeEventListener("blur",rn)};function Fa(e){return e.filter(function(t){var n=t.disabled;return!n})}var an={moveFocusInside:Xt,focusInside:Yt,focusNextElement:sa,focusPrevElement:ca,focusFirstElement:ua,focusLastElement:la,captureFocusRestore:Kt};function Pa(e){var t=e.slice(-1)[0];t&&!z&&Ca();var n=z,r=n&&t&&t.id===n.id;z=t,n&&!r&&(n.onDeactivation(),e.filter(function(a){var o=a.id;return o===n.id}).length||n.returnFocus(!t)),t?(P=null,(!r||n.observed!==t.observed)&&t.onActivation(an),be(),Je(be)):(ka(),P=null)}Lt.assignSyncMedium(wa);Dt.assignMedium(tt);xr.assignMedium(function(e){return e(an)});const Na=Er(Fa,Pa)(Sa);var je=c.forwardRef(function(t,n){return c.createElement(Ve,Ae({sideCar:Na,ref:n},t))}),on=Ve.propTypes||{};on.sideCar;fr(on,["sideCar"]);je.propTypes={};const Ea=je.default??je,sn=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:a,children:o,isDisabled:s,autoFocus:i,persistentFocus:m,lockFocusAcrossFrames:u}=e,h=c.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&cr(r.current).length===0&&requestAnimationFrame(()=>{var b;(b=r.current)==null||b.focus()})},[t,r]),l=c.useCallback(()=>{var p;(p=n==null?void 0:n.current)==null||p.focus()},[n]),d=a&&!n;return v.jsx(Ea,{crossFrame:u,persistentFocus:m,autoFocus:i,disabled:s,onActivation:h,onDeactivation:l,returnFocus:d,children:o})};sn.displayName="FocusLock";const[Ia,cn]=ge({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),nt=O(function(t,n){const r=Pt("List",t),{children:a,styleType:o="none",stylePosition:s,spacing:i,...m}=He(t),u=nr(a),l=i?{["& > *:not(style) ~ *:not(style)"]:{mt:i}}:{};return v.jsx(Ia,{value:r,children:v.jsx(E.ul,{ref:n,listStyleType:o,listStylePosition:s,role:"list",__css:{...r.container,...l},...m,children:u})})});nt.displayName="List";const Oa=O((e,t)=>{const{as:n,...r}=e;return v.jsx(nt,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});Oa.displayName="OrderedList";const Ma=O(function(t,n){const{as:r,...a}=t;return v.jsx(nt,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...a})});Ma.displayName="UnorderedList";const Aa=O(function(t,n){const r=cn();return v.jsx(E.li,{ref:n,...t,__css:r.item})});Aa.displayName="ListItem";const Ta=O(function(t,n){const r=cn();return v.jsx(Xn,{ref:n,role:"presentation",...t,__css:r.icon})});Ta.displayName="ListIcon";var _a=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},U=new WeakMap,le=new WeakMap,de={},Ie=0,un=function(e){return e&&(e.host||un(e.parentNode))},La=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=un(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Da=function(e,t,n,r){var a=La(t,Array.isArray(e)?e:[e]);de[n]||(de[n]=new WeakMap);var o=de[n],s=[],i=new Set,m=new Set(a),u=function(l){!l||i.has(l)||(i.add(l),u(l.parentNode))};a.forEach(u);var h=function(l){!l||m.has(l)||Array.prototype.forEach.call(l.children,function(d){if(i.has(d))h(d);else try{var p=d.getAttribute(r),b=p!==null&&p!=="false",f=(U.get(d)||0)+1,g=(o.get(d)||0)+1;U.set(d,f),o.set(d,g),s.push(d),f===1&&b&&le.set(d,!0),g===1&&d.setAttribute(n,"true"),b||d.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",d,w)}})};return h(t),i.clear(),Ie++,function(){s.forEach(function(l){var d=U.get(l)-1,p=o.get(l)-1;U.set(l,d),o.set(l,p),d||(le.has(l)||l.removeAttribute(r),le.delete(l)),p||l.removeAttribute(n)}),Ie--,Ie||(U=new WeakMap,U=new WeakMap,le=new WeakMap,de={})}},Ba=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=_a(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),Da(r,a,n,"aria-hidden")):function(){return null}},Ra=Object.defineProperty,ja=(e,t,n)=>t in e?Ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ga=(e,t,n)=>(ja(e,t+"",n),n);class Wa{constructor(){Ga(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Ge=new Wa;function ln(e,t){const[n,r]=c.useState(0);return c.useEffect(()=>{const a=e.current;if(a){if(t){const o=Ge.add(a);r(o)}return()=>{Ge.remove(a),r(0)}}},[t,e]),n}function Ha(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:a=!0,closeOnEsc:o=!0,useInert:s=!0,onOverlayClick:i,onEsc:m}=e,u=c.useRef(null),h=c.useRef(null),[l,d,p]=Va(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Ua(u,t&&s);const b=ln(u,t),f=c.useRef(null),g=c.useCallback(k=>{f.current=k.target},[]),w=c.useCallback(k=>{k.key==="Escape"&&(k.stopPropagation(),o&&(n==null||n()),m==null||m())},[o,n,m]),[y,x]=c.useState(!1),[S,C]=c.useState(!1),F=c.useCallback((k={},K=null)=>({role:"dialog",...k,ref:lt(K,u),id:l,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?d:void 0,"aria-describedby":S?p:void 0,onClick:J(k.onClick,ce=>ce.stopPropagation())}),[p,S,l,d,y]),N=c.useCallback(k=>{k.stopPropagation(),f.current===k.target&&Ge.isTopModal(u.current)&&(a&&(n==null||n()),i==null||i())},[n,a,i]),_=c.useCallback((k={},K=null)=>({...k,ref:lt(K,h),onClick:J(k.onClick,N),onKeyDown:J(k.onKeyDown,w),onMouseDown:J(k.onMouseDown,g)}),[w,g,N]);return{isOpen:t,onClose:n,headerId:d,bodyId:p,setBodyMounted:C,setHeaderMounted:x,dialogRef:u,overlayRef:h,getDialogProps:F,getDialogContainerProps:_,index:b}}function Ua(e,t){const n=e.current;c.useEffect(()=>{if(!(!e.current||!t))return Ba(e.current)},[t,e,n])}function Va(e,...t){const n=c.useId(),r=e||n;return c.useMemo(()=>t.map(a=>`${a}-${r}`),[r,t])}const[$a,se]=ge({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[za,G]=ge({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),dn=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:n,children:r,autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:i,returnFocusOnClose:m,blockScrollOnMount:u,allowPinchZoom:h,preserveScrollBarGap:l,motionPreset:d,lockFocusAcrossFrames:p,animatePresenceProps:b,onCloseComplete:f}=t,g=Pt("Modal",t),y={...Ha(t),autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:i,returnFocusOnClose:m,blockScrollOnMount:u,allowPinchZoom:h,preserveScrollBarGap:l,motionPreset:d,lockFocusAcrossFrames:p};return v.jsx(za,{value:y,children:v.jsx($a,{value:g,children:v.jsx(ye,{...b,onExitComplete:f,children:y.isOpen&&v.jsx(Kn,{...n,children:r})})})})};dn.displayName="Modal";var me="right-scroll-bar-position",he="width-before-scroll-bar",Ya="with-scroll-bars-hidden",qa="--removed-body-scroll-bar-size",fn=Tt(),Oe=function(){},xe=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Oe,onWheelCapture:Oe,onTouchMoveCapture:Oe}),a=r[0],o=r[1],s=e.forwardProps,i=e.children,m=e.className,u=e.removeScrollBar,h=e.enabled,l=e.shards,d=e.sideCar,p=e.noIsolation,b=e.inert,f=e.allowPinchZoom,g=e.as,w=g===void 0?"div":g,y=e.gapMode,x=Ot(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=d,C=It([n,t]),F=M(M({},x),a);return c.createElement(c.Fragment,null,h&&c.createElement(S,{sideCar:fn,removeScrollBar:u,shards:l,noIsolation:p,inert:b,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:y}),s?c.cloneElement(c.Children.only(i),M(M({},F),{ref:C})):c.createElement(w,M({},F,{className:m,ref:C}),i))});xe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xe.classNames={fullWidth:he,zeroRight:me};var Xa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ka(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xa();return t&&e.setAttribute("nonce",t),e}function Za(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qa(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ja=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ka())&&(Za(t,n),Qa(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eo=function(){var e=Ja();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vn=function(){var e=eo(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},to={left:0,top:0,right:0,gap:0},Me=function(e){return parseInt(e||"",10)||0},no=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Me(n),Me(r),Me(a)]},ro=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return to;var t=no(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ao=vn(),q="data-scroll-locked",oo=function(e,t,n,r){var a=e.left,o=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),` +import{d as c,i as Hn,X as Un,Y as Vn,Z as $n,k as ct,y as ge,l as I,j as v,c as E,Q as pe,$ as zn,f as O,w as Ft,x as He,a0 as Yn,q as ut,N as Ae,R as qn,D as Pt,I as Xn,v as lt,s as J,A as ye,P as Kn,a1 as Zn,m as ie,K as Qn,a2 as Jn,g as er,a3 as tr}from"./index-cA1eFW7V.js";function nr(e){return c.Children.toArray(e).filter(t=>c.isValidElement(t))}const rr=e=>e.hasAttribute("tabindex");function ar(e){if(!Hn(e)||Un(e)||Vn(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():$n(e)?!0:rr(e)}const or=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],ir=or.join(),sr=e=>e.offsetWidth>0&&e.offsetHeight>0;function cr(e){const t=Array.from(e.querySelectorAll(ir));return t.unshift(e),t.filter(n=>ar(n)&&sr(n))}function ur(e={}){const{onClose:t,onOpen:n,isOpen:r,id:a}=e,o=ct(n),s=ct(t),[i,m]=c.useState(e.defaultIsOpen||!1),u=r!==void 0?r:i,h=r!==void 0,l=c.useId(),d=a??`disclosure-${l}`,p=c.useCallback(()=>{h||m(!1),s==null||s()},[h,s]),b=c.useCallback(()=>{h||m(!0),o==null||o()},[h,o]),f=c.useCallback(()=>{u?p():b()},[u,b,p]);function g(y={}){return{...y,"aria-expanded":u,"aria-controls":d,onClick(x){var S;(S=y.onClick)==null||S.call(y,x),f()}}}function w(y={}){return{...y,hidden:!u,id:d}}return{isOpen:u,onOpen:b,onClose:p,onToggle:f,isControlled:h,getButtonProps:g,getDisclosureProps:w}}const dt={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Z={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function jo(e){switch((e==null?void 0:e.direction)??"right"){case"right":return Z.slideRight;case"left":return Z.slideLeft;case"bottom":return Z.slideDown;case"top":return Z.slideUp;default:return Z.slideRight}}const D={enter:{duration:.2,ease:dt.easeOut},exit:{duration:.1,ease:dt.easeIn}},B={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},[Go,lr]=ge({strict:!1,name:"ButtonGroupContext"});function ee(e){const{children:t,className:n,...r}=e,a=c.isValidElement(t)?c.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=I("chakra-button__icon",n);return v.jsx(E.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:a})}ee.displayName="ButtonIcon";function Te(e){const{label:t,placement:n,spacing:r="0.5rem",children:a=v.jsx(zn,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...i}=e,m=I("chakra-button__spinner",o),u=n==="start"?"marginEnd":"marginStart",h=c.useMemo(()=>pe({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return v.jsx(E.div,{className:m,...i,__css:h,children:a})}Te.displayName="ButtonSpinner";function dr(e){const[t,n]=c.useState(!e);return{ref:c.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const Nt=O((e,t)=>{const n=lr(),r=Ft("Button",{...n,...e}),{isDisabled:a=n==null?void 0:n.isDisabled,isLoading:o,isActive:s,children:i,leftIcon:m,rightIcon:u,loadingText:h,iconSpacing:l="0.5rem",type:d,spinner:p,spinnerPlacement:b="start",className:f,as:g,shouldWrapChildren:w,...y}=He(e),x=c.useMemo(()=>{const N={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:N}}},[r,n]),{ref:S,type:C}=dr(g),F={rightIcon:u,leftIcon:m,iconSpacing:l,children:i,shouldWrapChildren:w};return v.jsxs(E.button,{disabled:a||o,ref:Yn(t,S),as:g,type:d??C,"data-active":ut(s),"data-loading":ut(o),__css:x,className:I("chakra-button",f),...y,children:[o&&b==="start"&&v.jsx(Te,{className:"chakra-button__spinner--start",label:h,placement:"start",spacing:l,children:p}),o?h||v.jsx(E.span,{opacity:0,children:v.jsx(ft,{...F})}):v.jsx(ft,{...F}),o&&b==="end"&&v.jsx(Te,{className:"chakra-button__spinner--end",label:h,placement:"end",spacing:l,children:p})]})});Nt.displayName="Button";function ft(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:a,shouldWrapChildren:o}=e;return o?v.jsxs("span",{style:{display:"contents"},children:[t&&v.jsx(ee,{marginEnd:a,children:t}),r,n&&v.jsx(ee,{marginStart:a,children:n})]}):v.jsxs(v.Fragment,{children:[t&&v.jsx(ee,{marginEnd:a,children:t}),r,n&&v.jsx(ee,{marginStart:a,children:n})]})}function fr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var _e="data-focus-lock",Et="data-focus-lock-disabled",vr="data-no-focus-lock",mr="data-autofocus-inside",hr="data-no-autofocus";function ke(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pr(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var br=typeof window<"u"?c.useLayoutEffect:c.useEffect,vt=new WeakMap;function It(e,t){var n=pr(null,function(r){return e.forEach(function(a){return ke(a,r)})});return br(function(){var r=vt.get(n);if(r){var a=new Set(r),o=new Set(e),s=n.current;a.forEach(function(i){o.has(i)||ke(i,null)}),o.forEach(function(i){a.has(i)||ke(i,s)})}vt.set(n,e)},[e]),n}var Fe={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},M=function(){return M=Object.assign||function(t){for(var n,r=1,a=arguments.length;r=0}).sort(Br)},jr=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Ye=jr.join(","),Gr="".concat(Ye,", [data-focus-guard]"),$t=function(e,t){return A((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?Gr:Ye)?[r]:[],$t(r))},[])},Wr=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?X([e.contentDocument.body],t):[e]},X=function(e,t){return e.reduce(function(n,r){var a,o=$t(r,t),s=(a=[]).concat.apply(a,o.map(function(i){return Wr(i,t)}));return n.concat(s,r.parentNode?A(r.parentNode.querySelectorAll(Ye)).filter(function(i){return i===r}):[])},[])},Hr=function(e){var t=e.querySelectorAll("[".concat(mr,"]"));return A(t).map(function(n){return X([n])}).reduce(function(n,r){return n.concat(r)},[])},qe=function(e,t){return A(e).filter(function(n){return Gt(t,n)}).filter(function(n){return _r(n)})},mt=function(e,t){return t===void 0&&(t=new Map),A(e).filter(function(n){return Wt(t,n)})},Xe=function(e,t,n){return ze(qe(X(e,n),t),!0,n)},re=function(e,t){return ze(qe(X(e),t),!1)},Ur=function(e,t){return qe(Hr(e),t)},R=function(e,t){return e.shadowRoot?R(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:A(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var a=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return a?R(a,t):!1}return R(n,t)})},Vr=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(a),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,i){return!t.has(i)})},zt=function(e){return e.parentNode?zt(e.parentNode):e},Ke=function(e){var t=j(e);return t.filter(Boolean).reduce(function(n,r){var a=r.getAttribute(_e);return n.push.apply(n,a?Vr(A(zt(r).querySelectorAll("[".concat(_e,'="').concat(a,'"]:not([').concat(Et,'="disabled"])')))):[r]),n},[])},$r=function(e){try{return e()}catch{return}},ae=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?ae(t.shadowRoot):t instanceof HTMLIFrameElement&&$r(function(){return t.contentWindow.document})?ae(t.contentWindow.document):t}},zr=function(e,t){return e===t},Yr=function(e,t){return!!A(e.querySelectorAll("iframe")).some(function(n){return zr(n,t)})},Yt=function(e,t){return t===void 0&&(t=ae(Bt(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Ke(e).some(function(n){return R(n,t)||Yr(n,t)})},qr=function(e){e===void 0&&(e=document);var t=ae(e);return t?A(e.querySelectorAll("[".concat(vr,"]"))).some(function(n){return R(n,t)}):!1},Xr=function(e,t){return t.filter(Vt).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Ze=function(e,t){return Vt(e)&&e.name?Xr(e,t):e},Kr=function(e){var t=new Set;return e.forEach(function(n){return t.add(Ze(n,e))}),e.filter(function(n){return t.has(n)})},ht=function(e){return e[0]&&e.length>1?Ze(e[0],e):e[0]},pt=function(e,t){return e.indexOf(Ze(t,e))},Be="NEW_FOCUS",Zr=function(e,t,n,r,a){var o=e.length,s=e[0],i=e[o-1],m=$e(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,h=a?n.indexOf(a):u,l=a?e.indexOf(a):-1;if(u===-1)return l!==-1?l:Be;if(l===-1)return Be;var d=u-h,p=n.indexOf(s),b=n.indexOf(i),f=Kr(n),g=r!==void 0?f.indexOf(r):-1,w=g-(a?f.indexOf(a):u);if(!d&&l>=0||t.length===0)return l;var y=pt(e,t[0]),x=pt(e,t[t.length-1]);if(u<=p&&m&&Math.abs(d)>1)return x;if(u>=b&&m&&Math.abs(d)>1)return y;if(d&&Math.abs(w)>1)return l;if(u<=p)return x;if(u>b)return y;if(d)return Math.abs(d)>1?l:(o+l+d)%o}},Qr=function(e){return function(t){var n,r=(n=Ht(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},bt=function(e,t,n){var r=e.map(function(o){var s=o.node;return s}),a=mt(r.filter(Qr(n)));return a&&a.length?ht(a):ht(mt(t))},Re=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Re(e.parentNode.host||e.parentNode,t),t},Pe=function(e,t){for(var n=Re(e),r=Re(t),a=0;a=0)return o}return!1},qt=function(e,t,n){var r=j(e),a=j(t),o=r[0],s=!1;return a.filter(Boolean).forEach(function(i){s=Pe(s||i,i)||s,n.filter(Boolean).forEach(function(m){var u=Pe(o,m);u&&(!s||R(u,s)?s=u:s=Pe(u,s))})}),s},gt=function(e,t){return e.reduce(function(n,r){return n.concat(Ur(r,t))},[])},Jr=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(Dr)},ea=function(e,t){var n=ae(j(e).length>0?document:Bt(e).ownerDocument),r=Ke(e).filter(De),a=qt(n||e,e,r),o=new Map,s=re(r,o),i=s.filter(function(b){var f=b.node;return De(f)});if(i[0]){var m=re([a],o).map(function(b){var f=b.node;return f}),u=Jr(m,i),h=u.map(function(b){var f=b.node;return f}),l=u.filter(function(b){var f=b.tabIndex;return f>=0}).map(function(b){var f=b.node;return f}),d=Zr(h,l,m,n,t);if(d===Be){var p=bt(s,l,gt(r,o))||bt(s,h,gt(r,o));if(p)return{node:p};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:u[d]}},ta=function(e){var t=Ke(e).filter(De),n=qt(e,e,t),r=ze(X([n],!0),!0,!0),a=X(t,!1);return r.map(function(o){var s=o.node,i=o.index;return{node:s,index:i,lockItem:a.indexOf(s)>=0,guard:$e(s)}})},Qe=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Ne=0,Ee=!1,Xt=function(e,t,n){n===void 0&&(n={});var r=ea(e,t);if(!Ee&&r){if(Ne>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Ee=!0,setTimeout(function(){Ee=!1},1);return}Ne++,Qe(r.node,n.focusOptions),Ne--}};function Q(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var na=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Q(n),parent:Q(n.parentElement),left:Q(n.previousElementSibling),right:Q(n.nextElementSibling)}),n=n.parentElement;return{element:Q(e),stack:t,ownerDocument:e.ownerDocument}},ra=function(e){var t,n,r,a,o;if(e)for(var s=e.stack,i=e.ownerDocument,m=new Map,u=0,h=s;u-1&&(g.filter(function(y){var x=y.guard,S=y.node;return x&&S.dataset.focusAutoGuard}).forEach(function(y){var x=y.node;return x.removeAttribute("tabIndex")}),xt(w,g.length,1,g),xt(w,-1,-1,g))}}}return t},tn=function(t){be()&&t&&(t.stopPropagation(),t.preventDefault())},tt=function(){return Je(be)},wa=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||ha(r,n)},Sa=function(){return null},nn=function(){et=!0},rn=function(){et=!1,oe="just",Je(function(){oe="meanwhile"})},Ca=function(){document.addEventListener("focusin",tn),document.addEventListener("focusout",tt),window.addEventListener("focus",nn),window.addEventListener("blur",rn)},ka=function(){document.removeEventListener("focusin",tn),document.removeEventListener("focusout",tt),window.removeEventListener("focus",nn),window.removeEventListener("blur",rn)};function Fa(e){return e.filter(function(t){var n=t.disabled;return!n})}var an={moveFocusInside:Xt,focusInside:Yt,focusNextElement:sa,focusPrevElement:ca,focusFirstElement:ua,focusLastElement:la,captureFocusRestore:Kt};function Pa(e){var t=e.slice(-1)[0];t&&!z&&Ca();var n=z,r=n&&t&&t.id===n.id;z=t,n&&!r&&(n.onDeactivation(),e.filter(function(a){var o=a.id;return o===n.id}).length||n.returnFocus(!t)),t?(P=null,(!r||n.observed!==t.observed)&&t.onActivation(an),be(),Je(be)):(ka(),P=null)}Lt.assignSyncMedium(wa);Dt.assignMedium(tt);xr.assignMedium(function(e){return e(an)});const Na=Er(Fa,Pa)(Sa);var je=c.forwardRef(function(t,n){return c.createElement(Ve,Ae({sideCar:Na,ref:n},t))}),on=Ve.propTypes||{};on.sideCar;fr(on,["sideCar"]);je.propTypes={};const Ea=je.default??je,sn=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:a,children:o,isDisabled:s,autoFocus:i,persistentFocus:m,lockFocusAcrossFrames:u}=e,h=c.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&cr(r.current).length===0&&requestAnimationFrame(()=>{var b;(b=r.current)==null||b.focus()})},[t,r]),l=c.useCallback(()=>{var p;(p=n==null?void 0:n.current)==null||p.focus()},[n]),d=a&&!n;return v.jsx(Ea,{crossFrame:u,persistentFocus:m,autoFocus:i,disabled:s,onActivation:h,onDeactivation:l,returnFocus:d,children:o})};sn.displayName="FocusLock";const[Ia,cn]=ge({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),nt=O(function(t,n){const r=Pt("List",t),{children:a,styleType:o="none",stylePosition:s,spacing:i,...m}=He(t),u=nr(a),l=i?{["& > *:not(style) ~ *:not(style)"]:{mt:i}}:{};return v.jsx(Ia,{value:r,children:v.jsx(E.ul,{ref:n,listStyleType:o,listStylePosition:s,role:"list",__css:{...r.container,...l},...m,children:u})})});nt.displayName="List";const Oa=O((e,t)=>{const{as:n,...r}=e;return v.jsx(nt,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});Oa.displayName="OrderedList";const Ma=O(function(t,n){const{as:r,...a}=t;return v.jsx(nt,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...a})});Ma.displayName="UnorderedList";const Aa=O(function(t,n){const r=cn();return v.jsx(E.li,{ref:n,...t,__css:r.item})});Aa.displayName="ListItem";const Ta=O(function(t,n){const r=cn();return v.jsx(Xn,{ref:n,role:"presentation",...t,__css:r.icon})});Ta.displayName="ListIcon";var _a=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},U=new WeakMap,le=new WeakMap,de={},Ie=0,un=function(e){return e&&(e.host||un(e.parentNode))},La=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=un(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Da=function(e,t,n,r){var a=La(t,Array.isArray(e)?e:[e]);de[n]||(de[n]=new WeakMap);var o=de[n],s=[],i=new Set,m=new Set(a),u=function(l){!l||i.has(l)||(i.add(l),u(l.parentNode))};a.forEach(u);var h=function(l){!l||m.has(l)||Array.prototype.forEach.call(l.children,function(d){if(i.has(d))h(d);else try{var p=d.getAttribute(r),b=p!==null&&p!=="false",f=(U.get(d)||0)+1,g=(o.get(d)||0)+1;U.set(d,f),o.set(d,g),s.push(d),f===1&&b&&le.set(d,!0),g===1&&d.setAttribute(n,"true"),b||d.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",d,w)}})};return h(t),i.clear(),Ie++,function(){s.forEach(function(l){var d=U.get(l)-1,p=o.get(l)-1;U.set(l,d),o.set(l,p),d||(le.has(l)||l.removeAttribute(r),le.delete(l)),p||l.removeAttribute(n)}),Ie--,Ie||(U=new WeakMap,U=new WeakMap,le=new WeakMap,de={})}},Ba=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=_a(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),Da(r,a,n,"aria-hidden")):function(){return null}},Ra=Object.defineProperty,ja=(e,t,n)=>t in e?Ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ga=(e,t,n)=>(ja(e,t+"",n),n);class Wa{constructor(){Ga(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Ge=new Wa;function ln(e,t){const[n,r]=c.useState(0);return c.useEffect(()=>{const a=e.current;if(a){if(t){const o=Ge.add(a);r(o)}return()=>{Ge.remove(a),r(0)}}},[t,e]),n}function Ha(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:a=!0,closeOnEsc:o=!0,useInert:s=!0,onOverlayClick:i,onEsc:m}=e,u=c.useRef(null),h=c.useRef(null),[l,d,p]=Va(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Ua(u,t&&s);const b=ln(u,t),f=c.useRef(null),g=c.useCallback(k=>{f.current=k.target},[]),w=c.useCallback(k=>{k.key==="Escape"&&(k.stopPropagation(),o&&(n==null||n()),m==null||m())},[o,n,m]),[y,x]=c.useState(!1),[S,C]=c.useState(!1),F=c.useCallback((k={},K=null)=>({role:"dialog",...k,ref:lt(K,u),id:l,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?d:void 0,"aria-describedby":S?p:void 0,onClick:J(k.onClick,ce=>ce.stopPropagation())}),[p,S,l,d,y]),N=c.useCallback(k=>{k.stopPropagation(),f.current===k.target&&Ge.isTopModal(u.current)&&(a&&(n==null||n()),i==null||i())},[n,a,i]),_=c.useCallback((k={},K=null)=>({...k,ref:lt(K,h),onClick:J(k.onClick,N),onKeyDown:J(k.onKeyDown,w),onMouseDown:J(k.onMouseDown,g)}),[w,g,N]);return{isOpen:t,onClose:n,headerId:d,bodyId:p,setBodyMounted:C,setHeaderMounted:x,dialogRef:u,overlayRef:h,getDialogProps:F,getDialogContainerProps:_,index:b}}function Ua(e,t){const n=e.current;c.useEffect(()=>{if(!(!e.current||!t))return Ba(e.current)},[t,e,n])}function Va(e,...t){const n=c.useId(),r=e||n;return c.useMemo(()=>t.map(a=>`${a}-${r}`),[r,t])}const[$a,se]=ge({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[za,G]=ge({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),dn=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:n,children:r,autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:i,returnFocusOnClose:m,blockScrollOnMount:u,allowPinchZoom:h,preserveScrollBarGap:l,motionPreset:d,lockFocusAcrossFrames:p,animatePresenceProps:b,onCloseComplete:f}=t,g=Pt("Modal",t),y={...Ha(t),autoFocus:a,trapFocus:o,initialFocusRef:s,finalFocusRef:i,returnFocusOnClose:m,blockScrollOnMount:u,allowPinchZoom:h,preserveScrollBarGap:l,motionPreset:d,lockFocusAcrossFrames:p};return v.jsx(za,{value:y,children:v.jsx($a,{value:g,children:v.jsx(ye,{...b,onExitComplete:f,children:y.isOpen&&v.jsx(Kn,{...n,children:r})})})})};dn.displayName="Modal";var me="right-scroll-bar-position",he="width-before-scroll-bar",Ya="with-scroll-bars-hidden",qa="--removed-body-scroll-bar-size",fn=Tt(),Oe=function(){},xe=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Oe,onWheelCapture:Oe,onTouchMoveCapture:Oe}),a=r[0],o=r[1],s=e.forwardProps,i=e.children,m=e.className,u=e.removeScrollBar,h=e.enabled,l=e.shards,d=e.sideCar,p=e.noIsolation,b=e.inert,f=e.allowPinchZoom,g=e.as,w=g===void 0?"div":g,y=e.gapMode,x=Ot(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=d,C=It([n,t]),F=M(M({},x),a);return c.createElement(c.Fragment,null,h&&c.createElement(S,{sideCar:fn,removeScrollBar:u,shards:l,noIsolation:p,inert:b,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:y}),s?c.cloneElement(c.Children.only(i),M(M({},F),{ref:C})):c.createElement(w,M({},F,{className:m,ref:C}),i))});xe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xe.classNames={fullWidth:he,zeroRight:me};var Xa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ka(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xa();return t&&e.setAttribute("nonce",t),e}function Za(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qa(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ja=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ka())&&(Za(t,n),Qa(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eo=function(){var e=Ja();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vn=function(){var e=eo(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},to={left:0,top:0,right:0,gap:0},Me=function(e){return parseInt(e||"",10)||0},no=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Me(n),Me(r),Me(a)]},ro=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return to;var t=no(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ao=vn(),q="data-scroll-locked",oo=function(e,t,n,r){var a=e.left,o=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),` .`.concat(Ya,` { overflow: hidden `).concat(r,`; padding-right: `).concat(i,"px ").concat(r,`; diff --git a/assets/Impressum-O1V9FZWa.js b/assets/Impressum-CgX14S4L.js similarity index 97% rename from assets/Impressum-O1V9FZWa.js rename to assets/Impressum-CgX14S4L.js index b56491d..7cc6ccd 100644 --- a/assets/Impressum-O1V9FZWa.js +++ b/assets/Impressum-CgX14S4L.js @@ -1 +1 @@ -import{j as e,M as n}from"./index-Ba81FydE.js";import{C as r,a as t,H as i,b as s}from"./heading-GfTBNZPF.js";const l=()=>e.jsx(n,{title:"Impressum",description:"Impressum der Website.",children:e.jsxs(r,{height:"100%",overflow:"auto",children:[e.jsx(t,{children:e.jsx(i,{as:"h1",children:"Impressum"})}),e.jsxs(s,{children:[e.jsxs("p",{children:["Martin Großhauser ",e.jsx("br",{}),"Arnulfstraße 138 ",e.jsx("br",{}),"80634 München ",e.jsx("br",{}),"info@openpv.de ",e.jsx("br",{})]}),e.jsx("h3",{children:"Haftung für Inhalte"}),e.jsx("p",{children:"Alle Inhalte unseres Internetauftritts wurden mit größter Sorgfalt und nach bestem Gewissen erstellt. Für die Richtigkeit, Vollständigkeit und Aktualität der Inhalte können wir jedoch keine Gewähr übernehmen. Als Diensteanbieter sind wir gemäß § 7 Abs.1 TMG für eigene Inhalte auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich. Nach §§ 8 bis 10 TMG sind wir als Diensteanbieter jedoch nicht verpflichtet, übermittelte oder gespeicherte fremde Informationen zu überwachen oder nach Umständen zu forschen, die auf eine rechtswidrige Tätigkeit hinweisen. Verpflichtungen zur Entfernung oder Sperrung der Nutzung von Informationen nach den allgemeinen Gesetzen bleiben hiervon unberührt. Eine diesbezügliche Haftung ist jedoch erst ab dem Zeitpunkt der Kenntniserlangung einer konkreten Rechtsverletzung möglich. Bei Bekanntwerden von den o.g. Rechtsverletzungen werden wir diese Inhalte unverzüglich entfernen."}),e.jsx("h3",{children:"Haftungsbeschränkung für externe Links"}),e.jsx("p",{children:"Unsere Webseite enthält Links auf externe Webseiten Dritter. Auf die Inhalte dieser direkt oder indirekt verlinkten Webseiten haben wir keinen Einfluss. Daher können wir für die „externen Links“ auch keine Gewähr auf Richtigkeit der Inhalte übernehmen. Für die Inhalte der externen Links sind die jeweilige Anbieter oder Betreiber (Urheber) der Seiten verantwortlich. Die externen Links wurden zum Zeitpunkt der Linksetzung auf eventuelle Rechtsverstöße überprüft und waren im Zeitpunkt der Linksetzung frei von rechtswidrigen Inhalten. Eine ständige inhaltliche Überprüfung der externen Links ist ohne konkrete Anhaltspunkte einer Rechtsverletzung nicht möglich. Bei direkten oder indirekten Verlinkungen auf die Webseiten Dritter, die außerhalb unseres Verantwortungsbereichs liegen, würde eine Haftungsverpflichtung ausschließlich in dem Fall nur bestehen, wenn wir von den Inhalten Kenntnis erlangen und es uns technisch möglich und zumutbar wäre, die Nutzung im Falle rechtswidriger Inhalte zu verhindern. Diese Haftungsausschlusserklärung gilt auch innerhalb des eigenen Internetauftrittes „Name Ihrer Domain“ gesetzten Links und Verweise von Fragestellern, Blogeinträgern, Gästen des Diskussionsforums. Für illegale, fehlerhafte oder unvollständige Inhalte und insbesondere für Schäden, die aus der Nutzung oder Nichtnutzung solcherart dargestellten Informationen entstehen, haftet allein der Diensteanbieter der Seite, auf welche verwiesen wurde, nicht derjenige, der über Links auf die jeweilige Veröffentlichung lediglich verweist. Werden uns Rechtsverletzungen bekannt, werden die externen Links durch uns unverzüglich entfernt."}),e.jsx("h3",{children:"Urheberrecht"}),e.jsx("p",{children:"Die auf unserer Webseite veröffentlichen Inhalte und Werke unterliegen dem deutschen Urheberrecht (http://www.gesetze-im-internet.de/bundesrecht/urhg/gesamt.pdf) . Die Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung des geistigen Eigentums in ideeller und materieller Sicht des Urhebers außerhalb der Grenzen des Urheberrechtes bedürfen der vorherigen schriftlichen Zustimmung des jeweiligen Urhebers i.S.d. Urhebergesetzes (http://www.gesetze-im-internet.de/bundesrecht/urhg/gesamt.pdf ). Downloads und Kopien dieser Seite sind nur für den privaten und nicht kommerziellen Gebrauch erlaubt. Sind die Inhalte auf unserer Webseite nicht von uns erstellt wurden, sind die Urheberrechte Dritter zu beachten. Die Inhalte Dritter werden als solche kenntlich gemacht. Sollten Sie trotzdem auf eine Urheberrechtsverletzung aufmerksam werden, bitten wir um einen entsprechenden Hinweis. Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Inhalte unverzüglich entfernen."})]})]})});export{l as default}; +import{j as e,M as n}from"./index-cA1eFW7V.js";import{C as r,a as t,H as i,b as s}from"./heading-DHsph2H5.js";const l=()=>e.jsx(n,{title:"Impressum",description:"Impressum der Website.",children:e.jsxs(r,{height:"100%",overflow:"auto",children:[e.jsx(t,{children:e.jsx(i,{as:"h1",children:"Impressum"})}),e.jsxs(s,{children:[e.jsxs("p",{children:["Martin Großhauser ",e.jsx("br",{}),"Arnulfstraße 138 ",e.jsx("br",{}),"80634 München ",e.jsx("br",{}),"info@openpv.de ",e.jsx("br",{})]}),e.jsx("h3",{children:"Haftung für Inhalte"}),e.jsx("p",{children:"Alle Inhalte unseres Internetauftritts wurden mit größter Sorgfalt und nach bestem Gewissen erstellt. Für die Richtigkeit, Vollständigkeit und Aktualität der Inhalte können wir jedoch keine Gewähr übernehmen. Als Diensteanbieter sind wir gemäß § 7 Abs.1 TMG für eigene Inhalte auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich. Nach §§ 8 bis 10 TMG sind wir als Diensteanbieter jedoch nicht verpflichtet, übermittelte oder gespeicherte fremde Informationen zu überwachen oder nach Umständen zu forschen, die auf eine rechtswidrige Tätigkeit hinweisen. Verpflichtungen zur Entfernung oder Sperrung der Nutzung von Informationen nach den allgemeinen Gesetzen bleiben hiervon unberührt. Eine diesbezügliche Haftung ist jedoch erst ab dem Zeitpunkt der Kenntniserlangung einer konkreten Rechtsverletzung möglich. Bei Bekanntwerden von den o.g. Rechtsverletzungen werden wir diese Inhalte unverzüglich entfernen."}),e.jsx("h3",{children:"Haftungsbeschränkung für externe Links"}),e.jsx("p",{children:"Unsere Webseite enthält Links auf externe Webseiten Dritter. Auf die Inhalte dieser direkt oder indirekt verlinkten Webseiten haben wir keinen Einfluss. Daher können wir für die „externen Links“ auch keine Gewähr auf Richtigkeit der Inhalte übernehmen. Für die Inhalte der externen Links sind die jeweilige Anbieter oder Betreiber (Urheber) der Seiten verantwortlich. Die externen Links wurden zum Zeitpunkt der Linksetzung auf eventuelle Rechtsverstöße überprüft und waren im Zeitpunkt der Linksetzung frei von rechtswidrigen Inhalten. Eine ständige inhaltliche Überprüfung der externen Links ist ohne konkrete Anhaltspunkte einer Rechtsverletzung nicht möglich. Bei direkten oder indirekten Verlinkungen auf die Webseiten Dritter, die außerhalb unseres Verantwortungsbereichs liegen, würde eine Haftungsverpflichtung ausschließlich in dem Fall nur bestehen, wenn wir von den Inhalten Kenntnis erlangen und es uns technisch möglich und zumutbar wäre, die Nutzung im Falle rechtswidriger Inhalte zu verhindern. Diese Haftungsausschlusserklärung gilt auch innerhalb des eigenen Internetauftrittes „Name Ihrer Domain“ gesetzten Links und Verweise von Fragestellern, Blogeinträgern, Gästen des Diskussionsforums. Für illegale, fehlerhafte oder unvollständige Inhalte und insbesondere für Schäden, die aus der Nutzung oder Nichtnutzung solcherart dargestellten Informationen entstehen, haftet allein der Diensteanbieter der Seite, auf welche verwiesen wurde, nicht derjenige, der über Links auf die jeweilige Veröffentlichung lediglich verweist. Werden uns Rechtsverletzungen bekannt, werden die externen Links durch uns unverzüglich entfernt."}),e.jsx("h3",{children:"Urheberrecht"}),e.jsx("p",{children:"Die auf unserer Webseite veröffentlichen Inhalte und Werke unterliegen dem deutschen Urheberrecht (http://www.gesetze-im-internet.de/bundesrecht/urhg/gesamt.pdf) . Die Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung des geistigen Eigentums in ideeller und materieller Sicht des Urhebers außerhalb der Grenzen des Urheberrechtes bedürfen der vorherigen schriftlichen Zustimmung des jeweiligen Urhebers i.S.d. Urhebergesetzes (http://www.gesetze-im-internet.de/bundesrecht/urhg/gesamt.pdf ). Downloads und Kopien dieser Seite sind nur für den privaten und nicht kommerziellen Gebrauch erlaubt. Sind die Inhalte auf unserer Webseite nicht von uns erstellt wurden, sind die Urheberrechte Dritter zu beachten. Die Inhalte Dritter werden als solche kenntlich gemacht. Sollten Sie trotzdem auf eine Urheberrechtsverletzung aufmerksam werden, bitten wir um einen entsprechenden Hinweis. Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Inhalte unverzüglich entfernen."})]})]})});export{l as default}; diff --git a/assets/Map-BrJAk4eL.js b/assets/Map-D9xkNy6Y.js similarity index 98% rename from assets/Map-BrJAk4eL.js rename to assets/Map-D9xkNy6Y.js index 6e98eea..fa1f07d 100644 --- a/assets/Map-BrJAk4eL.js +++ b/assets/Map-D9xkNy6Y.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/maplibre-gl-Bok8Fwzh.js","assets/index-Ba81FydE.js","assets/index-CzQ50VWX.css"])))=>i.map(i=>d[i]); -import{f as N,j as d,B as Q,c as te,t as R,r as I,a as ne,u as oe,b as se,d as i,e as J,_ as re,g as P,h as ae,M as ie}from"./index-Ba81FydE.js";import{T as le,B as j,L as ce,a as ue,u as de,M as fe,b as me,c as he,d as ge,e as pe,f as ve,F as ye}from"./Footer-BEVKcqw5.js";import{I as _e,r as O,M as xe}from"./location-B7dRf9MH.js";import{I as be}from"./image-D_XEucjS.js";const Y=N(function(t,s){const{size:n,centerContent:o=!0,...r}=t,a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return d.jsx(Q,{ref:s,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...r})});Y.displayName="Square";const X=N(function(t,s){const{size:n,...o}=t;return d.jsx(Y,{size:n,ref:s,borderRadius:"9999px",...o})});X.displayName="Circle";const ee=N(function(t,s){const{direction:n,align:o,justify:r,wrap:a,basis:l,grow:u,shrink:c,...f}=t,_={display:"flex",flexDirection:n,alignItems:o,justifyContent:r,flexWrap:a,flexBasis:l,flexGrow:u,flexShrink:c};return d.jsx(te.div,{ref:s,__css:_,...f})});ee.displayName="Flex";function Ce(e,t){const s=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[s];return(o==null?void 0:o[t])??s}function Se(e,t){const s=o=>({...t,...o,position:Ce((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),n=o=>{const r=s(o),a=ne(r);return R.notify(a,r)};return n.update=(o,r)=>{R.update(o,s(r))},n.promise=(o,r)=>{const a=n({...r.loading,status:"loading",duration:null});o.then(l=>n.update(a,{status:"success",duration:5e3,...I(r.success,l)})).catch(l=>n.update(a,{status:"error",duration:5e3,...I(r.error,l)}))},n.closeAll=R.closeAll,n.close=R.close,n.isActive=R.isActive,n}function Me(e){const{theme:t}=oe(),s=se();return i.useMemo(()=>Se(t.direction,{...s,...e}),[e,t.direction,s])}const we=i.createContext(null);function Ee(e,t){const s=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,r=Array.isArray(t)?t[1]:t?t.y:0;return s===o&&n===r}function M(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let s=0;s{let o=null;"interactive"in n&&(o=Object.assign({},n),delete o.interactive);const r=t[n.ref];if(r){o=o||Object.assign({},n),delete o.ref;for(const a of Re)a in r&&(o[a]=r[a])}return o||n});return{...e,layers:s}}var Z={};const H={version:8,sources:{},layers:[]},q={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},F={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},$={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Te=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],je=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class L{constructor(t,s,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const r=this.props[$[o.type]];r?r(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const r=this.props[q[o.type]];r&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),r(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const r=this.props[F[o.type]];r&&r(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=s,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const s=this.props;this.props=t;const n=this._updateSettings(t,s);n&&this._createShadowTransform(this._map);const o=this._updateSize(t),r=this._updateViewState(t,!0);this._updateStyle(t,s),this._updateStyleComponents(t,s),this._updateHandlers(t,s),(n||o||r&&!this._map.isMoving())&&this.redraw()}static reuse(t,s){const n=L.savedMaps.pop();if(!n)return null;const o=n.map,r=o.getContainer();for(s.className=r.className;r.childNodes.length>0;)s.appendChild(r.childNodes[0]);o._container=s;const a=o._resizeObserver;a&&(a.disconnect(),a.observe(s)),n.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:l}=t;return l&&(l.bounds?o.fitBounds(l.bounds,{...l.fitBoundsOptions,duration:0}):n._updateViewState(l,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),n}_initialize(t){const{props:s}=this,{mapStyle:n=H}=s,o={...s,...s.initialViewState,accessToken:s.mapboxAccessToken||ke()||null,container:t,style:U(n)},r=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[r.longitude||0,r.latitude||0],zoom:r.zoom||0,pitch:r.pitch||0,bearing:r.bearing||0}),s.gl){const f=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=f,s.gl)}const a=new this._MapClass(o);r.padding&&a.setPadding(r.padding),s.cursor&&(a.getCanvas().style.cursor=s.cursor),this._createShadowTransform(a);const l=a._render;a._render=f=>{this._inRender=!0,l.call(a,f),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=f=>{u.call(a._renderTaskQueue,f),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const c=a.fire;a.fire=this._fireEvent.bind(this,c),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),W(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const f in q)a.on(f,this._onPointerEvent);for(const f in F)a.on(f,this._onCameraEvent);for(const f in $)a.on(f,this._onEvent);this._map=a}recycle(){const s=this.map.getContainer().querySelector("[mapboxgl-children]");s==null||s.remove(),L.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const s=Le(t.transform);t.painter.transform=s,this._renderTransform=s}_updateSize(t){const{viewState:s}=t;if(s){const n=this._map;if(s.width!==n.transform.width||s.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,s){if(this._internalUpdate)return!1;const n=this._map,o=this._renderTransform,{zoom:r,pitch:a,bearing:l}=o,u=n.isMoving();u&&(o.cameraElevationReference="sea");const c=V(o,{...B(n.transform),...t});if(u&&(o.cameraElevationReference="ground"),c&&s){const f=this._deferredEvents;f.move=!0,f.zoom||(f.zoom=r!==o.zoom),f.rotate||(f.rotate=l!==o.bearing),f.pitch||(f.pitch=a!==o.pitch)}return u||V(n.transform,t),c}_updateSettings(t,s){const n=this._map;let o=!1;for(const r of Te)if(r in t&&!M(t[r],s[r])){o=!0;const a=n[`set${r[0].toUpperCase()}${r.slice(1)}`];a==null||a.call(n,t[r])}return o}_updateStyle(t,s){if(t.cursor!==s.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==s.mapStyle){const{mapStyle:n=H,styleDiffing:o=!0}=t,r={diff:o};return"localIdeographFontFamily"in t&&(r.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(U(n),r),!0}return!1}_updateStyleComponents(t,s){const n=this._map;let o=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!M(t.light,s.light)&&(o=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!M(t.fog,s.fog)&&(o=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!M(t.terrain,s.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(o=!0,n.setTerrain(t.terrain))),o}_updateHandlers(t,s){var n,o;const r=this._map;let a=!1;for(const l of je){const u=(n=t[l])!==null&&n!==void 0?n:!0,c=(o=s[l])!==null&&o!==void 0?o:!0;M(u,c)||(a=!0,u?r[l].enable(u):r[l].disable())}return a}_queryRenderedFeatures(t){const s=this._map,n=s.transform,{interactiveLayerIds:o=[]}=this.props;try{return s.transform=this._renderTransform,s.queryRenderedFeatures(t,{layers:o.filter(s.getLayer.bind(s))})}catch{return[]}finally{s.transform=n}}_updateHover(t){var s;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const r=t.type,a=((s=this._hoveredFeatures)===null||s===void 0?void 0:s.length)>0,l=this._queryRenderedFeatures(t.point),u=l.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=r}else this._hoveredFeatures=null}_fireEvent(t,s,n){const o=this._map,r=o.transform,a=typeof s=="string"?s:s.type;return a==="move"&&this._updateViewState(this.props,!1),a in F&&(typeof s=="object"&&(s.viewState=B(r)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,s,n),o.transform=r,o):(t.call(o,s,n),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const s=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{W(this._renderTransform,s),t.transform=s}}}L.savedMaps=[];function ke(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||Z.MapboxAccessToken}catch{}try{e=e||Z.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const Pe=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function ze(e){if(!e)return null;const t=e.map,s={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{const o=t.transform;t.transform=e.transform;const r=t.project(n);return t.transform=o,r},unproject:n=>{const o=t.transform;t.transform=e.transform;const r=t.unproject(n);return t.transform=o,r},queryTerrainElevation:(n,o)=>{const r=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(n,o);return t.transform=r,a},queryRenderedFeatures:(n,o)=>{const r=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(n,o);return t.transform=r,a}};for(const n of Ae(t))!(n in s)&&!Pe.includes(n)&&(s[n]=t[n].bind(t));return s}function Ae(e){const t=new Set;let s=e;for(;s;){for(const n of Object.getOwnPropertyNames(s))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);s=Object.getPrototypeOf(s)}return Array.from(t)}const Fe=typeof document<"u"?i.useLayoutEffect:i.useEffect,Ne=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function De(e,t){for(const n of Ne)n in t&&(e[n]=t[n]);const{RTLTextPlugin:s="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;s&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(s,n=>{n&&console.error(n)},!0)}const z=i.createContext(null);function Ie(e,t,s){const n=i.useContext(we),[o,r]=i.useState(null),a=i.useRef(),{current:l}=i.useRef({mapLib:null,map:null});i.useEffect(()=>{const f=e.mapLib;let _=!0,v;return Promise.resolve(f||s).then(g=>{if(!_)return;if(!g)throw new Error("Invalid mapLib");const p="Map"in g?g:g.default;if(!p.Map)throw new Error("Invalid mapLib");if(De(p,e),!p.supported||p.supported(e))e.reuseMaps&&(v=L.reuse(e,a.current)),v||(v=new L(p.Map,e,a.current)),l.map=ze(v),l.mapLib=p,r(v),n==null||n.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(g=>{const{onError:p}=e;p?p({type:"error",target:null,originalEvent:null,error:g}):console.error(g)}),()=>{_=!1,v&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?v.recycle():v.destroy())}},[]),Fe(()=>{o&&o.setProps(e)}),i.useImperativeHandle(t,()=>l.map,[o]);const u=i.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return i.createElement("div",{id:e.id,ref:a,style:u},o&&i.createElement(z.Provider,{value:l},i.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Oe=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function w(e,t){if(!e||!t)return;const s=e.style;for(const n in t){const o=t[n];Number.isFinite(o)&&!Oe.test(n)?s[n]=`${o}px`:s[n]=o}}function We(e,t){const{map:s,mapLib:n}=i.useContext(z),o=i.useRef({props:e});o.current.props=e;const r=i.useMemo(()=>{let S=!1;i.Children.forEach(e.children,m=>{m&&(S=!0)});const E={...e,element:S?document.createElement("div"):null},x=new n.Marker(E);return x.setLngLat([e.longitude,e.latitude]),x.getElement().addEventListener("click",m=>{var h,y;(y=(h=o.current.props).onClick)===null||y===void 0||y.call(h,{type:"click",target:x,originalEvent:m})}),x.on("dragstart",m=>{var h,y;const b=m;b.lngLat=r.getLngLat(),(y=(h=o.current.props).onDragStart)===null||y===void 0||y.call(h,b)}),x.on("drag",m=>{var h,y;const b=m;b.lngLat=r.getLngLat(),(y=(h=o.current.props).onDrag)===null||y===void 0||y.call(h,b)}),x.on("dragend",m=>{var h,y;const b=m;b.lngLat=r.getLngLat(),(y=(h=o.current.props).onDragEnd)===null||y===void 0||y.call(h,b)}),x},[]);i.useEffect(()=>(r.addTo(s.getMap()),()=>{r.remove()}),[]);const{longitude:a,latitude:l,offset:u,style:c,draggable:f=!1,popup:_=null,rotation:v=0,rotationAlignment:g="auto",pitchAlignment:p="auto"}=e;return i.useEffect(()=>{w(r.getElement(),c)},[c]),i.useImperativeHandle(t,()=>r,[]),(r.getLngLat().lng!==a||r.getLngLat().lat!==l)&&r.setLngLat([a,l]),u&&!Ee(r.getOffset(),u)&&r.setOffset(u),r.isDraggable()!==f&&r.setDraggable(f),r.getRotation()!==v&&r.setRotation(v),r.getRotationAlignment()!==g&&r.setRotationAlignment(g),r.getPitchAlignment()!==p&&r.setPitchAlignment(p),r.getPopup()!==_&&r.setPopup(_),J.createPortal(e.children,r.getElement())}i.memo(i.forwardRef(We));function G(e){return new Set(e?e.trim().split(/\s+/):[])}function Be(e,t){const{map:s,mapLib:n}=i.useContext(z),o=i.useMemo(()=>document.createElement("div"),[]),r=i.useRef({props:e});r.current.props=e;const a=i.useMemo(()=>{const l={...e},u=new n.Popup(l);return u.setLngLat([e.longitude,e.latitude]),u.once("open",c=>{var f,_;(_=(f=r.current.props).onOpen)===null||_===void 0||_.call(f,c)}),u},[]);if(i.useEffect(()=>{const l=u=>{var c,f;(f=(c=r.current.props).onClose)===null||f===void 0||f.call(c,u)};return a.on("close",l),a.setDOMContent(o).addTo(s.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),i.useEffect(()=>{w(a.getElement(),e.style)},[e.style]),i.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!M(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){const l=G(a.options.className),u=G(e.className);for(const c of l)u.has(c)||a.removeClassName(c);for(const c of u)l.has(c)||a.addClassName(c);a.options.className=e.className}return J.createPortal(e.children,o)}const Ve=i.memo(i.forwardRef(Be));function k(e,t,s,n){const o=i.useContext(z),r=i.useMemo(()=>e(o),[]);return i.useEffect(()=>{const a=t,l=typeof t=="function"&&typeof s=="function"?t:null,u=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(r)||(c.addControl(r,a==null?void 0:a.position),l&&l(o)),()=>{u&&u(o),c.hasControl(r)&&c.removeControl(r)}},[]),r}function Ue(e){const t=k(({mapLib:s})=>new s.AttributionControl(e),{position:e.position});return i.useEffect(()=>{w(t._container,e.style)},[e.style]),null}i.memo(Ue);function Ze(e){const t=k(({mapLib:s})=>new s.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return i.useEffect(()=>{w(t._controlContainer,e.style)},[e.style]),null}i.memo(Ze);function He(e,t){const s=i.useRef({props:e}),n=k(({mapLib:o})=>{const r=new o.GeolocateControl(e),a=r._setupUI;return r._setupUI=l=>{r._container.hasChildNodes()||a(l)},r.on("geolocate",l=>{var u,c;(c=(u=s.current.props).onGeolocate)===null||c===void 0||c.call(u,l)}),r.on("error",l=>{var u,c;(c=(u=s.current.props).onError)===null||c===void 0||c.call(u,l)}),r.on("outofmaxbounds",l=>{var u,c;(c=(u=s.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(u,l)}),r.on("trackuserlocationstart",l=>{var u,c;(c=(u=s.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(u,l)}),r.on("trackuserlocationend",l=>{var u,c;(c=(u=s.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(u,l)}),r},{position:e.position});return s.current.props=e,i.useImperativeHandle(t,()=>n,[]),i.useEffect(()=>{w(n._container,e.style)},[e.style]),null}i.memo(i.forwardRef(He));function qe(e){const t=k(({mapLib:s})=>new s.NavigationControl(e),{position:e.position});return i.useEffect(()=>{w(t._container,e.style)},[e.style]),null}const $e=i.memo(qe);function Ge(e){const t=k(({mapLib:r})=>new r.ScaleControl(e),{position:e.position}),s=i.useRef(e),n=s.current;s.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==n.unit&&t.setUnit(e.unit),i.useEffect(()=>{w(t._container,o)},[o]),null}i.memo(Ge);const Ke=re(()=>import("./maplibre-gl-Bok8Fwzh.js").then(e=>e.m),__vite__mapDeps([0,1,2])),Qe=i.forwardRef(function(t,s){return Ie(t,s,Ke)}),Je=Ve,Ye=$e;function K({lat:e,lon:t,display_name:s}){const{t:n}=P(),o=ae(),r=()=>{o(`/simulation/${t}/${e}`)},[a,l]=i.useState(!0);return i.useEffect(()=>{console.log("effect changed"),l(!0)},[e,t]),d.jsx(d.Fragment,{children:a&&d.jsxs(Je,{latitude:e,longitude:t,closeOnClick:!1,onClose:()=>l(!1),children:[d.jsx(le,{children:s}),d.jsx(j,{onClick:r,children:n("startSimulation")})]})})}function Xe({callback:e}){const[t,s]=i.useState(""),[n,o]=i.useState([]),[r,a]=i.useState(!1),[l,u]=i.useState(!1),c=i.useRef([]),f=i.useRef(),_=i.useRef(),[v,g]=i.useState(-1);window.searchFieldInput=t;const{t:p}=P();i.useEffect(()=>{const m=h=>{_.current&&!_.current.contains(h.target)&&(a(!1),g(-1))};return document.addEventListener("mousedown",m),document.addEventListener("touchstart",m),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("touchstart",m)}}),i.useEffect(()=>{const h=setTimeout(async()=>{if(t.length<3&&u(!1),!l){if(t.length>2)try{const y=t.split(" ");let b=null;for(let C of y)if(C[C.length-1]===","&&(C=C.slice(0,-1)),C.length!=5&&/^\d{1,3}[a-zA-Z]?$/.test(C)){b=C;break}const D=await(await fetch(`https://photon.komoot.io/api/?q=${encodeURIComponent(t)}&bbox=5.98865807458,47.3024876979,15.0169958839,54.983104153&limit=5&lang=de&layer=street`)).json();console.log("data",D),o(D.features.map(C=>{let A=C.properties.name;return b&&(A+=" "+b),A+=", "+C.properties.postcode+" "+C.properties.city,A}))}catch(y){console.error("Error fetching suggestions:",y)}else o([]);a(n.length>0)}},200);return()=>clearTimeout(h)},[t,l]);const S=async m=>{m.preventDefault();const h=await O(t);console.warn(h),e(h)},E=m=>{s(m),O(m).then(h=>{console.warn(h),e(h)}),o([]),u(!0)},x=m=>{m.key==="ArrowDown"?(m.preventDefault(),g(h=>hh>-1?h-1:-1)):m.key==="Enter"&&v>-1&&(m.preventDefault(),E(n[v]))};return i.useEffect(()=>{v>-1&&c.current[v]?c.current[v].focus():v===-1&&f.current.focus()},[v]),d.jsxs("form",{ref:_,onSubmit:S,style:{display:"flex",flexDirection:"column",alignItems:"stretch",padding:"5px",position:"relative"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[d.jsx(_e,{ref:f,value:t,placeholder:p("searchField.placeholder"),onChange:m=>s(m.target.value),onKeyDown:x,margin:"5px",autoComplete:"street-address"}),d.jsx(j,{margin:"5px",minWidth:"150px",type:"submit",children:p("Search")})]}),r&&d.jsx(ce,{style:{paddingLeft:"0",marginTop:"0"},borderWidth:1,borderColor:"gray.200",mt:2,position:"absolute",top:"100%",left:0,right:0,zIndex:1,bg:"white",boxShadow:"md",children:n.map((m,h)=>d.jsx(ue,{ref:y=>c.current[h]=y,p:2,style:{paddingLeft:"1em"},cursor:"pointer",_hover:{backgroundColor:"gray.100"},backgroundColor:v===h?"gray.100":"white",onClick:()=>E(m),onKeyDown:x,children:m},h))})]})}function T({image:e,text:t}){return d.jsxs(Q,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",children:[e&&d.jsx(be,{src:e.src,alt:e.alt,style:{maxHeight:"200px",width:"auto",margin:"20px"}}),t]})}function et(){const{isOpen:e,onOpen:t,onClose:s}=de({defaultIsOpen:!0}),[n,o]=i.useState(1),{t:r,i18n:a}=P(),l=5,u=()=>{n{n>1&&o(n-1)};return d.jsxs(fe,{isOpen:e,onClose:s,size:"xl",children:[d.jsx(me,{}),d.jsxs(he,{children:[d.jsx(ge,{as:"h1",children:r("WelcomeMessage.title")}),d.jsx(pe,{}),d.jsxs(ve,{children:[n===1&&d.jsx(T,{image:{src:"images/WelcomeMessage1.png",alt:"Screenshot from the Search Input, where some address is written down."},text:r("WelcomeMessage.firstPage")}),n===2&&d.jsx(T,{image:{src:"images/WelcomeMessage2.png",alt:"Screenshot from a possible Simulation Result, where the solar potential of a 3D building is shown."},text:r("WelcomeMessage.secondPage")}),n===3&&d.jsx(T,{image:{src:"images/WelcomeMessage3.png",alt:"Screenshot from a possible Simulation Result, where a PV system was created and the annual result was calculated."},text:r("WelcomeMessage.thirdPage")}),n===4&&d.jsx(T,{image:{src:"images/WelcomeMessage4.png",alt:"Screenshot from a possible Simulation Result, where a PV system was created and the annual result was calculated."},text:r("WelcomeMessage.fourthPage")}),n===5&&d.jsx(T,{text:r("WelcomeMessage.fifthPage")})]}),d.jsxs(xe,{children:[d.jsx(j,{mr:3,onClick:c,isDisabled:n===1,children:r("previous")}),n!=5&&d.jsx(j,{mr:3,onClick:u,isDisabled:n===l,children:r("next")}),n==5&&d.jsx(j,{mr:3,onClick:s,children:r("close")})]}),d.jsx(ee,{justifyContent:"center",mb:4,children:Array.from({length:l},(f,_)=>_+1).map(f=>d.jsx(X,{size:"10px",bg:n===f?"blue.500":"gray.300",m:1},f))})]})]})}function at(){const{t:e}=P(),t=[5.98,47.3,15.1,55],[s,n]=i.useState({bounds:t}),[o,r]=i.useState([]),a=Me(),l=g=>{if(g.length==0)console.error("No search results!"),a({title:e("noSearchResults.title"),description:e("noSearchResults.description"),status:"error",duration:4e3,isClosable:!0});else{g=[g[0]];const p=g.map(x=>x.lon),S=g.map(x=>x.lat),E=[Math.min(...p),Math.min(...S),Math.max(...p),Math.max(...S)];u.current.fitBounds(E,{maxZoom:17,speed:2})}r(g.map(p=>d.jsx(K,{...p},p.key)))},u=i.useRef(),c=i.useCallback(g=>{u.current=g,g!==null&&(g.getMap().dragRotate.disable(),g.getMap().touchZoomRotate.disableRotation())},[]),[f,_]=i.useState(null),v=i.useCallback(g=>{console.log(g);const{lng:p,lat:S}=g.lngLat;_([S,p])});return d.jsxs(ie,{description:e("mainDescription"),children:[d.jsx("header",{children:d.jsx("div",{className:"title",children:d.jsx(Xe,{callback:l})})}),d.jsx(et,{}),d.jsxs("div",{className:"content",children:[d.jsxs(Qe,{ref:c,...s,maxZoom:19,style:{width:"100%",height:"100%"},mapStyle:"https://sgx.geodatenzentrum.de/gdz_basemapde_vektor/styles/bm_web_col.json",onMove:g=>n(g.viewState),onClick:v,attributionControl:!1,maxBounds:[-10,35,30,65],children:[d.jsx(d.Fragment,{children:o}),f&&d.jsx(K,{lat:f[0],lon:f[1],display_name:e("map.userSelection")},"userSelectiion"),d.jsx(Ye,{position:"bottom-right",showCompass:!1})]}),d.jsx(ye,{federalState:"",frontendState:"Map"})]})]})}export{at as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/maplibre-gl-DcBeTzQR.js","assets/index-cA1eFW7V.js","assets/index-CzQ50VWX.css"])))=>i.map(i=>d[i]); +import{f as N,j as d,B as Q,c as te,t as R,r as I,a as ne,u as oe,b as se,d as i,e as J,_ as re,g as P,h as ae,M as ie}from"./index-cA1eFW7V.js";import{T as le,B as j,L as ce,a as ue,u as de,M as fe,b as me,c as he,d as ge,e as pe,f as ve,F as ye}from"./Footer-Cn5RvAyN.js";import{I as _e,r as O,M as xe}from"./location-D8PyOyjj.js";import{I as be}from"./image-H-1NI3NN.js";const Y=N(function(t,s){const{size:n,centerContent:o=!0,...r}=t,a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return d.jsx(Q,{ref:s,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...r})});Y.displayName="Square";const X=N(function(t,s){const{size:n,...o}=t;return d.jsx(Y,{size:n,ref:s,borderRadius:"9999px",...o})});X.displayName="Circle";const ee=N(function(t,s){const{direction:n,align:o,justify:r,wrap:a,basis:l,grow:u,shrink:c,...f}=t,_={display:"flex",flexDirection:n,alignItems:o,justifyContent:r,flexWrap:a,flexBasis:l,flexGrow:u,flexShrink:c};return d.jsx(te.div,{ref:s,__css:_,...f})});ee.displayName="Flex";function Ce(e,t){const s=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[s];return(o==null?void 0:o[t])??s}function Se(e,t){const s=o=>({...t,...o,position:Ce((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),n=o=>{const r=s(o),a=ne(r);return R.notify(a,r)};return n.update=(o,r)=>{R.update(o,s(r))},n.promise=(o,r)=>{const a=n({...r.loading,status:"loading",duration:null});o.then(l=>n.update(a,{status:"success",duration:5e3,...I(r.success,l)})).catch(l=>n.update(a,{status:"error",duration:5e3,...I(r.error,l)}))},n.closeAll=R.closeAll,n.close=R.close,n.isActive=R.isActive,n}function Me(e){const{theme:t}=oe(),s=se();return i.useMemo(()=>Se(t.direction,{...s,...e}),[e,t.direction,s])}const we=i.createContext(null);function Ee(e,t){const s=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,r=Array.isArray(t)?t[1]:t?t.y:0;return s===o&&n===r}function M(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let s=0;s{let o=null;"interactive"in n&&(o=Object.assign({},n),delete o.interactive);const r=t[n.ref];if(r){o=o||Object.assign({},n),delete o.ref;for(const a of Re)a in r&&(o[a]=r[a])}return o||n});return{...e,layers:s}}var Z={};const H={version:8,sources:{},layers:[]},q={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},F={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},$={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Te=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],je=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class L{constructor(t,s,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const r=this.props[$[o.type]];r?r(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const r=this.props[q[o.type]];r&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),r(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const r=this.props[F[o.type]];r&&r(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=s,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const s=this.props;this.props=t;const n=this._updateSettings(t,s);n&&this._createShadowTransform(this._map);const o=this._updateSize(t),r=this._updateViewState(t,!0);this._updateStyle(t,s),this._updateStyleComponents(t,s),this._updateHandlers(t,s),(n||o||r&&!this._map.isMoving())&&this.redraw()}static reuse(t,s){const n=L.savedMaps.pop();if(!n)return null;const o=n.map,r=o.getContainer();for(s.className=r.className;r.childNodes.length>0;)s.appendChild(r.childNodes[0]);o._container=s;const a=o._resizeObserver;a&&(a.disconnect(),a.observe(s)),n.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:l}=t;return l&&(l.bounds?o.fitBounds(l.bounds,{...l.fitBoundsOptions,duration:0}):n._updateViewState(l,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),n}_initialize(t){const{props:s}=this,{mapStyle:n=H}=s,o={...s,...s.initialViewState,accessToken:s.mapboxAccessToken||ke()||null,container:t,style:U(n)},r=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[r.longitude||0,r.latitude||0],zoom:r.zoom||0,pitch:r.pitch||0,bearing:r.bearing||0}),s.gl){const f=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=f,s.gl)}const a=new this._MapClass(o);r.padding&&a.setPadding(r.padding),s.cursor&&(a.getCanvas().style.cursor=s.cursor),this._createShadowTransform(a);const l=a._render;a._render=f=>{this._inRender=!0,l.call(a,f),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=f=>{u.call(a._renderTaskQueue,f),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const c=a.fire;a.fire=this._fireEvent.bind(this,c),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),W(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const f in q)a.on(f,this._onPointerEvent);for(const f in F)a.on(f,this._onCameraEvent);for(const f in $)a.on(f,this._onEvent);this._map=a}recycle(){const s=this.map.getContainer().querySelector("[mapboxgl-children]");s==null||s.remove(),L.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const s=Le(t.transform);t.painter.transform=s,this._renderTransform=s}_updateSize(t){const{viewState:s}=t;if(s){const n=this._map;if(s.width!==n.transform.width||s.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,s){if(this._internalUpdate)return!1;const n=this._map,o=this._renderTransform,{zoom:r,pitch:a,bearing:l}=o,u=n.isMoving();u&&(o.cameraElevationReference="sea");const c=V(o,{...B(n.transform),...t});if(u&&(o.cameraElevationReference="ground"),c&&s){const f=this._deferredEvents;f.move=!0,f.zoom||(f.zoom=r!==o.zoom),f.rotate||(f.rotate=l!==o.bearing),f.pitch||(f.pitch=a!==o.pitch)}return u||V(n.transform,t),c}_updateSettings(t,s){const n=this._map;let o=!1;for(const r of Te)if(r in t&&!M(t[r],s[r])){o=!0;const a=n[`set${r[0].toUpperCase()}${r.slice(1)}`];a==null||a.call(n,t[r])}return o}_updateStyle(t,s){if(t.cursor!==s.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==s.mapStyle){const{mapStyle:n=H,styleDiffing:o=!0}=t,r={diff:o};return"localIdeographFontFamily"in t&&(r.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(U(n),r),!0}return!1}_updateStyleComponents(t,s){const n=this._map;let o=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!M(t.light,s.light)&&(o=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!M(t.fog,s.fog)&&(o=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!M(t.terrain,s.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(o=!0,n.setTerrain(t.terrain))),o}_updateHandlers(t,s){var n,o;const r=this._map;let a=!1;for(const l of je){const u=(n=t[l])!==null&&n!==void 0?n:!0,c=(o=s[l])!==null&&o!==void 0?o:!0;M(u,c)||(a=!0,u?r[l].enable(u):r[l].disable())}return a}_queryRenderedFeatures(t){const s=this._map,n=s.transform,{interactiveLayerIds:o=[]}=this.props;try{return s.transform=this._renderTransform,s.queryRenderedFeatures(t,{layers:o.filter(s.getLayer.bind(s))})}catch{return[]}finally{s.transform=n}}_updateHover(t){var s;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const r=t.type,a=((s=this._hoveredFeatures)===null||s===void 0?void 0:s.length)>0,l=this._queryRenderedFeatures(t.point),u=l.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=r}else this._hoveredFeatures=null}_fireEvent(t,s,n){const o=this._map,r=o.transform,a=typeof s=="string"?s:s.type;return a==="move"&&this._updateViewState(this.props,!1),a in F&&(typeof s=="object"&&(s.viewState=B(r)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,s,n),o.transform=r,o):(t.call(o,s,n),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const s=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{W(this._renderTransform,s),t.transform=s}}}L.savedMaps=[];function ke(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||Z.MapboxAccessToken}catch{}try{e=e||Z.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const Pe=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function ze(e){if(!e)return null;const t=e.map,s={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{const o=t.transform;t.transform=e.transform;const r=t.project(n);return t.transform=o,r},unproject:n=>{const o=t.transform;t.transform=e.transform;const r=t.unproject(n);return t.transform=o,r},queryTerrainElevation:(n,o)=>{const r=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(n,o);return t.transform=r,a},queryRenderedFeatures:(n,o)=>{const r=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(n,o);return t.transform=r,a}};for(const n of Ae(t))!(n in s)&&!Pe.includes(n)&&(s[n]=t[n].bind(t));return s}function Ae(e){const t=new Set;let s=e;for(;s;){for(const n of Object.getOwnPropertyNames(s))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);s=Object.getPrototypeOf(s)}return Array.from(t)}const Fe=typeof document<"u"?i.useLayoutEffect:i.useEffect,Ne=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function De(e,t){for(const n of Ne)n in t&&(e[n]=t[n]);const{RTLTextPlugin:s="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;s&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(s,n=>{n&&console.error(n)},!0)}const z=i.createContext(null);function Ie(e,t,s){const n=i.useContext(we),[o,r]=i.useState(null),a=i.useRef(),{current:l}=i.useRef({mapLib:null,map:null});i.useEffect(()=>{const f=e.mapLib;let _=!0,v;return Promise.resolve(f||s).then(g=>{if(!_)return;if(!g)throw new Error("Invalid mapLib");const p="Map"in g?g:g.default;if(!p.Map)throw new Error("Invalid mapLib");if(De(p,e),!p.supported||p.supported(e))e.reuseMaps&&(v=L.reuse(e,a.current)),v||(v=new L(p.Map,e,a.current)),l.map=ze(v),l.mapLib=p,r(v),n==null||n.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(g=>{const{onError:p}=e;p?p({type:"error",target:null,originalEvent:null,error:g}):console.error(g)}),()=>{_=!1,v&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?v.recycle():v.destroy())}},[]),Fe(()=>{o&&o.setProps(e)}),i.useImperativeHandle(t,()=>l.map,[o]);const u=i.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return i.createElement("div",{id:e.id,ref:a,style:u},o&&i.createElement(z.Provider,{value:l},i.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Oe=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function w(e,t){if(!e||!t)return;const s=e.style;for(const n in t){const o=t[n];Number.isFinite(o)&&!Oe.test(n)?s[n]=`${o}px`:s[n]=o}}function We(e,t){const{map:s,mapLib:n}=i.useContext(z),o=i.useRef({props:e});o.current.props=e;const r=i.useMemo(()=>{let S=!1;i.Children.forEach(e.children,m=>{m&&(S=!0)});const E={...e,element:S?document.createElement("div"):null},x=new n.Marker(E);return x.setLngLat([e.longitude,e.latitude]),x.getElement().addEventListener("click",m=>{var h,y;(y=(h=o.current.props).onClick)===null||y===void 0||y.call(h,{type:"click",target:x,originalEvent:m})}),x.on("dragstart",m=>{var h,y;const b=m;b.lngLat=r.getLngLat(),(y=(h=o.current.props).onDragStart)===null||y===void 0||y.call(h,b)}),x.on("drag",m=>{var h,y;const b=m;b.lngLat=r.getLngLat(),(y=(h=o.current.props).onDrag)===null||y===void 0||y.call(h,b)}),x.on("dragend",m=>{var h,y;const b=m;b.lngLat=r.getLngLat(),(y=(h=o.current.props).onDragEnd)===null||y===void 0||y.call(h,b)}),x},[]);i.useEffect(()=>(r.addTo(s.getMap()),()=>{r.remove()}),[]);const{longitude:a,latitude:l,offset:u,style:c,draggable:f=!1,popup:_=null,rotation:v=0,rotationAlignment:g="auto",pitchAlignment:p="auto"}=e;return i.useEffect(()=>{w(r.getElement(),c)},[c]),i.useImperativeHandle(t,()=>r,[]),(r.getLngLat().lng!==a||r.getLngLat().lat!==l)&&r.setLngLat([a,l]),u&&!Ee(r.getOffset(),u)&&r.setOffset(u),r.isDraggable()!==f&&r.setDraggable(f),r.getRotation()!==v&&r.setRotation(v),r.getRotationAlignment()!==g&&r.setRotationAlignment(g),r.getPitchAlignment()!==p&&r.setPitchAlignment(p),r.getPopup()!==_&&r.setPopup(_),J.createPortal(e.children,r.getElement())}i.memo(i.forwardRef(We));function G(e){return new Set(e?e.trim().split(/\s+/):[])}function Be(e,t){const{map:s,mapLib:n}=i.useContext(z),o=i.useMemo(()=>document.createElement("div"),[]),r=i.useRef({props:e});r.current.props=e;const a=i.useMemo(()=>{const l={...e},u=new n.Popup(l);return u.setLngLat([e.longitude,e.latitude]),u.once("open",c=>{var f,_;(_=(f=r.current.props).onOpen)===null||_===void 0||_.call(f,c)}),u},[]);if(i.useEffect(()=>{const l=u=>{var c,f;(f=(c=r.current.props).onClose)===null||f===void 0||f.call(c,u)};return a.on("close",l),a.setDOMContent(o).addTo(s.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),i.useEffect(()=>{w(a.getElement(),e.style)},[e.style]),i.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!M(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){const l=G(a.options.className),u=G(e.className);for(const c of l)u.has(c)||a.removeClassName(c);for(const c of u)l.has(c)||a.addClassName(c);a.options.className=e.className}return J.createPortal(e.children,o)}const Ve=i.memo(i.forwardRef(Be));function k(e,t,s,n){const o=i.useContext(z),r=i.useMemo(()=>e(o),[]);return i.useEffect(()=>{const a=t,l=typeof t=="function"&&typeof s=="function"?t:null,u=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(r)||(c.addControl(r,a==null?void 0:a.position),l&&l(o)),()=>{u&&u(o),c.hasControl(r)&&c.removeControl(r)}},[]),r}function Ue(e){const t=k(({mapLib:s})=>new s.AttributionControl(e),{position:e.position});return i.useEffect(()=>{w(t._container,e.style)},[e.style]),null}i.memo(Ue);function Ze(e){const t=k(({mapLib:s})=>new s.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return i.useEffect(()=>{w(t._controlContainer,e.style)},[e.style]),null}i.memo(Ze);function He(e,t){const s=i.useRef({props:e}),n=k(({mapLib:o})=>{const r=new o.GeolocateControl(e),a=r._setupUI;return r._setupUI=l=>{r._container.hasChildNodes()||a(l)},r.on("geolocate",l=>{var u,c;(c=(u=s.current.props).onGeolocate)===null||c===void 0||c.call(u,l)}),r.on("error",l=>{var u,c;(c=(u=s.current.props).onError)===null||c===void 0||c.call(u,l)}),r.on("outofmaxbounds",l=>{var u,c;(c=(u=s.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(u,l)}),r.on("trackuserlocationstart",l=>{var u,c;(c=(u=s.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(u,l)}),r.on("trackuserlocationend",l=>{var u,c;(c=(u=s.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(u,l)}),r},{position:e.position});return s.current.props=e,i.useImperativeHandle(t,()=>n,[]),i.useEffect(()=>{w(n._container,e.style)},[e.style]),null}i.memo(i.forwardRef(He));function qe(e){const t=k(({mapLib:s})=>new s.NavigationControl(e),{position:e.position});return i.useEffect(()=>{w(t._container,e.style)},[e.style]),null}const $e=i.memo(qe);function Ge(e){const t=k(({mapLib:r})=>new r.ScaleControl(e),{position:e.position}),s=i.useRef(e),n=s.current;s.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==n.unit&&t.setUnit(e.unit),i.useEffect(()=>{w(t._container,o)},[o]),null}i.memo(Ge);const Ke=re(()=>import("./maplibre-gl-DcBeTzQR.js").then(e=>e.m),__vite__mapDeps([0,1,2])),Qe=i.forwardRef(function(t,s){return Ie(t,s,Ke)}),Je=Ve,Ye=$e;function K({lat:e,lon:t,display_name:s}){const{t:n}=P(),o=ae(),r=()=>{o(`/simulation/${t}/${e}`)},[a,l]=i.useState(!0);return i.useEffect(()=>{console.log("effect changed"),l(!0)},[e,t]),d.jsx(d.Fragment,{children:a&&d.jsxs(Je,{latitude:e,longitude:t,closeOnClick:!1,onClose:()=>l(!1),children:[d.jsx(le,{children:s}),d.jsx(j,{onClick:r,children:n("startSimulation")})]})})}function Xe({callback:e}){const[t,s]=i.useState(""),[n,o]=i.useState([]),[r,a]=i.useState(!1),[l,u]=i.useState(!1),c=i.useRef([]),f=i.useRef(),_=i.useRef(),[v,g]=i.useState(-1);window.searchFieldInput=t;const{t:p}=P();i.useEffect(()=>{const m=h=>{_.current&&!_.current.contains(h.target)&&(a(!1),g(-1))};return document.addEventListener("mousedown",m),document.addEventListener("touchstart",m),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("touchstart",m)}}),i.useEffect(()=>{const h=setTimeout(async()=>{if(t.length<3&&u(!1),!l){if(t.length>2)try{const y=t.split(" ");let b=null;for(let C of y)if(C[C.length-1]===","&&(C=C.slice(0,-1)),C.length!=5&&/^\d{1,3}[a-zA-Z]?$/.test(C)){b=C;break}const D=await(await fetch(`https://photon.komoot.io/api/?q=${encodeURIComponent(t)}&bbox=5.98865807458,47.3024876979,15.0169958839,54.983104153&limit=5&lang=de&layer=street`)).json();console.log("data",D),o(D.features.map(C=>{let A=C.properties.name;return b&&(A+=" "+b),A+=", "+C.properties.postcode+" "+C.properties.city,A}))}catch(y){console.error("Error fetching suggestions:",y)}else o([]);a(n.length>0)}},200);return()=>clearTimeout(h)},[t,l]);const S=async m=>{m.preventDefault();const h=await O(t);console.warn(h),e(h)},E=m=>{s(m),O(m).then(h=>{console.warn(h),e(h)}),o([]),u(!0)},x=m=>{m.key==="ArrowDown"?(m.preventDefault(),g(h=>hh>-1?h-1:-1)):m.key==="Enter"&&v>-1&&(m.preventDefault(),E(n[v]))};return i.useEffect(()=>{v>-1&&c.current[v]?c.current[v].focus():v===-1&&f.current.focus()},[v]),d.jsxs("form",{ref:_,onSubmit:S,style:{display:"flex",flexDirection:"column",alignItems:"stretch",padding:"5px",position:"relative"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[d.jsx(_e,{ref:f,value:t,placeholder:p("searchField.placeholder"),onChange:m=>s(m.target.value),onKeyDown:x,margin:"5px",autoComplete:"street-address"}),d.jsx(j,{margin:"5px",minWidth:"150px",type:"submit",children:p("Search")})]}),r&&d.jsx(ce,{style:{paddingLeft:"0",marginTop:"0"},borderWidth:1,borderColor:"gray.200",mt:2,position:"absolute",top:"100%",left:0,right:0,zIndex:1,bg:"white",boxShadow:"md",children:n.map((m,h)=>d.jsx(ue,{ref:y=>c.current[h]=y,p:2,style:{paddingLeft:"1em"},cursor:"pointer",_hover:{backgroundColor:"gray.100"},backgroundColor:v===h?"gray.100":"white",onClick:()=>E(m),onKeyDown:x,children:m},h))})]})}function T({image:e,text:t}){return d.jsxs(Q,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",children:[e&&d.jsx(be,{src:e.src,alt:e.alt,style:{maxHeight:"200px",width:"auto",margin:"20px"}}),t]})}function et(){const{isOpen:e,onOpen:t,onClose:s}=de({defaultIsOpen:!0}),[n,o]=i.useState(1),{t:r,i18n:a}=P(),l=5,u=()=>{n{n>1&&o(n-1)};return d.jsxs(fe,{isOpen:e,onClose:s,size:"xl",children:[d.jsx(me,{}),d.jsxs(he,{children:[d.jsx(ge,{as:"h1",children:r("WelcomeMessage.title")}),d.jsx(pe,{}),d.jsxs(ve,{children:[n===1&&d.jsx(T,{image:{src:"images/WelcomeMessage1.png",alt:"Screenshot from the Search Input, where some address is written down."},text:r("WelcomeMessage.firstPage")}),n===2&&d.jsx(T,{image:{src:"images/WelcomeMessage2.png",alt:"Screenshot from a possible Simulation Result, where the solar potential of a 3D building is shown."},text:r("WelcomeMessage.secondPage")}),n===3&&d.jsx(T,{image:{src:"images/WelcomeMessage3.png",alt:"Screenshot from a possible Simulation Result, where a PV system was created and the annual result was calculated."},text:r("WelcomeMessage.thirdPage")}),n===4&&d.jsx(T,{image:{src:"images/WelcomeMessage4.png",alt:"Screenshot from a possible Simulation Result, where a PV system was created and the annual result was calculated."},text:r("WelcomeMessage.fourthPage")}),n===5&&d.jsx(T,{text:r("WelcomeMessage.fifthPage")})]}),d.jsxs(xe,{children:[d.jsx(j,{mr:3,onClick:c,isDisabled:n===1,children:r("previous")}),n!=5&&d.jsx(j,{mr:3,onClick:u,isDisabled:n===l,children:r("next")}),n==5&&d.jsx(j,{mr:3,onClick:s,children:r("close")})]}),d.jsx(ee,{justifyContent:"center",mb:4,children:Array.from({length:l},(f,_)=>_+1).map(f=>d.jsx(X,{size:"10px",bg:n===f?"blue.500":"gray.300",m:1},f))})]})]})}function at(){const{t:e}=P(),t=[5.98,47.3,15.1,55],[s,n]=i.useState({bounds:t}),[o,r]=i.useState([]),a=Me(),l=g=>{if(g.length==0)console.error("No search results!"),a({title:e("noSearchResults.title"),description:e("noSearchResults.description"),status:"error",duration:4e3,isClosable:!0});else{g=[g[0]];const p=g.map(x=>x.lon),S=g.map(x=>x.lat),E=[Math.min(...p),Math.min(...S),Math.max(...p),Math.max(...S)];u.current.fitBounds(E,{maxZoom:17,speed:2})}r(g.map(p=>d.jsx(K,{...p},p.key)))},u=i.useRef(),c=i.useCallback(g=>{u.current=g,g!==null&&(g.getMap().dragRotate.disable(),g.getMap().touchZoomRotate.disableRotation())},[]),[f,_]=i.useState(null),v=i.useCallback(g=>{console.log(g);const{lng:p,lat:S}=g.lngLat;_([S,p])});return d.jsxs(ie,{description:e("mainDescription"),children:[d.jsx("header",{children:d.jsx("div",{className:"title",children:d.jsx(Xe,{callback:l})})}),d.jsx(et,{}),d.jsxs("div",{className:"content",children:[d.jsxs(Qe,{ref:c,...s,maxZoom:19,style:{width:"100%",height:"100%"},mapStyle:"https://sgx.geodatenzentrum.de/gdz_basemapde_vektor/styles/bm_web_col.json",onMove:g=>n(g.viewState),onClick:v,attributionControl:!1,maxBounds:[-10,35,30,65],children:[d.jsx(d.Fragment,{children:o}),f&&d.jsx(K,{lat:f[0],lon:f[1],display_name:e("map.userSelection")},"userSelectiion"),d.jsx(Ye,{position:"bottom-right",showCompass:!1})]}),d.jsx(ye,{federalState:"",frontendState:"Map"})]})]})}export{at as default}; diff --git a/assets/NotFound-CI2r9Xpd.js b/assets/NotFound-B7VH-638.js similarity index 84% rename from assets/NotFound-CI2r9Xpd.js rename to assets/NotFound-B7VH-638.js index 8609eca..4eff6e0 100644 --- a/assets/NotFound-CI2r9Xpd.js +++ b/assets/NotFound-B7VH-638.js @@ -1 +1 @@ -import{j as e,S as n,T as o,U as t}from"./index-Ba81FydE.js";const r=()=>e.jsx(n,{children:e.jsxs("div",{className:"not-found",children:[e.jsx(o,{title:"404 Not Found",children:e.jsx("meta",{name:"description",content:"The content you are looking for cannot be found."})}),e.jsx("h1",{children:"Page Not Found"}),e.jsxs("p",{children:["Return ",e.jsx(t,{to:"/",children:"home"}),"."]})]})});export{r as default}; +import{j as e,S as n,T as o,U as t}from"./index-cA1eFW7V.js";const r=()=>e.jsx(n,{children:e.jsxs("div",{className:"not-found",children:[e.jsx(o,{title:"404 Not Found",children:e.jsx("meta",{name:"description",content:"The content you are looking for cannot be found."})}),e.jsx("h1",{children:"Page Not Found"}),e.jsxs("p",{children:["Return ",e.jsx(t,{to:"/",children:"home"}),"."]})]})});export{r as default}; diff --git a/assets/Simulation-BDBKazo-.js b/assets/Simulation-RZxs6R_p.js similarity index 99% rename from assets/Simulation-BDBKazo-.js rename to assets/Simulation-RZxs6R_p.js index a344eff..16ef3f0 100644 --- a/assets/Simulation-BDBKazo-.js +++ b/assets/Simulation-RZxs6R_p.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-Dt1HMqYc.js","assets/basedecoder-DvumDe3Y.js","assets/lzw-DpvbRwG5.js","assets/jpeg-CdeCw_eT.js","assets/deflate-BN4JYXk8.js","assets/index-Ba81FydE.js","assets/index-CzQ50VWX.css","assets/heading-GfTBNZPF.js","assets/Footer-BEVKcqw5.js","assets/location-B7dRf9MH.js","assets/stack-B6rX1mqT.js","assets/packbits-DQnG8s9w.js","assets/lerc-44IRF6I9.js","assets/webimage-BcnuJlio.js"])))=>i.map(i=>d[i]); -var aI=Object.defineProperty;var oI=(n,t,e)=>t in n?aI(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var rr=(n,t,e)=>oI(n,typeof t!="symbol"?t+"":t,e);import{i as lI,k as jo,d as K,j as V,A as Nv,m as Ov,l as ss,o as TT,n as Gy,p as CT,q as $e,s as Ln,v as Ua,f as ki,w as RT,x as mf,c as an,y as k0,z as Fv,C as z0,D as Uv,E as cI,F as Vy,G as hI,P as uI,g as Ya,I as fI,R as B0,H as gf,_ as dl,B as sa,J as PT,K as IT,L as dI,N as pI,O as mI,M as gI}from"./index-Ba81FydE.js";import{C as yI,a as _I,H as xI,b as vI}from"./heading-GfTBNZPF.js";import{w as km,g as au,M as kv,h as kx,i as MI,j as wI,k as bI,u as Jo,B as dr,l as SI,b as zv,c as LT,d as Bv,e as Hv,f as Gv,T as No,U as DT,a as Fo,F as EI}from"./Footer-BEVKcqw5.js";import{u as AI,a as NT,b as TI,c as CI,p as RI,d as zm,F as Wy,I as jy,M as PI,e as II,x as LI}from"./location-B7dRf9MH.js";import{S as DI}from"./stack-B6rX1mqT.js";function NI(n,t,e,i){return n.addEventListener(t,e,i),()=>{n.removeEventListener(t,e,i)}}function OI(n){return n.view??window}function FI(n){const t=OI(n);return typeof t.PointerEvent<"u"&&n instanceof t.PointerEvent?n.pointerType==="mouse":n instanceof t.MouseEvent}function OT(n){return!!n.touches}function UI(n){return OT(n)&&n.touches.length>1}function kI(n,t="page"){const e=n.touches[0]||n.changedTouches[0];return{x:e[`${t}X`],y:e[`${t}Y`]}}function zI(n,t="page"){return{x:n[`${t}X`],y:n[`${t}Y`]}}function FT(n,t="page"){return OT(n)?kI(n,t):zI(n,t)}function BI(n){return t=>{const e=FI(t);(!e||e&&t.button===0)&&n(t)}}function HI(n,t=!1){function e(s){n(s,{point:FT(s)})}return t?BI(e):e}function Mm(n,t,e,i){return NI(n,t,HI(e,t==="pointerdown"),i)}function GI(n){const t=parseFloat(n);return typeof t!="number"||Number.isNaN(t)?0:t}function VI(n,t){let e=GI(n);const i=10**(t??10);return e=Math.round(e*i)/i,t?e.toFixed(t):e.toString()}function WI(n){if(!Number.isFinite(n))return 0;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e+=1;return e}function ab(n,t,e){return(n-t)*100/(e-t)}function jI(n,t,e){return(e-t)*n+t}function ob(n,t,e){const i=Math.round((n-t)/e)*e+t,s=WI(e);return VI(i,s)}function Xy(n,t,e){return n==null?n:(e{const{condition:t,message:e}=n};function qy(n,t,e,i){const s=jo(e);return K.useEffect(()=>{const r=typeof n=="function"?n():n??document;if(!(!e||!r))return r.addEventListener(t,s,i),()=>{r.removeEventListener(t,s,i)}},[t,n,i,s,e]),()=>{const r=typeof n=="function"?n():n??document;r==null||r.removeEventListener(t,s,i)}}function kT(n){const t=K.useRef(null);return t.current=n,t}function YI(n,t){if(!n){t(void 0);return}t({width:n.offsetWidth,height:n.offsetHeight});const e=n.ownerDocument.defaultView??window,i=new e.ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const[r]=s;let a,o;if("borderBoxSize"in r){const l=r.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,o=c.blockSize}else a=n.offsetWidth,o=n.offsetHeight;t({width:a,height:o})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}const ZI=globalThis!=null&&globalThis.document?K.useLayoutEffect:K.useEffect;function KI(n,t){var s;if(!n||!n.parentElement)return;const e=((s=n.ownerDocument)==null?void 0:s.defaultView)??window,i=new e.MutationObserver(()=>{t()});return i.observe(n.parentElement,{childList:!0}),()=>{i.disconnect()}}function JI({getNodes:n,observeMutation:t=!0}){const[e,i]=K.useState([]),[s,r]=K.useState(0);return ZI(()=>{const a=n(),o=a.map((l,c)=>YI(l,h=>{i(u=>[...u.slice(0,c),h,...u.slice(c+1)])}));if(t){const l=a[0];o.push(KI(l,()=>{r(c=>c+1)}))}return()=>{o.forEach(l=>{l==null||l()})}},[s]),e}function QI(n){return typeof n=="object"&&n!==null&&"current"in n}function tL(n){const[t]=JI({observeMutation:!1,getNodes(){return[QI(n)?n.current:n]}});return t}const zT=1/60*1e3,eL=typeof performance<"u"?()=>performance.now():()=>Date.now(),BT=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(eL()),zT);function nL(n){let t=[],e=[],i=0,s=!1,r=!1;const a=new WeakSet,o={schedule:(l,c=!1,h=!1)=>{const u=h&&s,p=u?t:e;return c&&a.add(l),p.indexOf(l)===-1&&(p.push(l),u&&s&&(i=t.length)),l},cancel:l=>{const c=e.indexOf(l);c!==-1&&e.splice(c,1),a.delete(l)},process:l=>{if(s){r=!0;return}if(s=!0,[t,e]=[e,t],e.length=0,i=t.length,i)for(let c=0;c(n[t]=nL(()=>Uu=!0),n),{}),sL=yf.reduce((n,t)=>{const e=H0[t];return n[t]=(i,s=!1,r=!1)=>(Uu||oL(),e.schedule(i,s,r)),n},{}),rL=yf.reduce((n,t)=>(n[t]=H0[t].cancel,n),{});yf.reduce((n,t)=>(n[t]=()=>H0[t].process(Rc),n),{});const aL=n=>H0[n].process(Rc),HT=n=>{Uu=!1,Rc.delta=zx?zT:Math.max(Math.min(n-Rc.timestamp,iL),1),Rc.timestamp=n,Bx=!0,yf.forEach(aL),Bx=!1,Uu&&(zx=!1,BT(HT))},oL=()=>{Uu=!0,zx=!0,Bx||BT(HT)},lb=()=>Rc;var lL=Object.defineProperty,cL=(n,t,e)=>t in n?lL(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Rs=(n,t,e)=>(cL(n,typeof t!="symbol"?t+"":t,e),e);class hL{constructor(t,e,i){if(Rs(this,"history",[]),Rs(this,"startEvent",null),Rs(this,"lastEvent",null),Rs(this,"lastEventInfo",null),Rs(this,"handlers",{}),Rs(this,"removeListeners",()=>{}),Rs(this,"threshold",3),Rs(this,"win"),Rs(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const o=$y(this.lastEventInfo,this.history),l=this.startEvent!==null,c=pL(o.offset,{x:0,y:0})>=this.threshold;if(!l&&!c)return;const{timestamp:h}=lb();this.history.push({...o.point,timestamp:h});const{onStart:u,onMove:p}=this.handlers;l||(u==null||u(this.lastEvent,o),this.startEvent=this.lastEvent),p==null||p(this.lastEvent,o)}),Rs(this,"onPointerMove",(o,l)=>{this.lastEvent=o,this.lastEventInfo=l,sL.update(this.updatePoint,!0)}),Rs(this,"onPointerUp",(o,l)=>{const c=$y(l,this.history),{onEnd:h,onSessionEnd:u}=this.handlers;u==null||u(o,c),this.end(),!(!h||!this.startEvent)&&(h==null||h(o,c))}),this.win=t.view??window,UI(t))return;this.handlers=e,i&&(this.threshold=i),t.stopPropagation(),t.preventDefault();const s={point:FT(t)},{timestamp:r}=lb();this.history=[{...s.point,timestamp:r}];const{onSessionStart:a}=e;a==null||a(t,$y(s,this.history)),this.removeListeners=dL(Mm(this.win,"pointermove",this.onPointerMove),Mm(this.win,"pointerup",this.onPointerUp),Mm(this.win,"pointercancel",this.onPointerUp))}updateHandlers(t){this.handlers=t}end(){var t;(t=this.removeListeners)==null||t.call(this),rL.update(this.updatePoint)}}function cb(n,t){return{x:n.x-t.x,y:n.y-t.y}}function $y(n,t){return{point:n.point,delta:cb(n.point,t[t.length-1]),offset:cb(n.point,t[0]),velocity:fL(t,.1)}}const uL=n=>n*1e3;function fL(n,t){if(n.length<2)return{x:0,y:0};let e=n.length-1,i=null;const s=n[n.length-1];for(;e>=0&&(i=n[e],!(s.timestamp-i.timestamp>uL(t)));)e--;if(!i)return{x:0,y:0};const r=(s.timestamp-i.timestamp)/1e3;if(r===0)return{x:0,y:0};const a={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function dL(...n){return t=>n.reduce((e,i)=>i(e),t)}function Yy(n,t){return Math.abs(n-t)}function hb(n){return"x"in n&&"y"in n}function pL(n,t){if(typeof n=="number"&&typeof t=="number")return Yy(n,t);if(hb(n)&&hb(t)){const e=Yy(n.x,t.x),i=Yy(n.y,t.y);return Math.sqrt(e**2+i**2)}return 0}function mL(n,t){const{onPan:e,onPanStart:i,onPanEnd:s,onPanSessionStart:r,onPanSessionEnd:a,threshold:o}=t,l=!!(e||i||s||r||a),c=K.useRef(null),h=kT({onSessionStart:r,onSessionEnd:a,onStart:i,onMove:e,onEnd(u,p){c.current=null,s==null||s(u,p)}});K.useEffect(()=>{var u;(u=c.current)==null||u.updateHandlers(h.current)}),K.useEffect(()=>{const u=n.current;if(!u||!l)return;function p(m){c.current=new hL(m,h.current,o)}return Mm(u,"pointerdown",p)},[n,l,h,o]),K.useEffect(()=>()=>{var u;(u=c.current)==null||u.end(),c.current=null},[])}function gL(n,t,e){var i,s;return((s=(i=n.__cssMap)==null?void 0:i[`${t}.${e}`])==null?void 0:s.varRef)??e}const yL=n=>n!=null&&parseInt(n.toString(),10)>0,ub={exit:{height:{duration:.2,ease:au.ease},opacity:{duration:.3,ease:au.ease}},enter:{height:{duration:.3,ease:au.ease},opacity:{duration:.4,ease:au.ease}}},_L={exit:({animateOpacity:n,startingHeight:t,transition:e,transitionEnd:i,delay:s})=>({...n&&{opacity:yL(t)?1:0},height:t,transitionEnd:i==null?void 0:i.exit,transition:(e==null?void 0:e.exit)??km.exit(ub.exit,s)}),enter:({animateOpacity:n,endingHeight:t,transition:e,transitionEnd:i,delay:s})=>({...n&&{opacity:1},height:t,transitionEnd:i==null?void 0:i.enter,transition:(e==null?void 0:e.enter)??km.enter(ub.enter,s)})},GT=K.forwardRef((n,t)=>{const{in:e,unmountOnExit:i,animateOpacity:s=!0,startingHeight:r=0,endingHeight:a="auto",style:o,className:l,transition:c,transitionEnd:h,animatePresenceProps:u,...p}=n,[m,g]=K.useState(!1);K.useEffect(()=>{const b=setTimeout(()=>{g(!0)});return()=>clearTimeout(b)},[]),$I({condition:Number(r)>0&&!!i,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const x=parseFloat(r.toString())>0,y={startingHeight:r,endingHeight:a,animateOpacity:s,transition:m?c:{enter:{duration:0}},transitionEnd:{enter:h==null?void 0:h.enter,exit:i?h==null?void 0:h.exit:{...h==null?void 0:h.exit,display:x?"block":"none"}}},_=i?e:!0,M=e||i?"enter":"exit";return V.jsx(Nv,{...u,initial:!1,custom:y,children:_&&V.jsx(Ov.div,{ref:t,...p,className:ss("chakra-collapse",l),style:{overflow:"hidden",display:"block",...o},custom:y,variants:_L,initial:i?"exit":!1,animate:M,exit:"exit"})})});GT.displayName="Collapse";var xL=()=>typeof document<"u",fb=!1,_f=null,Qo=!1,Hx=!1,Gx=new Set;function Vv(n,t){Gx.forEach(e=>e(n,t))}var vL=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function ML(n){return!(n.metaKey||!vL&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function db(n){Qo=!0,ML(n)&&(_f="keyboard",Vv("keyboard",n))}function Dl(n){if(_f="pointer",n.type==="mousedown"||n.type==="pointerdown"){Qo=!0;const t=n.composedPath?n.composedPath()[0]:n.target;let e=!1;try{e=t.matches(":focus-visible")}catch{}if(e)return;Vv("pointer",n)}}function wL(n){return n.mozInputSource===0&&n.isTrusted?!0:n.detail===0&&!n.pointerType}function bL(n){wL(n)&&(Qo=!0,_f="virtual")}function SL(n){n.target===window||n.target===document||n.target instanceof Element&&n.target.hasAttribute("tabindex")||(!Qo&&!Hx&&(_f="virtual",Vv("virtual",n)),Qo=!1,Hx=!1)}function EL(){Qo=!1,Hx=!0}function pb(){return _f!=="pointer"}function AL(){if(!xL()||fb)return;const{focus:n}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...e){Qo=!0,n.apply(this,e)},document.addEventListener("keydown",db,!0),document.addEventListener("keyup",db,!0),document.addEventListener("click",bL,!0),window.addEventListener("focus",SL,!0),window.addEventListener("blur",EL,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Dl,!0),document.addEventListener("pointermove",Dl,!0),document.addEventListener("pointerup",Dl,!0)):(document.addEventListener("mousedown",Dl,!0),document.addEventListener("mousemove",Dl,!0),document.addEventListener("mouseup",Dl,!0)),fb=!0}function TL(n){AL(),n(pb());const t=()=>n(pb());return Gx.add(t),()=>{Gx.delete(t)}}const CL={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function RL(n={}){const t=AI(n),{isDisabled:e,isReadOnly:i,isRequired:s,isInvalid:r,id:a,onBlur:o,onFocus:l,"aria-describedby":c}=t,{defaultChecked:h,isChecked:u,isFocusable:p,onChange:m,isIndeterminate:g,name:x,value:y,tabIndex:_=void 0,"aria-label":M,"aria-labelledby":b,"aria-invalid":S,...P}=n,C=TT(P,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),T=jo(m),L=jo(o),N=jo(l),[E,R]=K.useState(!1),[z,G]=K.useState(!1),[W,et]=K.useState(!1),[X,at]=K.useState(!1);K.useEffect(()=>TL(R),[]);const H=K.useRef(null),[J,st]=K.useState(!0),[Y,ct]=K.useState(!!h),mt=u!==void 0,q=mt?u:Y,rt=K.useCallback(dt=>{if(i||e){dt.preventDefault();return}mt||ct(q?dt.currentTarget.checked:g?!0:dt.currentTarget.checked),T==null||T(dt)},[i,e,q,mt,g,T]);Gy(()=>{H.current&&(H.current.indeterminate=!!g)},[g]),CT(()=>{e&&G(!1)},[e,G]),Gy(()=>{const dt=H.current;if(!(dt!=null&&dt.form))return;const St=()=>{ct(!!h)};return dt.form.addEventListener("reset",St),()=>{var Tt;return(Tt=dt.form)==null?void 0:Tt.removeEventListener("reset",St)}},[]);const bt=e&&!p,gt=K.useCallback(dt=>{dt.key===" "&&at(!0)},[at]),Nt=K.useCallback(dt=>{dt.key===" "&&at(!1)},[at]);Gy(()=>{if(!H.current)return;H.current.checked!==q&&ct(H.current.checked)},[H.current]);const Bt=K.useCallback((dt={},St=null)=>{const Tt=Ht=>{z&&Ht.preventDefault(),at(!0)};return{...dt,ref:St,"data-active":$e(X),"data-hover":$e(W),"data-checked":$e(q),"data-focus":$e(z),"data-focus-visible":$e(z&&E),"data-indeterminate":$e(g),"data-disabled":$e(e),"data-invalid":$e(r),"data-readonly":$e(i),"aria-hidden":!0,onMouseDown:Ln(dt.onMouseDown,Tt),onMouseUp:Ln(dt.onMouseUp,()=>at(!1)),onMouseEnter:Ln(dt.onMouseEnter,()=>et(!0)),onMouseLeave:Ln(dt.onMouseLeave,()=>et(!1))}},[X,q,e,z,E,W,g,r,i]),Vt=K.useCallback((dt={},St=null)=>({...dt,ref:St,"data-active":$e(X),"data-hover":$e(W),"data-checked":$e(q),"data-focus":$e(z),"data-focus-visible":$e(z&&E),"data-indeterminate":$e(g),"data-disabled":$e(e),"data-invalid":$e(r),"data-readonly":$e(i)}),[X,q,e,z,E,W,g,r,i]),Xt=K.useCallback((dt={},St=null)=>({...C,...dt,ref:Ua(St,Tt=>{Tt&&st(Tt.tagName==="LABEL")}),htmlFor:dt.htmlFor!==void 0?dt.htmlFor:J?a:void 0,onClick:Ln(dt.onClick,()=>{var Tt;J||((Tt=H.current)==null||Tt.click(),requestAnimationFrame(()=>{var Ht;(Ht=H.current)==null||Ht.focus({preventScroll:!0})}))}),"data-disabled":$e(e),"data-checked":$e(q),"data-invalid":$e(r)}),[C,e,q,r,J,a]),lt=K.useCallback((dt={},St=null)=>({...dt,ref:Ua(H,St),type:"checkbox",name:x,value:y,id:a,tabIndex:_,onChange:Ln(dt.onChange,rt),onBlur:Ln(dt.onBlur,L,()=>G(!1)),onFocus:Ln(dt.onFocus,N,()=>G(!0)),onKeyDown:Ln(dt.onKeyDown,gt),onKeyUp:Ln(dt.onKeyUp,Nt),required:s,checked:q,disabled:bt,readOnly:i,"aria-label":M,"aria-labelledby":b,"aria-invalid":S?!!S:r,"aria-describedby":c,"aria-disabled":e,style:CL}),[x,y,a,rt,L,N,gt,Nt,s,q,bt,i,M,b,S,r,c,e,_]),U=K.useCallback((dt={},St=null)=>({...dt,ref:St,onMouseDown:Ln(dt.onMouseDown,PL),"data-disabled":$e(e),"data-checked":$e(q),"data-invalid":$e(r)}),[q,e,r]);return{state:{isInvalid:r,isFocused:z,isChecked:q,isActive:X,isHovered:W,isIndeterminate:g,isDisabled:e,isReadOnly:i,isRequired:s},getRootProps:Xt,getCheckboxProps:Bt,getIndicatorProps:Vt,getInputProps:lt,getLabelProps:U,htmlProps:C}}function PL(n){n.preventDefault(),n.stopPropagation()}const mu=ki(function(t,e){const i=RT("FormLabel",t),s=mf(t),{className:r,children:a,requiredIndicator:o=V.jsx(VT,{}),optionalIndicator:l=null,...c}=s,h=NT(),u=(h==null?void 0:h.getLabelProps(c,e))??{ref:e,...c};return V.jsxs(an.label,{...u,className:ss("chakra-form__label",s.className),__css:{display:"block",textAlign:"start",...i},children:[a,h!=null&&h.isRequired?o:l]})});mu.displayName="FormLabel";const VT=ki(function(t,e){const i=NT(),s=TI();if(!(i!=null&&i.isRequired))return null;const r=ss("chakra-form__required-indicator",t.className);return V.jsx(an.span,{...i==null?void 0:i.getRequiredIndicatorProps(t,e),__css:s.requiredIndicator,className:r})});VT.displayName="RequiredIndicator";var Fi="top",Ms="bottom",ws="right",Ui="left",Wv="auto",xf=[Fi,Ms,ws,Ui],kc="start",ku="end",IL="clippingParents",WT="viewport",Fh="popper",LL="reference",mb=xf.reduce(function(n,t){return n.concat([t+"-"+kc,t+"-"+ku])},[]),jT=[].concat(xf,[Wv]).reduce(function(n,t){return n.concat([t,t+"-"+kc,t+"-"+ku])},[]),DL="beforeRead",NL="read",OL="afterRead",FL="beforeMain",UL="main",kL="afterMain",zL="beforeWrite",BL="write",HL="afterWrite",GL=[DL,NL,OL,FL,UL,kL,zL,BL,HL];function Ar(n){return n?(n.nodeName||"").toLowerCase():null}function ns(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function tl(n){var t=ns(n).Element;return n instanceof t||n instanceof Element}function vs(n){var t=ns(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function jv(n){if(typeof ShadowRoot>"u")return!1;var t=ns(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function VL(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},r=t.elements[e];!vs(r)||!Ar(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(a){var o=s[a];o===!1?r.removeAttribute(a):r.setAttribute(a,o===!0?"":o)}))})}function WL(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],r=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),o=a.reduce(function(l,c){return l[c]="",l},{});!vs(s)||!Ar(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const jL={name:"applyStyles",enabled:!0,phase:"write",fn:VL,effect:WL,requires:["computeStyles"]};function xr(n){return n.split("-")[0]}var Xo=Math.max,Bm=Math.min,zc=Math.round;function Vx(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function XT(){return!/^((?!chrome|android).)*safari/i.test(Vx())}function Bc(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),s=1,r=1;t&&vs(n)&&(s=n.offsetWidth>0&&zc(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&zc(i.height)/n.offsetHeight||1);var a=tl(n)?ns(n):window,o=a.visualViewport,l=!XT()&&e,c=(i.left+(l&&o?o.offsetLeft:0))/s,h=(i.top+(l&&o?o.offsetTop:0))/r,u=i.width/s,p=i.height/r;return{width:u,height:p,top:h,right:c+u,bottom:h+p,left:c,x:c,y:h}}function Xv(n){var t=Bc(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function qT(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&jv(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ra(n){return ns(n).getComputedStyle(n)}function XL(n){return["table","td","th"].indexOf(Ar(n))>=0}function Za(n){return((tl(n)?n.ownerDocument:n.document)||window.document).documentElement}function G0(n){return Ar(n)==="html"?n:n.assignedSlot||n.parentNode||(jv(n)?n.host:null)||Za(n)}function gb(n){return!vs(n)||ra(n).position==="fixed"?null:n.offsetParent}function qL(n){var t=/firefox/i.test(Vx()),e=/Trident/i.test(Vx());if(e&&vs(n)){var i=ra(n);if(i.position==="fixed")return null}var s=G0(n);for(jv(s)&&(s=s.host);vs(s)&&["html","body"].indexOf(Ar(s))<0;){var r=ra(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function vf(n){for(var t=ns(n),e=gb(n);e&&XL(e)&&ra(e).position==="static";)e=gb(e);return e&&(Ar(e)==="html"||Ar(e)==="body"&&ra(e).position==="static")?t:e||qL(n)||t}function qv(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function gu(n,t,e){return Xo(n,Bm(t,e))}function $L(n,t,e){var i=gu(n,t,e);return i>e?e:i}function $T(){return{top:0,right:0,bottom:0,left:0}}function YT(n){return Object.assign({},$T(),n)}function ZT(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var YL=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,YT(typeof t!="number"?t:ZT(t,xf))};function ZL(n){var t,e=n.state,i=n.name,s=n.options,r=e.elements.arrow,a=e.modifiersData.popperOffsets,o=xr(e.placement),l=qv(o),c=[Ui,ws].indexOf(o)>=0,h=c?"height":"width";if(!(!r||!a)){var u=YL(s.padding,e),p=Xv(r),m=l==="y"?Fi:Ui,g=l==="y"?Ms:ws,x=e.rects.reference[h]+e.rects.reference[l]-a[l]-e.rects.popper[h],y=a[l]-e.rects.reference[l],_=vf(r),M=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,b=x/2-y/2,S=u[m],P=M-p[h]-u[g],C=M/2-p[h]/2+b,T=gu(S,C,P),L=l;e.modifiersData[i]=(t={},t[L]=T,t.centerOffset=T-C,t)}}function KL(n){var t=n.state,e=n.options,i=e.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||qT(t.elements.popper,s)&&(t.elements.arrow=s))}const JL={name:"arrow",enabled:!0,phase:"main",fn:ZL,effect:KL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hc(n){return n.split("-")[1]}var QL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tD(n,t){var e=n.x,i=n.y,s=t.devicePixelRatio||1;return{x:zc(e*s)/s||0,y:zc(i*s)/s||0}}function yb(n){var t,e=n.popper,i=n.popperRect,s=n.placement,r=n.variation,a=n.offsets,o=n.position,l=n.gpuAcceleration,c=n.adaptive,h=n.roundOffsets,u=n.isFixed,p=a.x,m=p===void 0?0:p,g=a.y,x=g===void 0?0:g,y=typeof h=="function"?h({x:m,y:x}):{x:m,y:x};m=y.x,x=y.y;var _=a.hasOwnProperty("x"),M=a.hasOwnProperty("y"),b=Ui,S=Fi,P=window;if(c){var C=vf(e),T="clientHeight",L="clientWidth";if(C===ns(e)&&(C=Za(e),ra(C).position!=="static"&&o==="absolute"&&(T="scrollHeight",L="scrollWidth")),C=C,s===Fi||(s===Ui||s===ws)&&r===ku){S=Ms;var N=u&&C===P&&P.visualViewport?P.visualViewport.height:C[T];x-=N-i.height,x*=l?1:-1}if(s===Ui||(s===Fi||s===Ms)&&r===ku){b=ws;var E=u&&C===P&&P.visualViewport?P.visualViewport.width:C[L];m-=E-i.width,m*=l?1:-1}}var R=Object.assign({position:o},c&&QL),z=h===!0?tD({x:m,y:x},ns(e)):{x:m,y:x};if(m=z.x,x=z.y,l){var G;return Object.assign({},R,(G={},G[S]=M?"0":"",G[b]=_?"0":"",G.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+x+"px)":"translate3d("+m+"px, "+x+"px, 0)",G))}return Object.assign({},R,(t={},t[S]=M?x+"px":"",t[b]=_?m+"px":"",t.transform="",t))}function eD(n){var t=n.state,e=n.options,i=e.gpuAcceleration,s=i===void 0?!0:i,r=e.adaptive,a=r===void 0?!0:r,o=e.roundOffsets,l=o===void 0?!0:o,c={placement:xr(t.placement),variation:Hc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yb(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yb(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nD={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eD,data:{}};var $d={passive:!0};function iD(n){var t=n.state,e=n.instance,i=n.options,s=i.scroll,r=s===void 0?!0:s,a=i.resize,o=a===void 0?!0:a,l=ns(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(h){h.addEventListener("scroll",e.update,$d)}),o&&l.addEventListener("resize",e.update,$d),function(){r&&c.forEach(function(h){h.removeEventListener("scroll",e.update,$d)}),o&&l.removeEventListener("resize",e.update,$d)}}const sD={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iD,data:{}};var rD={left:"right",right:"left",bottom:"top",top:"bottom"};function wm(n){return n.replace(/left|right|bottom|top/g,function(t){return rD[t]})}var aD={start:"end",end:"start"};function _b(n){return n.replace(/start|end/g,function(t){return aD[t]})}function $v(n){var t=ns(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function Yv(n){return Bc(Za(n)).left+$v(n).scrollLeft}function oD(n,t){var e=ns(n),i=Za(n),s=e.visualViewport,r=i.clientWidth,a=i.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=XT();(c||!c&&t==="fixed")&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+Yv(n),y:l}}function lD(n){var t,e=Za(n),i=$v(n),s=(t=n.ownerDocument)==null?void 0:t.body,r=Xo(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Xo(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-i.scrollLeft+Yv(n),l=-i.scrollTop;return ra(s||e).direction==="rtl"&&(o+=Xo(e.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}function Zv(n){var t=ra(n),e=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+i)}function KT(n){return["html","body","#document"].indexOf(Ar(n))>=0?n.ownerDocument.body:vs(n)&&Zv(n)?n:KT(G0(n))}function yu(n,t){var e;t===void 0&&(t=[]);var i=KT(n),s=i===((e=n.ownerDocument)==null?void 0:e.body),r=ns(i),a=s?[r].concat(r.visualViewport||[],Zv(i)?i:[]):i,o=t.concat(a);return s?o:o.concat(yu(G0(a)))}function Wx(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function cD(n,t){var e=Bc(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function xb(n,t,e){return t===WT?Wx(oD(n,e)):tl(t)?cD(t,e):Wx(lD(Za(n)))}function hD(n){var t=yu(G0(n)),e=["absolute","fixed"].indexOf(ra(n).position)>=0,i=e&&vs(n)?vf(n):n;return tl(i)?t.filter(function(s){return tl(s)&&qT(s,i)&&Ar(s)!=="body"}):[]}function uD(n,t,e,i){var s=t==="clippingParents"?hD(n):[].concat(t),r=[].concat(s,[e]),a=r[0],o=r.reduce(function(l,c){var h=xb(n,c,i);return l.top=Xo(h.top,l.top),l.right=Bm(h.right,l.right),l.bottom=Bm(h.bottom,l.bottom),l.left=Xo(h.left,l.left),l},xb(n,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function JT(n){var t=n.reference,e=n.element,i=n.placement,s=i?xr(i):null,r=i?Hc(i):null,a=t.x+t.width/2-e.width/2,o=t.y+t.height/2-e.height/2,l;switch(s){case Fi:l={x:a,y:t.y-e.height};break;case Ms:l={x:a,y:t.y+t.height};break;case ws:l={x:t.x+t.width,y:o};break;case Ui:l={x:t.x-e.width,y:o};break;default:l={x:t.x,y:t.y}}var c=s?qv(s):null;if(c!=null){var h=c==="y"?"height":"width";switch(r){case kc:l[c]=l[c]-(t[h]/2-e[h]/2);break;case ku:l[c]=l[c]+(t[h]/2-e[h]/2);break}}return l}function zu(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=i===void 0?n.placement:i,r=e.strategy,a=r===void 0?n.strategy:r,o=e.boundary,l=o===void 0?IL:o,c=e.rootBoundary,h=c===void 0?WT:c,u=e.elementContext,p=u===void 0?Fh:u,m=e.altBoundary,g=m===void 0?!1:m,x=e.padding,y=x===void 0?0:x,_=YT(typeof y!="number"?y:ZT(y,xf)),M=p===Fh?LL:Fh,b=n.rects.popper,S=n.elements[g?M:p],P=uD(tl(S)?S:S.contextElement||Za(n.elements.popper),l,h,a),C=Bc(n.elements.reference),T=JT({reference:C,element:b,strategy:"absolute",placement:s}),L=Wx(Object.assign({},b,T)),N=p===Fh?L:C,E={top:P.top-N.top+_.top,bottom:N.bottom-P.bottom+_.bottom,left:P.left-N.left+_.left,right:N.right-P.right+_.right},R=n.modifiersData.offset;if(p===Fh&&R){var z=R[s];Object.keys(E).forEach(function(G){var W=[ws,Ms].indexOf(G)>=0?1:-1,et=[Fi,Ms].indexOf(G)>=0?"y":"x";E[G]+=z[et]*W})}return E}function fD(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=e.boundary,r=e.rootBoundary,a=e.padding,o=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?jT:l,h=Hc(i),u=h?o?mb:mb.filter(function(g){return Hc(g)===h}):xf,p=u.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=u);var m=p.reduce(function(g,x){return g[x]=zu(n,{placement:x,boundary:s,rootBoundary:r,padding:a})[xr(x)],g},{});return Object.keys(m).sort(function(g,x){return m[g]-m[x]})}function dD(n){if(xr(n)===Wv)return[];var t=wm(n);return[_b(n),t,_b(t)]}function pD(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var s=e.mainAxis,r=s===void 0?!0:s,a=e.altAxis,o=a===void 0?!0:a,l=e.fallbackPlacements,c=e.padding,h=e.boundary,u=e.rootBoundary,p=e.altBoundary,m=e.flipVariations,g=m===void 0?!0:m,x=e.allowedAutoPlacements,y=t.options.placement,_=xr(y),M=_===y,b=l||(M||!g?[wm(y)]:dD(y)),S=[y].concat(b).reduce(function(q,rt){return q.concat(xr(rt)===Wv?fD(t,{placement:rt,boundary:h,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:x}):rt)},[]),P=t.rects.reference,C=t.rects.popper,T=new Map,L=!0,N=S[0],E=0;E=0,et=W?"width":"height",X=zu(t,{placement:R,boundary:h,rootBoundary:u,altBoundary:p,padding:c}),at=W?G?ws:Ui:G?Ms:Fi;P[et]>C[et]&&(at=wm(at));var H=wm(at),J=[];if(r&&J.push(X[z]<=0),o&&J.push(X[at]<=0,X[H]<=0),J.every(function(q){return q})){N=R,L=!1;break}T.set(R,J)}if(L)for(var st=g?3:1,Y=function(rt){var bt=S.find(function(gt){var Nt=T.get(gt);if(Nt)return Nt.slice(0,rt).every(function(Bt){return Bt})});if(bt)return N=bt,"break"},ct=st;ct>0;ct--){var mt=Y(ct);if(mt==="break")break}t.placement!==N&&(t.modifiersData[i]._skip=!0,t.placement=N,t.reset=!0)}}const mD={name:"flip",enabled:!0,phase:"main",fn:pD,requiresIfExists:["offset"],data:{_skip:!1}};function vb(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Mb(n){return[Fi,ws,Ms,Ui].some(function(t){return n[t]>=0})}function gD(n){var t=n.state,e=n.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=zu(t,{elementContext:"reference"}),o=zu(t,{altBoundary:!0}),l=vb(a,i),c=vb(o,s,r),h=Mb(l),u=Mb(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}const yD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gD};function _D(n,t,e){var i=xr(n),s=[Ui,Fi].indexOf(i)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[Ui,ws].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}function xD(n){var t=n.state,e=n.options,i=n.name,s=e.offset,r=s===void 0?[0,0]:s,a=jT.reduce(function(h,u){return h[u]=_D(u,t.rects,r),h},{}),o=a[t.placement],l=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}const vD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xD};function MD(n){var t=n.state,e=n.name;t.modifiersData[e]=JT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const wD={name:"popperOffsets",enabled:!0,phase:"read",fn:MD,data:{}};function bD(n){return n==="x"?"y":"x"}function SD(n){var t=n.state,e=n.options,i=n.name,s=e.mainAxis,r=s===void 0?!0:s,a=e.altAxis,o=a===void 0?!1:a,l=e.boundary,c=e.rootBoundary,h=e.altBoundary,u=e.padding,p=e.tether,m=p===void 0?!0:p,g=e.tetherOffset,x=g===void 0?0:g,y=zu(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),_=xr(t.placement),M=Hc(t.placement),b=!M,S=qv(_),P=bD(S),C=t.modifiersData.popperOffsets,T=t.rects.reference,L=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(C){if(r){var G,W=S==="y"?Fi:Ui,et=S==="y"?Ms:ws,X=S==="y"?"height":"width",at=C[S],H=at+y[W],J=at-y[et],st=m?-L[X]/2:0,Y=M===kc?T[X]:L[X],ct=M===kc?-L[X]:-T[X],mt=t.elements.arrow,q=m&&mt?Xv(mt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$T(),bt=rt[W],gt=rt[et],Nt=gu(0,T[X],q[X]),Bt=b?T[X]/2-st-Nt-bt-E.mainAxis:Y-Nt-bt-E.mainAxis,Vt=b?-T[X]/2+st+Nt+gt+E.mainAxis:ct+Nt+gt+E.mainAxis,Xt=t.elements.arrow&&vf(t.elements.arrow),lt=Xt?S==="y"?Xt.clientTop||0:Xt.clientLeft||0:0,U=(G=R==null?void 0:R[S])!=null?G:0,Ct=at+Bt-U-lt,dt=at+Vt-U,St=gu(m?Bm(H,Ct):H,at,m?Xo(J,dt):J);C[S]=St,z[S]=St-at}if(o){var Tt,Ht=S==="x"?Fi:Ui,Ft=S==="x"?Ms:ws,k=C[P],D=P==="y"?"height":"width",it=k+y[Ht],vt=k-y[Ft],Et=[Fi,Ui].indexOf(_)!==-1,wt=(Tt=R==null?void 0:R[P])!=null?Tt:0,ee=Et?it:k-T[D]-L[D]-wt+E.altAxis,Ut=Et?k+T[D]+L[D]-wt-E.altAxis:vt,qt=m&&Et?$L(ee,k,Ut):gu(m?ee:it,k,m?Ut:vt);C[P]=qt,z[P]=qt-k}t.modifiersData[i]=z}}const ED={name:"preventOverflow",enabled:!0,phase:"main",fn:SD,requiresIfExists:["offset"]};function AD(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function TD(n){return n===ns(n)||!vs(n)?$v(n):AD(n)}function CD(n){var t=n.getBoundingClientRect(),e=zc(t.width)/n.offsetWidth||1,i=zc(t.height)/n.offsetHeight||1;return e!==1||i!==1}function RD(n,t,e){e===void 0&&(e=!1);var i=vs(t),s=vs(t)&&CD(t),r=Za(t),a=Bc(n,s,e),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((Ar(t)!=="body"||Zv(r))&&(o=TD(t)),vs(t)?(l=Bc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Yv(r))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function PD(n){var t=new Map,e=new Set,i=[];n.forEach(function(r){t.set(r.name,r)});function s(r){e.add(r.name);var a=[].concat(r.requires||[],r.requiresIfExists||[]);a.forEach(function(o){if(!e.has(o)){var l=t.get(o);l&&s(l)}}),i.push(r)}return n.forEach(function(r){e.has(r.name)||s(r)}),i}function ID(n){var t=PD(n);return GL.reduce(function(e,i){return e.concat(t.filter(function(s){return s.phase===i}))},[])}function LD(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function DD(n){var t=n.reduce(function(e,i){var s=e[i.name];return e[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var wb={placement:"bottom",modifiers:[],strategy:"absolute"};function bb(){for(var n=arguments.length,t=new Array(n),e=0;e({var:n,varRef:t?`var(${n}, ${t})`:`var(${n})`}),$n={arrowShadowColor:Nl("--popper-arrow-shadow-color"),arrowSize:Nl("--popper-arrow-size","8px"),arrowSizeHalf:Nl("--popper-arrow-size-half"),arrowBg:Nl("--popper-arrow-bg"),transformOrigin:Nl("--popper-transform-origin"),arrowOffset:Nl("--popper-arrow-offset")};function UD(n){if(n.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(n.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(n.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(n.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const kD={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},zD=n=>kD[n],Sb={scroll:!0,resize:!0};function BD(n){let t;return typeof n=="object"?t={enabled:!0,options:{...Sb,...n}}:t={enabled:n,options:Sb},t}const HD={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},effect:({state:n})=>()=>{const t=n.elements.reference;n.elements.popper.style.width=`${t.offsetWidth}px`}},GD={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:n})=>{Eb(n)},effect:({state:n})=>()=>{Eb(n)}},Eb=n=>{n.elements.popper.style.setProperty($n.transformOrigin.var,zD(n.placement))},VD={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:n})=>{WD(n)}},WD=n=>{var e;if(!n.placement)return;const t=jD(n.placement);if((e=n.elements)!=null&&e.arrow&&t){Object.assign(n.elements.arrow.style,{[t.property]:t.value,width:$n.arrowSize.varRef,height:$n.arrowSize.varRef,zIndex:-1});const i={[$n.arrowSizeHalf.var]:`calc(${$n.arrowSize.varRef} / 2 - 1px)`,[$n.arrowOffset.var]:`calc(${$n.arrowSizeHalf.varRef} * -1)`};for(const s in i)n.elements.arrow.style.setProperty(s,i[s])}},jD=n=>{if(n.startsWith("top"))return{property:"bottom",value:$n.arrowOffset.varRef};if(n.startsWith("bottom"))return{property:"top",value:$n.arrowOffset.varRef};if(n.startsWith("left"))return{property:"right",value:$n.arrowOffset.varRef};if(n.startsWith("right"))return{property:"left",value:$n.arrowOffset.varRef}},XD={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:n})=>{Ab(n)},effect:({state:n})=>()=>{Ab(n)}},Ab=n=>{if(!n.elements.arrow)return;const t=n.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const e=UD(n.placement);e&&t.style.setProperty("--popper-arrow-default-shadow",e),Object.assign(t.style,{transform:"rotate(45deg)",background:$n.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},qD={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},$D={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function YD(n,t="ltr"){var i;const e=((i=qD[n])==null?void 0:i[t])||n;return t==="ltr"?e:$D[n]??e}function ZD(n={}){const{enabled:t=!0,modifiers:e,placement:i="bottom",strategy:s="absolute",arrowPadding:r=8,eventListeners:a=!0,offset:o,gutter:l=8,flip:c=!0,boundary:h="clippingParents",preventOverflow:u=!0,matchWidth:p,direction:m="ltr"}=n,g=K.useRef(null),x=K.useRef(null),y=K.useRef(null),_=YD(i,m),M=K.useRef(()=>{}),b=K.useCallback(()=>{var E;!t||!g.current||!x.current||((E=M.current)==null||E.call(M),y.current=FD(g.current,x.current,{placement:_,modifiers:[XD,VD,GD,{...HD,enabled:!!p},{name:"eventListeners",...BD(a)},{name:"arrow",options:{padding:r}},{name:"offset",options:{offset:o??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!u,options:{boundary:h}},...e??[]],strategy:s}),y.current.forceUpdate(),M.current=y.current.destroy)},[_,t,e,p,a,r,o,l,c,u,h,s]);K.useEffect(()=>()=>{var E;!g.current&&!x.current&&((E=y.current)==null||E.destroy(),y.current=null)},[]);const S=K.useCallback(E=>{g.current=E,b()},[b]),P=K.useCallback((E={},R=null)=>({...E,ref:Ua(S,R)}),[S]),C=K.useCallback(E=>{x.current=E,b()},[b]),T=K.useCallback((E={},R=null)=>({...E,ref:Ua(C,R),style:{...E.style,position:s,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[s,C,p]),L=K.useCallback((E={},R=null)=>{const{size:z,shadowColor:G,bg:W,style:et,...X}=E;return{...X,ref:R,"data-popper-arrow":"",style:KD(E)}},[]),N=K.useCallback((E={},R=null)=>({...E,ref:R,"data-popper-arrow-inner":""}),[]);return{update(){var E;(E=y.current)==null||E.update()},forceUpdate(){var E;(E=y.current)==null||E.forceUpdate()},transformOrigin:$n.transformOrigin.varRef,referenceRef:S,popperRef:C,getPopperProps:T,getArrowProps:L,getArrowInnerProps:N,getReferenceProps:P}}function KD(n){const{size:t,shadowColor:e,bg:i,style:s}=n,r={...s,position:"absolute"};return t&&(r["--popper-arrow-size"]=t),e&&(r["--popper-arrow-shadow-color"]=e),i&&(r["--popper-arrow-bg"]=i),r}const[JD,QD]=k0(),tN={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function eN(n,t){var e;if(n)return((e=tN[n])==null?void 0:e[t])??n}function nN(n){var c;const{isOpen:t,onClose:e,placement:i="right",children:s,...r}=n,a=Fv(),o=(c=a.components)==null?void 0:c.Drawer,l=eN(i,a.direction);return V.jsx(JD,{value:{placement:l},children:V.jsx(kv,{isOpen:t,onClose:e,styleConfig:o,...r,children:s})})}const Tb={exit:{duration:.15,ease:au.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},iN={exit:({direction:n,transition:t,transitionEnd:e,delay:i})=>{const{exit:s}=kx({direction:n});return{...s,transition:(t==null?void 0:t.exit)??km.exit(Tb.exit,i),transitionEnd:e==null?void 0:e.exit}},enter:({direction:n,transitionEnd:t,transition:e,delay:i})=>{const{enter:s}=kx({direction:n});return{...s,transition:(e==null?void 0:e.enter)??km.enter(Tb.enter,i),transitionEnd:t==null?void 0:t.enter}}},QT=K.forwardRef(function(t,e){const{direction:i="right",style:s,unmountOnExit:r,in:a,className:o,transition:l,transitionEnd:c,delay:h,motionProps:u,animatePresenceProps:p,...m}=t,g=kx({direction:i}),x=Object.assign({position:"fixed"},g.position,s),y=r?a&&r:!0,_=a||r?"enter":"exit",M={transitionEnd:c,transition:l,direction:i,delay:h};return V.jsx(Nv,{...p,custom:M,children:y&&V.jsx(Ov.div,{...m,ref:e,initial:"exit",className:ss("chakra-slide",o),animate:_,exit:"exit",custom:M,variants:iN,style:x,...u})})});QT.displayName="Slide";const sN=an(QT),t2=ki((n,t)=>{const{className:e,children:i,motionProps:s,containerProps:r,...a}=n,{getDialogProps:o,getDialogContainerProps:l,isOpen:c}=MI(),h=o(a,t),u=l(r),p=ss("chakra-modal__content",e),m=wI(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{placement:y}=QD();return V.jsx(bI,{children:V.jsx(an.div,{...u,className:"chakra-modal__content-container",__css:x,children:V.jsx(sN,{motionProps:s,direction:y,in:c,className:p,...h,__css:g,children:i})})})});t2.displayName="DrawerContent";function rN(n,t,e){return(n-t)*100/(e-t)}z0({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});z0({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const aN=z0({"0%":{left:"-40%"},"100%":{left:"100%"}}),oN=z0({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function lN(n){const{value:t=0,min:e,max:i,valueText:s,getValueText:r,isIndeterminate:a,role:o="progressbar"}=n,l=rN(t,e,i);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":i,"aria-valuemin":e,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof r=="function"?r(t,l):s})(),role:o},percent:l,value:t}}const[cN,hN]=k0({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),uN=ki((n,t)=>{const{min:e,max:i,value:s,isIndeterminate:r,role:a,...o}=n,l=lN({value:s,min:e,max:i,isIndeterminate:r,role:a}),h={height:"100%",...hN().filledTrack};return V.jsx(an.div,{ref:t,style:{width:`${l.percent}%`,...o.style},...l.bind,...o,__css:h})}),e2=ki((n,t)=>{var T;const{value:e,min:i=0,max:s=100,hasStripe:r,isAnimated:a,children:o,borderRadius:l,isIndeterminate:c,"aria-label":h,"aria-labelledby":u,"aria-valuetext":p,title:m,role:g,...x}=mf(n),y=Uv("Progress",n),_=l??((T=y.track)==null?void 0:T.borderRadius),M={animation:`${oN} 1s linear infinite`},P={...!c&&r&&a&&M,...c&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${aN} 1s ease infinite normal none running`}},C={overflow:"hidden",position:"relative",...y.track};return V.jsx(an.div,{ref:t,borderRadius:_,__css:C,...x,children:V.jsxs(cN,{value:y,children:[V.jsx(uN,{"aria-label":h,"aria-labelledby":u,"aria-valuetext":p,min:i,max:s,value:e,isIndeterminate:c,css:P,borderRadius:_,title:m,role:g}),o]})})});e2.displayName="Progress";function Yd(n){const{orientation:t,vertical:e,horizontal:i}=n;return t==="vertical"?e:i}const bm={width:0,height:0},Zd=n=>n||bm;function fN(n){const{orientation:t,thumbPercents:e,thumbRects:i,isReversed:s}=n,r=x=>{const y=i[x]??bm;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...Yd({orientation:t,vertical:{bottom:`calc(${e[x]}% - ${y.height/2}px)`},horizontal:{left:`calc(${e[x]}% - ${y.width/2}px)`}})}},a=t==="vertical"?i.reduce((x,y)=>Zd(x).height>Zd(y).height?x:y,bm):i.reduce((x,y)=>Zd(x).width>Zd(y).width?x:y,bm),o={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...Yd({orientation:t,vertical:a?{paddingLeft:a.width/2,paddingRight:a.width/2}:{},horizontal:a?{paddingTop:a.height/2,paddingBottom:a.height/2}:{}})},l={position:"absolute",...Yd({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},c=e.length===1,h=[0,s?100-e[0]:e[0]],u=c?h:e;let p=u[0];!c&&s&&(p=100-p);const m=Math.abs(u[u.length-1]-u[0]),g={...l,...Yd({orientation:t,vertical:s?{height:`${m}%`,top:`${p}%`}:{height:`${m}%`,bottom:`${p}%`},horizontal:s?{width:`${m}%`,right:`${p}%`}:{width:`${m}%`,left:`${p}%`}})};return{trackStyle:l,innerTrackStyle:g,rootStyle:o,getThumbStyle:r}}function dN(n){const{isReversed:t,direction:e,orientation:i}=n;return e==="ltr"||i==="vertical"?t:!t}function pN(n){const{min:t=0,max:e=100,onChange:i,value:s,defaultValue:r,isReversed:a,direction:o="ltr",orientation:l="horizontal",id:c,isDisabled:h,isReadOnly:u,onChangeStart:p,onChangeEnd:m,step:g=1,getAriaValueText:x,"aria-valuetext":y,"aria-label":_,"aria-labelledby":M,name:b,focusThumbOnChange:S=!0,...P}=n,C=jo(p),T=jo(m),L=jo(x),N=dN({isReversed:a,direction:o,orientation:l}),[E,R]=cI({value:s,defaultValue:r??gN(t,e),onChange:i}),[z,G]=K.useState(!1),[W,et]=K.useState(!1),X=!(h||u),at=(e-t)/10,H=g||(e-t)/100,J=Xy(E,t,e),st=e-J+t,ct=ab(N?st:J,t,e),mt=l==="vertical",q=kT({min:t,max:e,step:g,isDisabled:h,value:J,isInteractive:X,isReversed:N,isVertical:mt,eventSource:null,focusThumbOnChange:S,orientation:l}),rt=K.useRef(null),bt=K.useRef(null),gt=K.useRef(null),Nt=K.useId(),Bt=c??Nt,[Vt,Xt]=[`slider-thumb-${Bt}`,`slider-track-${Bt}`],lt=K.useCallback(yt=>{var ft;if(!rt.current)return;const It=q.current;It.eventSource="pointer";const oe=rt.current.getBoundingClientRect(),{clientX:Wt,clientY:$}=((ft=yt.touches)==null?void 0:ft[0])??yt,Mt=mt?oe.bottom-$:Wt-oe.left,Gt=mt?oe.height:oe.width;let j=Mt/Gt;N&&(j=1-j);let Dt=jI(j,It.min,It.max);return It.step&&(Dt=parseFloat(ob(Dt,It.min,It.step))),Dt=Xy(Dt,It.min,It.max),Dt},[mt,N,q]),U=K.useCallback(yt=>{const It=q.current;It.isInteractive&&(yt=parseFloat(ob(yt,It.min,H)),yt=Xy(yt,It.min,It.max),R(yt))},[H,R,q]),Ct=K.useMemo(()=>({stepUp(yt=H){const It=N?J-yt:J+yt;U(It)},stepDown(yt=H){const It=N?J+yt:J-yt;U(It)},reset(){U(r||0)},stepTo(yt){U(yt)}}),[U,N,J,H,r]),dt=K.useCallback(yt=>{const It=q.current,Wt={ArrowRight:()=>Ct.stepUp(),ArrowUp:()=>Ct.stepUp(),ArrowLeft:()=>Ct.stepDown(),ArrowDown:()=>Ct.stepDown(),PageUp:()=>Ct.stepUp(at),PageDown:()=>Ct.stepDown(at),Home:()=>U(It.min),End:()=>U(It.max)}[yt.key];Wt&&(yt.preventDefault(),yt.stopPropagation(),Wt(yt),It.eventSource="keyboard")},[Ct,U,at,q]),St=(L==null?void 0:L(J))??y,Tt=tL(bt),{getThumbStyle:Ht,rootStyle:Ft,trackStyle:k,innerTrackStyle:D}=K.useMemo(()=>{const yt=q.current,It=Tt??{width:0,height:0};return fN({isReversed:N,orientation:yt.orientation,thumbRects:[It],thumbPercents:[ct]})},[N,Tt,ct,q]),it=K.useCallback(()=>{q.current.focusThumbOnChange&&setTimeout(()=>{var It;return(It=bt.current)==null?void 0:It.focus()})},[q]);CT(()=>{const yt=q.current;it(),yt.eventSource==="keyboard"&&(T==null||T(yt.value))},[J,T]);function vt(yt){const It=lt(yt);It!=null&&It!==q.current.value&&R(It)}mL(gt,{onPanSessionStart(yt){const It=q.current;It.isInteractive&&(G(!0),it(),vt(yt),C==null||C(It.value))},onPanSessionEnd(){const yt=q.current;yt.isInteractive&&(G(!1),T==null||T(yt.value))},onPan(yt){q.current.isInteractive&&vt(yt)}});const Et=K.useCallback((yt={},It=null)=>({...yt,...P,ref:Ua(It,gt),tabIndex:-1,"aria-disabled":Vy(h),"data-focused":$e(W),style:{...yt.style,...Ft}}),[P,h,W,Ft]),wt=K.useCallback((yt={},It=null)=>({...yt,ref:Ua(It,rt),id:Xt,"data-disabled":$e(h),style:{...yt.style,...k}}),[h,Xt,k]),ee=K.useCallback((yt={},It=null)=>({...yt,ref:It,style:{...yt.style,...D}}),[D]),Ut=K.useCallback((yt={},It=null)=>({...yt,ref:Ua(It,bt),role:"slider",tabIndex:X?0:void 0,id:Vt,"data-active":$e(z),"aria-valuetext":St,"aria-valuemin":t,"aria-valuemax":e,"aria-valuenow":J,"aria-orientation":l,"aria-disabled":Vy(h),"aria-readonly":Vy(u),"aria-label":_,"aria-labelledby":_?void 0:M,style:{...yt.style,...Ht(0)},onKeyDown:Ln(yt.onKeyDown,dt),onFocus:Ln(yt.onFocus,()=>et(!0)),onBlur:Ln(yt.onBlur,()=>et(!1))}),[X,Vt,z,St,t,e,J,l,h,u,_,M,Ht,dt]),qt=K.useCallback((yt,It=null)=>{const oe=!(yt.valuee),Wt=J>=yt.value,$=ab(yt.value,t,e),Mt={position:"absolute",pointerEvents:"none",...mN({orientation:l,vertical:{bottom:N?`${100-$}%`:`${$}%`},horizontal:{left:N?`${100-$}%`:`${$}%`}})};return{...yt,ref:It,role:"presentation","aria-hidden":!0,"data-disabled":$e(h),"data-invalid":$e(!oe),"data-highlighted":$e(Wt),style:{...yt.style,...Mt}}},[h,N,e,t,l,J]),Te=K.useCallback((yt={},It=null)=>({...yt,ref:It,type:"hidden",value:J,name:b}),[b,J]);return{state:{value:J,isFocused:W,isDragging:z},actions:Ct,getRootProps:Et,getTrackProps:wt,getInnerTrackProps:ee,getThumbProps:Ut,getMarkerProps:qt,getInputProps:Te}}function mN(n){const{orientation:t,vertical:e,horizontal:i}=n;return t==="vertical"?e:i}function gN(n,t){return t"}),[_N,W0]=k0({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),n2=ki((n,t)=>{const e={...n,orientation:(n==null?void 0:n.orientation)??"horizontal"},i=Uv("Slider",e),s=mf(e),{direction:r}=Fv();s.direction=r;const{getInputProps:a,getRootProps:o,...l}=pN(s),c=o(),h=a({},t);return V.jsx(yN,{value:l,children:V.jsx(_N,{value:i,children:V.jsxs(an.div,{...c,className:ss("chakra-slider",e.className),__css:i.container,children:[e.children,V.jsx("input",{...h})]})})})});n2.displayName="Slider";const i2=ki((n,t)=>{const{getThumbProps:e}=V0(),i=W0(),s=e(n,t);return V.jsx(an.div,{...s,className:ss("chakra-slider__thumb",n.className),__css:i.thumb})});i2.displayName="SliderThumb";const s2=ki((n,t)=>{const{getTrackProps:e}=V0(),i=W0(),s=e(n,t);return V.jsx(an.div,{...s,className:ss("chakra-slider__track",n.className),__css:i.track})});s2.displayName="SliderTrack";const r2=ki((n,t)=>{const{getInnerTrackProps:e}=V0(),i=W0(),s=e(n,t);return V.jsx(an.div,{...s,className:ss("chakra-slider__filled-track",n.className),__css:i.filledTrack})});r2.displayName="SliderFilledTrack";const xN=ki((n,t)=>{const{getMarkerProps:e}=V0(),i=W0(),s=e(n,t);return V.jsx(an.div,{...s,className:ss("chakra-slider__marker",n.className),__css:i.mark})});xN.displayName="SliderMark";const a2=ki(function(t,e){const i=Uv("Switch",t),{spacing:s="0.5rem",children:r,...a}=mf(t),{getIndicatorProps:o,getInputProps:l,getCheckboxProps:c,getRootProps:h,getLabelProps:u}=RL(a),p=K.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),m=K.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),g=K.useMemo(()=>({userSelect:"none",marginStart:s,...i.label}),[s,i.label]);return V.jsxs(an.label,{...h(),className:ss("chakra-switch",t.className),__css:p,children:[V.jsx("input",{className:"chakra-switch__input",...l({},e)}),V.jsx(an.span,{...c(),className:"chakra-switch__track",__css:m,children:V.jsx(an.span,{__css:i.thumb,className:"chakra-switch__thumb",...o()})}),r&&V.jsx(an.span,{className:"chakra-switch__label",...u(),__css:g,children:r})]})});a2.displayName="Switch";const vN={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},jx=n=>{var t;return((t=n.current)==null?void 0:t.ownerDocument)||document},Sm=n=>{var t,e;return((e=(t=n.current)==null?void 0:t.ownerDocument)==null?void 0:e.defaultView)||window};function MN(n={}){const{openDelay:t=0,closeDelay:e=0,closeOnClick:i=!0,closeOnMouseDown:s,closeOnScroll:r,closeOnPointerDown:a=s,closeOnEsc:o=!0,onOpen:l,onClose:c,placement:h,id:u,isOpen:p,defaultIsOpen:m,arrowSize:g=10,arrowShadowColor:x,arrowPadding:y,modifiers:_,isDisabled:M,gutter:b,offset:S,direction:P,...C}=n,{isOpen:T,onOpen:L,onClose:N}=Jo({isOpen:p,defaultIsOpen:m,onOpen:l,onClose:c}),{referenceRef:E,getPopperProps:R,getArrowInnerProps:z,getArrowProps:G}=ZD({enabled:T,placement:h,arrowPadding:y,modifiers:_,gutter:b,offset:S,direction:P}),W=K.useId(),X=`tooltip-${u??W}`,at=K.useRef(null),H=K.useRef(),J=K.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),st=K.useRef(),Y=K.useCallback(()=>{st.current&&(clearTimeout(st.current),st.current=void 0)},[]),ct=K.useCallback(()=>{Y(),N()},[N,Y]),mt=wN(at,ct),q=K.useCallback(()=>{if(!M&&!H.current){T&&mt();const lt=Sm(at);H.current=lt.setTimeout(L,t)}},[mt,M,T,L,t]),rt=K.useCallback(()=>{J();const lt=Sm(at);st.current=lt.setTimeout(ct,e)},[e,ct,J]),bt=K.useCallback(()=>{T&&i&&rt()},[i,rt,T]),gt=K.useCallback(()=>{T&&a&&rt()},[a,rt,T]),Nt=K.useCallback(lt=>{T&<.key==="Escape"&&rt()},[T,rt]);qy(()=>jx(at),"keydown",o?Nt:void 0),qy(()=>{if(!r)return null;const lt=at.current;if(!lt)return null;const U=UT(lt);return U.localName==="body"?Sm(at):U},"scroll",()=>{T&&r&&ct()},{passive:!0,capture:!0}),K.useEffect(()=>{M&&(J(),T&&N())},[M,T,N,J]),K.useEffect(()=>()=>{J(),Y()},[J,Y]),qy(()=>at.current,"pointerleave",rt);const Bt=K.useCallback((lt={},U=null)=>({...lt,ref:Ua(at,U,E),onPointerEnter:Ln(lt.onPointerEnter,dt=>{dt.pointerType!=="touch"&&q()}),onClick:Ln(lt.onClick,bt),onPointerDown:Ln(lt.onPointerDown,gt),onFocus:Ln(lt.onFocus,q),onBlur:Ln(lt.onBlur,rt),"aria-describedby":T?X:void 0}),[q,rt,gt,T,X,bt,E]),Vt=K.useCallback((lt={},U=null)=>R({...lt,style:{...lt.style,[$n.arrowSize.var]:g?`${g}px`:void 0,[$n.arrowShadowColor.var]:x}},U),[R,g,x]),Xt=K.useCallback((lt={},U=null)=>{const Ct={...lt.style,position:"relative",transformOrigin:$n.transformOrigin.varRef};return{ref:U,...C,...lt,id:X,role:"tooltip",style:Ct}},[C,X]);return{isOpen:T,show:q,hide:rt,getTriggerProps:Bt,getTooltipProps:Xt,getTooltipPositionerProps:Vt,getArrowProps:G,getArrowInnerProps:z}}const Zy="chakra-ui:close-tooltip";function wN(n,t){return K.useEffect(()=>{const e=jx(n);return e.addEventListener(Zy,t),()=>e.removeEventListener(Zy,t)},[t,n]),()=>{const e=jx(n),i=Sm(n);e.dispatchEvent(new i.CustomEvent(Zy))}}const bN=an(Ov.div),Mf=ki((n,t)=>{const e=RT("Tooltip",n),i=mf(n),s=Fv(),{children:r,label:a,shouldWrapChildren:o,"aria-label":l,hasArrow:c,bg:h,portalProps:u,background:p,backgroundColor:m,bgColor:g,motionProps:x,animatePresenceProps:y,..._}=i,M=p??m??h??g;if(M){e.bg=M;const E=gL(s,"colors",M);e[$n.arrowBg.var]=E}const b=MN({..._,direction:s.direction}),S=typeof r=="string"||o;let P;if(S)P=V.jsx(an.span,{display:"inline-block",tabIndex:0,...b.getTriggerProps(),children:r});else{const E=K.Children.only(r);P=K.cloneElement(E,b.getTriggerProps(E.props,E.ref))}const C=!!l,T=b.getTooltipProps({},t),L=C?TT(T,["role","id"]):T,N=hI(T,["role","id"]);return a?V.jsxs(V.Fragment,{children:[P,V.jsx(Nv,{...y,children:b.isOpen&&V.jsx(uI,{...u,children:V.jsx(an.div,{...b.getTooltipPositionerProps(),__css:{zIndex:e.zIndex,pointerEvents:"none"},children:V.jsxs(bN,{variants:vN,initial:"exit",animate:"enter",exit:"exit",...x,...L,__css:e,children:[a,C&&V.jsx(an.span,{srOnly:!0,...N,children:l}),c&&V.jsx(an.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:V.jsx(an.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:e.bg}})})]})})})})]}):V.jsx(V.Fragment,{children:r})});Mf.displayName="Tooltip";const Kv=ki(function(t,e){const{spacing:i="0.5rem",spacingX:s,spacingY:r,children:a,justify:o,direction:l,align:c,className:h,shouldWrapChildren:u,...p}=t,m=K.useMemo(()=>u?K.Children.map(a,(g,x)=>V.jsx(o2,{children:g},x)):a,[a,u]);return V.jsx(an.div,{ref:e,className:ss("chakra-wrap",h),...p,children:V.jsx(an.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:o,alignItems:c,flexDirection:l,listStyleType:"none",gap:i,columnGap:s,rowGap:r,padding:"0"},children:m})})});Kv.displayName="Wrap";const o2=ki(function(t,e){const{className:i,...s}=t;return V.jsx(an.li,{ref:e,__css:{display:"flex",alignItems:"flex-start"},className:ss("chakra-wrap__listitem",i),...s})});o2.displayName="WrapItem";/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-Dt1HMqYc.js","assets/basedecoder-DvumDe3Y.js","assets/lzw-DpvbRwG5.js","assets/jpeg-CdeCw_eT.js","assets/deflate-B6wx6bhZ.js","assets/index-cA1eFW7V.js","assets/index-CzQ50VWX.css","assets/heading-DHsph2H5.js","assets/Footer-Cn5RvAyN.js","assets/location-D8PyOyjj.js","assets/stack-ABWX5mQg.js","assets/packbits-DQnG8s9w.js","assets/lerc-cqroyPOz.js","assets/webimage-BcnuJlio.js"])))=>i.map(i=>d[i]); +var aI=Object.defineProperty;var oI=(n,t,e)=>t in n?aI(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var rr=(n,t,e)=>oI(n,typeof t!="symbol"?t+"":t,e);import{i as lI,k as jo,d as K,j as V,A as Nv,m as Ov,l as ss,o as TT,n as Gy,p as CT,q as $e,s as Ln,v as Ua,f as ki,w as RT,x as mf,c as an,y as k0,z as Fv,C as z0,D as Uv,E as cI,F as Vy,G as hI,P as uI,g as Ya,I as fI,R as B0,H as gf,_ as dl,B as sa,J as PT,K as IT,L as dI,N as pI,O as mI,M as gI}from"./index-cA1eFW7V.js";import{C as yI,a as _I,H as xI,b as vI}from"./heading-DHsph2H5.js";import{w as km,g as au,M as kv,h as kx,i as MI,j as wI,k as bI,u as Jo,B as dr,l as SI,b as zv,c as LT,d as Bv,e as Hv,f as Gv,T as No,U as DT,a as Fo,F as EI}from"./Footer-Cn5RvAyN.js";import{u as AI,a as NT,b as TI,c as CI,p as RI,d as zm,F as Wy,I as jy,M as PI,e as II,x as LI}from"./location-D8PyOyjj.js";import{S as DI}from"./stack-ABWX5mQg.js";function NI(n,t,e,i){return n.addEventListener(t,e,i),()=>{n.removeEventListener(t,e,i)}}function OI(n){return n.view??window}function FI(n){const t=OI(n);return typeof t.PointerEvent<"u"&&n instanceof t.PointerEvent?n.pointerType==="mouse":n instanceof t.MouseEvent}function OT(n){return!!n.touches}function UI(n){return OT(n)&&n.touches.length>1}function kI(n,t="page"){const e=n.touches[0]||n.changedTouches[0];return{x:e[`${t}X`],y:e[`${t}Y`]}}function zI(n,t="page"){return{x:n[`${t}X`],y:n[`${t}Y`]}}function FT(n,t="page"){return OT(n)?kI(n,t):zI(n,t)}function BI(n){return t=>{const e=FI(t);(!e||e&&t.button===0)&&n(t)}}function HI(n,t=!1){function e(s){n(s,{point:FT(s)})}return t?BI(e):e}function Mm(n,t,e,i){return NI(n,t,HI(e,t==="pointerdown"),i)}function GI(n){const t=parseFloat(n);return typeof t!="number"||Number.isNaN(t)?0:t}function VI(n,t){let e=GI(n);const i=10**(t??10);return e=Math.round(e*i)/i,t?e.toFixed(t):e.toString()}function WI(n){if(!Number.isFinite(n))return 0;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e+=1;return e}function ab(n,t,e){return(n-t)*100/(e-t)}function jI(n,t,e){return(e-t)*n+t}function ob(n,t,e){const i=Math.round((n-t)/e)*e+t,s=WI(e);return VI(i,s)}function Xy(n,t,e){return n==null?n:(e{const{condition:t,message:e}=n};function qy(n,t,e,i){const s=jo(e);return K.useEffect(()=>{const r=typeof n=="function"?n():n??document;if(!(!e||!r))return r.addEventListener(t,s,i),()=>{r.removeEventListener(t,s,i)}},[t,n,i,s,e]),()=>{const r=typeof n=="function"?n():n??document;r==null||r.removeEventListener(t,s,i)}}function kT(n){const t=K.useRef(null);return t.current=n,t}function YI(n,t){if(!n){t(void 0);return}t({width:n.offsetWidth,height:n.offsetHeight});const e=n.ownerDocument.defaultView??window,i=new e.ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const[r]=s;let a,o;if("borderBoxSize"in r){const l=r.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,o=c.blockSize}else a=n.offsetWidth,o=n.offsetHeight;t({width:a,height:o})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}const ZI=globalThis!=null&&globalThis.document?K.useLayoutEffect:K.useEffect;function KI(n,t){var s;if(!n||!n.parentElement)return;const e=((s=n.ownerDocument)==null?void 0:s.defaultView)??window,i=new e.MutationObserver(()=>{t()});return i.observe(n.parentElement,{childList:!0}),()=>{i.disconnect()}}function JI({getNodes:n,observeMutation:t=!0}){const[e,i]=K.useState([]),[s,r]=K.useState(0);return ZI(()=>{const a=n(),o=a.map((l,c)=>YI(l,h=>{i(u=>[...u.slice(0,c),h,...u.slice(c+1)])}));if(t){const l=a[0];o.push(KI(l,()=>{r(c=>c+1)}))}return()=>{o.forEach(l=>{l==null||l()})}},[s]),e}function QI(n){return typeof n=="object"&&n!==null&&"current"in n}function tL(n){const[t]=JI({observeMutation:!1,getNodes(){return[QI(n)?n.current:n]}});return t}const zT=1/60*1e3,eL=typeof performance<"u"?()=>performance.now():()=>Date.now(),BT=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(eL()),zT);function nL(n){let t=[],e=[],i=0,s=!1,r=!1;const a=new WeakSet,o={schedule:(l,c=!1,h=!1)=>{const u=h&&s,p=u?t:e;return c&&a.add(l),p.indexOf(l)===-1&&(p.push(l),u&&s&&(i=t.length)),l},cancel:l=>{const c=e.indexOf(l);c!==-1&&e.splice(c,1),a.delete(l)},process:l=>{if(s){r=!0;return}if(s=!0,[t,e]=[e,t],e.length=0,i=t.length,i)for(let c=0;c(n[t]=nL(()=>Uu=!0),n),{}),sL=yf.reduce((n,t)=>{const e=H0[t];return n[t]=(i,s=!1,r=!1)=>(Uu||oL(),e.schedule(i,s,r)),n},{}),rL=yf.reduce((n,t)=>(n[t]=H0[t].cancel,n),{});yf.reduce((n,t)=>(n[t]=()=>H0[t].process(Rc),n),{});const aL=n=>H0[n].process(Rc),HT=n=>{Uu=!1,Rc.delta=zx?zT:Math.max(Math.min(n-Rc.timestamp,iL),1),Rc.timestamp=n,Bx=!0,yf.forEach(aL),Bx=!1,Uu&&(zx=!1,BT(HT))},oL=()=>{Uu=!0,zx=!0,Bx||BT(HT)},lb=()=>Rc;var lL=Object.defineProperty,cL=(n,t,e)=>t in n?lL(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Rs=(n,t,e)=>(cL(n,typeof t!="symbol"?t+"":t,e),e);class hL{constructor(t,e,i){if(Rs(this,"history",[]),Rs(this,"startEvent",null),Rs(this,"lastEvent",null),Rs(this,"lastEventInfo",null),Rs(this,"handlers",{}),Rs(this,"removeListeners",()=>{}),Rs(this,"threshold",3),Rs(this,"win"),Rs(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const o=$y(this.lastEventInfo,this.history),l=this.startEvent!==null,c=pL(o.offset,{x:0,y:0})>=this.threshold;if(!l&&!c)return;const{timestamp:h}=lb();this.history.push({...o.point,timestamp:h});const{onStart:u,onMove:p}=this.handlers;l||(u==null||u(this.lastEvent,o),this.startEvent=this.lastEvent),p==null||p(this.lastEvent,o)}),Rs(this,"onPointerMove",(o,l)=>{this.lastEvent=o,this.lastEventInfo=l,sL.update(this.updatePoint,!0)}),Rs(this,"onPointerUp",(o,l)=>{const c=$y(l,this.history),{onEnd:h,onSessionEnd:u}=this.handlers;u==null||u(o,c),this.end(),!(!h||!this.startEvent)&&(h==null||h(o,c))}),this.win=t.view??window,UI(t))return;this.handlers=e,i&&(this.threshold=i),t.stopPropagation(),t.preventDefault();const s={point:FT(t)},{timestamp:r}=lb();this.history=[{...s.point,timestamp:r}];const{onSessionStart:a}=e;a==null||a(t,$y(s,this.history)),this.removeListeners=dL(Mm(this.win,"pointermove",this.onPointerMove),Mm(this.win,"pointerup",this.onPointerUp),Mm(this.win,"pointercancel",this.onPointerUp))}updateHandlers(t){this.handlers=t}end(){var t;(t=this.removeListeners)==null||t.call(this),rL.update(this.updatePoint)}}function cb(n,t){return{x:n.x-t.x,y:n.y-t.y}}function $y(n,t){return{point:n.point,delta:cb(n.point,t[t.length-1]),offset:cb(n.point,t[0]),velocity:fL(t,.1)}}const uL=n=>n*1e3;function fL(n,t){if(n.length<2)return{x:0,y:0};let e=n.length-1,i=null;const s=n[n.length-1];for(;e>=0&&(i=n[e],!(s.timestamp-i.timestamp>uL(t)));)e--;if(!i)return{x:0,y:0};const r=(s.timestamp-i.timestamp)/1e3;if(r===0)return{x:0,y:0};const a={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function dL(...n){return t=>n.reduce((e,i)=>i(e),t)}function Yy(n,t){return Math.abs(n-t)}function hb(n){return"x"in n&&"y"in n}function pL(n,t){if(typeof n=="number"&&typeof t=="number")return Yy(n,t);if(hb(n)&&hb(t)){const e=Yy(n.x,t.x),i=Yy(n.y,t.y);return Math.sqrt(e**2+i**2)}return 0}function mL(n,t){const{onPan:e,onPanStart:i,onPanEnd:s,onPanSessionStart:r,onPanSessionEnd:a,threshold:o}=t,l=!!(e||i||s||r||a),c=K.useRef(null),h=kT({onSessionStart:r,onSessionEnd:a,onStart:i,onMove:e,onEnd(u,p){c.current=null,s==null||s(u,p)}});K.useEffect(()=>{var u;(u=c.current)==null||u.updateHandlers(h.current)}),K.useEffect(()=>{const u=n.current;if(!u||!l)return;function p(m){c.current=new hL(m,h.current,o)}return Mm(u,"pointerdown",p)},[n,l,h,o]),K.useEffect(()=>()=>{var u;(u=c.current)==null||u.end(),c.current=null},[])}function gL(n,t,e){var i,s;return((s=(i=n.__cssMap)==null?void 0:i[`${t}.${e}`])==null?void 0:s.varRef)??e}const yL=n=>n!=null&&parseInt(n.toString(),10)>0,ub={exit:{height:{duration:.2,ease:au.ease},opacity:{duration:.3,ease:au.ease}},enter:{height:{duration:.3,ease:au.ease},opacity:{duration:.4,ease:au.ease}}},_L={exit:({animateOpacity:n,startingHeight:t,transition:e,transitionEnd:i,delay:s})=>({...n&&{opacity:yL(t)?1:0},height:t,transitionEnd:i==null?void 0:i.exit,transition:(e==null?void 0:e.exit)??km.exit(ub.exit,s)}),enter:({animateOpacity:n,endingHeight:t,transition:e,transitionEnd:i,delay:s})=>({...n&&{opacity:1},height:t,transitionEnd:i==null?void 0:i.enter,transition:(e==null?void 0:e.enter)??km.enter(ub.enter,s)})},GT=K.forwardRef((n,t)=>{const{in:e,unmountOnExit:i,animateOpacity:s=!0,startingHeight:r=0,endingHeight:a="auto",style:o,className:l,transition:c,transitionEnd:h,animatePresenceProps:u,...p}=n,[m,g]=K.useState(!1);K.useEffect(()=>{const b=setTimeout(()=>{g(!0)});return()=>clearTimeout(b)},[]),$I({condition:Number(r)>0&&!!i,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const x=parseFloat(r.toString())>0,y={startingHeight:r,endingHeight:a,animateOpacity:s,transition:m?c:{enter:{duration:0}},transitionEnd:{enter:h==null?void 0:h.enter,exit:i?h==null?void 0:h.exit:{...h==null?void 0:h.exit,display:x?"block":"none"}}},_=i?e:!0,M=e||i?"enter":"exit";return V.jsx(Nv,{...u,initial:!1,custom:y,children:_&&V.jsx(Ov.div,{ref:t,...p,className:ss("chakra-collapse",l),style:{overflow:"hidden",display:"block",...o},custom:y,variants:_L,initial:i?"exit":!1,animate:M,exit:"exit"})})});GT.displayName="Collapse";var xL=()=>typeof document<"u",fb=!1,_f=null,Qo=!1,Hx=!1,Gx=new Set;function Vv(n,t){Gx.forEach(e=>e(n,t))}var vL=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function ML(n){return!(n.metaKey||!vL&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function db(n){Qo=!0,ML(n)&&(_f="keyboard",Vv("keyboard",n))}function Dl(n){if(_f="pointer",n.type==="mousedown"||n.type==="pointerdown"){Qo=!0;const t=n.composedPath?n.composedPath()[0]:n.target;let e=!1;try{e=t.matches(":focus-visible")}catch{}if(e)return;Vv("pointer",n)}}function wL(n){return n.mozInputSource===0&&n.isTrusted?!0:n.detail===0&&!n.pointerType}function bL(n){wL(n)&&(Qo=!0,_f="virtual")}function SL(n){n.target===window||n.target===document||n.target instanceof Element&&n.target.hasAttribute("tabindex")||(!Qo&&!Hx&&(_f="virtual",Vv("virtual",n)),Qo=!1,Hx=!1)}function EL(){Qo=!1,Hx=!0}function pb(){return _f!=="pointer"}function AL(){if(!xL()||fb)return;const{focus:n}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...e){Qo=!0,n.apply(this,e)},document.addEventListener("keydown",db,!0),document.addEventListener("keyup",db,!0),document.addEventListener("click",bL,!0),window.addEventListener("focus",SL,!0),window.addEventListener("blur",EL,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Dl,!0),document.addEventListener("pointermove",Dl,!0),document.addEventListener("pointerup",Dl,!0)):(document.addEventListener("mousedown",Dl,!0),document.addEventListener("mousemove",Dl,!0),document.addEventListener("mouseup",Dl,!0)),fb=!0}function TL(n){AL(),n(pb());const t=()=>n(pb());return Gx.add(t),()=>{Gx.delete(t)}}const CL={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function RL(n={}){const t=AI(n),{isDisabled:e,isReadOnly:i,isRequired:s,isInvalid:r,id:a,onBlur:o,onFocus:l,"aria-describedby":c}=t,{defaultChecked:h,isChecked:u,isFocusable:p,onChange:m,isIndeterminate:g,name:x,value:y,tabIndex:_=void 0,"aria-label":M,"aria-labelledby":b,"aria-invalid":S,...P}=n,C=TT(P,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),T=jo(m),L=jo(o),N=jo(l),[E,R]=K.useState(!1),[z,G]=K.useState(!1),[W,et]=K.useState(!1),[X,at]=K.useState(!1);K.useEffect(()=>TL(R),[]);const H=K.useRef(null),[J,st]=K.useState(!0),[Y,ct]=K.useState(!!h),mt=u!==void 0,q=mt?u:Y,rt=K.useCallback(dt=>{if(i||e){dt.preventDefault();return}mt||ct(q?dt.currentTarget.checked:g?!0:dt.currentTarget.checked),T==null||T(dt)},[i,e,q,mt,g,T]);Gy(()=>{H.current&&(H.current.indeterminate=!!g)},[g]),CT(()=>{e&&G(!1)},[e,G]),Gy(()=>{const dt=H.current;if(!(dt!=null&&dt.form))return;const St=()=>{ct(!!h)};return dt.form.addEventListener("reset",St),()=>{var Tt;return(Tt=dt.form)==null?void 0:Tt.removeEventListener("reset",St)}},[]);const bt=e&&!p,gt=K.useCallback(dt=>{dt.key===" "&&at(!0)},[at]),Nt=K.useCallback(dt=>{dt.key===" "&&at(!1)},[at]);Gy(()=>{if(!H.current)return;H.current.checked!==q&&ct(H.current.checked)},[H.current]);const Bt=K.useCallback((dt={},St=null)=>{const Tt=Ht=>{z&&Ht.preventDefault(),at(!0)};return{...dt,ref:St,"data-active":$e(X),"data-hover":$e(W),"data-checked":$e(q),"data-focus":$e(z),"data-focus-visible":$e(z&&E),"data-indeterminate":$e(g),"data-disabled":$e(e),"data-invalid":$e(r),"data-readonly":$e(i),"aria-hidden":!0,onMouseDown:Ln(dt.onMouseDown,Tt),onMouseUp:Ln(dt.onMouseUp,()=>at(!1)),onMouseEnter:Ln(dt.onMouseEnter,()=>et(!0)),onMouseLeave:Ln(dt.onMouseLeave,()=>et(!1))}},[X,q,e,z,E,W,g,r,i]),Vt=K.useCallback((dt={},St=null)=>({...dt,ref:St,"data-active":$e(X),"data-hover":$e(W),"data-checked":$e(q),"data-focus":$e(z),"data-focus-visible":$e(z&&E),"data-indeterminate":$e(g),"data-disabled":$e(e),"data-invalid":$e(r),"data-readonly":$e(i)}),[X,q,e,z,E,W,g,r,i]),Xt=K.useCallback((dt={},St=null)=>({...C,...dt,ref:Ua(St,Tt=>{Tt&&st(Tt.tagName==="LABEL")}),htmlFor:dt.htmlFor!==void 0?dt.htmlFor:J?a:void 0,onClick:Ln(dt.onClick,()=>{var Tt;J||((Tt=H.current)==null||Tt.click(),requestAnimationFrame(()=>{var Ht;(Ht=H.current)==null||Ht.focus({preventScroll:!0})}))}),"data-disabled":$e(e),"data-checked":$e(q),"data-invalid":$e(r)}),[C,e,q,r,J,a]),lt=K.useCallback((dt={},St=null)=>({...dt,ref:Ua(H,St),type:"checkbox",name:x,value:y,id:a,tabIndex:_,onChange:Ln(dt.onChange,rt),onBlur:Ln(dt.onBlur,L,()=>G(!1)),onFocus:Ln(dt.onFocus,N,()=>G(!0)),onKeyDown:Ln(dt.onKeyDown,gt),onKeyUp:Ln(dt.onKeyUp,Nt),required:s,checked:q,disabled:bt,readOnly:i,"aria-label":M,"aria-labelledby":b,"aria-invalid":S?!!S:r,"aria-describedby":c,"aria-disabled":e,style:CL}),[x,y,a,rt,L,N,gt,Nt,s,q,bt,i,M,b,S,r,c,e,_]),U=K.useCallback((dt={},St=null)=>({...dt,ref:St,onMouseDown:Ln(dt.onMouseDown,PL),"data-disabled":$e(e),"data-checked":$e(q),"data-invalid":$e(r)}),[q,e,r]);return{state:{isInvalid:r,isFocused:z,isChecked:q,isActive:X,isHovered:W,isIndeterminate:g,isDisabled:e,isReadOnly:i,isRequired:s},getRootProps:Xt,getCheckboxProps:Bt,getIndicatorProps:Vt,getInputProps:lt,getLabelProps:U,htmlProps:C}}function PL(n){n.preventDefault(),n.stopPropagation()}const mu=ki(function(t,e){const i=RT("FormLabel",t),s=mf(t),{className:r,children:a,requiredIndicator:o=V.jsx(VT,{}),optionalIndicator:l=null,...c}=s,h=NT(),u=(h==null?void 0:h.getLabelProps(c,e))??{ref:e,...c};return V.jsxs(an.label,{...u,className:ss("chakra-form__label",s.className),__css:{display:"block",textAlign:"start",...i},children:[a,h!=null&&h.isRequired?o:l]})});mu.displayName="FormLabel";const VT=ki(function(t,e){const i=NT(),s=TI();if(!(i!=null&&i.isRequired))return null;const r=ss("chakra-form__required-indicator",t.className);return V.jsx(an.span,{...i==null?void 0:i.getRequiredIndicatorProps(t,e),__css:s.requiredIndicator,className:r})});VT.displayName="RequiredIndicator";var Fi="top",Ms="bottom",ws="right",Ui="left",Wv="auto",xf=[Fi,Ms,ws,Ui],kc="start",ku="end",IL="clippingParents",WT="viewport",Fh="popper",LL="reference",mb=xf.reduce(function(n,t){return n.concat([t+"-"+kc,t+"-"+ku])},[]),jT=[].concat(xf,[Wv]).reduce(function(n,t){return n.concat([t,t+"-"+kc,t+"-"+ku])},[]),DL="beforeRead",NL="read",OL="afterRead",FL="beforeMain",UL="main",kL="afterMain",zL="beforeWrite",BL="write",HL="afterWrite",GL=[DL,NL,OL,FL,UL,kL,zL,BL,HL];function Ar(n){return n?(n.nodeName||"").toLowerCase():null}function ns(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function tl(n){var t=ns(n).Element;return n instanceof t||n instanceof Element}function vs(n){var t=ns(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function jv(n){if(typeof ShadowRoot>"u")return!1;var t=ns(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function VL(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},r=t.elements[e];!vs(r)||!Ar(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(a){var o=s[a];o===!1?r.removeAttribute(a):r.setAttribute(a,o===!0?"":o)}))})}function WL(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],r=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),o=a.reduce(function(l,c){return l[c]="",l},{});!vs(s)||!Ar(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const jL={name:"applyStyles",enabled:!0,phase:"write",fn:VL,effect:WL,requires:["computeStyles"]};function xr(n){return n.split("-")[0]}var Xo=Math.max,Bm=Math.min,zc=Math.round;function Vx(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function XT(){return!/^((?!chrome|android).)*safari/i.test(Vx())}function Bc(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),s=1,r=1;t&&vs(n)&&(s=n.offsetWidth>0&&zc(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&zc(i.height)/n.offsetHeight||1);var a=tl(n)?ns(n):window,o=a.visualViewport,l=!XT()&&e,c=(i.left+(l&&o?o.offsetLeft:0))/s,h=(i.top+(l&&o?o.offsetTop:0))/r,u=i.width/s,p=i.height/r;return{width:u,height:p,top:h,right:c+u,bottom:h+p,left:c,x:c,y:h}}function Xv(n){var t=Bc(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function qT(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&jv(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ra(n){return ns(n).getComputedStyle(n)}function XL(n){return["table","td","th"].indexOf(Ar(n))>=0}function Za(n){return((tl(n)?n.ownerDocument:n.document)||window.document).documentElement}function G0(n){return Ar(n)==="html"?n:n.assignedSlot||n.parentNode||(jv(n)?n.host:null)||Za(n)}function gb(n){return!vs(n)||ra(n).position==="fixed"?null:n.offsetParent}function qL(n){var t=/firefox/i.test(Vx()),e=/Trident/i.test(Vx());if(e&&vs(n)){var i=ra(n);if(i.position==="fixed")return null}var s=G0(n);for(jv(s)&&(s=s.host);vs(s)&&["html","body"].indexOf(Ar(s))<0;){var r=ra(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function vf(n){for(var t=ns(n),e=gb(n);e&&XL(e)&&ra(e).position==="static";)e=gb(e);return e&&(Ar(e)==="html"||Ar(e)==="body"&&ra(e).position==="static")?t:e||qL(n)||t}function qv(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function gu(n,t,e){return Xo(n,Bm(t,e))}function $L(n,t,e){var i=gu(n,t,e);return i>e?e:i}function $T(){return{top:0,right:0,bottom:0,left:0}}function YT(n){return Object.assign({},$T(),n)}function ZT(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var YL=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,YT(typeof t!="number"?t:ZT(t,xf))};function ZL(n){var t,e=n.state,i=n.name,s=n.options,r=e.elements.arrow,a=e.modifiersData.popperOffsets,o=xr(e.placement),l=qv(o),c=[Ui,ws].indexOf(o)>=0,h=c?"height":"width";if(!(!r||!a)){var u=YL(s.padding,e),p=Xv(r),m=l==="y"?Fi:Ui,g=l==="y"?Ms:ws,x=e.rects.reference[h]+e.rects.reference[l]-a[l]-e.rects.popper[h],y=a[l]-e.rects.reference[l],_=vf(r),M=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,b=x/2-y/2,S=u[m],P=M-p[h]-u[g],C=M/2-p[h]/2+b,T=gu(S,C,P),L=l;e.modifiersData[i]=(t={},t[L]=T,t.centerOffset=T-C,t)}}function KL(n){var t=n.state,e=n.options,i=e.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||qT(t.elements.popper,s)&&(t.elements.arrow=s))}const JL={name:"arrow",enabled:!0,phase:"main",fn:ZL,effect:KL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hc(n){return n.split("-")[1]}var QL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tD(n,t){var e=n.x,i=n.y,s=t.devicePixelRatio||1;return{x:zc(e*s)/s||0,y:zc(i*s)/s||0}}function yb(n){var t,e=n.popper,i=n.popperRect,s=n.placement,r=n.variation,a=n.offsets,o=n.position,l=n.gpuAcceleration,c=n.adaptive,h=n.roundOffsets,u=n.isFixed,p=a.x,m=p===void 0?0:p,g=a.y,x=g===void 0?0:g,y=typeof h=="function"?h({x:m,y:x}):{x:m,y:x};m=y.x,x=y.y;var _=a.hasOwnProperty("x"),M=a.hasOwnProperty("y"),b=Ui,S=Fi,P=window;if(c){var C=vf(e),T="clientHeight",L="clientWidth";if(C===ns(e)&&(C=Za(e),ra(C).position!=="static"&&o==="absolute"&&(T="scrollHeight",L="scrollWidth")),C=C,s===Fi||(s===Ui||s===ws)&&r===ku){S=Ms;var N=u&&C===P&&P.visualViewport?P.visualViewport.height:C[T];x-=N-i.height,x*=l?1:-1}if(s===Ui||(s===Fi||s===Ms)&&r===ku){b=ws;var E=u&&C===P&&P.visualViewport?P.visualViewport.width:C[L];m-=E-i.width,m*=l?1:-1}}var R=Object.assign({position:o},c&&QL),z=h===!0?tD({x:m,y:x},ns(e)):{x:m,y:x};if(m=z.x,x=z.y,l){var G;return Object.assign({},R,(G={},G[S]=M?"0":"",G[b]=_?"0":"",G.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+x+"px)":"translate3d("+m+"px, "+x+"px, 0)",G))}return Object.assign({},R,(t={},t[S]=M?x+"px":"",t[b]=_?m+"px":"",t.transform="",t))}function eD(n){var t=n.state,e=n.options,i=e.gpuAcceleration,s=i===void 0?!0:i,r=e.adaptive,a=r===void 0?!0:r,o=e.roundOffsets,l=o===void 0?!0:o,c={placement:xr(t.placement),variation:Hc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yb(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yb(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nD={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eD,data:{}};var $d={passive:!0};function iD(n){var t=n.state,e=n.instance,i=n.options,s=i.scroll,r=s===void 0?!0:s,a=i.resize,o=a===void 0?!0:a,l=ns(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(h){h.addEventListener("scroll",e.update,$d)}),o&&l.addEventListener("resize",e.update,$d),function(){r&&c.forEach(function(h){h.removeEventListener("scroll",e.update,$d)}),o&&l.removeEventListener("resize",e.update,$d)}}const sD={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iD,data:{}};var rD={left:"right",right:"left",bottom:"top",top:"bottom"};function wm(n){return n.replace(/left|right|bottom|top/g,function(t){return rD[t]})}var aD={start:"end",end:"start"};function _b(n){return n.replace(/start|end/g,function(t){return aD[t]})}function $v(n){var t=ns(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function Yv(n){return Bc(Za(n)).left+$v(n).scrollLeft}function oD(n,t){var e=ns(n),i=Za(n),s=e.visualViewport,r=i.clientWidth,a=i.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=XT();(c||!c&&t==="fixed")&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+Yv(n),y:l}}function lD(n){var t,e=Za(n),i=$v(n),s=(t=n.ownerDocument)==null?void 0:t.body,r=Xo(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Xo(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-i.scrollLeft+Yv(n),l=-i.scrollTop;return ra(s||e).direction==="rtl"&&(o+=Xo(e.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}function Zv(n){var t=ra(n),e=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+i)}function KT(n){return["html","body","#document"].indexOf(Ar(n))>=0?n.ownerDocument.body:vs(n)&&Zv(n)?n:KT(G0(n))}function yu(n,t){var e;t===void 0&&(t=[]);var i=KT(n),s=i===((e=n.ownerDocument)==null?void 0:e.body),r=ns(i),a=s?[r].concat(r.visualViewport||[],Zv(i)?i:[]):i,o=t.concat(a);return s?o:o.concat(yu(G0(a)))}function Wx(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function cD(n,t){var e=Bc(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function xb(n,t,e){return t===WT?Wx(oD(n,e)):tl(t)?cD(t,e):Wx(lD(Za(n)))}function hD(n){var t=yu(G0(n)),e=["absolute","fixed"].indexOf(ra(n).position)>=0,i=e&&vs(n)?vf(n):n;return tl(i)?t.filter(function(s){return tl(s)&&qT(s,i)&&Ar(s)!=="body"}):[]}function uD(n,t,e,i){var s=t==="clippingParents"?hD(n):[].concat(t),r=[].concat(s,[e]),a=r[0],o=r.reduce(function(l,c){var h=xb(n,c,i);return l.top=Xo(h.top,l.top),l.right=Bm(h.right,l.right),l.bottom=Bm(h.bottom,l.bottom),l.left=Xo(h.left,l.left),l},xb(n,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function JT(n){var t=n.reference,e=n.element,i=n.placement,s=i?xr(i):null,r=i?Hc(i):null,a=t.x+t.width/2-e.width/2,o=t.y+t.height/2-e.height/2,l;switch(s){case Fi:l={x:a,y:t.y-e.height};break;case Ms:l={x:a,y:t.y+t.height};break;case ws:l={x:t.x+t.width,y:o};break;case Ui:l={x:t.x-e.width,y:o};break;default:l={x:t.x,y:t.y}}var c=s?qv(s):null;if(c!=null){var h=c==="y"?"height":"width";switch(r){case kc:l[c]=l[c]-(t[h]/2-e[h]/2);break;case ku:l[c]=l[c]+(t[h]/2-e[h]/2);break}}return l}function zu(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=i===void 0?n.placement:i,r=e.strategy,a=r===void 0?n.strategy:r,o=e.boundary,l=o===void 0?IL:o,c=e.rootBoundary,h=c===void 0?WT:c,u=e.elementContext,p=u===void 0?Fh:u,m=e.altBoundary,g=m===void 0?!1:m,x=e.padding,y=x===void 0?0:x,_=YT(typeof y!="number"?y:ZT(y,xf)),M=p===Fh?LL:Fh,b=n.rects.popper,S=n.elements[g?M:p],P=uD(tl(S)?S:S.contextElement||Za(n.elements.popper),l,h,a),C=Bc(n.elements.reference),T=JT({reference:C,element:b,strategy:"absolute",placement:s}),L=Wx(Object.assign({},b,T)),N=p===Fh?L:C,E={top:P.top-N.top+_.top,bottom:N.bottom-P.bottom+_.bottom,left:P.left-N.left+_.left,right:N.right-P.right+_.right},R=n.modifiersData.offset;if(p===Fh&&R){var z=R[s];Object.keys(E).forEach(function(G){var W=[ws,Ms].indexOf(G)>=0?1:-1,et=[Fi,Ms].indexOf(G)>=0?"y":"x";E[G]+=z[et]*W})}return E}function fD(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=e.boundary,r=e.rootBoundary,a=e.padding,o=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?jT:l,h=Hc(i),u=h?o?mb:mb.filter(function(g){return Hc(g)===h}):xf,p=u.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=u);var m=p.reduce(function(g,x){return g[x]=zu(n,{placement:x,boundary:s,rootBoundary:r,padding:a})[xr(x)],g},{});return Object.keys(m).sort(function(g,x){return m[g]-m[x]})}function dD(n){if(xr(n)===Wv)return[];var t=wm(n);return[_b(n),t,_b(t)]}function pD(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var s=e.mainAxis,r=s===void 0?!0:s,a=e.altAxis,o=a===void 0?!0:a,l=e.fallbackPlacements,c=e.padding,h=e.boundary,u=e.rootBoundary,p=e.altBoundary,m=e.flipVariations,g=m===void 0?!0:m,x=e.allowedAutoPlacements,y=t.options.placement,_=xr(y),M=_===y,b=l||(M||!g?[wm(y)]:dD(y)),S=[y].concat(b).reduce(function(q,rt){return q.concat(xr(rt)===Wv?fD(t,{placement:rt,boundary:h,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:x}):rt)},[]),P=t.rects.reference,C=t.rects.popper,T=new Map,L=!0,N=S[0],E=0;E=0,et=W?"width":"height",X=zu(t,{placement:R,boundary:h,rootBoundary:u,altBoundary:p,padding:c}),at=W?G?ws:Ui:G?Ms:Fi;P[et]>C[et]&&(at=wm(at));var H=wm(at),J=[];if(r&&J.push(X[z]<=0),o&&J.push(X[at]<=0,X[H]<=0),J.every(function(q){return q})){N=R,L=!1;break}T.set(R,J)}if(L)for(var st=g?3:1,Y=function(rt){var bt=S.find(function(gt){var Nt=T.get(gt);if(Nt)return Nt.slice(0,rt).every(function(Bt){return Bt})});if(bt)return N=bt,"break"},ct=st;ct>0;ct--){var mt=Y(ct);if(mt==="break")break}t.placement!==N&&(t.modifiersData[i]._skip=!0,t.placement=N,t.reset=!0)}}const mD={name:"flip",enabled:!0,phase:"main",fn:pD,requiresIfExists:["offset"],data:{_skip:!1}};function vb(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Mb(n){return[Fi,ws,Ms,Ui].some(function(t){return n[t]>=0})}function gD(n){var t=n.state,e=n.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=zu(t,{elementContext:"reference"}),o=zu(t,{altBoundary:!0}),l=vb(a,i),c=vb(o,s,r),h=Mb(l),u=Mb(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}const yD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gD};function _D(n,t,e){var i=xr(n),s=[Ui,Fi].indexOf(i)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[Ui,ws].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}function xD(n){var t=n.state,e=n.options,i=n.name,s=e.offset,r=s===void 0?[0,0]:s,a=jT.reduce(function(h,u){return h[u]=_D(u,t.rects,r),h},{}),o=a[t.placement],l=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=a}const vD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xD};function MD(n){var t=n.state,e=n.name;t.modifiersData[e]=JT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const wD={name:"popperOffsets",enabled:!0,phase:"read",fn:MD,data:{}};function bD(n){return n==="x"?"y":"x"}function SD(n){var t=n.state,e=n.options,i=n.name,s=e.mainAxis,r=s===void 0?!0:s,a=e.altAxis,o=a===void 0?!1:a,l=e.boundary,c=e.rootBoundary,h=e.altBoundary,u=e.padding,p=e.tether,m=p===void 0?!0:p,g=e.tetherOffset,x=g===void 0?0:g,y=zu(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),_=xr(t.placement),M=Hc(t.placement),b=!M,S=qv(_),P=bD(S),C=t.modifiersData.popperOffsets,T=t.rects.reference,L=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(C){if(r){var G,W=S==="y"?Fi:Ui,et=S==="y"?Ms:ws,X=S==="y"?"height":"width",at=C[S],H=at+y[W],J=at-y[et],st=m?-L[X]/2:0,Y=M===kc?T[X]:L[X],ct=M===kc?-L[X]:-T[X],mt=t.elements.arrow,q=m&&mt?Xv(mt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$T(),bt=rt[W],gt=rt[et],Nt=gu(0,T[X],q[X]),Bt=b?T[X]/2-st-Nt-bt-E.mainAxis:Y-Nt-bt-E.mainAxis,Vt=b?-T[X]/2+st+Nt+gt+E.mainAxis:ct+Nt+gt+E.mainAxis,Xt=t.elements.arrow&&vf(t.elements.arrow),lt=Xt?S==="y"?Xt.clientTop||0:Xt.clientLeft||0:0,U=(G=R==null?void 0:R[S])!=null?G:0,Ct=at+Bt-U-lt,dt=at+Vt-U,St=gu(m?Bm(H,Ct):H,at,m?Xo(J,dt):J);C[S]=St,z[S]=St-at}if(o){var Tt,Ht=S==="x"?Fi:Ui,Ft=S==="x"?Ms:ws,k=C[P],D=P==="y"?"height":"width",it=k+y[Ht],vt=k-y[Ft],Et=[Fi,Ui].indexOf(_)!==-1,wt=(Tt=R==null?void 0:R[P])!=null?Tt:0,ee=Et?it:k-T[D]-L[D]-wt+E.altAxis,Ut=Et?k+T[D]+L[D]-wt-E.altAxis:vt,qt=m&&Et?$L(ee,k,Ut):gu(m?ee:it,k,m?Ut:vt);C[P]=qt,z[P]=qt-k}t.modifiersData[i]=z}}const ED={name:"preventOverflow",enabled:!0,phase:"main",fn:SD,requiresIfExists:["offset"]};function AD(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function TD(n){return n===ns(n)||!vs(n)?$v(n):AD(n)}function CD(n){var t=n.getBoundingClientRect(),e=zc(t.width)/n.offsetWidth||1,i=zc(t.height)/n.offsetHeight||1;return e!==1||i!==1}function RD(n,t,e){e===void 0&&(e=!1);var i=vs(t),s=vs(t)&&CD(t),r=Za(t),a=Bc(n,s,e),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((Ar(t)!=="body"||Zv(r))&&(o=TD(t)),vs(t)?(l=Bc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Yv(r))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function PD(n){var t=new Map,e=new Set,i=[];n.forEach(function(r){t.set(r.name,r)});function s(r){e.add(r.name);var a=[].concat(r.requires||[],r.requiresIfExists||[]);a.forEach(function(o){if(!e.has(o)){var l=t.get(o);l&&s(l)}}),i.push(r)}return n.forEach(function(r){e.has(r.name)||s(r)}),i}function ID(n){var t=PD(n);return GL.reduce(function(e,i){return e.concat(t.filter(function(s){return s.phase===i}))},[])}function LD(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function DD(n){var t=n.reduce(function(e,i){var s=e[i.name];return e[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var wb={placement:"bottom",modifiers:[],strategy:"absolute"};function bb(){for(var n=arguments.length,t=new Array(n),e=0;e({var:n,varRef:t?`var(${n}, ${t})`:`var(${n})`}),$n={arrowShadowColor:Nl("--popper-arrow-shadow-color"),arrowSize:Nl("--popper-arrow-size","8px"),arrowSizeHalf:Nl("--popper-arrow-size-half"),arrowBg:Nl("--popper-arrow-bg"),transformOrigin:Nl("--popper-transform-origin"),arrowOffset:Nl("--popper-arrow-offset")};function UD(n){if(n.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(n.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(n.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(n.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const kD={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},zD=n=>kD[n],Sb={scroll:!0,resize:!0};function BD(n){let t;return typeof n=="object"?t={enabled:!0,options:{...Sb,...n}}:t={enabled:n,options:Sb},t}const HD={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},effect:({state:n})=>()=>{const t=n.elements.reference;n.elements.popper.style.width=`${t.offsetWidth}px`}},GD={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:n})=>{Eb(n)},effect:({state:n})=>()=>{Eb(n)}},Eb=n=>{n.elements.popper.style.setProperty($n.transformOrigin.var,zD(n.placement))},VD={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:n})=>{WD(n)}},WD=n=>{var e;if(!n.placement)return;const t=jD(n.placement);if((e=n.elements)!=null&&e.arrow&&t){Object.assign(n.elements.arrow.style,{[t.property]:t.value,width:$n.arrowSize.varRef,height:$n.arrowSize.varRef,zIndex:-1});const i={[$n.arrowSizeHalf.var]:`calc(${$n.arrowSize.varRef} / 2 - 1px)`,[$n.arrowOffset.var]:`calc(${$n.arrowSizeHalf.varRef} * -1)`};for(const s in i)n.elements.arrow.style.setProperty(s,i[s])}},jD=n=>{if(n.startsWith("top"))return{property:"bottom",value:$n.arrowOffset.varRef};if(n.startsWith("bottom"))return{property:"top",value:$n.arrowOffset.varRef};if(n.startsWith("left"))return{property:"right",value:$n.arrowOffset.varRef};if(n.startsWith("right"))return{property:"left",value:$n.arrowOffset.varRef}},XD={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:n})=>{Ab(n)},effect:({state:n})=>()=>{Ab(n)}},Ab=n=>{if(!n.elements.arrow)return;const t=n.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const e=UD(n.placement);e&&t.style.setProperty("--popper-arrow-default-shadow",e),Object.assign(t.style,{transform:"rotate(45deg)",background:$n.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},qD={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},$D={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function YD(n,t="ltr"){var i;const e=((i=qD[n])==null?void 0:i[t])||n;return t==="ltr"?e:$D[n]??e}function ZD(n={}){const{enabled:t=!0,modifiers:e,placement:i="bottom",strategy:s="absolute",arrowPadding:r=8,eventListeners:a=!0,offset:o,gutter:l=8,flip:c=!0,boundary:h="clippingParents",preventOverflow:u=!0,matchWidth:p,direction:m="ltr"}=n,g=K.useRef(null),x=K.useRef(null),y=K.useRef(null),_=YD(i,m),M=K.useRef(()=>{}),b=K.useCallback(()=>{var E;!t||!g.current||!x.current||((E=M.current)==null||E.call(M),y.current=FD(g.current,x.current,{placement:_,modifiers:[XD,VD,GD,{...HD,enabled:!!p},{name:"eventListeners",...BD(a)},{name:"arrow",options:{padding:r}},{name:"offset",options:{offset:o??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!u,options:{boundary:h}},...e??[]],strategy:s}),y.current.forceUpdate(),M.current=y.current.destroy)},[_,t,e,p,a,r,o,l,c,u,h,s]);K.useEffect(()=>()=>{var E;!g.current&&!x.current&&((E=y.current)==null||E.destroy(),y.current=null)},[]);const S=K.useCallback(E=>{g.current=E,b()},[b]),P=K.useCallback((E={},R=null)=>({...E,ref:Ua(S,R)}),[S]),C=K.useCallback(E=>{x.current=E,b()},[b]),T=K.useCallback((E={},R=null)=>({...E,ref:Ua(C,R),style:{...E.style,position:s,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[s,C,p]),L=K.useCallback((E={},R=null)=>{const{size:z,shadowColor:G,bg:W,style:et,...X}=E;return{...X,ref:R,"data-popper-arrow":"",style:KD(E)}},[]),N=K.useCallback((E={},R=null)=>({...E,ref:R,"data-popper-arrow-inner":""}),[]);return{update(){var E;(E=y.current)==null||E.update()},forceUpdate(){var E;(E=y.current)==null||E.forceUpdate()},transformOrigin:$n.transformOrigin.varRef,referenceRef:S,popperRef:C,getPopperProps:T,getArrowProps:L,getArrowInnerProps:N,getReferenceProps:P}}function KD(n){const{size:t,shadowColor:e,bg:i,style:s}=n,r={...s,position:"absolute"};return t&&(r["--popper-arrow-size"]=t),e&&(r["--popper-arrow-shadow-color"]=e),i&&(r["--popper-arrow-bg"]=i),r}const[JD,QD]=k0(),tN={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function eN(n,t){var e;if(n)return((e=tN[n])==null?void 0:e[t])??n}function nN(n){var c;const{isOpen:t,onClose:e,placement:i="right",children:s,...r}=n,a=Fv(),o=(c=a.components)==null?void 0:c.Drawer,l=eN(i,a.direction);return V.jsx(JD,{value:{placement:l},children:V.jsx(kv,{isOpen:t,onClose:e,styleConfig:o,...r,children:s})})}const Tb={exit:{duration:.15,ease:au.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},iN={exit:({direction:n,transition:t,transitionEnd:e,delay:i})=>{const{exit:s}=kx({direction:n});return{...s,transition:(t==null?void 0:t.exit)??km.exit(Tb.exit,i),transitionEnd:e==null?void 0:e.exit}},enter:({direction:n,transitionEnd:t,transition:e,delay:i})=>{const{enter:s}=kx({direction:n});return{...s,transition:(e==null?void 0:e.enter)??km.enter(Tb.enter,i),transitionEnd:t==null?void 0:t.enter}}},QT=K.forwardRef(function(t,e){const{direction:i="right",style:s,unmountOnExit:r,in:a,className:o,transition:l,transitionEnd:c,delay:h,motionProps:u,animatePresenceProps:p,...m}=t,g=kx({direction:i}),x=Object.assign({position:"fixed"},g.position,s),y=r?a&&r:!0,_=a||r?"enter":"exit",M={transitionEnd:c,transition:l,direction:i,delay:h};return V.jsx(Nv,{...p,custom:M,children:y&&V.jsx(Ov.div,{...m,ref:e,initial:"exit",className:ss("chakra-slide",o),animate:_,exit:"exit",custom:M,variants:iN,style:x,...u})})});QT.displayName="Slide";const sN=an(QT),t2=ki((n,t)=>{const{className:e,children:i,motionProps:s,containerProps:r,...a}=n,{getDialogProps:o,getDialogContainerProps:l,isOpen:c}=MI(),h=o(a,t),u=l(r),p=ss("chakra-modal__content",e),m=wI(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{placement:y}=QD();return V.jsx(bI,{children:V.jsx(an.div,{...u,className:"chakra-modal__content-container",__css:x,children:V.jsx(sN,{motionProps:s,direction:y,in:c,className:p,...h,__css:g,children:i})})})});t2.displayName="DrawerContent";function rN(n,t,e){return(n-t)*100/(e-t)}z0({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});z0({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const aN=z0({"0%":{left:"-40%"},"100%":{left:"100%"}}),oN=z0({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function lN(n){const{value:t=0,min:e,max:i,valueText:s,getValueText:r,isIndeterminate:a,role:o="progressbar"}=n,l=rN(t,e,i);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":i,"aria-valuemin":e,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof r=="function"?r(t,l):s})(),role:o},percent:l,value:t}}const[cN,hN]=k0({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),uN=ki((n,t)=>{const{min:e,max:i,value:s,isIndeterminate:r,role:a,...o}=n,l=lN({value:s,min:e,max:i,isIndeterminate:r,role:a}),h={height:"100%",...hN().filledTrack};return V.jsx(an.div,{ref:t,style:{width:`${l.percent}%`,...o.style},...l.bind,...o,__css:h})}),e2=ki((n,t)=>{var T;const{value:e,min:i=0,max:s=100,hasStripe:r,isAnimated:a,children:o,borderRadius:l,isIndeterminate:c,"aria-label":h,"aria-labelledby":u,"aria-valuetext":p,title:m,role:g,...x}=mf(n),y=Uv("Progress",n),_=l??((T=y.track)==null?void 0:T.borderRadius),M={animation:`${oN} 1s linear infinite`},P={...!c&&r&&a&&M,...c&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${aN} 1s ease infinite normal none running`}},C={overflow:"hidden",position:"relative",...y.track};return V.jsx(an.div,{ref:t,borderRadius:_,__css:C,...x,children:V.jsxs(cN,{value:y,children:[V.jsx(uN,{"aria-label":h,"aria-labelledby":u,"aria-valuetext":p,min:i,max:s,value:e,isIndeterminate:c,css:P,borderRadius:_,title:m,role:g}),o]})})});e2.displayName="Progress";function Yd(n){const{orientation:t,vertical:e,horizontal:i}=n;return t==="vertical"?e:i}const bm={width:0,height:0},Zd=n=>n||bm;function fN(n){const{orientation:t,thumbPercents:e,thumbRects:i,isReversed:s}=n,r=x=>{const y=i[x]??bm;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...Yd({orientation:t,vertical:{bottom:`calc(${e[x]}% - ${y.height/2}px)`},horizontal:{left:`calc(${e[x]}% - ${y.width/2}px)`}})}},a=t==="vertical"?i.reduce((x,y)=>Zd(x).height>Zd(y).height?x:y,bm):i.reduce((x,y)=>Zd(x).width>Zd(y).width?x:y,bm),o={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...Yd({orientation:t,vertical:a?{paddingLeft:a.width/2,paddingRight:a.width/2}:{},horizontal:a?{paddingTop:a.height/2,paddingBottom:a.height/2}:{}})},l={position:"absolute",...Yd({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},c=e.length===1,h=[0,s?100-e[0]:e[0]],u=c?h:e;let p=u[0];!c&&s&&(p=100-p);const m=Math.abs(u[u.length-1]-u[0]),g={...l,...Yd({orientation:t,vertical:s?{height:`${m}%`,top:`${p}%`}:{height:`${m}%`,bottom:`${p}%`},horizontal:s?{width:`${m}%`,right:`${p}%`}:{width:`${m}%`,left:`${p}%`}})};return{trackStyle:l,innerTrackStyle:g,rootStyle:o,getThumbStyle:r}}function dN(n){const{isReversed:t,direction:e,orientation:i}=n;return e==="ltr"||i==="vertical"?t:!t}function pN(n){const{min:t=0,max:e=100,onChange:i,value:s,defaultValue:r,isReversed:a,direction:o="ltr",orientation:l="horizontal",id:c,isDisabled:h,isReadOnly:u,onChangeStart:p,onChangeEnd:m,step:g=1,getAriaValueText:x,"aria-valuetext":y,"aria-label":_,"aria-labelledby":M,name:b,focusThumbOnChange:S=!0,...P}=n,C=jo(p),T=jo(m),L=jo(x),N=dN({isReversed:a,direction:o,orientation:l}),[E,R]=cI({value:s,defaultValue:r??gN(t,e),onChange:i}),[z,G]=K.useState(!1),[W,et]=K.useState(!1),X=!(h||u),at=(e-t)/10,H=g||(e-t)/100,J=Xy(E,t,e),st=e-J+t,ct=ab(N?st:J,t,e),mt=l==="vertical",q=kT({min:t,max:e,step:g,isDisabled:h,value:J,isInteractive:X,isReversed:N,isVertical:mt,eventSource:null,focusThumbOnChange:S,orientation:l}),rt=K.useRef(null),bt=K.useRef(null),gt=K.useRef(null),Nt=K.useId(),Bt=c??Nt,[Vt,Xt]=[`slider-thumb-${Bt}`,`slider-track-${Bt}`],lt=K.useCallback(yt=>{var ft;if(!rt.current)return;const It=q.current;It.eventSource="pointer";const oe=rt.current.getBoundingClientRect(),{clientX:Wt,clientY:$}=((ft=yt.touches)==null?void 0:ft[0])??yt,Mt=mt?oe.bottom-$:Wt-oe.left,Gt=mt?oe.height:oe.width;let j=Mt/Gt;N&&(j=1-j);let Dt=jI(j,It.min,It.max);return It.step&&(Dt=parseFloat(ob(Dt,It.min,It.step))),Dt=Xy(Dt,It.min,It.max),Dt},[mt,N,q]),U=K.useCallback(yt=>{const It=q.current;It.isInteractive&&(yt=parseFloat(ob(yt,It.min,H)),yt=Xy(yt,It.min,It.max),R(yt))},[H,R,q]),Ct=K.useMemo(()=>({stepUp(yt=H){const It=N?J-yt:J+yt;U(It)},stepDown(yt=H){const It=N?J+yt:J-yt;U(It)},reset(){U(r||0)},stepTo(yt){U(yt)}}),[U,N,J,H,r]),dt=K.useCallback(yt=>{const It=q.current,Wt={ArrowRight:()=>Ct.stepUp(),ArrowUp:()=>Ct.stepUp(),ArrowLeft:()=>Ct.stepDown(),ArrowDown:()=>Ct.stepDown(),PageUp:()=>Ct.stepUp(at),PageDown:()=>Ct.stepDown(at),Home:()=>U(It.min),End:()=>U(It.max)}[yt.key];Wt&&(yt.preventDefault(),yt.stopPropagation(),Wt(yt),It.eventSource="keyboard")},[Ct,U,at,q]),St=(L==null?void 0:L(J))??y,Tt=tL(bt),{getThumbStyle:Ht,rootStyle:Ft,trackStyle:k,innerTrackStyle:D}=K.useMemo(()=>{const yt=q.current,It=Tt??{width:0,height:0};return fN({isReversed:N,orientation:yt.orientation,thumbRects:[It],thumbPercents:[ct]})},[N,Tt,ct,q]),it=K.useCallback(()=>{q.current.focusThumbOnChange&&setTimeout(()=>{var It;return(It=bt.current)==null?void 0:It.focus()})},[q]);CT(()=>{const yt=q.current;it(),yt.eventSource==="keyboard"&&(T==null||T(yt.value))},[J,T]);function vt(yt){const It=lt(yt);It!=null&&It!==q.current.value&&R(It)}mL(gt,{onPanSessionStart(yt){const It=q.current;It.isInteractive&&(G(!0),it(),vt(yt),C==null||C(It.value))},onPanSessionEnd(){const yt=q.current;yt.isInteractive&&(G(!1),T==null||T(yt.value))},onPan(yt){q.current.isInteractive&&vt(yt)}});const Et=K.useCallback((yt={},It=null)=>({...yt,...P,ref:Ua(It,gt),tabIndex:-1,"aria-disabled":Vy(h),"data-focused":$e(W),style:{...yt.style,...Ft}}),[P,h,W,Ft]),wt=K.useCallback((yt={},It=null)=>({...yt,ref:Ua(It,rt),id:Xt,"data-disabled":$e(h),style:{...yt.style,...k}}),[h,Xt,k]),ee=K.useCallback((yt={},It=null)=>({...yt,ref:It,style:{...yt.style,...D}}),[D]),Ut=K.useCallback((yt={},It=null)=>({...yt,ref:Ua(It,bt),role:"slider",tabIndex:X?0:void 0,id:Vt,"data-active":$e(z),"aria-valuetext":St,"aria-valuemin":t,"aria-valuemax":e,"aria-valuenow":J,"aria-orientation":l,"aria-disabled":Vy(h),"aria-readonly":Vy(u),"aria-label":_,"aria-labelledby":_?void 0:M,style:{...yt.style,...Ht(0)},onKeyDown:Ln(yt.onKeyDown,dt),onFocus:Ln(yt.onFocus,()=>et(!0)),onBlur:Ln(yt.onBlur,()=>et(!1))}),[X,Vt,z,St,t,e,J,l,h,u,_,M,Ht,dt]),qt=K.useCallback((yt,It=null)=>{const oe=!(yt.valuee),Wt=J>=yt.value,$=ab(yt.value,t,e),Mt={position:"absolute",pointerEvents:"none",...mN({orientation:l,vertical:{bottom:N?`${100-$}%`:`${$}%`},horizontal:{left:N?`${100-$}%`:`${$}%`}})};return{...yt,ref:It,role:"presentation","aria-hidden":!0,"data-disabled":$e(h),"data-invalid":$e(!oe),"data-highlighted":$e(Wt),style:{...yt.style,...Mt}}},[h,N,e,t,l,J]),Te=K.useCallback((yt={},It=null)=>({...yt,ref:It,type:"hidden",value:J,name:b}),[b,J]);return{state:{value:J,isFocused:W,isDragging:z},actions:Ct,getRootProps:Et,getTrackProps:wt,getInnerTrackProps:ee,getThumbProps:Ut,getMarkerProps:qt,getInputProps:Te}}function mN(n){const{orientation:t,vertical:e,horizontal:i}=n;return t==="vertical"?e:i}function gN(n,t){return t"}),[_N,W0]=k0({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),n2=ki((n,t)=>{const e={...n,orientation:(n==null?void 0:n.orientation)??"horizontal"},i=Uv("Slider",e),s=mf(e),{direction:r}=Fv();s.direction=r;const{getInputProps:a,getRootProps:o,...l}=pN(s),c=o(),h=a({},t);return V.jsx(yN,{value:l,children:V.jsx(_N,{value:i,children:V.jsxs(an.div,{...c,className:ss("chakra-slider",e.className),__css:i.container,children:[e.children,V.jsx("input",{...h})]})})})});n2.displayName="Slider";const i2=ki((n,t)=>{const{getThumbProps:e}=V0(),i=W0(),s=e(n,t);return V.jsx(an.div,{...s,className:ss("chakra-slider__thumb",n.className),__css:i.thumb})});i2.displayName="SliderThumb";const s2=ki((n,t)=>{const{getTrackProps:e}=V0(),i=W0(),s=e(n,t);return V.jsx(an.div,{...s,className:ss("chakra-slider__track",n.className),__css:i.track})});s2.displayName="SliderTrack";const r2=ki((n,t)=>{const{getInnerTrackProps:e}=V0(),i=W0(),s=e(n,t);return V.jsx(an.div,{...s,className:ss("chakra-slider__filled-track",n.className),__css:i.filledTrack})});r2.displayName="SliderFilledTrack";const xN=ki((n,t)=>{const{getMarkerProps:e}=V0(),i=W0(),s=e(n,t);return V.jsx(an.div,{...s,className:ss("chakra-slider__marker",n.className),__css:i.mark})});xN.displayName="SliderMark";const a2=ki(function(t,e){const i=Uv("Switch",t),{spacing:s="0.5rem",children:r,...a}=mf(t),{getIndicatorProps:o,getInputProps:l,getCheckboxProps:c,getRootProps:h,getLabelProps:u}=RL(a),p=K.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),m=K.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),g=K.useMemo(()=>({userSelect:"none",marginStart:s,...i.label}),[s,i.label]);return V.jsxs(an.label,{...h(),className:ss("chakra-switch",t.className),__css:p,children:[V.jsx("input",{className:"chakra-switch__input",...l({},e)}),V.jsx(an.span,{...c(),className:"chakra-switch__track",__css:m,children:V.jsx(an.span,{__css:i.thumb,className:"chakra-switch__thumb",...o()})}),r&&V.jsx(an.span,{className:"chakra-switch__label",...u(),__css:g,children:r})]})});a2.displayName="Switch";const vN={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},jx=n=>{var t;return((t=n.current)==null?void 0:t.ownerDocument)||document},Sm=n=>{var t,e;return((e=(t=n.current)==null?void 0:t.ownerDocument)==null?void 0:e.defaultView)||window};function MN(n={}){const{openDelay:t=0,closeDelay:e=0,closeOnClick:i=!0,closeOnMouseDown:s,closeOnScroll:r,closeOnPointerDown:a=s,closeOnEsc:o=!0,onOpen:l,onClose:c,placement:h,id:u,isOpen:p,defaultIsOpen:m,arrowSize:g=10,arrowShadowColor:x,arrowPadding:y,modifiers:_,isDisabled:M,gutter:b,offset:S,direction:P,...C}=n,{isOpen:T,onOpen:L,onClose:N}=Jo({isOpen:p,defaultIsOpen:m,onOpen:l,onClose:c}),{referenceRef:E,getPopperProps:R,getArrowInnerProps:z,getArrowProps:G}=ZD({enabled:T,placement:h,arrowPadding:y,modifiers:_,gutter:b,offset:S,direction:P}),W=K.useId(),X=`tooltip-${u??W}`,at=K.useRef(null),H=K.useRef(),J=K.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),st=K.useRef(),Y=K.useCallback(()=>{st.current&&(clearTimeout(st.current),st.current=void 0)},[]),ct=K.useCallback(()=>{Y(),N()},[N,Y]),mt=wN(at,ct),q=K.useCallback(()=>{if(!M&&!H.current){T&&mt();const lt=Sm(at);H.current=lt.setTimeout(L,t)}},[mt,M,T,L,t]),rt=K.useCallback(()=>{J();const lt=Sm(at);st.current=lt.setTimeout(ct,e)},[e,ct,J]),bt=K.useCallback(()=>{T&&i&&rt()},[i,rt,T]),gt=K.useCallback(()=>{T&&a&&rt()},[a,rt,T]),Nt=K.useCallback(lt=>{T&<.key==="Escape"&&rt()},[T,rt]);qy(()=>jx(at),"keydown",o?Nt:void 0),qy(()=>{if(!r)return null;const lt=at.current;if(!lt)return null;const U=UT(lt);return U.localName==="body"?Sm(at):U},"scroll",()=>{T&&r&&ct()},{passive:!0,capture:!0}),K.useEffect(()=>{M&&(J(),T&&N())},[M,T,N,J]),K.useEffect(()=>()=>{J(),Y()},[J,Y]),qy(()=>at.current,"pointerleave",rt);const Bt=K.useCallback((lt={},U=null)=>({...lt,ref:Ua(at,U,E),onPointerEnter:Ln(lt.onPointerEnter,dt=>{dt.pointerType!=="touch"&&q()}),onClick:Ln(lt.onClick,bt),onPointerDown:Ln(lt.onPointerDown,gt),onFocus:Ln(lt.onFocus,q),onBlur:Ln(lt.onBlur,rt),"aria-describedby":T?X:void 0}),[q,rt,gt,T,X,bt,E]),Vt=K.useCallback((lt={},U=null)=>R({...lt,style:{...lt.style,[$n.arrowSize.var]:g?`${g}px`:void 0,[$n.arrowShadowColor.var]:x}},U),[R,g,x]),Xt=K.useCallback((lt={},U=null)=>{const Ct={...lt.style,position:"relative",transformOrigin:$n.transformOrigin.varRef};return{ref:U,...C,...lt,id:X,role:"tooltip",style:Ct}},[C,X]);return{isOpen:T,show:q,hide:rt,getTriggerProps:Bt,getTooltipProps:Xt,getTooltipPositionerProps:Vt,getArrowProps:G,getArrowInnerProps:z}}const Zy="chakra-ui:close-tooltip";function wN(n,t){return K.useEffect(()=>{const e=jx(n);return e.addEventListener(Zy,t),()=>e.removeEventListener(Zy,t)},[t,n]),()=>{const e=jx(n),i=Sm(n);e.dispatchEvent(new i.CustomEvent(Zy))}}const bN=an(Ov.div),Mf=ki((n,t)=>{const e=RT("Tooltip",n),i=mf(n),s=Fv(),{children:r,label:a,shouldWrapChildren:o,"aria-label":l,hasArrow:c,bg:h,portalProps:u,background:p,backgroundColor:m,bgColor:g,motionProps:x,animatePresenceProps:y,..._}=i,M=p??m??h??g;if(M){e.bg=M;const E=gL(s,"colors",M);e[$n.arrowBg.var]=E}const b=MN({..._,direction:s.direction}),S=typeof r=="string"||o;let P;if(S)P=V.jsx(an.span,{display:"inline-block",tabIndex:0,...b.getTriggerProps(),children:r});else{const E=K.Children.only(r);P=K.cloneElement(E,b.getTriggerProps(E.props,E.ref))}const C=!!l,T=b.getTooltipProps({},t),L=C?TT(T,["role","id"]):T,N=hI(T,["role","id"]);return a?V.jsxs(V.Fragment,{children:[P,V.jsx(Nv,{...y,children:b.isOpen&&V.jsx(uI,{...u,children:V.jsx(an.div,{...b.getTooltipPositionerProps(),__css:{zIndex:e.zIndex,pointerEvents:"none"},children:V.jsxs(bN,{variants:vN,initial:"exit",animate:"enter",exit:"exit",...x,...L,__css:e,children:[a,C&&V.jsx(an.span,{srOnly:!0,...N,children:l}),c&&V.jsx(an.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:V.jsx(an.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:e.bg}})})]})})})})]}):V.jsx(V.Fragment,{children:r})});Mf.displayName="Tooltip";const Kv=ki(function(t,e){const{spacing:i="0.5rem",spacingX:s,spacingY:r,children:a,justify:o,direction:l,align:c,className:h,shouldWrapChildren:u,...p}=t,m=K.useMemo(()=>u?K.Children.map(a,(g,x)=>V.jsx(o2,{children:g},x)):a,[a,u]);return V.jsx(an.div,{ref:e,className:ss("chakra-wrap",h),...p,children:V.jsx(an.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:o,alignItems:c,flexDirection:l,listStyleType:"none",gap:i,columnGap:s,rowGap:r,padding:"0"},children:m})})});Kv.displayName="Wrap";const o2=ki(function(t,e){const{className:i,...s}=t;return V.jsx(an.li,{ref:e,__css:{display:"flex",alignItems:"flex-start"},className:ss("chakra-wrap__listitem",i),...s})});o2.displayName="WrapItem";/** * @license * Copyright 2010-2024 Three.js Authors * SPDX-License-Identifier: MIT @@ -3879,7 +3879,7 @@ Fläche: ${n.area.toPrecision(3)}m²`,position:e})]})},S6=n=>{const t=n.length/3 * SPDX-License-Identifier: MIT */const RR="161",fv=0,O6=1,F6=2,wE=1,bE=100,SE=204,EE=205,AE=3,U6=0,PR=300,TE=1e3,jp=1001,CE=1002,RE=1003,k6=1006,z6=1008,B6=1009,H6=1014,G6=1015,V6=1020,W6=1023,$_=1026,PE=1027,j6=3e3,Y_=3001,X6=0,Im="",ks="srgb",$1="srgb-linear",q6="display-p3",IR="display-p3-linear",dv="linear",IE="srgb",LE="rec709",DE="p3",ec=7680,NE=519,$6=515,OE=35044,Xp=2e3,FE=2001;class Tg{addEventListener(t,e){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(e)===-1&&i[t].push(e)}hasEventListener(t,e){if(this._listeners===void 0)return!1;const i=this._listeners;return i[t]!==void 0&&i[t].indexOf(e)!==-1}removeEventListener(t,e){if(this._listeners===void 0)return;const s=this._listeners[t];if(s!==void 0){const r=s.indexOf(e);r!==-1&&s.splice(r,1)}}dispatchEvent(t){if(this._listeners===void 0)return;const i=this._listeners[t.type];if(i!==void 0){t.target=this;const s=i.slice(0);for(let r=0,a=s.length;r>8&255]+ri[n>>16&255]+ri[n>>24&255]+"-"+ri[t&255]+ri[t>>8&255]+"-"+ri[t>>16&15|64]+ri[t>>24&255]+"-"+ri[e&63|128]+ri[e>>8&255]+"-"+ri[e>>16&255]+ri[e>>24&255]+ri[i&255]+ri[i>>8&255]+ri[i>>16&255]+ri[i>>24&255]).toLowerCase()}function Li(n,t,e){return Math.max(t,Math.min(e,n))}function Y6(n,t){return(n%t+t)%t}function Z_(n,t,e){return(1-e)*n+e*t}function Jh(n,t){switch(t.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Ci(n,t){switch(t.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}class bi{constructor(t=0,e=0){bi.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,i=this.y,s=t.elements;return this.x=s[0]*e+s[3]*i+s[6],this.y=s[1]*e+s[4]*i+s[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const i=this.dot(t)/e;return Math.acos(Li(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y;return e*e+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const i=Math.cos(e),s=Math.sin(e),r=this.x-t.x,a=this.y-t.y;return this.x=r*i-a*s+t.x,this.y=r*s+a*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class no{constructor(t,e,i,s,r,a,o,l,c){no.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,e,i,s,r,a,o,l,c)}set(t,e,i,s,r,a,o,l,c){const h=this.elements;return h[0]=t,h[1]=s,h[2]=o,h[3]=e,h[4]=r,h[5]=l,h[6]=i,h[7]=a,h[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this}extractBasis(t,e,i){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,s=e.elements,r=this.elements,a=i[0],o=i[3],l=i[6],c=i[1],h=i[4],u=i[7],p=i[2],m=i[5],g=i[8],x=s[0],y=s[3],_=s[6],M=s[1],b=s[4],S=s[7],P=s[2],C=s[5],T=s[8];return r[0]=a*x+o*M+l*P,r[3]=a*y+o*b+l*C,r[6]=a*_+o*S+l*T,r[1]=c*x+h*M+u*P,r[4]=c*y+h*b+u*C,r[7]=c*_+h*S+u*T,r[2]=p*x+m*M+g*P,r[5]=p*y+m*b+g*C,r[8]=p*_+m*S+g*T,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],c=t[7],h=t[8];return e*a*h-e*o*c-i*r*h+i*o*l+s*r*c-s*a*l}invert(){const t=this.elements,e=t[0],i=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],c=t[7],h=t[8],u=h*a-o*c,p=o*l-h*r,m=c*r-a*l,g=e*u+i*p+s*m;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const x=1/g;return t[0]=u*x,t[1]=(s*c-h*i)*x,t[2]=(o*i-s*a)*x,t[3]=p*x,t[4]=(h*e-s*l)*x,t[5]=(s*r-o*e)*x,t[6]=m*x,t[7]=(i*l-c*e)*x,t[8]=(a*e-i*r)*x,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,i,s,r,a,o){const l=Math.cos(r),c=Math.sin(r);return this.set(i*l,i*c,-i*(l*a+c*o)+a+t,-s*c,s*l,-s*(-c*a+l*o)+o+e,0,0,1),this}scale(t,e){return this.premultiply(K_.makeScale(t,e)),this}rotate(t){return this.premultiply(K_.makeRotation(-t)),this}translate(t,e){return this.premultiply(K_.makeTranslation(t,e)),this}makeTranslation(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,i,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){const e=this.elements,i=t.elements;for(let s=0;s<9;s++)if(e[s]!==i[s])return!1;return!0}fromArray(t,e=0){for(let i=0;i<9;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}clone(){return new this.constructor().fromArray(this.elements)}}const K_=new no;function Z6(n){for(let t=n.length-1;t>=0;--t)if(n[t]>=65535)return!0;return!1}function UE(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}const kE={};function Lm(n){n in kE||(kE[n]=!0,console.warn(n))}const zE=new no().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),BE=new no().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),qp={[$1]:{transfer:dv,primaries:LE,toReference:n=>n,fromReference:n=>n},[ks]:{transfer:IE,primaries:LE,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[IR]:{transfer:dv,primaries:DE,toReference:n=>n.applyMatrix3(BE),fromReference:n=>n.applyMatrix3(zE)},[q6]:{transfer:IE,primaries:DE,toReference:n=>n.convertSRGBToLinear().applyMatrix3(BE),fromReference:n=>n.applyMatrix3(zE).convertLinearToSRGB()}},K6=new Set([$1,IR]),Ds={enabled:!0,_workingColorSpace:$1,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!K6.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,t,e){if(this.enabled===!1||t===e||!t||!e)return n;const i=qp[t].toReference,s=qp[e].fromReference;return s(i(n))},fromWorkingColorSpace:function(n,t){return this.convert(n,this._workingColorSpace,t)},toWorkingColorSpace:function(n,t){return this.convert(n,t,this._workingColorSpace)},getPrimaries:function(n){return qp[n].primaries},getTransfer:function(n){return n===Im?dv:qp[n].transfer}};function Lc(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function J_(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let nc;class J6{static getDataURL(t){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{nc===void 0&&(nc=UE("canvas")),nc.width=t.width,nc.height=t.height;const i=nc.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),e=nc}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){const e=UE("canvas");e.width=t.width,e.height=t.height;const i=e.getContext("2d");i.drawImage(t,0,0,t.width,t.height);const s=i.getImageData(0,0,t.width,t.height),r=s.data;for(let a=0;a0&&(i.userData=this.userData),e||(t.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==PR)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case TE:t.x=t.x-Math.floor(t.x);break;case jp:t.x=t.x<0?0:1;break;case CE:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case TE:t.y=t.y-Math.floor(t.y);break;case jp:t.y=t.y<0?0:1;break;case CE:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Lm("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===ks?Y_:j6}set encoding(t){Lm("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=t===Y_?ks:Im}}za.DEFAULT_IMAGE=null;za.DEFAULT_MAPPING=PR;za.DEFAULT_ANISOTROPY=1;class Ff{constructor(t=0,e=0,i=0,s=1){this.isQuaternion=!0,this._x=t,this._y=e,this._z=i,this._w=s}static slerpFlat(t,e,i,s,r,a,o){let l=i[s+0],c=i[s+1],h=i[s+2],u=i[s+3];const p=r[a+0],m=r[a+1],g=r[a+2],x=r[a+3];if(o===0){t[e+0]=l,t[e+1]=c,t[e+2]=h,t[e+3]=u;return}if(o===1){t[e+0]=p,t[e+1]=m,t[e+2]=g,t[e+3]=x;return}if(u!==x||l!==p||c!==m||h!==g){let y=1-o;const _=l*p+c*m+h*g+u*x,M=_>=0?1:-1,b=1-_*_;if(b>Number.EPSILON){const P=Math.sqrt(b),C=Math.atan2(P,_*M);y=Math.sin(y*C)/P,o=Math.sin(o*C)/P}const S=o*M;if(l=l*y+p*S,c=c*y+m*S,h=h*y+g*S,u=u*y+x*S,y===1-o){const P=1/Math.sqrt(l*l+c*c+h*h+u*u);l*=P,c*=P,h*=P,u*=P}}t[e]=l,t[e+1]=c,t[e+2]=h,t[e+3]=u}static multiplyQuaternionsFlat(t,e,i,s,r,a){const o=i[s],l=i[s+1],c=i[s+2],h=i[s+3],u=r[a],p=r[a+1],m=r[a+2],g=r[a+3];return t[e]=o*g+h*u+l*m-c*p,t[e+1]=l*g+h*p+c*u-o*m,t[e+2]=c*g+h*m+o*p-l*u,t[e+3]=h*g-o*u-l*p-c*m,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,i,s){return this._x=t,this._y=e,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){const i=t._x,s=t._y,r=t._z,a=t._order,o=Math.cos,l=Math.sin,c=o(i/2),h=o(s/2),u=o(r/2),p=l(i/2),m=l(s/2),g=l(r/2);switch(a){case"XYZ":this._x=p*h*u+c*m*g,this._y=c*m*u-p*h*g,this._z=c*h*g+p*m*u,this._w=c*h*u-p*m*g;break;case"YXZ":this._x=p*h*u+c*m*g,this._y=c*m*u-p*h*g,this._z=c*h*g-p*m*u,this._w=c*h*u+p*m*g;break;case"ZXY":this._x=p*h*u-c*m*g,this._y=c*m*u+p*h*g,this._z=c*h*g+p*m*u,this._w=c*h*u-p*m*g;break;case"ZYX":this._x=p*h*u-c*m*g,this._y=c*m*u+p*h*g,this._z=c*h*g-p*m*u,this._w=c*h*u+p*m*g;break;case"YZX":this._x=p*h*u+c*m*g,this._y=c*m*u+p*h*g,this._z=c*h*g-p*m*u,this._w=c*h*u-p*m*g;break;case"XZY":this._x=p*h*u-c*m*g,this._y=c*m*u-p*h*g,this._z=c*h*g+p*m*u,this._w=c*h*u+p*m*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const i=e/2,s=Math.sin(i);return this._x=t.x*s,this._y=t.y*s,this._z=t.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,i=e[0],s=e[4],r=e[8],a=e[1],o=e[5],l=e[9],c=e[2],h=e[6],u=e[10],p=i+o+u;if(p>0){const m=.5/Math.sqrt(p+1);this._w=.25/m,this._x=(h-l)*m,this._y=(r-c)*m,this._z=(a-s)*m}else if(i>o&&i>u){const m=2*Math.sqrt(1+i-o-u);this._w=(h-l)/m,this._x=.25*m,this._y=(s+a)/m,this._z=(r+c)/m}else if(o>u){const m=2*Math.sqrt(1+o-i-u);this._w=(r-c)/m,this._x=(s+a)/m,this._y=.25*m,this._z=(l+h)/m}else{const m=2*Math.sqrt(1+u-i-o);this._w=(a-s)/m,this._x=(r+c)/m,this._y=(l+h)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let i=t.dot(e)+1;return iMath.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Li(this.dot(t),-1,1)))}rotateTowards(t,e){const i=this.angleTo(t);if(i===0)return this;const s=Math.min(1,e/i);return this.slerp(t,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const i=t._x,s=t._y,r=t._z,a=t._w,o=e._x,l=e._y,c=e._z,h=e._w;return this._x=i*h+a*o+s*c-r*l,this._y=s*h+a*l+r*o-i*c,this._z=r*h+a*c+i*l-s*o,this._w=a*h-i*o-s*l-r*c,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);const i=this._x,s=this._y,r=this._z,a=this._w;let o=a*t._w+i*t._x+s*t._y+r*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=i,this._y=s,this._z=r,this;const l=1-o*o;if(l<=Number.EPSILON){const m=1-e;return this._w=m*a+e*this._w,this._x=m*i+e*this._x,this._y=m*s+e*this._y,this._z=m*r+e*this._z,this.normalize(),this}const c=Math.sqrt(l),h=Math.atan2(c,o),u=Math.sin((1-e)*h)/c,p=Math.sin(e*h)/c;return this._w=a*u+this._w*p,this._x=i*u+this._x*p,this._y=s*u+this._y*p,this._z=r*u+this._z*p,this._onChangeCallback(),this}slerpQuaternions(t,e,i){return this.copy(t).slerp(e,i)}random(){const t=Math.random(),e=Math.sqrt(1-t),i=Math.sqrt(t),s=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(e*Math.cos(s),i*Math.sin(r),i*Math.cos(r),e*Math.sin(s))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Rt{constructor(t=0,e=0,i=0){Rt.prototype.isVector3=!0,this.x=t,this.y=e,this.z=i}set(t,e,i){return i===void 0&&(i=this.z),this.x=t,this.y=e,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(HE.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(HE.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,i=this.y,s=this.z,r=t.elements;return this.x=r[0]*e+r[3]*i+r[6]*s,this.y=r[1]*e+r[4]*i+r[7]*s,this.z=r[2]*e+r[5]*i+r[8]*s,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,i=this.y,s=this.z,r=t.elements,a=1/(r[3]*e+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*e+r[4]*i+r[8]*s+r[12])*a,this.y=(r[1]*e+r[5]*i+r[9]*s+r[13])*a,this.z=(r[2]*e+r[6]*i+r[10]*s+r[14])*a,this}applyQuaternion(t){const e=this.x,i=this.y,s=this.z,r=t.x,a=t.y,o=t.z,l=t.w,c=2*(a*s-o*i),h=2*(o*e-r*s),u=2*(r*i-a*e);return this.x=e+l*c+a*u-o*h,this.y=i+l*h+o*c-r*u,this.z=s+l*u+r*h-a*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,i=this.y,s=this.z,r=t.elements;return this.x=r[0]*e+r[4]*i+r[8]*s,this.y=r[1]*e+r[5]*i+r[9]*s,this.z=r[2]*e+r[6]*i+r[10]*s,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const i=t.x,s=t.y,r=t.z,a=e.x,o=e.y,l=e.z;return this.x=s*l-r*o,this.y=r*a-i*l,this.z=i*o-s*a,this}projectOnVector(t){const e=t.lengthSq();if(e===0)return this.set(0,0,0);const i=t.dot(this)/e;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return tx.copy(this).projectOnVector(t),this.sub(tx)}reflect(t){return this.sub(tx.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const i=this.dot(t)/e;return Math.acos(Li(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y,s=this.z-t.z;return e*e+i*i+s*s}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,i){const s=Math.sin(e)*t;return this.x=s*Math.sin(i),this.y=Math.cos(e)*t,this.z=s*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),s=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=s,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,e*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=(Math.random()-.5)*2,e=Math.random()*Math.PI*2,i=Math.sqrt(1-t**2);return this.x=i*Math.cos(e),this.y=i*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const tx=new Rt,HE=new Ff;class Uf{constructor(t=new Rt(1/0,1/0,1/0),e=new Rt(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,i=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)}intersectsSphere(t){return this.clampPoint(t.center,Ns),Ns.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,i;return t.normal.x>0?(e=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(Qh),Yp.subVectors(this.max,Qh),ic.subVectors(t.a,Qh),sc.subVectors(t.b,Qh),rc.subVectors(t.c,Qh),Ca.subVectors(sc,ic),Ra.subVectors(rc,sc),To.subVectors(ic,rc);let e=[0,-Ca.z,Ca.y,0,-Ra.z,Ra.y,0,-To.z,To.y,Ca.z,0,-Ca.x,Ra.z,0,-Ra.x,To.z,0,-To.x,-Ca.y,Ca.x,0,-Ra.y,Ra.x,0,-To.y,To.x,0];return!ex(e,ic,sc,rc,Yp)||(e=[1,0,0,0,1,0,0,0,1],!ex(e,ic,sc,rc,Yp))?!1:(Zp.crossVectors(Ca,Ra),e=[Zp.x,Zp.y,Zp.z],ex(e,ic,sc,rc,Yp))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,Ns).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(Ns).length()*.5),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(Hr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Hr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Hr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Hr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Hr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Hr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Hr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Hr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Hr),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}const Hr=[new Rt,new Rt,new Rt,new Rt,new Rt,new Rt,new Rt,new Rt],Ns=new Rt,$p=new Uf,ic=new Rt,sc=new Rt,rc=new Rt,Ca=new Rt,Ra=new Rt,To=new Rt,Qh=new Rt,Yp=new Rt,Zp=new Rt,Co=new Rt;function ex(n,t,e,i,s){for(let r=0,a=n.length-3;r<=a;r+=3){Co.fromArray(n,r);const o=s.x*Math.abs(Co.x)+s.y*Math.abs(Co.y)+s.z*Math.abs(Co.z),l=t.dot(Co),c=e.dot(Co),h=i.dot(Co);if(Math.max(-Math.max(l,c,h),Math.min(l,c,h))>o)return!1}return!0}const n8=new Uf,tu=new Rt,nx=new Rt;class LR{constructor(t=new Rt,e=-1){this.isSphere=!0,this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const i=this.center;e!==void 0?i.copy(e):n8.setFromPoints(t).getCenter(i);let s=0;for(let r=0,a=t.length;rthis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;tu.subVectors(t,this.center);const e=tu.lengthSq();if(e>this.radius*this.radius){const i=Math.sqrt(e),s=(i-this.radius)*.5;this.center.addScaledVector(tu,s/i),this.radius+=s}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(this.center.equals(t.center)===!0?this.radius=Math.max(this.radius,t.radius):(nx.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(tu.copy(t.center).add(nx)),this.expandByPoint(tu.copy(t.center).sub(nx))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Gr=new Rt,ix=new Rt,Kp=new Rt,Pa=new Rt,sx=new Rt,Jp=new Rt,rx=new Rt;class i8{constructor(t=new Rt,e=new Rt(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Gr)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Gr.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Gr.copy(this.origin).addScaledVector(this.direction,e),Gr.distanceToSquared(t))}distanceSqToSegment(t,e,i,s){ix.copy(t).add(e).multiplyScalar(.5),Kp.copy(e).sub(t).normalize(),Pa.copy(this.origin).sub(ix);const r=t.distanceTo(e)*.5,a=-this.direction.dot(Kp),o=Pa.dot(this.direction),l=-Pa.dot(Kp),c=Pa.lengthSq(),h=Math.abs(1-a*a);let u,p,m,g;if(h>0)if(u=a*l-o,p=a*o-l,g=r*h,u>=0)if(p>=-g)if(p<=g){const x=1/h;u*=x,p*=x,m=u*(u+a*p+2*o)+p*(a*u+p+2*l)+c}else p=r,u=Math.max(0,-(a*p+o)),m=-u*u+p*(p+2*l)+c;else p=-r,u=Math.max(0,-(a*p+o)),m=-u*u+p*(p+2*l)+c;else p<=-g?(u=Math.max(0,-(-a*r+o)),p=u>0?-r:Math.min(Math.max(-r,-l),r),m=-u*u+p*(p+2*l)+c):p<=g?(u=0,p=Math.min(Math.max(-r,-l),r),m=p*(p+2*l)+c):(u=Math.max(0,-(a*r+o)),p=u>0?r:Math.min(Math.max(-r,-l),r),m=-u*u+p*(p+2*l)+c);else p=a>0?-r:r,u=Math.max(0,-(a*p+o)),m=-u*u+p*(p+2*l)+c;return i&&i.copy(this.origin).addScaledVector(this.direction,u),s&&s.copy(ix).addScaledVector(Kp,p),m}intersectSphere(t,e){Gr.subVectors(t.center,this.origin);const i=Gr.dot(this.direction),s=Gr.dot(Gr)-i*i,r=t.radius*t.radius;if(s>r)return null;const a=Math.sqrt(r-s),o=i-a,l=i+a;return l<0?null:o<0?this.at(l,e):this.at(o,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(e===0)return t.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}intersectPlane(t,e){const i=this.distanceToPlane(t);return i===null?null:this.at(i,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);return e===0||t.normal.dot(this.direction)*e<0}intersectBox(t,e){let i,s,r,a,o,l;const c=1/this.direction.x,h=1/this.direction.y,u=1/this.direction.z,p=this.origin;return c>=0?(i=(t.min.x-p.x)*c,s=(t.max.x-p.x)*c):(i=(t.max.x-p.x)*c,s=(t.min.x-p.x)*c),h>=0?(r=(t.min.y-p.y)*h,a=(t.max.y-p.y)*h):(r=(t.max.y-p.y)*h,a=(t.min.y-p.y)*h),i>a||r>s||((r>i||isNaN(i))&&(i=r),(a=0?(o=(t.min.z-p.z)*u,l=(t.max.z-p.z)*u):(o=(t.max.z-p.z)*u,l=(t.min.z-p.z)*u),i>l||o>s)||((o>i||i!==i)&&(i=o),(l=0?i:s,e)}intersectsBox(t){return this.intersectBox(t,Gr)!==null}intersectTriangle(t,e,i,s,r){sx.subVectors(e,t),Jp.subVectors(i,t),rx.crossVectors(sx,Jp);let a=this.direction.dot(rx),o;if(a>0){if(s)return null;o=1}else if(a<0)o=-1,a=-a;else return null;Pa.subVectors(this.origin,t);const l=o*this.direction.dot(Jp.crossVectors(Pa,Jp));if(l<0)return null;const c=o*this.direction.dot(sx.cross(Pa));if(c<0||l+c>a)return null;const h=-o*Pa.dot(rx);return h<0?null:this.at(h/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Bs{constructor(t,e,i,s,r,a,o,l,c,h,u,p,m,g,x,y){Bs.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,e,i,s,r,a,o,l,c,h,u,p,m,g,x,y)}set(t,e,i,s,r,a,o,l,c,h,u,p,m,g,x,y){const _=this.elements;return _[0]=t,_[4]=e,_[8]=i,_[12]=s,_[1]=r,_[5]=a,_[9]=o,_[13]=l,_[2]=c,_[6]=h,_[10]=u,_[14]=p,_[3]=m,_[7]=g,_[11]=x,_[15]=y,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Bs().fromArray(this.elements)}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this}copyPosition(t){const e=this.elements,i=t.elements;return e[12]=i[12],e[13]=i[13],e[14]=i[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,i=t.elements,s=1/ac.setFromMatrixColumn(t,0).length(),r=1/ac.setFromMatrixColumn(t,1).length(),a=1/ac.setFromMatrixColumn(t,2).length();return e[0]=i[0]*s,e[1]=i[1]*s,e[2]=i[2]*s,e[3]=0,e[4]=i[4]*r,e[5]=i[5]*r,e[6]=i[6]*r,e[7]=0,e[8]=i[8]*a,e[9]=i[9]*a,e[10]=i[10]*a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,i=t.x,s=t.y,r=t.z,a=Math.cos(i),o=Math.sin(i),l=Math.cos(s),c=Math.sin(s),h=Math.cos(r),u=Math.sin(r);if(t.order==="XYZ"){const p=a*h,m=a*u,g=o*h,x=o*u;e[0]=l*h,e[4]=-l*u,e[8]=c,e[1]=m+g*c,e[5]=p-x*c,e[9]=-o*l,e[2]=x-p*c,e[6]=g+m*c,e[10]=a*l}else if(t.order==="YXZ"){const p=l*h,m=l*u,g=c*h,x=c*u;e[0]=p+x*o,e[4]=g*o-m,e[8]=a*c,e[1]=a*u,e[5]=a*h,e[9]=-o,e[2]=m*o-g,e[6]=x+p*o,e[10]=a*l}else if(t.order==="ZXY"){const p=l*h,m=l*u,g=c*h,x=c*u;e[0]=p-x*o,e[4]=-a*u,e[8]=g+m*o,e[1]=m+g*o,e[5]=a*h,e[9]=x-p*o,e[2]=-a*c,e[6]=o,e[10]=a*l}else if(t.order==="ZYX"){const p=a*h,m=a*u,g=o*h,x=o*u;e[0]=l*h,e[4]=g*c-m,e[8]=p*c+x,e[1]=l*u,e[5]=x*c+p,e[9]=m*c-g,e[2]=-c,e[6]=o*l,e[10]=a*l}else if(t.order==="YZX"){const p=a*l,m=a*c,g=o*l,x=o*c;e[0]=l*h,e[4]=x-p*u,e[8]=g*u+m,e[1]=u,e[5]=a*h,e[9]=-o*h,e[2]=-c*h,e[6]=m*u+g,e[10]=p-x*u}else if(t.order==="XZY"){const p=a*l,m=a*c,g=o*l,x=o*c;e[0]=l*h,e[4]=-u,e[8]=c*h,e[1]=p*u+x,e[5]=a*h,e[9]=m*u-g,e[2]=g*u-m,e[6]=o*h,e[10]=x*u+p}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(s8,t,r8)}lookAt(t,e,i){const s=this.elements;return qi.subVectors(t,e),qi.lengthSq()===0&&(qi.z=1),qi.normalize(),Ia.crossVectors(i,qi),Ia.lengthSq()===0&&(Math.abs(i.z)===1?qi.x+=1e-4:qi.z+=1e-4,qi.normalize(),Ia.crossVectors(i,qi)),Ia.normalize(),Qp.crossVectors(qi,Ia),s[0]=Ia.x,s[4]=Qp.x,s[8]=qi.x,s[1]=Ia.y,s[5]=Qp.y,s[9]=qi.y,s[2]=Ia.z,s[6]=Qp.z,s[10]=qi.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,s=e.elements,r=this.elements,a=i[0],o=i[4],l=i[8],c=i[12],h=i[1],u=i[5],p=i[9],m=i[13],g=i[2],x=i[6],y=i[10],_=i[14],M=i[3],b=i[7],S=i[11],P=i[15],C=s[0],T=s[4],L=s[8],N=s[12],E=s[1],R=s[5],z=s[9],G=s[13],W=s[2],et=s[6],X=s[10],at=s[14],H=s[3],J=s[7],st=s[11],Y=s[15];return r[0]=a*C+o*E+l*W+c*H,r[4]=a*T+o*R+l*et+c*J,r[8]=a*L+o*z+l*X+c*st,r[12]=a*N+o*G+l*at+c*Y,r[1]=h*C+u*E+p*W+m*H,r[5]=h*T+u*R+p*et+m*J,r[9]=h*L+u*z+p*X+m*st,r[13]=h*N+u*G+p*at+m*Y,r[2]=g*C+x*E+y*W+_*H,r[6]=g*T+x*R+y*et+_*J,r[10]=g*L+x*z+y*X+_*st,r[14]=g*N+x*G+y*at+_*Y,r[3]=M*C+b*E+S*W+P*H,r[7]=M*T+b*R+S*et+P*J,r[11]=M*L+b*z+S*X+P*st,r[15]=M*N+b*G+S*at+P*Y,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[4],s=t[8],r=t[12],a=t[1],o=t[5],l=t[9],c=t[13],h=t[2],u=t[6],p=t[10],m=t[14],g=t[3],x=t[7],y=t[11],_=t[15];return g*(+r*l*u-s*c*u-r*o*p+i*c*p+s*o*m-i*l*m)+x*(+e*l*m-e*c*p+r*a*p-s*a*m+s*c*h-r*l*h)+y*(+e*c*u-e*o*m-r*a*u+i*a*m+r*o*h-i*c*h)+_*(-s*o*h-e*l*u+e*o*p+s*a*u-i*a*p+i*l*h)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,i){const s=this.elements;return t.isVector3?(s[12]=t.x,s[13]=t.y,s[14]=t.z):(s[12]=t,s[13]=e,s[14]=i),this}invert(){const t=this.elements,e=t[0],i=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],c=t[7],h=t[8],u=t[9],p=t[10],m=t[11],g=t[12],x=t[13],y=t[14],_=t[15],M=u*y*c-x*p*c+x*l*m-o*y*m-u*l*_+o*p*_,b=g*p*c-h*y*c-g*l*m+a*y*m+h*l*_-a*p*_,S=h*x*c-g*u*c+g*o*m-a*x*m-h*o*_+a*u*_,P=g*u*l-h*x*l-g*o*p+a*x*p+h*o*y-a*u*y,C=e*M+i*b+s*S+r*P;if(C===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const T=1/C;return t[0]=M*T,t[1]=(x*p*r-u*y*r-x*s*m+i*y*m+u*s*_-i*p*_)*T,t[2]=(o*y*r-x*l*r+x*s*c-i*y*c-o*s*_+i*l*_)*T,t[3]=(u*l*r-o*p*r-u*s*c+i*p*c+o*s*m-i*l*m)*T,t[4]=b*T,t[5]=(h*y*r-g*p*r+g*s*m-e*y*m-h*s*_+e*p*_)*T,t[6]=(g*l*r-a*y*r-g*s*c+e*y*c+a*s*_-e*l*_)*T,t[7]=(a*p*r-h*l*r+h*s*c-e*p*c-a*s*m+e*l*m)*T,t[8]=S*T,t[9]=(g*u*r-h*x*r-g*i*m+e*x*m+h*i*_-e*u*_)*T,t[10]=(a*x*r-g*o*r+g*i*c-e*x*c-a*i*_+e*o*_)*T,t[11]=(h*o*r-a*u*r-h*i*c+e*u*c+a*i*m-e*o*m)*T,t[12]=P*T,t[13]=(h*x*s-g*u*s+g*i*p-e*x*p-h*i*y+e*u*y)*T,t[14]=(g*o*s-a*x*s-g*i*l+e*x*l+a*i*y-e*o*y)*T,t[15]=(a*u*s-h*o*s+h*i*l-e*u*l-a*i*p+e*o*p)*T,this}scale(t){const e=this.elements,i=t.x,s=t.y,r=t.z;return e[0]*=i,e[4]*=s,e[8]*=r,e[1]*=i,e[5]*=s,e[9]*=r,e[2]*=i,e[6]*=s,e[10]*=r,e[3]*=i,e[7]*=s,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],s=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,s))}makeTranslation(t,e,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const i=Math.cos(e),s=Math.sin(e),r=1-i,a=t.x,o=t.y,l=t.z,c=r*a,h=r*o;return this.set(c*a+i,c*o-s*l,c*l+s*o,0,c*o+s*l,h*o+i,h*l-s*a,0,c*l-s*o,h*l+s*a,r*l*l+i,0,0,0,0,1),this}makeScale(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,e,i,s,r,a){return this.set(1,i,r,0,t,1,a,0,e,s,1,0,0,0,0,1),this}compose(t,e,i){const s=this.elements,r=e._x,a=e._y,o=e._z,l=e._w,c=r+r,h=a+a,u=o+o,p=r*c,m=r*h,g=r*u,x=a*h,y=a*u,_=o*u,M=l*c,b=l*h,S=l*u,P=i.x,C=i.y,T=i.z;return s[0]=(1-(x+_))*P,s[1]=(m+S)*P,s[2]=(g-b)*P,s[3]=0,s[4]=(m-S)*C,s[5]=(1-(p+_))*C,s[6]=(y+M)*C,s[7]=0,s[8]=(g+b)*T,s[9]=(y-M)*T,s[10]=(1-(p+x))*T,s[11]=0,s[12]=t.x,s[13]=t.y,s[14]=t.z,s[15]=1,this}decompose(t,e,i){const s=this.elements;let r=ac.set(s[0],s[1],s[2]).length();const a=ac.set(s[4],s[5],s[6]).length(),o=ac.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),t.x=s[12],t.y=s[13],t.z=s[14],Os.copy(this);const c=1/r,h=1/a,u=1/o;return Os.elements[0]*=c,Os.elements[1]*=c,Os.elements[2]*=c,Os.elements[4]*=h,Os.elements[5]*=h,Os.elements[6]*=h,Os.elements[8]*=u,Os.elements[9]*=u,Os.elements[10]*=u,e.setFromRotationMatrix(Os),i.x=r,i.y=a,i.z=o,this}makePerspective(t,e,i,s,r,a,o=Xp){const l=this.elements,c=2*r/(e-t),h=2*r/(i-s),u=(e+t)/(e-t),p=(i+s)/(i-s);let m,g;if(o===Xp)m=-(a+r)/(a-r),g=-2*a*r/(a-r);else if(o===FE)m=-a/(a-r),g=-a*r/(a-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return l[0]=c,l[4]=0,l[8]=u,l[12]=0,l[1]=0,l[5]=h,l[9]=p,l[13]=0,l[2]=0,l[6]=0,l[10]=m,l[14]=g,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,e,i,s,r,a,o=Xp){const l=this.elements,c=1/(e-t),h=1/(i-s),u=1/(a-r),p=(e+t)*c,m=(i+s)*h;let g,x;if(o===Xp)g=(a+r)*u,x=-2*u;else if(o===FE)g=r*u,x=-1*u;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-p,l[1]=0,l[5]=2*h,l[9]=0,l[13]=-m,l[2]=0,l[6]=0,l[10]=x,l[14]=-g,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(t){const e=this.elements,i=t.elements;for(let s=0;s<16;s++)if(e[s]!==i[s])return!1;return!0}fromArray(t,e=0){for(let i=0;i<16;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}const ac=new Rt,Os=new Bs,s8=new Rt(0,0,0),r8=new Rt(1,1,1),Ia=new Rt,Qp=new Rt,qi=new Rt,GE=new Bs,VE=new Ff;class Cg{constructor(t=0,e=0,i=0,s=Cg.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=i,this._order=s}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,i,s=this._order){return this._x=t,this._y=e,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,i=!0){const s=t.elements,r=s[0],a=s[4],o=s[8],l=s[1],c=s[5],h=s[9],u=s[2],p=s[6],m=s[10];switch(e){case"XYZ":this._y=Math.asin(Li(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-h,m),this._z=Math.atan2(-a,r)):(this._x=Math.atan2(p,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Li(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(o,m),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(Li(p,-1,1)),Math.abs(p)<.9999999?(this._y=Math.atan2(-u,m),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-Li(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(p,m),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(Li(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-h,c),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(o,m));break;case"XZY":this._z=Math.asin(-Li(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(p,c),this._y=Math.atan2(o,r)):(this._x=Math.atan2(-h,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,i===!0&&this._onChangeCallback(),this}setFromQuaternion(t,e,i){return GE.makeRotationFromQuaternion(t),this.setFromRotationMatrix(GE,e,i)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return VE.setFromEuler(this),this.setFromQuaternion(VE,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Cg.DEFAULT_ORDER="XYZ";class a8{constructor(){this.mask=1}set(t){this.mask=(1<>>0}enable(t){this.mask|=1<1){for(let e=0;e1){for(let i=0;i0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(t),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function r(o,l){return o[l.uuid]===void 0&&(o[l.uuid]=l.toJSON(t)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(t.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const l=o.shapes;if(Array.isArray(l))for(let c=0,h=l.length;c0){s.children=[];for(let o=0;o0){s.animations=[];for(let o=0;o0&&(i.geometries=o),l.length>0&&(i.materials=l),c.length>0&&(i.textures=c),h.length>0&&(i.images=h),u.length>0&&(i.shapes=u),p.length>0&&(i.skeletons=p),m.length>0&&(i.animations=m),g.length>0&&(i.nodes=g)}return i.object=s,i;function a(o){const l=[];for(const c in o){const h=o[c];delete h.metadata,l.push(h)}return l}}clone(t){return new this.constructor().copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(let i=0;i0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(t,e,i,s,r){Fs.subVectors(s,e),Wr.subVectors(i,e),ax.subVectors(t,e);const a=Fs.dot(Fs),o=Fs.dot(Wr),l=Fs.dot(ax),c=Wr.dot(Wr),h=Wr.dot(ax),u=a*c-o*o;if(u===0)return r.set(0,0,0),null;const p=1/u,m=(c*l-o*h)*p,g=(a*h-o*l)*p;return r.set(1-m-g,g,m)}static containsPoint(t,e,i,s){return this.getBarycoord(t,e,i,s,jr)===null?!1:jr.x>=0&&jr.y>=0&&jr.x+jr.y<=1}static getInterpolation(t,e,i,s,r,a,o,l){return this.getBarycoord(t,e,i,s,jr)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(r,jr.x),l.addScaledVector(a,jr.y),l.addScaledVector(o,jr.z),l)}static isFrontFacing(t,e,i,s){return Fs.subVectors(i,e),Wr.subVectors(t,e),Fs.cross(Wr).dot(s)<0}set(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this}setFromPointsAndIndices(t,e,i,s){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[s]),this}setFromAttributeAndIndices(t,e,i,s){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,i),this.c.fromBufferAttribute(t,s),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return Fs.subVectors(this.c,this.b),Wr.subVectors(this.a,this.b),Fs.cross(Wr).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return pr.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return pr.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,i,s,r){return pr.getInterpolation(t,this.a,this.b,this.c,e,i,s,r)}containsPoint(t){return pr.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return pr.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const i=this.a,s=this.b,r=this.c;let a,o;lc.subVectors(s,i),cc.subVectors(r,i),ox.subVectors(t,i);const l=lc.dot(ox),c=cc.dot(ox);if(l<=0&&c<=0)return e.copy(i);lx.subVectors(t,s);const h=lc.dot(lx),u=cc.dot(lx);if(h>=0&&u<=h)return e.copy(s);const p=l*u-h*c;if(p<=0&&l>=0&&h<=0)return a=l/(l-h),e.copy(i).addScaledVector(lc,a);cx.subVectors(t,r);const m=lc.dot(cx),g=cc.dot(cx);if(g>=0&&m<=g)return e.copy(r);const x=m*c-l*g;if(x<=0&&c>=0&&g<=0)return o=c/(c-g),e.copy(i).addScaledVector(cc,o);const y=h*g-m*u;if(y<=0&&u-h>=0&&m-g>=0)return $E.subVectors(r,s),o=(u-h)/(u-h+(m-g)),e.copy(s).addScaledVector($E,o);const _=1/(y+x+p);return a=x*_,o=p*_,e.copy(i).addScaledVector(lc,a).addScaledVector(cc,o)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}const DR={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},La={h:0,s:0,l:0},em={h:0,s:0,l:0};function hx(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?n+(t-n)*6*e:e<1/2?t:e<2/3?n+(t-n)*6*(2/3-e):n}class Zc{constructor(t,e,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,i)}set(t,e,i){if(e===void 0&&i===void 0){const s=t;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(t,e,i);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=ks){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,Ds.toWorkingColorSpace(this,e),this}setRGB(t,e,i,s=Ds.workingColorSpace){return this.r=t,this.g=e,this.b=i,Ds.toWorkingColorSpace(this,s),this}setHSL(t,e,i,s=Ds.workingColorSpace){if(t=Y6(t,1),e=Li(e,0,1),i=Li(i,0,1),e===0)this.r=this.g=this.b=i;else{const r=i<=.5?i*(1+e):i+e-i*e,a=2*i-r;this.r=hx(a,r,t+1/3),this.g=hx(a,r,t),this.b=hx(a,r,t-1/3)}return Ds.toWorkingColorSpace(this,s),this}setStyle(t,e=ks){function i(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(t)){let r;const a=s[1],o=s[2];switch(a){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,e);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,e);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(t)){const r=s[1],a=r.length;if(a===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,e);if(a===6)return this.setHex(parseInt(r,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=ks){const i=DR[t.toLowerCase()];return i!==void 0?this.setHex(i,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Lc(t.r),this.g=Lc(t.g),this.b=Lc(t.b),this}copyLinearToSRGB(t){return this.r=J_(t.r),this.g=J_(t.g),this.b=J_(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=ks){return Ds.fromWorkingColorSpace(ai.copy(this),t),Math.round(Li(ai.r*255,0,255))*65536+Math.round(Li(ai.g*255,0,255))*256+Math.round(Li(ai.b*255,0,255))}getHexString(t=ks){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=Ds.workingColorSpace){Ds.fromWorkingColorSpace(ai.copy(this),e);const i=ai.r,s=ai.g,r=ai.b,a=Math.max(i,s,r),o=Math.min(i,s,r);let l,c;const h=(o+a)/2;if(o===a)l=0,c=0;else{const u=a-o;switch(c=h<=.5?u/(a+o):u/(2-a-o),a){case i:l=(s-r)/u+(s0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(t!==void 0)for(const e in t){const i=t[e];if(i===void 0){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}const s=this[e];if(s===void 0){console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[e]=i}}toJSON(t){const e=t===void 0||typeof t=="string";e&&(t={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==wE&&(i.blending=this.blending),this.side!==fv&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==SE&&(i.blendSrc=this.blendSrc),this.blendDst!==EE&&(i.blendDst=this.blendDst),this.blendEquation!==bE&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==AE&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==NE&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ec&&(i.stencilFail=this.stencilFail),this.stencilZFail!==ec&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==ec&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(r){const a=[];for(const o in r){const l=r[o];delete l.metadata,a.push(l)}return a}if(e){const r=s(t.textures),a=s(t.images);r.length>0&&(i.textures=r),a.length>0&&(i.images=a)}return i}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let i=null;if(e!==null){const s=e.length;i=new Array(s);for(let r=0;r!==s;++r)i[r]=e[r].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){t===!0&&this.version++}}class d8 extends NR{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Zc(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=U6,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}const An=new Rt,nm=new bi;class ia{constructor(t,e,i=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i,this.usage=OE,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=G6,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}get updateRange(){return Lm("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,e,i){t*=this.itemSize,i*=e.itemSize;for(let s=0,r=this.itemSize;s0&&(t.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(t[c]=l[c]);return t}t.data={attributes:{}};const e=this.index;e!==null&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const i=this.attributes;for(const l in i){const c=i[l];t.data.attributes[l]=c.toJSON(t.data)}const s={};let r=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],h=[];for(let u=0,p=c.length;u0&&(s[l]=h,r=!0)}r&&(t.data.morphAttributes=s,t.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(t.data.groups=JSON.parse(JSON.stringify(a)));const o=this.boundingSphere;return o!==null&&(t.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const i=t.index;i!==null&&this.setIndex(i.clone(e));const s=t.attributes;for(const c in s){const h=s[c];this.setAttribute(c,h.clone(e))}const r=t.morphAttributes;for(const c in r){const h=[],u=r[c];for(let p=0,m=u.length;p0){const s=e[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,a=s.length;r(t.far-t.near)**2))&&(YE.copy(r).invert(),Ro.copy(t.ray).applyMatrix4(YE),!(i.boundingBox!==null&&Ro.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(t,e,Ro)))}_computeIntersections(t,e,i){let s;const r=this.geometry,a=this.material,o=r.index,l=r.attributes.position,c=r.attributes.uv,h=r.attributes.uv1,u=r.attributes.normal,p=r.groups,m=r.drawRange;if(o!==null)if(Array.isArray(a))for(let g=0,x=p.length;ge.far?null:{distance:c,point:cm.clone(),object:n}}function hm(n,t,e,i,s,r,a,o,l,c){n.getVertexPosition(o,uc),n.getVertexPosition(l,fc),n.getVertexPosition(c,dc);const h=_8(n,t,e,i,uc,fc,dc,lm);if(h){s&&(rm.fromBufferAttribute(s,o),am.fromBufferAttribute(s,l),om.fromBufferAttribute(s,c),h.uv=pr.getInterpolation(lm,uc,fc,dc,rm,am,om,new bi)),r&&(rm.fromBufferAttribute(r,o),am.fromBufferAttribute(r,l),om.fromBufferAttribute(r,c),h.uv1=pr.getInterpolation(lm,uc,fc,dc,rm,am,om,new bi),h.uv2=h.uv1),a&&(KE.fromBufferAttribute(a,o),JE.fromBufferAttribute(a,l),QE.fromBufferAttribute(a,c),h.normal=pr.getInterpolation(lm,uc,fc,dc,KE,JE,QE,new Rt),h.normal.dot(i.direction)>0&&h.normal.multiplyScalar(-1));const u={a:o,b:l,c,normal:new Rt,materialIndex:0};pr.getNormal(uc,fc,dc,u.normal),h.face=u}return h}class x8 extends za{constructor(t,e,i,s,r,a,o,l,c,h){if(h=h!==void 0?h:$_,h!==$_&&h!==PE)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&h===$_&&(i=H6),i===void 0&&h===PE&&(i=V6),super(null,s,r,a,o,l,h,i,c),this.isDepthTexture=!0,this.image={width:t,height:e},this.magFilter=o!==void 0?o:RE,this.minFilter=l!==void 0?l:RE,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(t){return super.copy(t),this.compareFunction=t.compareFunction,this}toJSON(t){const e=super.toJSON(t);return this.compareFunction!==null&&(e.compareFunction=this.compareFunction),e}}const v8=new x8(1,1);v8.compareFunction=$6;class M8 extends NR{constructor(t){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Zc(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Zc(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=X6,this.normalScale=new bi(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:RR}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=RR);function tA(n,t=!1){const e=n[0].index!==null,i=new Set(Object.keys(n[0].attributes)),s=new Set(Object.keys(n[0].morphAttributes)),r={},a={},o=n[0].morphTargetsRelative,l=new kf;let c=0;for(let h=0;hw8(n,t,e)}function uh(n,t){return Kn(OR(n,t).get)}const{apply:w8,construct:kY,defineProperty:zY,get:BY,getOwnPropertyDescriptor:OR,getPrototypeOf:Y1,has:HY,ownKeys:b8,set:GY,setPrototypeOf:VY}=Reflect,{iterator:zf,species:WY,toStringTag:S8,for:jY}=Symbol,E8=Object,{create:Z1,defineProperty:A8,freeze:XY,is:qY}=E8,T8=Array,C8=T8.prototype,FR=C8[zf],R8=Kn(FR),UR=ArrayBuffer,P8=UR.prototype;uh(P8,"byteLength");const nA=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:null;nA&&uh(nA.prototype,"byteLength");const kR=Y1(Uint8Array);kR.from;const Si=kR.prototype;Si[zf];Kn(Si.keys);Kn(Si.values);Kn(Si.entries);Kn(Si.set);Kn(Si.reverse);Kn(Si.fill);Kn(Si.copyWithin);Kn(Si.sort);Kn(Si.slice);Kn(Si.subarray);uh(Si,"buffer");uh(Si,"byteOffset");uh(Si,"length");uh(Si,S8);const I8=Uint8Array,zR=Uint16Array,K1=Uint32Array,L8=Float32Array,ef=Y1([][zf]()),BR=Kn(ef.next),D8=Kn(function*(){}().next),N8=Y1(ef),O8=DataView.prototype,F8=Kn(O8.getUint16),J1=WeakMap,HR=J1.prototype,GR=Kn(HR.get),U8=Kn(HR.set),VR=new J1,k8=Z1(null,{next:{value:function(){const t=GR(VR,this);return BR(t)}},[zf]:{value:function(){return this}}});function z8(n){if(n[zf]===FR&&ef.next===BR)return n;const t=Z1(k8);return U8(VR,t,R8(n)),t}const B8=new J1,H8=Z1(N8,{next:{value:function(){const t=GR(B8,this);return D8(t)},writable:!0,configurable:!0}});for(const n of b8(ef))n!=="next"&&A8(H8,n,OR(ef,n));const WR=new UR(4),G8=new L8(WR),V8=new K1(WR),ar=new zR(512),or=new I8(512);for(let n=0;n<256;++n){const t=n-127;t<-24?(ar[n]=0,ar[n|256]=32768,or[n]=24,or[n|256]=24):t<-14?(ar[n]=1024>>-t-14,ar[n|256]=1024>>-t-14|32768,or[n]=-t-1,or[n|256]=-t-1):t<=15?(ar[n]=t+15<<10,ar[n|256]=t+15<<10|32768,or[n]=13,or[n|256]=13):t<128?(ar[n]=31744,ar[n|256]=64512,or[n]=24,or[n|256]=24):(ar[n]=31744,ar[n|256]=64512,or[n]=13,or[n|256]=13)}const Q1=new K1(2048);for(let n=1;n<1024;++n){let t=n<<13,e=0;for(;!(t&8388608);)t<<=1,e-=8388608;t&=-8388609,e+=947912704,Q1[n]=t|e}for(let n=1024;n<2048;++n)Q1[n]=939524096+(n-1024<<13);const fh=new K1(64);for(let n=1;n<31;++n)fh[n]=n<<23;fh[31]=1199570944;fh[32]=2147483648;for(let n=33;n<63;++n)fh[n]=2147483648+(n-32<<23);fh[63]=3347054592;const jR=new zR(64);for(let n=1;n<64;++n)n!==32&&(jR[n]=1024);function W8(n){const t=n>>10;return V8[0]=Q1[jR[t]+(n&1023)]+fh[t],G8[0]}function XR(n,t,...e){return W8(F8(n,t,...z8(e)))}var tM={exports:{}};function qR(n,t,e){const i=e&&e.debug||!1;i&&console.log("[xml-utils] getting "+t+" in "+n);const s=typeof n=="object"?n.outer:n,r=s.slice(0,s.indexOf(">")+1),a=['"',"'"];for(let o=0;o/]`,r);if(i&&console.log("[xml-utils] start:",a),a===-1)return;const o=n.slice(a+t.length);let l=px(o,"^[^<]*[ /]>",0);const c=l!==-1&&o[l-1]==="/";if(i&&console.log("[xml-utils] selfClosing:",c),c===!1)if(s){let m=0,g=1,x=0;for(;(l=px(o,"[ /]"+t+">",m))!==-1;){const y=o.substring(m,l+1);if(g+=iA(y,"<"+t+`[ - >]`),x+=iA(y,""),x>=g)break;m=l}}else l=px(o,"[ /]"+t+">",0);const h=a+t.length+l+1;if(i&&console.log("[xml-utils] end:",h),h===-1)return;const u=n.slice(a,h);let p;return c?p=null:p=u.slice(u.indexOf(">")+1,u.lastIndexOf("<")),{inner:p,outer:u,start:a,end:h}}nM.exports=KR;nM.exports.default=KR;var Z8=nM.exports;const K8=Z8;function JR(n,t,e){const i=[],s=e&&e.debug||!1,r=e&&typeof e.nested=="boolean"?e.nested:!0;let a=e&&e.startIndex||0,o;for(;o=K8(n,t,{debug:s,startIndex:a});)r?a=o.start+1+t.length:a=o.end,i.push(o);return s&&console.log("findTagsByName found",i.length,"tags"),i}eM.exports=JR;eM.exports.default=JR;var J8=eM.exports;const Q8=gf(J8),Tu={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},hr={};for(const n in Tu)Tu.hasOwnProperty(n)&&(hr[Tu[n]]=parseInt(n,10));const tH=[hr.BitsPerSample,hr.ExtraSamples,hr.SampleFormat,hr.StripByteCounts,hr.StripOffsets,hr.StripRowCounts,hr.TileByteCounts,hr.TileOffsets,hr.SubIFDs],mx={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},Ee={};for(const n in mx)mx.hasOwnProperty(n)&&(Ee[mx[n]]=parseInt(n,10));const Yi={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},eH={Unspecified:0,Assocalpha:1,Unassalpha:2},$Y={Version:0,AddCompression:1},YY={None:0,Deflate:1,Zstandard:2},nH={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function iH(n,t){const{width:e,height:i}=n,s=new Uint8Array(e*i*3);let r;for(let a=0,o=0;a>24,l=n[s+2]<<24>>24;let c=(a+16)/116,h=o/500+c,u=c-l/200,p,m,g;h=lH*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),c=cH*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),u=hH*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),p=h*3.2406+c*-1.5372+u*-.4986,m=h*-.9689+c*1.8758+u*.0415,g=h*.0557+c*-.204+u*1.057,p=p>.0031308?1.055*p**(1/2.4)-.055:12.92*p,m=m>.0031308?1.055*m**(1/2.4)-.055:12.92*m,g=g>.0031308?1.055*g**(1/2.4)-.055:12.92*g,i[r]=Math.max(0,Math.min(1,p))*255,i[r+1]=Math.max(0,Math.min(1,m))*255,i[r+2]=Math.max(0,Math.min(1,g))*255}return i}const QR=new Map;function io(n,t){Array.isArray(n)||(n=[n]),n.forEach(e=>QR.set(e,t))}async function fH(n){const t=QR.get(n.Compression);if(!t)throw new Error(`Unknown compression method identifier: ${n.Compression}`);const e=await t();return new e(n)}io([void 0,1],()=>dl(()=>import("./raw-Dt1HMqYc.js"),__vite__mapDeps([0,1])).then(n=>n.default));io(5,()=>dl(()=>import("./lzw-DpvbRwG5.js"),__vite__mapDeps([2,1])).then(n=>n.default));io(6,()=>{throw new Error("old style JPEG compression is not supported.")});io(7,()=>dl(()=>import("./jpeg-CdeCw_eT.js"),__vite__mapDeps([3,1])).then(n=>n.default));io([8,32946],()=>dl(()=>import("./deflate-BN4JYXk8.js"),__vite__mapDeps([4,1,5,6,7,8,9,10])).then(n=>n.default));io(32773,()=>dl(()=>import("./packbits-DQnG8s9w.js"),__vite__mapDeps([11,1])).then(n=>n.default));io(34887,()=>dl(()=>import("./lerc-44IRF6I9.js"),__vite__mapDeps([12,5,6,1,7,8,9,10])).then(async n=>(await n.zstd.init(),n)).then(n=>n.default));io(50001,()=>dl(()=>import("./webimage-BcnuJlio.js"),__vite__mapDeps([13,1])).then(n=>n.default));function Rg(n,t,e,i=1){return new(Object.getPrototypeOf(n)).constructor(t*e*i)}function dH(n,t,e,i,s){const r=t/i,a=e/s;return n.map(o=>{const l=Rg(o,i,s);for(let c=0;c{const l=Rg(o,i,s);for(let c=0;c>8-s-C&u;else if(C+s<=16)h[S]=o.getUint16(P)>>16-s-C&u;else if(C+s<=24){const T=o.getUint16(P)<<8|o.getUint8(P+2);h[S]=T>>24-s-C&u}else h[S]=o.getUint32(P)>>32-s-C&u}}}}return h.buffer}class wH{constructor(t,e,i,s,r,a){this.fileDirectory=t,this.geoKeys=e,this.dataView=i,this.littleEndian=s,this.tiles=r?{}:null,this.isTiled=!t.StripOffsets;const o=t.PlanarConfiguration;if(this.planarConfiguration=typeof o>"u"?1:o,this.planarConfiguration!==1&&this.planarConfiguration!==2)throw new Error("Invalid planar configuration.");this.source=a}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return typeof this.fileDirectory.SamplesPerPixel<"u"?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:typeof this.fileDirectory.RowsPerStrip<"u"?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let e=0;e=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const e=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,i=this.fileDirectory.BitsPerSample[t];switch(e){case 1:if(i<=8)return DataView.prototype.getUint8;if(i<=16)return DataView.prototype.getUint16;if(i<=32)return DataView.prototype.getUint32;break;case 2:if(i<=8)return DataView.prototype.getInt8;if(i<=16)return DataView.prototype.getInt16;if(i<=32)return DataView.prototype.getInt32;break;case 3:switch(i){case 16:return function(s,r){return XR(this,s,r)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,e){const i=this.getSampleFormat(t),s=this.getBitsPerSample(t);return mv(i,s,e)}async getTileOrStrip(t,e,i,s,r){const a=Math.ceil(this.getWidth()/this.getTileWidth()),o=Math.ceil(this.getHeight()/this.getTileHeight());let l;const{tiles:c}=this;this.planarConfiguration===1?l=e*a+t:this.planarConfiguration===2&&(l=i*a*o+e*a+t);let h,u;this.isTiled?(h=this.fileDirectory.TileOffsets[l],u=this.fileDirectory.TileByteCounts[l]):(h=this.fileDirectory.StripOffsets[l],u=this.fileDirectory.StripByteCounts[l]);const p=(await this.source.fetch([{offset:h,length:u}],r))[0];let m;return c===null||!c[l]?(m=(async()=>{let g=await s.decode(this.fileDirectory,p);const x=this.getSampleFormat(),y=this.getBitsPerSample();return vH(x,y)&&(g=MH(g,x,this.planarConfiguration,this.getSamplesPerPixel(),y,this.getTileWidth(),this.getBlockHeight(e))),g})(),c!==null&&(c[l]=m)):m=c[l],{x:t,y:e,sample:i,data:await m}}async _readRaster(t,e,i,s,r,a,o,l,c){const h=this.getTileWidth(),u=this.getTileHeight(),p=this.getWidth(),m=this.getHeight(),g=Math.max(Math.floor(t[0]/h),0),x=Math.min(Math.ceil(t[2]/h),Math.ceil(p/h)),y=Math.max(Math.floor(t[1]/u),0),_=Math.min(Math.ceil(t[3]/u),Math.ceil(m/u)),M=t[2]-t[0];let b=this.getBytesPerPixel();const S=[],P=[];for(let L=0;L{const X=et.data,at=new DataView(X),H=this.getBlockHeight(et.y),J=et.y*u,st=et.x*h,Y=J+H,ct=(et.x+1)*h,mt=P[z],q=Math.min(H,H-(Y-t[3]),m-J),rt=Math.min(h,h-(ct-t[2]),p-st);for(let bt=Math.max(0,t[1]-J);bth[2]||h[1]>h[3])throw new Error("Invalid subsets");const u=h[2]-h[0],p=h[3]-h[1],m=u*p,g=this.getSamplesPerPixel();if(!e||!e.length)for(let M=0;M=g)return Promise.reject(new RangeError(`Invalid sample index '${e[M]}'.`));let x;if(i){const M=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,b=Math.max.apply(null,this.fileDirectory.BitsPerSample);x=mv(M,b,m*e.length),l&&x.fill(l)}else{x=[];for(let M=0;Mc[2]||c[1]>c[3])throw new Error("Invalid subsets");const h=this.fileDirectory.PhotometricInterpretation;if(h===Yi.RGB){let _=[0,1,2];if(this.fileDirectory.ExtraSamples!==eH.Unspecified&&o){_=[];for(let M=0;Mdx(r,"sample")===void 0):s=s.filter(r=>Number(dx(r,"sample"))===t);for(let r=0;r[o+s*y+r*_,u+l*y+c*_]),g=m.map(y=>y[0]),x=m.map(y=>y[1]);return[Math.min(...g),Math.min(...x),Math.max(...g),Math.max(...x)]}else{const s=this.getOrigin(),r=this.getResolution(),a=s[0],o=s[1],l=a+r[0]*i,c=o+r[1]*e;return[Math.min(a,l),Math.min(o,c),Math.max(a,l),Math.max(o,c)]}}}class bH{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,e){const i=this.getUint32(t,e),s=this.getUint32(t+4,e);let r;if(e){if(r=i+2**32*s,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}if(r=2**32*i+s,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}getInt64(t,e){let i=0;const s=(this._dataView.getUint8(t+(e?7:0))&128)>0;let r=!0;for(let a=0;a<8;a++){let o=this._dataView.getUint8(t+(e?a:7-a));s&&(r?o!==0&&(o=~(o-1)&255,r=!1):o=~o&255),i+=o*256**a}return s&&(i=-i),i}getUint8(t,e){return this._dataView.getUint8(t,e)}getInt8(t,e){return this._dataView.getInt8(t,e)}getUint16(t,e){return this._dataView.getUint16(t,e)}getInt16(t,e){return this._dataView.getInt16(t,e)}getUint32(t,e){return this._dataView.getUint32(t,e)}getInt32(t,e){return this._dataView.getInt32(t,e)}getFloat16(t,e){return XR(this._dataView,t,e)}getFloat32(t,e){return this._dataView.getFloat32(t,e)}getFloat64(t,e){return this._dataView.getFloat64(t,e)}}class SH{constructor(t,e,i,s){this._dataView=new DataView(t),this._sliceOffset=e,this._littleEndian=i,this._bigTiff=s}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(t,e){return this.sliceOffset<=t&&this.sliceTop>=t+e}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const e=this.readUint32(t),i=this.readUint32(t+4);let s;if(this._littleEndian){if(s=e+2**32*i,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}if(s=2**32*e+i,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}readInt64(t){let e=0;const i=(this._dataView.getUint8(t+(this._littleEndian?7:0))&128)>0;let s=!0;for(let r=0;r<8;r++){let a=this._dataView.getUint8(t+(this._littleEndian?r:7-r));i&&(s?a!==0&&(a=~(a-1)&255,s=!1):a=~a&255),e+=a*256**r}return i&&(e=-e),e}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const sA=`\r + >]`),x+=iA(y,""),x>=g)break;m=l}}else l=px(o,"[ /]"+t+">",0);const h=a+t.length+l+1;if(i&&console.log("[xml-utils] end:",h),h===-1)return;const u=n.slice(a,h);let p;return c?p=null:p=u.slice(u.indexOf(">")+1,u.lastIndexOf("<")),{inner:p,outer:u,start:a,end:h}}nM.exports=KR;nM.exports.default=KR;var Z8=nM.exports;const K8=Z8;function JR(n,t,e){const i=[],s=e&&e.debug||!1,r=e&&typeof e.nested=="boolean"?e.nested:!0;let a=e&&e.startIndex||0,o;for(;o=K8(n,t,{debug:s,startIndex:a});)r?a=o.start+1+t.length:a=o.end,i.push(o);return s&&console.log("findTagsByName found",i.length,"tags"),i}eM.exports=JR;eM.exports.default=JR;var J8=eM.exports;const Q8=gf(J8),Tu={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},hr={};for(const n in Tu)Tu.hasOwnProperty(n)&&(hr[Tu[n]]=parseInt(n,10));const tH=[hr.BitsPerSample,hr.ExtraSamples,hr.SampleFormat,hr.StripByteCounts,hr.StripOffsets,hr.StripRowCounts,hr.TileByteCounts,hr.TileOffsets,hr.SubIFDs],mx={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},Ee={};for(const n in mx)mx.hasOwnProperty(n)&&(Ee[mx[n]]=parseInt(n,10));const Yi={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},eH={Unspecified:0,Assocalpha:1,Unassalpha:2},$Y={Version:0,AddCompression:1},YY={None:0,Deflate:1,Zstandard:2},nH={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function iH(n,t){const{width:e,height:i}=n,s=new Uint8Array(e*i*3);let r;for(let a=0,o=0;a>24,l=n[s+2]<<24>>24;let c=(a+16)/116,h=o/500+c,u=c-l/200,p,m,g;h=lH*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),c=cH*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),u=hH*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),p=h*3.2406+c*-1.5372+u*-.4986,m=h*-.9689+c*1.8758+u*.0415,g=h*.0557+c*-.204+u*1.057,p=p>.0031308?1.055*p**(1/2.4)-.055:12.92*p,m=m>.0031308?1.055*m**(1/2.4)-.055:12.92*m,g=g>.0031308?1.055*g**(1/2.4)-.055:12.92*g,i[r]=Math.max(0,Math.min(1,p))*255,i[r+1]=Math.max(0,Math.min(1,m))*255,i[r+2]=Math.max(0,Math.min(1,g))*255}return i}const QR=new Map;function io(n,t){Array.isArray(n)||(n=[n]),n.forEach(e=>QR.set(e,t))}async function fH(n){const t=QR.get(n.Compression);if(!t)throw new Error(`Unknown compression method identifier: ${n.Compression}`);const e=await t();return new e(n)}io([void 0,1],()=>dl(()=>import("./raw-Dt1HMqYc.js"),__vite__mapDeps([0,1])).then(n=>n.default));io(5,()=>dl(()=>import("./lzw-DpvbRwG5.js"),__vite__mapDeps([2,1])).then(n=>n.default));io(6,()=>{throw new Error("old style JPEG compression is not supported.")});io(7,()=>dl(()=>import("./jpeg-CdeCw_eT.js"),__vite__mapDeps([3,1])).then(n=>n.default));io([8,32946],()=>dl(()=>import("./deflate-B6wx6bhZ.js"),__vite__mapDeps([4,1,5,6,7,8,9,10])).then(n=>n.default));io(32773,()=>dl(()=>import("./packbits-DQnG8s9w.js"),__vite__mapDeps([11,1])).then(n=>n.default));io(34887,()=>dl(()=>import("./lerc-cqroyPOz.js"),__vite__mapDeps([12,5,6,1,7,8,9,10])).then(async n=>(await n.zstd.init(),n)).then(n=>n.default));io(50001,()=>dl(()=>import("./webimage-BcnuJlio.js"),__vite__mapDeps([13,1])).then(n=>n.default));function Rg(n,t,e,i=1){return new(Object.getPrototypeOf(n)).constructor(t*e*i)}function dH(n,t,e,i,s){const r=t/i,a=e/s;return n.map(o=>{const l=Rg(o,i,s);for(let c=0;c{const l=Rg(o,i,s);for(let c=0;c>8-s-C&u;else if(C+s<=16)h[S]=o.getUint16(P)>>16-s-C&u;else if(C+s<=24){const T=o.getUint16(P)<<8|o.getUint8(P+2);h[S]=T>>24-s-C&u}else h[S]=o.getUint32(P)>>32-s-C&u}}}}return h.buffer}class wH{constructor(t,e,i,s,r,a){this.fileDirectory=t,this.geoKeys=e,this.dataView=i,this.littleEndian=s,this.tiles=r?{}:null,this.isTiled=!t.StripOffsets;const o=t.PlanarConfiguration;if(this.planarConfiguration=typeof o>"u"?1:o,this.planarConfiguration!==1&&this.planarConfiguration!==2)throw new Error("Invalid planar configuration.");this.source=a}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return typeof this.fileDirectory.SamplesPerPixel<"u"?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:typeof this.fileDirectory.RowsPerStrip<"u"?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let e=0;e=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const e=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,i=this.fileDirectory.BitsPerSample[t];switch(e){case 1:if(i<=8)return DataView.prototype.getUint8;if(i<=16)return DataView.prototype.getUint16;if(i<=32)return DataView.prototype.getUint32;break;case 2:if(i<=8)return DataView.prototype.getInt8;if(i<=16)return DataView.prototype.getInt16;if(i<=32)return DataView.prototype.getInt32;break;case 3:switch(i){case 16:return function(s,r){return XR(this,s,r)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,e){const i=this.getSampleFormat(t),s=this.getBitsPerSample(t);return mv(i,s,e)}async getTileOrStrip(t,e,i,s,r){const a=Math.ceil(this.getWidth()/this.getTileWidth()),o=Math.ceil(this.getHeight()/this.getTileHeight());let l;const{tiles:c}=this;this.planarConfiguration===1?l=e*a+t:this.planarConfiguration===2&&(l=i*a*o+e*a+t);let h,u;this.isTiled?(h=this.fileDirectory.TileOffsets[l],u=this.fileDirectory.TileByteCounts[l]):(h=this.fileDirectory.StripOffsets[l],u=this.fileDirectory.StripByteCounts[l]);const p=(await this.source.fetch([{offset:h,length:u}],r))[0];let m;return c===null||!c[l]?(m=(async()=>{let g=await s.decode(this.fileDirectory,p);const x=this.getSampleFormat(),y=this.getBitsPerSample();return vH(x,y)&&(g=MH(g,x,this.planarConfiguration,this.getSamplesPerPixel(),y,this.getTileWidth(),this.getBlockHeight(e))),g})(),c!==null&&(c[l]=m)):m=c[l],{x:t,y:e,sample:i,data:await m}}async _readRaster(t,e,i,s,r,a,o,l,c){const h=this.getTileWidth(),u=this.getTileHeight(),p=this.getWidth(),m=this.getHeight(),g=Math.max(Math.floor(t[0]/h),0),x=Math.min(Math.ceil(t[2]/h),Math.ceil(p/h)),y=Math.max(Math.floor(t[1]/u),0),_=Math.min(Math.ceil(t[3]/u),Math.ceil(m/u)),M=t[2]-t[0];let b=this.getBytesPerPixel();const S=[],P=[];for(let L=0;L{const X=et.data,at=new DataView(X),H=this.getBlockHeight(et.y),J=et.y*u,st=et.x*h,Y=J+H,ct=(et.x+1)*h,mt=P[z],q=Math.min(H,H-(Y-t[3]),m-J),rt=Math.min(h,h-(ct-t[2]),p-st);for(let bt=Math.max(0,t[1]-J);bth[2]||h[1]>h[3])throw new Error("Invalid subsets");const u=h[2]-h[0],p=h[3]-h[1],m=u*p,g=this.getSamplesPerPixel();if(!e||!e.length)for(let M=0;M=g)return Promise.reject(new RangeError(`Invalid sample index '${e[M]}'.`));let x;if(i){const M=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,b=Math.max.apply(null,this.fileDirectory.BitsPerSample);x=mv(M,b,m*e.length),l&&x.fill(l)}else{x=[];for(let M=0;Mc[2]||c[1]>c[3])throw new Error("Invalid subsets");const h=this.fileDirectory.PhotometricInterpretation;if(h===Yi.RGB){let _=[0,1,2];if(this.fileDirectory.ExtraSamples!==eH.Unspecified&&o){_=[];for(let M=0;Mdx(r,"sample")===void 0):s=s.filter(r=>Number(dx(r,"sample"))===t);for(let r=0;r[o+s*y+r*_,u+l*y+c*_]),g=m.map(y=>y[0]),x=m.map(y=>y[1]);return[Math.min(...g),Math.min(...x),Math.max(...g),Math.max(...x)]}else{const s=this.getOrigin(),r=this.getResolution(),a=s[0],o=s[1],l=a+r[0]*i,c=o+r[1]*e;return[Math.min(a,l),Math.min(o,c),Math.max(a,l),Math.max(o,c)]}}}class bH{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,e){const i=this.getUint32(t,e),s=this.getUint32(t+4,e);let r;if(e){if(r=i+2**32*s,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}if(r=2**32*i+s,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}getInt64(t,e){let i=0;const s=(this._dataView.getUint8(t+(e?7:0))&128)>0;let r=!0;for(let a=0;a<8;a++){let o=this._dataView.getUint8(t+(e?a:7-a));s&&(r?o!==0&&(o=~(o-1)&255,r=!1):o=~o&255),i+=o*256**a}return s&&(i=-i),i}getUint8(t,e){return this._dataView.getUint8(t,e)}getInt8(t,e){return this._dataView.getInt8(t,e)}getUint16(t,e){return this._dataView.getUint16(t,e)}getInt16(t,e){return this._dataView.getInt16(t,e)}getUint32(t,e){return this._dataView.getUint32(t,e)}getInt32(t,e){return this._dataView.getInt32(t,e)}getFloat16(t,e){return XR(this._dataView,t,e)}getFloat32(t,e){return this._dataView.getFloat32(t,e)}getFloat64(t,e){return this._dataView.getFloat64(t,e)}}class SH{constructor(t,e,i,s){this._dataView=new DataView(t),this._sliceOffset=e,this._littleEndian=i,this._bigTiff=s}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(t,e){return this.sliceOffset<=t&&this.sliceTop>=t+e}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const e=this.readUint32(t),i=this.readUint32(t+4);let s;if(this._littleEndian){if(s=e+2**32*i,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}if(s=2**32*e+i,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}readInt64(t){let e=0;const i=(this._dataView.getUint8(t+(this._littleEndian?7:0))&128)>0;let s=!0;for(let r=0;r<8;r++){let a=this._dataView.getUint8(t+(this._littleEndian?r:7-r));i&&(s?a!==0&&(a=~(a-1)&255,s=!1):a=~a&255),e+=a*256**r}return i&&(e=-e),e}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const sA=`\r \r `;function t3(n){if(typeof Object.fromEntries<"u")return Object.fromEntries(n);const t={};for(const[e,i]of n)t[e.toLowerCase()]=i;return t}function EH(n){const t=n.split(`\r `).map(e=>{const i=e.split(":").map(s=>s.trim());return i[0]=i[0].toLowerCase(),i});return t3(t)}function AH(n){const[t,...e]=n.split(";").map(s=>s.trim()),i=e.map(s=>s.split("="));return{type:t,params:t3(i)}}function gv(n){let t,e,i;return n&&([,t,e,i]=n.match(/bytes (\d+)-(\d+)\/(\d+)/),t=parseInt(t,10),e=parseInt(e,10),i=parseInt(i,10)),{start:t,end:e,total:i}}function TH(n,t){let e=null;const i=new TextDecoder("ascii"),s=[],r=`--${t}`,a=`${r}--`;for(let o=0;o<10;++o)i.decode(new Uint8Array(n,o,r.length))===r&&(e=o);if(e===null)throw new Error("Could not find initial boundary");for(;ethis.fetchSlice(i,e)))}async fetchSlice(t){throw new Error(`fetching of slice ${t} not possible, not implemented`)}get fileSize(){return null}async close(){}}class CH extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(t){if(typeof this.onEviction=="function")for(const[e,i]of t)this.onEviction(e,i.value)}_deleteIfExpired(t,e){return typeof e.expiry=="number"&&e.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,e.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,e){if(this._deleteIfExpired(t,e)===!1)return e.value}_getItemValue(t,e){return e.expiry?this._getOrDeleteIfExpired(t,e):e.value}_peek(t,e){const i=e.get(t);return this._getItemValue(t,i)}_set(t,e){this.cache.set(t,e),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(t,e){this.oldCache.delete(t),this._set(t,e)}*_entriesAscending(){for(const t of this.oldCache){const[e,i]=t;this.cache.has(e)||this._deleteIfExpired(e,i)===!1&&(yield t)}for(const t of this.cache){const[e,i]=t;this._deleteIfExpired(e,i)===!1&&(yield t)}}get(t){if(this.cache.has(t)){const e=this.cache.get(t);return this._getItemValue(t,e)}if(this.oldCache.has(t)){const e=this.oldCache.get(t);if(this._deleteIfExpired(t,e)===!1)return this._moveToRecent(t,e),e.value}}set(t,e,{maxAge:i=this.maxAge}={}){const s=typeof i=="number"&&i!==Number.POSITIVE_INFINITY?Date.now()+i:void 0;return this.cache.has(t)?this.cache.set(t,{value:e,expiry:s}):this._set(t,{value:e,expiry:s}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){const e=this.cache.delete(t);return e&&this._size--,this.oldCache.delete(t)||e}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const e=[...this._entriesAscending()],i=e.length-t;i<0?(this.cache=new Map(e),this.oldCache=new Map,this._size=e.length):(i>0&&this._emitEvictions(e.slice(0,i)),this.oldCache=new Map(e.slice(i)),this.cache=new Map,this._size=0),this.maxSize=t}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache){const[e,i]=t;this._deleteIfExpired(e,i)===!1&&(yield[e,i.value])}for(const t of this.oldCache){const[e,i]=t;this.cache.has(e)||this._deleteIfExpired(e,i)===!1&&(yield[e,i.value])}}*entriesDescending(){let t=[...this.cache];for(let e=t.length-1;e>=0;--e){const i=t[e],[s,r]=i;this._deleteIfExpired(s,r)===!1&&(yield[s,r.value])}t=[...this.oldCache];for(let e=t.length-1;e>=0;--e){const i=t[e],[s,r]=i;this.cache.has(s)||this._deleteIfExpired(s,r)===!1&&(yield[s,r.value])}}*entriesAscending(){for(const[t,e]of this._entriesAscending())yield[t,e.value]}get size(){if(!this._size)return this.oldCache.size;let t=0;for(const e of this.oldCache.keys())this.cache.has(e)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,e=this){for(const[i,s]of this.entriesAscending())t.call(e,s,i,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function RH(n){return new Promise(t=>setTimeout(t,n))}function PH(n,t){const e=Array.isArray(n)?n:Array.from(n),i=Array.isArray(t)?t:Array.from(t);return e.map((s,r)=>[s,i[r]])}class Kc extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Kc),this.name="AbortError"}}class IH extends Error{constructor(t,e){super(e),this.errors=t,this.message=e,this.name="AggregateError"}}const LH=IH;class DH{constructor(t,e,i=null){this.offset=t,this.length=e,this.data=i}get top(){return this.offset+this.length}}class rA{constructor(t,e,i){this.offset=t,this.length=e,this.blockIds=i}}class NH extends e3{constructor(t,{blockSize:e=65536,cacheSize:i=100}={}){super(),this.source=t,this.blockSize=e,this.blockCache=new CH({maxSize:i,onEviction:(s,r)=>{this.evictedBlocks.set(s,r)}}),this.evictedBlocks=new Map,this.blockRequests=new Map,this.blockIdsToFetch=new Set,this.abortedBlockIds=new Set}get fileSize(){return this.source.fileSize}async fetch(t,e){const i=[],s=[],r=[];this.evictedBlocks.clear();for(const{offset:p,length:m}of t){let g=p+m;const{fileSize:x}=this;x!==null&&(g=Math.min(g,x));const y=Math.floor(p/this.blockSize)*this.blockSize;for(let _=y;_this.abortedBlockIds.has(p)||!this.blockCache.has(p));if(l.forEach(p=>this.blockIdsToFetch.add(p)),l.length>0&&e&&!e.aborted){this.fetchBlocks(null);for(const p of l){const m=this.blockRequests.get(p);if(!m)throw new Error(`Block ${p} is not in the block requests`);o.push(m)}await Promise.allSettled(o)}if(e&&e.aborted)throw new Kc("Request was aborted");const c=r.map(p=>this.blockCache.get(p)||this.evictedBlocks.get(p)),h=c.filter(p=>!p);if(h.length)throw new LH(h,"Request failed");const u=new Map(PH(r,c));return this.readSliceData(t,u)}fetchBlocks(t){if(this.blockIdsToFetch.size>0){const e=this.groupBlocks(this.blockIdsToFetch),i=this.source.fetch(e,t);for(let s=0;s{try{const o=(await i)[s],l=a*this.blockSize,c=l-o.offset,h=Math.min(c+this.blockSize,o.data.byteLength),u=o.data.slice(c,h),p=new DH(l,u.byteLength,u,a);this.blockCache.set(a,p),this.abortedBlockIds.delete(a)}catch(o){if(o.name==="AbortError")o.signal=t,this.blockCache.delete(a),this.abortedBlockIds.add(a);else throw o}finally{this.blockRequests.delete(a)}})())}this.blockIdsToFetch.clear()}}groupBlocks(t){const e=Array.from(t).sort((a,o)=>a-o);if(e.length===0)return[];let i=[],s=null;const r=[];for(const a of e)s===null||s+1===a?(i.push(a),s=a):(r.push(new rA(i[0]*this.blockSize,i.length*this.blockSize,i)),i=[a],s=a);return r.push(new rA(i[0]*this.blockSize,i.length*this.blockSize,i)),r}readSliceData(t,e){return t.map(i=>{let s=i.offset+i.length;this.fileSize!==null&&(s=Math.min(this.fileSize,s));const r=Math.floor(i.offset/this.blockSize),a=Math.floor(s/this.blockSize),o=new ArrayBuffer(i.length),l=new Uint8Array(o);for(let c=r;c<=a;++c){const h=e.get(c),u=h.offset-i.offset,p=h.top-s;let m=0,g=0,x;u<0?m=-u:u>0&&(g=u),p<0?x=h.length-m:x=s-h.offset-m;const y=new Uint8Array(h.data,m,x);l.set(y,g)}return o})}}class aM{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(t){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class oM{constructor(t){this.url=t}async request({headers:t,signal:e}={}){throw new Error("request is not implemented")}}class OH extends aM{constructor(t){super(),this.response=t}get status(){return this.response.status}getHeader(t){return this.response.headers.get(t)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class FH extends oM{constructor(t,e){super(t),this.credentials=e}async request({headers:t,signal:e}={}){const i=await fetch(this.url,{headers:t,credentials:this.credentials,signal:e});return new OH(i)}}class UH extends aM{constructor(t,e){super(),this.xhr=t,this.data=e}get status(){return this.xhr.status}getHeader(t){return this.xhr.getResponseHeader(t)}async getData(){return this.data}}class kH extends oM{constructRequest(t,e){return new Promise((i,s)=>{const r=new XMLHttpRequest;r.open("GET",this.url),r.responseType="arraybuffer";for(const[a,o]of Object.entries(t))r.setRequestHeader(a,o);r.onload=()=>{const a=r.response;i(new UH(r,a))},r.onerror=s,r.onabort=()=>s(new Kc("Request aborted")),r.send(),e&&(e.aborted&&r.abort(),e.addEventListener("abort",()=>r.abort()))})}async request({headers:t,signal:e}={}){return await this.constructRequest(t,e)}}const gx={};class zH extends aM{constructor(t,e){super(),this.response=t,this.dataPromise=e}get status(){return this.response.statusCode}getHeader(t){return this.response.headers[t]}async getData(){return await this.dataPromise}}class BH extends oM{constructor(t){super(t),this.parsedUrl=gx.parse(this.url),this.httpApi=(this.parsedUrl.protocol==="http:",gx)}constructRequest(t,e){return new Promise((i,s)=>{const r=this.httpApi.get({...this.parsedUrl,headers:t},a=>{const o=new Promise(l=>{const c=[];a.on("data",h=>{c.push(h)}),a.on("end",()=>{const h=Buffer.concat(c).buffer;l(h)}),a.on("error",s)});i(new zH(a,o))});r.on("error",s),e&&(e.aborted&&r.destroy(new Kc("Request aborted")),e.addEventListener("abort",()=>r.destroy(new Kc("Request aborted"))))})}async request({headers:t,signal:e}={}){return await this.constructRequest(t,e)}}class lM extends e3{constructor(t,e,i,s){super(),this.client=t,this.headers=e,this.maxRanges=i,this.allowFullFile=s,this._fileSize=null}async fetch(t,e){return this.maxRanges>=t.length?this.fetchSlices(t,e):(this.maxRanges>0&&t.length>1,Promise.all(t.map(i=>this.fetchSlice(i,e))))}async fetchSlices(t,e){const i=await this.client.request({headers:{...this.headers,Range:`bytes=${t.map(({offset:s,length:r})=>`${s}-${s+r}`).join(",")}`},signal:e});if(i.ok)if(i.status===206){const{type:s,params:r}=AH(i.getHeader("content-type"));if(s==="multipart/byteranges"){const u=TH(await i.getData(),r.boundary);return this._fileSize=u[0].fileSize||null,u}const a=await i.getData(),{start:o,end:l,total:c}=gv(i.getHeader("content-range"));this._fileSize=c||null;const h=[{data:a,offset:o,length:l-o}];if(t.length>1){const u=await Promise.all(t.slice(1).map(p=>this.fetchSlice(p,e)));return h.concat(u)}return h}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const s=await i.getData();return this._fileSize=s.byteLength,[{data:s,offset:0,length:s.byteLength}]}else throw new Error("Error fetching data.")}async fetchSlice(t,e){const{offset:i,length:s}=t,r=await this.client.request({headers:{...this.headers,Range:`bytes=${i}-${i+s}`},signal:e});if(r.ok)if(r.status===206){const a=await r.getData(),{total:o}=gv(r.getHeader("content-range"));return this._fileSize=o||null,{data:a,offset:i,length:s}}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const a=await r.getData();return this._fileSize=a.byteLength,{data:a,offset:0,length:a.byteLength}}else throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function cM(n,{blockSize:t,cacheSize:e}){return t===null?n:new NH(n,{blockSize:t,cacheSize:e})}function HH(n,{headers:t={},credentials:e,maxRanges:i=0,allowFullFile:s=!1,...r}={}){const a=new FH(n,e),o=new lM(a,t,i,s);return cM(o,r)}function GH(n,{headers:t={},maxRanges:e=0,allowFullFile:i=!1,...s}={}){const r=new kH(n),a=new lM(r,t,e,i);return cM(a,s)}function VH(n,{headers:t={},maxRanges:e=0,allowFullFile:i=!1,...s}={}){const r=new BH(n),a=new lM(r,t,e,i);return cM(a,s)}function WH(n,{forceXHR:t=!1,...e}={}){return typeof fetch=="function"&&!t?HH(n,e):typeof XMLHttpRequest<"u"?GH(n,e):VH(n,e)}function yv(n){switch(n){case Ee.BYTE:case Ee.ASCII:case Ee.SBYTE:case Ee.UNDEFINED:return 1;case Ee.SHORT:case Ee.SSHORT:return 2;case Ee.LONG:case Ee.SLONG:case Ee.FLOAT:case Ee.IFD:return 4;case Ee.RATIONAL:case Ee.SRATIONAL:case Ee.DOUBLE:case Ee.LONG8:case Ee.SLONG8:case Ee.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${n}`)}}function jH(n){const t=n.GeoKeyDirectory;if(!t)return null;const e={};for(let i=4;i<=t[3]*4;i+=4){const s=nH[t[i]],r=t[i+1]?Tu[t[i+1]]:null,a=t[i+2],o=t[i+3];let l=null;if(!r)l=o;else{if(l=n[r],typeof l>"u"||l===null)throw new Error(`Could not get value of geoKey '${s}'.`);typeof l=="string"?l=l.substring(o,o+a-1):l.subarray&&(l=l.subarray(o,o+a),a===1&&(l=l[0]))}e[s]=l}return e}function pc(n,t,e,i){let s=null,r=null;const a=yv(t);switch(t){case Ee.BYTE:case Ee.ASCII:case Ee.UNDEFINED:s=new Uint8Array(e),r=n.readUint8;break;case Ee.SBYTE:s=new Int8Array(e),r=n.readInt8;break;case Ee.SHORT:s=new Uint16Array(e),r=n.readUint16;break;case Ee.SSHORT:s=new Int16Array(e),r=n.readInt16;break;case Ee.LONG:case Ee.IFD:s=new Uint32Array(e),r=n.readUint32;break;case Ee.SLONG:s=new Int32Array(e),r=n.readInt32;break;case Ee.LONG8:case Ee.IFD8:s=new Array(e),r=n.readUint64;break;case Ee.SLONG8:s=new Array(e),r=n.readInt64;break;case Ee.RATIONAL:s=new Uint32Array(e*2),r=n.readUint32;break;case Ee.SRATIONAL:s=new Int32Array(e*2),r=n.readInt32;break;case Ee.FLOAT:s=new Float32Array(e),r=n.readFloat32;break;case Ee.DOUBLE:s=new Float64Array(e),r=n.readFloat64;break;default:throw new RangeError(`Invalid field type: ${t}`)}if(t===Ee.RATIONAL||t===Ee.SRATIONAL)for(let o=0;og.getWidth()-x.getWidth());for(let g=0;gy||a&&a>_)break}}let p=e;if(o){const[m,g]=l.getOrigin(),[x,y]=c.getResolution(l);p=[Math.round((o[0]-m)/x),Math.round((o[1]-g)/y),Math.round((o[2]-m)/x),Math.round((o[3]-g)/y)],p=[Math.min(p[0],p[2]),Math.min(p[1],p[3]),Math.max(p[0],p[2]),Math.max(p[1],p[3])]}return c.readRasters({...t,window:p})}}class hM extends qH{constructor(t,e,i,s,r={}){super(),this.source=t,this.littleEndian=e,this.bigTiff=i,this.firstIFDOffset=s,this.cache=r.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(t,e){const i=this.bigTiff?4048:1024;return new SH((await this.source.fetch([{offset:t,length:typeof e<"u"?e:i}]))[0],t,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(t){const e=this.bigTiff?20:12,i=this.bigTiff?8:2;let s=await this.getSlice(t);const r=this.bigTiff?s.readUint64(t):s.readUint16(t),a=r*e+(this.bigTiff?16:6);s.covers(t,a)||(s=await this.getSlice(t,a));const o={};let l=t+(this.bigTiff?8:2);for(let u=0;u{const e=await this.ifdRequests[t-1];if(e.nextIFDByteOffset===0)throw new um(t);return this.parseFileDirectoryAt(e.nextIFDByteOffset)})(),this.ifdRequests[t]}async getImage(t=0){const e=await this.requestIFD(t);return new wH(e.fileDirectory,e.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let t=0,e=!0;for(;e;)try{await this.requestIFD(t),++t}catch(i){if(i instanceof um)e=!1;else throw i}return t}async getGhostValues(){const t=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const e="GDAL_STRUCTURAL_METADATA_SIZE=",i=e.length+100;let s=await this.getSlice(t,i);if(e===pc(s,Ee.ASCII,e.length,t)){const a=pc(s,Ee.ASCII,i,t).split(` diff --git a/assets/deflate-B6wx6bhZ.js b/assets/deflate-B6wx6bhZ.js new file mode 100644 index 0000000..d5bc9dd --- /dev/null +++ b/assets/deflate-B6wx6bhZ.js @@ -0,0 +1 @@ +import{i as r}from"./Simulation-RZxs6R_p.js";import{B as o}from"./basedecoder-DvumDe3Y.js";import"./index-cA1eFW7V.js";import"./heading-DHsph2H5.js";import"./Footer-Cn5RvAyN.js";import"./location-D8PyOyjj.js";import"./stack-ABWX5mQg.js";class c extends o{decodeBlock(e){return r(new Uint8Array(e)).buffer}}export{c as default}; diff --git a/assets/deflate-BN4JYXk8.js b/assets/deflate-BN4JYXk8.js deleted file mode 100644 index a9dd7d5..0000000 --- a/assets/deflate-BN4JYXk8.js +++ /dev/null @@ -1 +0,0 @@ -import{i as r}from"./Simulation-BDBKazo-.js";import{B as o}from"./basedecoder-DvumDe3Y.js";import"./index-Ba81FydE.js";import"./heading-GfTBNZPF.js";import"./Footer-BEVKcqw5.js";import"./location-B7dRf9MH.js";import"./stack-B6rX1mqT.js";class c extends o{decodeBlock(e){return r(new Uint8Array(e)).buffer}}export{c as default}; diff --git a/assets/heading-GfTBNZPF.js b/assets/heading-DHsph2H5.js similarity index 93% rename from assets/heading-GfTBNZPF.js rename to assets/heading-DHsph2H5.js index 6bde5d5..b0d5b66 100644 --- a/assets/heading-GfTBNZPF.js +++ b/assets/heading-DHsph2H5.js @@ -1 +1 @@ -import{a4 as h,f as c,x as m,D as x,j as n,c as d,l as i,w as _}from"./index-Ba81FydE.js";const[g,u]=h("Card"),H=c(function(s,a){const{className:e,children:r,direction:t="column",justify:y,align:C,...f}=m(s),l=x("Card",s);return n.jsx(d.div,{ref:a,className:i("chakra-card",e),__css:{display:"flex",flexDirection:t,justifyContent:y,alignItems:C,position:"relative",minWidth:0,wordWrap:"break-word",...l.container},...f,children:n.jsx(g,{value:l,children:r})})}),k=c(function(s,a){const{className:e,...r}=s,t=u();return n.jsx(d.div,{ref:a,className:i("chakra-card__body",e),__css:t.body,...r})}),v=c(function(s,a){const{className:e,...r}=s,t=u();return n.jsx(d.div,{ref:a,className:i("chakra-card__header",e),__css:t.header,...r})}),N=c(function(s,a){const e=_("Heading",s),{className:r,...t}=m(s);return n.jsx(d.h2,{ref:a,className:i("chakra-heading",s.className),...t,__css:e})});N.displayName="Heading";export{H as C,N as H,v as a,k as b}; +import{a4 as h,f as c,x as m,D as x,j as n,c as d,l as i,w as _}from"./index-cA1eFW7V.js";const[g,u]=h("Card"),H=c(function(s,a){const{className:e,children:r,direction:t="column",justify:y,align:C,...f}=m(s),l=x("Card",s);return n.jsx(d.div,{ref:a,className:i("chakra-card",e),__css:{display:"flex",flexDirection:t,justifyContent:y,alignItems:C,position:"relative",minWidth:0,wordWrap:"break-word",...l.container},...f,children:n.jsx(g,{value:l,children:r})})}),k=c(function(s,a){const{className:e,...r}=s,t=u();return n.jsx(d.div,{ref:a,className:i("chakra-card__body",e),__css:t.body,...r})}),v=c(function(s,a){const{className:e,...r}=s,t=u();return n.jsx(d.div,{ref:a,className:i("chakra-card__header",e),__css:t.header,...r})}),N=c(function(s,a){const e=_("Heading",s),{className:r,...t}=m(s);return n.jsx(d.h2,{ref:a,className:i("chakra-heading",s.className),...t,__css:e})});N.displayName="Heading";export{H as C,N as H,v as a,k as b}; diff --git a/assets/image-D_XEucjS.js b/assets/image-H-1NI3NN.js similarity index 91% rename from assets/image-D_XEucjS.js rename to assets/image-H-1NI3NN.js index d6faa18..0c72651 100644 --- a/assets/image-D_XEucjS.js +++ b/assets/image-H-1NI3NN.js @@ -1 +1 @@ -import{d as b,n as N,f as v,j as k,o as S,c as j}from"./index-Ba81FydE.js";function w(c){const{loading:e,src:o,srcSet:s,onLoad:r,onError:t,crossOrigin:i,sizes:g,ignoreFallback:f}=c,[l,u]=b.useState("pending");b.useEffect(()=>{u(o?"loading":"pending")},[o]);const n=b.useRef(),h=b.useCallback(()=>{if(!o)return;d();const a=new Image;a.src=o,i&&(a.crossOrigin=i),s&&(a.srcset=s),g&&(a.sizes=g),e&&(a.loading=e),a.onload=m=>{d(),u("loaded"),r==null||r(m)},a.onerror=m=>{d(),u("failed"),t==null||t(m)},n.current=a},[o,i,s,g,r,t,e]),d=()=>{n.current&&(n.current.onload=null,n.current.onerror=null,n.current=null)};return N(()=>{if(!f)return l==="loading"&&h(),()=>{d()}},[l,h,f]),f?"loaded":l}const O=(c,e)=>c!=="loaded"&&e==="beforeLoadOrError"||c==="failed"&&e==="onError",I=v(function(e,o){const{htmlWidth:s,htmlHeight:r,alt:t,...i}=e;return k.jsx("img",{width:s,height:r,ref:o,alt:t,...i})});I.displayName="NativeImage";const y=v(function(e,o){const{fallbackSrc:s,fallback:r,src:t,srcSet:i,align:g,fit:f,loading:l,ignoreFallback:u,crossOrigin:n,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:d,...a}=e,m=s!==void 0||r!==void 0,p=l!=null||u||!m,x=w({...e,crossOrigin:n,ignoreFallback:p}),E=O(x,h),F={ref:o,objectFit:f,objectPosition:g,...p?a:S(a,["onError","onLoad"])};return E?r||k.jsx(j.img,{as:I,className:"chakra-image__placeholder",src:s,...F}):k.jsx(j.img,{as:I,src:t,srcSet:i,crossOrigin:n,loading:l,referrerPolicy:d,className:"chakra-image",...F})});y.displayName="Image";export{y as I}; +import{d as b,n as N,f as v,j as k,o as S,c as j}from"./index-cA1eFW7V.js";function w(c){const{loading:e,src:o,srcSet:s,onLoad:r,onError:t,crossOrigin:i,sizes:g,ignoreFallback:f}=c,[l,u]=b.useState("pending");b.useEffect(()=>{u(o?"loading":"pending")},[o]);const n=b.useRef(),h=b.useCallback(()=>{if(!o)return;d();const a=new Image;a.src=o,i&&(a.crossOrigin=i),s&&(a.srcset=s),g&&(a.sizes=g),e&&(a.loading=e),a.onload=m=>{d(),u("loaded"),r==null||r(m)},a.onerror=m=>{d(),u("failed"),t==null||t(m)},n.current=a},[o,i,s,g,r,t,e]),d=()=>{n.current&&(n.current.onload=null,n.current.onerror=null,n.current=null)};return N(()=>{if(!f)return l==="loading"&&h(),()=>{d()}},[l,h,f]),f?"loaded":l}const O=(c,e)=>c!=="loaded"&&e==="beforeLoadOrError"||c==="failed"&&e==="onError",I=v(function(e,o){const{htmlWidth:s,htmlHeight:r,alt:t,...i}=e;return k.jsx("img",{width:s,height:r,ref:o,alt:t,...i})});I.displayName="NativeImage";const y=v(function(e,o){const{fallbackSrc:s,fallback:r,src:t,srcSet:i,align:g,fit:f,loading:l,ignoreFallback:u,crossOrigin:n,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:d,...a}=e,m=s!==void 0||r!==void 0,p=l!=null||u||!m,x=w({...e,crossOrigin:n,ignoreFallback:p}),E=O(x,h),F={ref:o,objectFit:f,objectPosition:g,...p?a:S(a,["onError","onLoad"])};return E?r||k.jsx(j.img,{as:I,className:"chakra-image__placeholder",src:s,...F}):k.jsx(j.img,{as:I,src:t,srcSet:i,crossOrigin:n,loading:l,referrerPolicy:d,className:"chakra-image",...F})});y.displayName="Image";export{y as I}; diff --git a/assets/index-Ba81FydE.js b/assets/index-cA1eFW7V.js similarity index 87% rename from assets/index-Ba81FydE.js rename to assets/index-cA1eFW7V.js index 2f5fe57..cdfffd7 100644 --- a/assets/index-Ba81FydE.js +++ b/assets/index-cA1eFW7V.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Map-BrJAk4eL.js","assets/Footer-BEVKcqw5.js","assets/location-B7dRf9MH.js","assets/image-D_XEucjS.js","assets/Map-k4G4I0uA.css","assets/Simulation-BDBKazo-.js","assets/heading-GfTBNZPF.js","assets/stack-B6rX1mqT.js","assets/Impressum-O1V9FZWa.js","assets/Datenschutz-BuuC7UFN.js","assets/About-Cy9qfuX9.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Map-D9xkNy6Y.js","assets/Footer-Cn5RvAyN.js","assets/location-D8PyOyjj.js","assets/image-H-1NI3NN.js","assets/Map-k4G4I0uA.css","assets/Simulation-RZxs6R_p.js","assets/heading-DHsph2H5.js","assets/stack-ABWX5mQg.js","assets/Impressum-CgX14S4L.js","assets/Datenschutz-Cu6H6gyQ.js","assets/About-i5R1jy45.js"])))=>i.map(i=>d[i]); var NC=Object.defineProperty;var FC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gn=(e,t,n)=>FC(e,typeof t!="symbol"?t+"":t,n);function qv(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)}})();const BC="modulepreload",VC=function(e){return"/"+e},Nm={},ao=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=VC(l),l in Nm)return;Nm[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":BC,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var wn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xv={exports:{}},mu={},Yv={exports:{}},G={};/** * @license React * react.production.min.js @@ -15,7 +15,7 @@ var NC=Object.defineProperty;var FC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var iT=x,oT=Symbol.for("react.element"),sT=Symbol.for("react.fragment"),aT=Object.prototype.hasOwnProperty,lT=iT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uT={key:!0,ref:!0,__self:!0,__source:!0};function o1(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)aT.call(t,r)&&!uT.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:oT,type:e,key:o,ref:s,props:i,_owner:lT.current}}mu.Fragment=sT;mu.jsx=o1;mu.jsxs=o1;Xv.exports=mu;var O=Xv.exports;function jF(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function cT(){return!!(globalThis!=null&&globalThis.document)}function dT(e){return e.parentElement&&dT(e.parentElement)?!0:e.hidden}function NF(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function FF(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function fT(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const hT=e=>e?"":void 0,BF=e=>e?!0:void 0;function pT(e){return Array.isArray(e)}function Ht(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!pT(e)}function mT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function gT(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Ld(e){if(e==null)return e;const{unitless:t}=gT(e);return t||typeof e=="number"?`${e}px`:e}const s1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Ch=e=>Object.fromEntries(Object.entries(e).sort(s1));function Um(e){const t=Ch(e);return Object.assign(Object.values(t),t)}function yT(e){const t=Object.keys(Ch(e));return new Set(t)}function Wm(e){if(!e)return e;e=Ld(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Io(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Ld(e)})`),t&&n.push("and",`(max-width: ${Ld(t)})`),n.join(" ")}function vT(e){if(!e)return null;e.base=e.base??"0px";const t=Um(e),n=Object.entries(e).sort(s1).map(([o,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?Wm(u):void 0,{_minW:Wm(s),breakpoint:o,minW:s,maxW:u,maxWQuery:Io(null,u),minWQuery:Io(s),minMaxQuery:Io(s,u)}}),r=yT(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(o){const s=Object.keys(o);return s.length>0&&s.every(a=>r.has(a))},asObject:Ch(e),asArray:Um(e),details:n,get(o){return n.find(s=>s.breakpoint===o)},media:[null,...t.map(o=>Io(o)).slice(1)],toArrayValue(o){if(!Ht(o))throw new Error("toArrayValue: value must be an object");const s=i.map(a=>o[a]??null);for(;mT(s)===null;)s.pop();return s},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((s,a,l)=>{const u=i[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function Md(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function a1(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function bT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Xt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=x.createContext(s);a.displayName=t;function l(){var c;const u=x.useContext(a);if(!u&&n){const d=new Error(o??bT(r,i));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const Nn=(...e)=>e.filter(Boolean).join(" ");function ST(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(i))return a.get(i);const l=e(r,i,o,s);return a.set(i,l),l}},l1=xT(ST),wT=e=>e.default||e;function u1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function kT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const CT=e=>typeof e=="function";function sn(e,...t){return CT(e)?e(...t):e}function TT(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=s=>{const a={};for(let l=0;li(Array.isArray(s)?s:r.filter(s));return t.map(o).concat(i(r))}function Hm(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,a=[]){if(Ht(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(i==null?void 0:i(u))??u,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=o(c,f)}return l}return t(s,a)}return o(e)}var Cl={exports:{}};Cl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",y="[object GeneratorFunction]",v="[object Map]",S="[object Number]",m="[object Null]",h="[object Object]",g="[object Proxy]",w="[object RegExp]",P="[object Set]",$="[object String]",_="[object Undefined]",A="[object WeakMap]",F="[object ArrayBuffer]",j="[object DataView]",K="[object Float32Array]",ce="[object Float64Array]",Ze="[object Int8Array]",Re="[object Int16Array]",T="[object Int32Array]",M="[object Uint8Array]",L="[object Uint8ClampedArray]",R="[object Uint16Array]",D="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,Q=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,H={};H[K]=H[ce]=H[Ze]=H[Re]=H[T]=H[M]=H[L]=H[R]=H[D]=!0,H[a]=H[l]=H[F]=H[c]=H[j]=H[d]=H[f]=H[p]=H[v]=H[S]=H[h]=H[w]=H[P]=H[$]=H[A]=!1;var Je=typeof wn=="object"&&wn&&wn.Object===Object&&wn,mo=typeof self=="object"&&self&&self.Object===Object&&self,pt=Je||mo||Function("return this")(),kr=t&&!t.nodeType&&t,go=kr&&!0&&e&&!e.nodeType&&e,vm=go&&go.exports===kr,sc=vm&&Je.process,bm=function(){try{var b=go&&go.require&&go.require("util").types;return b||sc&&sc.binding&&sc.binding("util")}catch{}}(),Sm=bm&&bm.isTypedArray;function Pk(b,C,E){switch(E.length){case 0:return b.call(C);case 1:return b.call(C,E[0]);case 2:return b.call(C,E[0],E[1]);case 3:return b.call(C,E[0],E[1],E[2])}return b.apply(C,E)}function Ek(b,C){for(var E=-1,B=Array(b);++E-1}function Xk(b,C){var E=this.__data__,B=da(E,b);return B<0?(++this.size,E.push([b,C])):E[B][1]=C,this}mn.prototype.clear=Hk,mn.prototype.delete=Kk,mn.prototype.get=Gk,mn.prototype.has=qk,mn.prototype.set=Xk;function ii(b){var C=-1,E=b==null?0:b.length;for(this.clear();++C1?E[X-1]:void 0,pe=X>2?E[2]:void 0;for(ae=b.length>3&&typeof ae=="function"?(X--,ae):void 0,pe&&CC(E[0],E[1],pe)&&(ae=X<3?void 0:ae,X=1),C=Object(C);++B-1&&b%1==0&&b0){if(++C>=i)return arguments[0]}else C=0;return b.apply(void 0,arguments)}}function OC(b){if(b!=null){try{return la.call(b)}catch{}try{return b+""}catch{}}return""}function pa(b,C){return b===C||b!==b&&C!==C}var fc=$m(function(){return arguments}())?$m:function(b){return vo(b)&&Vn.call(b,"callee")&&!zk.call(b,"callee")},hc=Array.isArray;function pc(b){return b!=null&&Mm(b.length)&&!mc(b)}function LC(b){return vo(b)&&pc(b)}var Lm=Dk||jC;function mc(b){if(!Pr(b))return!1;var C=fa(b);return C==p||C==y||C==u||C==g}function Mm(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function Pr(b){var C=typeof b;return b!=null&&(C=="object"||C=="function")}function vo(b){return b!=null&&typeof b=="object"}function MC(b){if(!vo(b)||fa(b)!=h)return!1;var C=Tm(b);if(C===null)return!0;var E=Vn.call(C,"constructor")&&C.constructor;return typeof E=="function"&&E instanceof E&&la.call(E)==Lk}var zm=Sm?_k(Sm):cC;function zC(b){return bC(b,Im(b))}function Im(b){return pc(b)?sC(b):dC(b)}var IC=SC(function(b,C,E,B){Rm(b,C,E,B)});function DC(b){return function(){return b}}function Dm(b){return b}function jC(){return!1}e.exports=IC})(Cl,Cl.exports);var PT=Cl.exports;const an=ei(PT);function Ya(e,t=[]){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function ET(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(f,p)=>f!==p}=e,o=Ya(r),s=Ya(i),[a,l]=x.useState(n),u=t!==void 0,c=u?t:a,d=Ya(f=>{const y=typeof f=="function"?f(c):f;s(c,y)&&(u||l(y),o(y))},[u,o,c,s]);return[c,d]}const zd=globalThis!=null&&globalThis.document?x.useLayoutEffect:x.useEffect,Km=(e,t)=>{const n=x.useRef(!1),r=x.useRef(!1);x.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function _T(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function gu(...e){return t=>{e.forEach(n=>{_T(n,t)})}}function VF(...e){return x.useMemo(()=>gu(...e),e)}function $T(e,t){const n=Ya(e);x.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Ae={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Yt=e=>c1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),yn=e=>c1(t=>e(t,"~ &"),"[data-peer]",".peer"),c1=(e,...t)=>t.map(e).join(", "),RT={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Yt(Ae.open),_groupClosed:Yt(Ae.closed),_groupHover:Yt(Ae.hover),_peerHover:yn(Ae.hover),_groupFocus:Yt(Ae.focus),_peerFocus:yn(Ae.focus),_groupFocusVisible:Yt(Ae.focusVisible),_peerFocusVisible:yn(Ae.focusVisible),_groupActive:Yt(Ae.active),_peerActive:yn(Ae.active),_groupDisabled:Yt(Ae.disabled),_peerDisabled:yn(Ae.disabled),_groupInvalid:Yt(Ae.invalid),_peerInvalid:yn(Ae.invalid),_groupChecked:Yt(Ae.checked),_peerChecked:yn(Ae.checked),_groupFocusWithin:Yt(Ae.focusWithin),_peerFocusWithin:yn(Ae.focusWithin),_peerPlaceholderShown:yn(Ae.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"};function yu(e){const t=e.conditions??{},n=Object.fromEntries(Object.entries(t).map(([r,i])=>[`_${r}`,i]));return{...RT,...n}}function d1(e){return Object.keys(yu(e))}const AT=e=>/!(important)?$/.test(e),Gm=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,OT=(e,t)=>n=>{const r=String(t),i=AT(r),o=Gm(r),s=e?`${e}.${o}`:o;let a=Ht(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=Gm(a),i?`${a} !important`:a};function Th(e){const{scale:t,transform:n,compose:r}=e;return(o,s)=>{const a=OT(t,o)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const ga=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Pt(e,t){return n=>{const r={property:n,scale:e};return r.transform=Th({scale:e,transform:t}),r}}const LT=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function MT(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:LT(t),transform:n?Th({scale:n,compose:r}):r}}const f1=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function zT(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...f1].join(" ")}function IT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...f1].join(" ")}const DT={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},jT={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function NT(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const FT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Id={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},BT=new Set(Object.values(Id)),Dd=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),VT=e=>e.trim();function UT(e,t){if(e==null||Dd.has(e))return e;if(!(jd(e)||Dd.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return e;const a=o.includes("-gradient")?o:`${o}-gradient`,[l,...u]=s.split(",").map(VT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Id?Id[l]:l;u.unshift(c);const d=u.map(f=>{if(BT.has(f))return f;const p=f.indexOf(" "),[y,v]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],S=jd(v)?v:v&&v.split(" "),m=`colors.${y}`,h=m in t.__cssMap?t.__cssMap[m].varRef:y;return S?[h,...Array.isArray(S)?S:[S]].join(" "):h});return`${a}(${d.join(", ")})`}const jd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),WT=(e,t)=>UT(e,t??{});function HT(e){return/^var\(--.+\)$/.test(e)}const KT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Qt=e=>t=>`${e}(${t})`,q={filter(e){return e!=="auto"?e:DT},backdropFilter(e){return e!=="auto"?e:jT},ring(e){return NT(q.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?zT():e==="auto-gpu"?IT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=KT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(HT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:WT,blur:Qt("blur"),opacity:Qt("opacity"),brightness:Qt("brightness"),contrast:Qt("contrast"),dropShadow:Qt("drop-shadow"),grayscale:Qt("grayscale"),hueRotate:e=>Qt("hue-rotate")(q.degree(e)),invert:Qt("invert"),saturate:Qt("saturate"),sepia:Qt("sepia"),bgImage(e){return e==null||jd(e)||Dd.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=FT[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},k={borderWidths:Pt("borderWidths"),borderStyles:Pt("borderStyles"),colors:Pt("colors"),borders:Pt("borders"),gradients:Pt("gradients",q.gradient),radii:Pt("radii",q.px),space:Pt("space",ga(q.vh,q.px)),spaceT:Pt("space",ga(q.vh,q.px)),degreeT(e){return{property:e,transform:q.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Th({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Pt("sizes",ga(q.vh,q.px)),sizesT:Pt("sizes",ga(q.vh,q.fraction)),shadows:Pt("shadows"),logical:MT,blur:Pt("blur",q.blur)},Qa={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:q.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:q.bgClip}};Object.assign(Qa,{bgImage:Qa.backgroundImage,bgImg:Qa.backgroundImage});const J={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(J,{rounded:J.borderRadius,roundedTop:J.borderTopRadius,roundedTopLeft:J.borderTopLeftRadius,roundedTopRight:J.borderTopRightRadius,roundedTopStart:J.borderStartStartRadius,roundedTopEnd:J.borderStartEndRadius,roundedBottom:J.borderBottomRadius,roundedBottomLeft:J.borderBottomLeftRadius,roundedBottomRight:J.borderBottomRightRadius,roundedBottomStart:J.borderEndStartRadius,roundedBottomEnd:J.borderEndEndRadius,roundedLeft:J.borderLeftRadius,roundedRight:J.borderRightRadius,roundedStart:J.borderInlineStartRadius,roundedEnd:J.borderInlineEndRadius,borderStart:J.borderInlineStart,borderEnd:J.borderInlineEnd,borderTopStartRadius:J.borderStartStartRadius,borderTopEndRadius:J.borderStartEndRadius,borderBottomStartRadius:J.borderEndStartRadius,borderBottomEndRadius:J.borderEndEndRadius,borderStartRadius:J.borderInlineStartRadius,borderEndRadius:J.borderInlineEndRadius,borderStartWidth:J.borderInlineStartWidth,borderEndWidth:J.borderInlineEndWidth,borderStartColor:J.borderInlineStartColor,borderEndColor:J.borderInlineEndColor,borderStartStyle:J.borderInlineStartStyle,borderEndStyle:J.borderInlineEndStyle});const GT={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke"),accentColor:k.colors("accentColor"),textFillColor:k.colors("textFillColor")},Tl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:q.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(Tl,{flexDir:Tl.flexDirection});const _t={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (min-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (max-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",q.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(_t,{w:_t.width,h:_t.height,minW:_t.minWidth,maxW:_t.maxWidth,minH:_t.minHeight,maxH:_t.maxHeight,overscroll:_t.overscrollBehavior,overscrollX:_t.overscrollBehaviorX,overscrollY:_t.overscrollBehaviorY});const qT={filter:{transform:q.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",q.brightness),contrast:k.propT("--chakra-contrast",q.contrast),hueRotate:k.propT("--chakra-hue-rotate",q.hueRotate),invert:k.propT("--chakra-invert",q.invert),saturate:k.propT("--chakra-saturate",q.saturate),dropShadow:k.propT("--chakra-drop-shadow",q.dropShadow),backdropFilter:{transform:q.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",q.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",q.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",q.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",q.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",q.saturate)},XT={ring:{transform:q.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},YT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:q.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},h1={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function QT(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(i))return a.get(i);const l=e(r,i,o,s);return a.set(i,l),l}},JT=ZT(QT),eP={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},tP={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},bc=(e,t,n)=>{const r={},i=JT(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},nP={srOnly:{transform(e){return e===!0?eP:e==="focusable"?tP:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>bc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>bc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>bc(t,e,n)}},Go={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Go,{insetStart:Go.insetInlineStart,insetEnd:Go.insetInlineEnd});const Nd={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(Nd,{shadow:Nd.boxShadow});const fe={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(fe,{m:fe.margin,mt:fe.marginTop,mr:fe.marginRight,me:fe.marginInlineEnd,marginEnd:fe.marginInlineEnd,mb:fe.marginBottom,ml:fe.marginLeft,ms:fe.marginInlineStart,marginStart:fe.marginInlineStart,mx:fe.marginX,my:fe.marginY,p:fe.padding,pt:fe.paddingTop,py:fe.paddingY,px:fe.paddingX,pb:fe.paddingBottom,pl:fe.paddingLeft,ps:fe.paddingInlineStart,paddingStart:fe.paddingInlineStart,pr:fe.paddingRight,pe:fe.paddingInlineEnd,paddingEnd:fe.paddingInlineEnd});const rP={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},iP={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",q.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},oP={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},sP={clipPath:!0,transform:k.propT("transform",q.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},aP={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},lP={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},Ph=an({},Qa,J,GT,Tl,_t,qT,XT,YT,h1,nP,Go,Nd,fe,rP,iP,oP,sP,aP,lP);Object.assign({},fe,_t,Tl,h1,Go);const uP=e=>[...Object.keys(Ph),...d1(e)],cP=e=>{const t=yu(e);return n=>{const r={...Ph,...t};return Object.hasOwnProperty.call(r,n)}},dP=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const s in e){let a=sn(e[s],t);if(a==null)continue;if(a=Ht(a)&&n(a)?r(a):a,!Array.isArray(a)){o[s]=a;continue}const l=a.slice(0,i.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!hP(t),mP=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[i,o]=fP(t);return t=n(i)??r(o)??r(t),t};function gP(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,s=!1)=>{var c;const a=sn(o,r),l=dP(a)(r);let u={};for(let d in l){const f=l[d];let p=sn(f,r);d in n&&(d=n[d]),pP(d,p)&&(p=mP(r,p));let y=t[d];if(y===!0&&(y={property:d}),Ht(p)){u[d]=u[d]??{},u[d]=an({},u[d],i(p,!0));continue}let v=((c=y==null?void 0:y.transform)==null?void 0:c.call(y,p,r,a))??p;v=y!=null&&y.processResult?i(v,!0):v;const S=sn(y==null?void 0:y.property,r);if(!s&&(y!=null&&y.static)){const m=sn(y.static,r);u=an({},u,m)}if(S&&Array.isArray(S)){for(const m of S)u[m]=v;continue}if(S){S==="&"&&Ht(v)?u=an({},u,v):u[S]=v;continue}if(Ht(v)){u=an({},u,v);continue}u[d]=v}return u};return i}const p1=e=>t=>gP({theme:t,pseudos:yu(t),configs:Ph})(e);function UF(e){return e}function ue(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function yP(e,t){if(Array.isArray(e))return e;if(Ht(e))return t(e);if(e!=null)return[e]}function vP(e,t){for(let n=t+1;n{an(a,{[g]:c?h[g]:{[m]:h[g]}})});continue}if(!d){c?an(a,h):a[m]=h;continue}a[m]=h}}return a}}function SP(e){return t=>{const{variant:n,size:r,theme:i}=t,o=bP(i);return an({},sn(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function vu(e){return u1(e,["styleConfig","size","variant","colorScheme"])}function m1(e){return Ht(e)&&e.reference?e.reference:String(e)}const bu=(e,...t)=>t.map(m1).join(` ${e} `).replace(/calc/g,""),qm=(...e)=>`calc(${bu("+",...e)})`,Xm=(...e)=>`calc(${bu("-",...e)})`,Fd=(...e)=>`calc(${bu("*",...e)})`,Ym=(...e)=>`calc(${bu("/",...e)})`,Qm=e=>{const t=m1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Fd(t,-1)},Lr=Object.assign(e=>({add:(...t)=>Lr(qm(e,...t)),subtract:(...t)=>Lr(Xm(e,...t)),multiply:(...t)=>Lr(Fd(e,...t)),divide:(...t)=>Lr(Ym(e,...t)),negate:()=>Lr(Qm(e)),toString:()=>e.toString()}),{add:qm,subtract:Xm,multiply:Fd,divide:Ym,negate:Qm});function xP(e,t="-"){return e.replace(/\s+/g,t)}function wP(e){const t=xP(e.toString());return CP(kP(t))}function kP(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function CP(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function TP(e,t=""){return[t,e].filter(Boolean).join("-")}function PP(e,t){return`var(${e}${t?`, ${t}`:""})`}function EP(e,t=""){return wP(`--${TP(e,t)}`)}function U(e,t,n){const r=EP(e,n);return{variable:r,reference:PP(r,t)}}function _P(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=U(`${e}-${i}`,o);continue}n[r]=U(`${e}-${r}`)}return n}const $P=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function RP(e){return kT(e,$P)}function AP(e){return e.semanticTokens}function OP(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function LP(e){const t=RP(e),n=AP(e),r=d1(e),i=s=>r.includes(s)||s==="default",o={};return Hm(t,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!1,value:s})}),Hm(n,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!0,value:s})},{stop:s=>Object.keys(s).every(i)}),o}function Zm(e,t){return U(String(e).replace(/\./g,"-"),void 0,t)}function MP(e){var a;const t=LP(e),n=(a=e.config)==null?void 0:a.cssVarPrefix,r=yu(e);let i={};const o={};function s(l,u){const d=[String(l).split(".")[0],u].join(".");if(!t[d])return u;const{reference:p}=Zm(d,n);return p}for(const[l,u]of Object.entries(t)){const{isSemantic:c,value:d}=u,{variable:f,reference:p}=Zm(l,n);if(!c){if(l.startsWith("space")){const v=l.split("."),[S,...m]=v,h=`${S}.-${m.join(".")}`,g=Lr.negate(d),w=Lr.negate(p);o[h]={value:g,var:f,varRef:w}}i[f]=d,o[l]={value:d,var:f,varRef:p};continue}const y=Ht(d)?d:{default:d};i=an(i,Object.entries(y).reduce((v,[S,m])=>{if(!m)return v;const h=s(l,`${m}`);if(S==="default")return v[f]=h,v;const g=(r==null?void 0:r[S])??S;return v[g]={[f]:h},v},{})),o[l]={value:p,var:f,varRef:p}}return{cssVars:i,cssMap:o}}function zP(e){const t=OP(e),{cssMap:n,cssVars:r}=MP(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:vT(t.breakpoints)}),t}function re(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...c){r();for(const d of c)t[d]=l(d);return re(e,t)}function o(...c){for(const d of c)d in t||(t[d]=l(d));return re(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:i,toPart:l,extend:o,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const IP=re("accordion").parts("root","container","button","panel","icon"),DP=re("alert").parts("title","description","container","icon","spinner"),jP=re("avatar").parts("label","badge","container","excessLabel","group"),NP=re("breadcrumb").parts("link","item","container","separator");re("button").parts();const FP=re("checkbox").parts("control","icon","container","label");re("progress").parts("track","filledTrack","label");const BP=re("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),VP=re("editable").parts("preview","input","textarea"),UP=re("form").parts("container","requiredIndicator","helperText"),WP=re("formError").parts("text","icon"),HP=re("input").parts("addon","field","element","group"),KP=re("list").parts("container","item","icon"),GP=re("menu").parts("button","list","item","groupTitle","icon","command","divider"),qP=re("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),XP=re("numberinput").parts("root","field","stepperGroup","stepper");re("pininput").parts("field");const YP=re("popover").parts("content","header","body","footer","popper","arrow","closeButton"),QP=re("progress").parts("label","filledTrack","track"),ZP=re("radio").parts("container","control","label"),JP=re("select").parts("field","icon"),eE=re("slider").parts("container","track","thumb","filledTrack","mark"),tE=re("stat").parts("container","label","helpText","number","icon"),nE=re("switch").parts("container","track","thumb","label"),rE=re("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),iE=re("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),oE=re("tag").parts("container","label","closeButton"),sE=re("card").parts("container","header","body","footer");re("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:aE,defineMultiStyleConfig:lE}=ue(IP.keys),uE={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},cE={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},dE={pt:"2",px:"4",pb:"5"},fE={fontSize:"1.25em"},hE=aE({container:uE,button:cE,panel:dE,icon:fE}),pE=lE({baseStyle:hE});function zr(e,t,n){return Math.min(Math.max(e,n),t)}class mE extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Do=mE;function Eh(e){if(typeof e!="string")throw new Do(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=kE.test(e)?vE(e):e;const n=bE.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(hs(a,2),16)),parseInt(hs(s[3]||"f",2),16)/255]}const r=SE.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const i=xE.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const o=wE.exec(t);if(o){const[s,a,l,u]=Array.from(o).slice(1).map(parseFloat);if(zr(0,100,a)!==a)throw new Do(e);if(zr(0,100,l)!==l)throw new Do(e);return[...CE(s,a,l),Number.isNaN(u)?1:u]}throw new Do(e)}function gE(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const Jm=e=>parseInt(e.replace(/_/g,""),36),yE="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=Jm(t.substring(0,3)),r=Jm(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function vE(e){const t=e.toLowerCase().trim(),n=yE[gE(t)];if(!n)throw new Do(e);return`#${n}`}const hs=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),bE=new RegExp(`^#${hs("([a-f0-9])",3)}([a-f0-9])?$`,"i"),SE=new RegExp(`^#${hs("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),xE=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${hs(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),wE=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,kE=/^[a-z]+$/i,eg=e=>Math.round(e*255),CE=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(eg);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),s=o*(1-Math.abs(i%2-1));let a=0,l=0,u=0;i>=0&&i<1?(a=o,l=s):i>=1&&i<2?(a=s,l=o):i>=2&&i<3?(l=o,u=s):i>=3&&i<4?(l=s,u=o):i>=4&&i<5?(a=s,u=o):i>=5&&i<6&&(a=o,u=s);const c=r-o/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(eg)};function TE(e,t,n,r){return`rgba(${zr(0,255,e).toFixed()}, ${zr(0,255,t).toFixed()}, ${zr(0,255,n).toFixed()}, ${parseFloat(zr(0,1,r).toFixed(3))})`}function PE(e,t){const[n,r,i,o]=Eh(e);return TE(n,r,i,o-t)}function EE(e){const[t,n,r,i]=Eh(e);let o=s=>{const a=zr(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}const _E=e=>Object.keys(e).length===0;function $E(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r{const r=$E(e,`colors.${t}`,t);try{return EE(r),r}catch{return"#000000"}},RE=e=>{const[t,n,r]=Eh(e);return(t*299+n*587+r*114)/1e3},AE=e=>t=>{const n=tt(t,e);return RE(n)<128?"dark":"light"},OE=e=>t=>AE(e)(t)==="dark",Gi=(e,t)=>n=>{const r=tt(n,e);return PE(r,1-t)};function tg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + */var iT=x,oT=Symbol.for("react.element"),sT=Symbol.for("react.fragment"),aT=Object.prototype.hasOwnProperty,lT=iT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uT={key:!0,ref:!0,__self:!0,__source:!0};function o1(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)aT.call(t,r)&&!uT.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:oT,type:e,key:o,ref:s,props:i,_owner:lT.current}}mu.Fragment=sT;mu.jsx=o1;mu.jsxs=o1;Xv.exports=mu;var O=Xv.exports;function jF(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function cT(){return!!(globalThis!=null&&globalThis.document)}function dT(e){return e.parentElement&&dT(e.parentElement)?!0:e.hidden}function NF(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function FF(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function fT(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const hT=e=>e?"":void 0,BF=e=>e?!0:void 0;function pT(e){return Array.isArray(e)}function Ht(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!pT(e)}function mT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function gT(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Ld(e){if(e==null)return e;const{unitless:t}=gT(e);return t||typeof e=="number"?`${e}px`:e}const s1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Ch=e=>Object.fromEntries(Object.entries(e).sort(s1));function Um(e){const t=Ch(e);return Object.assign(Object.values(t),t)}function yT(e){const t=Object.keys(Ch(e));return new Set(t)}function Wm(e){if(!e)return e;e=Ld(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Io(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Ld(e)})`),t&&n.push("and",`(max-width: ${Ld(t)})`),n.join(" ")}function vT(e){if(!e)return null;e.base=e.base??"0px";const t=Um(e),n=Object.entries(e).sort(s1).map(([o,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?Wm(u):void 0,{_minW:Wm(s),breakpoint:o,minW:s,maxW:u,maxWQuery:Io(null,u),minWQuery:Io(s),minMaxQuery:Io(s,u)}}),r=yT(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(o){const s=Object.keys(o);return s.length>0&&s.every(a=>r.has(a))},asObject:Ch(e),asArray:Um(e),details:n,get(o){return n.find(s=>s.breakpoint===o)},media:[null,...t.map(o=>Io(o)).slice(1)],toArrayValue(o){if(!Ht(o))throw new Error("toArrayValue: value must be an object");const s=i.map(a=>o[a]??null);for(;mT(s)===null;)s.pop();return s},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((s,a,l)=>{const u=i[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function Md(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function a1(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function bT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Xt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=x.createContext(s);a.displayName=t;function l(){var c;const u=x.useContext(a);if(!u&&n){const d=new Error(o??bT(r,i));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const Nn=(...e)=>e.filter(Boolean).join(" ");function ST(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(i))return a.get(i);const l=e(r,i,o,s);return a.set(i,l),l}},l1=xT(ST),wT=e=>e.default||e;function u1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function kT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const CT=e=>typeof e=="function";function sn(e,...t){return CT(e)?e(...t):e}function TT(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=s=>{const a={};for(let l=0;li(Array.isArray(s)?s:r.filter(s));return t.map(o).concat(i(r))}function Hm(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,a=[]){if(Ht(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(i==null?void 0:i(u))??u,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=o(c,f)}return l}return t(s,a)}return o(e)}var Cl={exports:{}};Cl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",v="[object GeneratorFunction]",y="[object Map]",S="[object Number]",m="[object Null]",h="[object Object]",g="[object Proxy]",w="[object RegExp]",P="[object Set]",$="[object String]",_="[object Undefined]",A="[object WeakMap]",F="[object ArrayBuffer]",j="[object DataView]",K="[object Float32Array]",ce="[object Float64Array]",Ze="[object Int8Array]",Re="[object Int16Array]",T="[object Int32Array]",M="[object Uint8Array]",L="[object Uint8ClampedArray]",R="[object Uint16Array]",D="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,Q=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,H={};H[K]=H[ce]=H[Ze]=H[Re]=H[T]=H[M]=H[L]=H[R]=H[D]=!0,H[a]=H[l]=H[F]=H[c]=H[j]=H[d]=H[f]=H[p]=H[y]=H[S]=H[h]=H[w]=H[P]=H[$]=H[A]=!1;var Je=typeof wn=="object"&&wn&&wn.Object===Object&&wn,mo=typeof self=="object"&&self&&self.Object===Object&&self,pt=Je||mo||Function("return this")(),kr=t&&!t.nodeType&&t,go=kr&&!0&&e&&!e.nodeType&&e,vm=go&&go.exports===kr,sc=vm&&Je.process,bm=function(){try{var b=go&&go.require&&go.require("util").types;return b||sc&&sc.binding&&sc.binding("util")}catch{}}(),Sm=bm&&bm.isTypedArray;function Pk(b,C,E){switch(E.length){case 0:return b.call(C);case 1:return b.call(C,E[0]);case 2:return b.call(C,E[0],E[1]);case 3:return b.call(C,E[0],E[1],E[2])}return b.apply(C,E)}function Ek(b,C){for(var E=-1,B=Array(b);++E-1}function Xk(b,C){var E=this.__data__,B=da(E,b);return B<0?(++this.size,E.push([b,C])):E[B][1]=C,this}mn.prototype.clear=Hk,mn.prototype.delete=Kk,mn.prototype.get=Gk,mn.prototype.has=qk,mn.prototype.set=Xk;function ii(b){var C=-1,E=b==null?0:b.length;for(this.clear();++C1?E[X-1]:void 0,pe=X>2?E[2]:void 0;for(ae=b.length>3&&typeof ae=="function"?(X--,ae):void 0,pe&&CC(E[0],E[1],pe)&&(ae=X<3?void 0:ae,X=1),C=Object(C);++B-1&&b%1==0&&b0){if(++C>=i)return arguments[0]}else C=0;return b.apply(void 0,arguments)}}function OC(b){if(b!=null){try{return la.call(b)}catch{}try{return b+""}catch{}}return""}function pa(b,C){return b===C||b!==b&&C!==C}var fc=$m(function(){return arguments}())?$m:function(b){return vo(b)&&Vn.call(b,"callee")&&!zk.call(b,"callee")},hc=Array.isArray;function pc(b){return b!=null&&Mm(b.length)&&!mc(b)}function LC(b){return vo(b)&&pc(b)}var Lm=Dk||jC;function mc(b){if(!Pr(b))return!1;var C=fa(b);return C==p||C==v||C==u||C==g}function Mm(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function Pr(b){var C=typeof b;return b!=null&&(C=="object"||C=="function")}function vo(b){return b!=null&&typeof b=="object"}function MC(b){if(!vo(b)||fa(b)!=h)return!1;var C=Tm(b);if(C===null)return!0;var E=Vn.call(C,"constructor")&&C.constructor;return typeof E=="function"&&E instanceof E&&la.call(E)==Lk}var zm=Sm?_k(Sm):cC;function zC(b){return bC(b,Im(b))}function Im(b){return pc(b)?sC(b):dC(b)}var IC=SC(function(b,C,E,B){Rm(b,C,E,B)});function DC(b){return function(){return b}}function Dm(b){return b}function jC(){return!1}e.exports=IC})(Cl,Cl.exports);var PT=Cl.exports;const an=ei(PT);function Ya(e,t=[]){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function ET(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(f,p)=>f!==p}=e,o=Ya(r),s=Ya(i),[a,l]=x.useState(n),u=t!==void 0,c=u?t:a,d=Ya(f=>{const v=typeof f=="function"?f(c):f;s(c,v)&&(u||l(v),o(v))},[u,o,c,s]);return[c,d]}const zd=globalThis!=null&&globalThis.document?x.useLayoutEffect:x.useEffect,Km=(e,t)=>{const n=x.useRef(!1),r=x.useRef(!1);x.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function _T(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function gu(...e){return t=>{e.forEach(n=>{_T(n,t)})}}function VF(...e){return x.useMemo(()=>gu(...e),e)}function $T(e,t){const n=Ya(e);x.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Ae={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Yt=e=>c1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),yn=e=>c1(t=>e(t,"~ &"),"[data-peer]",".peer"),c1=(e,...t)=>t.map(e).join(", "),RT={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Yt(Ae.open),_groupClosed:Yt(Ae.closed),_groupHover:Yt(Ae.hover),_peerHover:yn(Ae.hover),_groupFocus:Yt(Ae.focus),_peerFocus:yn(Ae.focus),_groupFocusVisible:Yt(Ae.focusVisible),_peerFocusVisible:yn(Ae.focusVisible),_groupActive:Yt(Ae.active),_peerActive:yn(Ae.active),_groupDisabled:Yt(Ae.disabled),_peerDisabled:yn(Ae.disabled),_groupInvalid:Yt(Ae.invalid),_peerInvalid:yn(Ae.invalid),_groupChecked:Yt(Ae.checked),_peerChecked:yn(Ae.checked),_groupFocusWithin:Yt(Ae.focusWithin),_peerFocusWithin:yn(Ae.focusWithin),_peerPlaceholderShown:yn(Ae.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"};function yu(e){const t=e.conditions??{},n=Object.fromEntries(Object.entries(t).map(([r,i])=>[`_${r}`,i]));return{...RT,...n}}function d1(e){return Object.keys(yu(e))}const AT=e=>/!(important)?$/.test(e),Gm=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,OT=(e,t)=>n=>{const r=String(t),i=AT(r),o=Gm(r),s=e?`${e}.${o}`:o;let a=Ht(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=Gm(a),i?`${a} !important`:a};function Th(e){const{scale:t,transform:n,compose:r}=e;return(o,s)=>{const a=OT(t,o)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const ga=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Pt(e,t){return n=>{const r={property:n,scale:e};return r.transform=Th({scale:e,transform:t}),r}}const LT=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function MT(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:LT(t),transform:n?Th({scale:n,compose:r}):r}}const f1=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function zT(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...f1].join(" ")}function IT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...f1].join(" ")}const DT={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},jT={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function NT(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const FT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Id={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},BT=new Set(Object.values(Id)),Dd=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),VT=e=>e.trim();function UT(e,t){if(e==null||Dd.has(e))return e;if(!(jd(e)||Dd.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return e;const a=o.includes("-gradient")?o:`${o}-gradient`,[l,...u]=s.split(",").map(VT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Id?Id[l]:l;u.unshift(c);const d=u.map(f=>{if(BT.has(f))return f;const p=f.indexOf(" "),[v,y]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],S=jd(y)?y:y&&y.split(" "),m=`colors.${v}`,h=m in t.__cssMap?t.__cssMap[m].varRef:v;return S?[h,...Array.isArray(S)?S:[S]].join(" "):h});return`${a}(${d.join(", ")})`}const jd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),WT=(e,t)=>UT(e,t??{});function HT(e){return/^var\(--.+\)$/.test(e)}const KT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Qt=e=>t=>`${e}(${t})`,q={filter(e){return e!=="auto"?e:DT},backdropFilter(e){return e!=="auto"?e:jT},ring(e){return NT(q.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?zT():e==="auto-gpu"?IT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=KT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(HT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:WT,blur:Qt("blur"),opacity:Qt("opacity"),brightness:Qt("brightness"),contrast:Qt("contrast"),dropShadow:Qt("drop-shadow"),grayscale:Qt("grayscale"),hueRotate:e=>Qt("hue-rotate")(q.degree(e)),invert:Qt("invert"),saturate:Qt("saturate"),sepia:Qt("sepia"),bgImage(e){return e==null||jd(e)||Dd.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=FT[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},k={borderWidths:Pt("borderWidths"),borderStyles:Pt("borderStyles"),colors:Pt("colors"),borders:Pt("borders"),gradients:Pt("gradients",q.gradient),radii:Pt("radii",q.px),space:Pt("space",ga(q.vh,q.px)),spaceT:Pt("space",ga(q.vh,q.px)),degreeT(e){return{property:e,transform:q.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Th({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Pt("sizes",ga(q.vh,q.px)),sizesT:Pt("sizes",ga(q.vh,q.fraction)),shadows:Pt("shadows"),logical:MT,blur:Pt("blur",q.blur)},Qa={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:q.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:q.bgClip}};Object.assign(Qa,{bgImage:Qa.backgroundImage,bgImg:Qa.backgroundImage});const J={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(J,{rounded:J.borderRadius,roundedTop:J.borderTopRadius,roundedTopLeft:J.borderTopLeftRadius,roundedTopRight:J.borderTopRightRadius,roundedTopStart:J.borderStartStartRadius,roundedTopEnd:J.borderStartEndRadius,roundedBottom:J.borderBottomRadius,roundedBottomLeft:J.borderBottomLeftRadius,roundedBottomRight:J.borderBottomRightRadius,roundedBottomStart:J.borderEndStartRadius,roundedBottomEnd:J.borderEndEndRadius,roundedLeft:J.borderLeftRadius,roundedRight:J.borderRightRadius,roundedStart:J.borderInlineStartRadius,roundedEnd:J.borderInlineEndRadius,borderStart:J.borderInlineStart,borderEnd:J.borderInlineEnd,borderTopStartRadius:J.borderStartStartRadius,borderTopEndRadius:J.borderStartEndRadius,borderBottomStartRadius:J.borderEndStartRadius,borderBottomEndRadius:J.borderEndEndRadius,borderStartRadius:J.borderInlineStartRadius,borderEndRadius:J.borderInlineEndRadius,borderStartWidth:J.borderInlineStartWidth,borderEndWidth:J.borderInlineEndWidth,borderStartColor:J.borderInlineStartColor,borderEndColor:J.borderInlineEndColor,borderStartStyle:J.borderInlineStartStyle,borderEndStyle:J.borderInlineEndStyle});const GT={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke"),accentColor:k.colors("accentColor"),textFillColor:k.colors("textFillColor")},Tl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:q.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(Tl,{flexDir:Tl.flexDirection});const _t={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (min-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (max-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",q.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(_t,{w:_t.width,h:_t.height,minW:_t.minWidth,maxW:_t.maxWidth,minH:_t.minHeight,maxH:_t.maxHeight,overscroll:_t.overscrollBehavior,overscrollX:_t.overscrollBehaviorX,overscrollY:_t.overscrollBehaviorY});const qT={filter:{transform:q.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",q.brightness),contrast:k.propT("--chakra-contrast",q.contrast),hueRotate:k.propT("--chakra-hue-rotate",q.hueRotate),invert:k.propT("--chakra-invert",q.invert),saturate:k.propT("--chakra-saturate",q.saturate),dropShadow:k.propT("--chakra-drop-shadow",q.dropShadow),backdropFilter:{transform:q.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",q.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",q.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",q.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",q.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",q.saturate)},XT={ring:{transform:q.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},YT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:q.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},h1={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function QT(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(i))return a.get(i);const l=e(r,i,o,s);return a.set(i,l),l}},JT=ZT(QT),eP={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},tP={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},bc=(e,t,n)=>{const r={},i=JT(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},nP={srOnly:{transform(e){return e===!0?eP:e==="focusable"?tP:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>bc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>bc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>bc(t,e,n)}},Go={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Go,{insetStart:Go.insetInlineStart,insetEnd:Go.insetInlineEnd});const Nd={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(Nd,{shadow:Nd.boxShadow});const fe={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(fe,{m:fe.margin,mt:fe.marginTop,mr:fe.marginRight,me:fe.marginInlineEnd,marginEnd:fe.marginInlineEnd,mb:fe.marginBottom,ml:fe.marginLeft,ms:fe.marginInlineStart,marginStart:fe.marginInlineStart,mx:fe.marginX,my:fe.marginY,p:fe.padding,pt:fe.paddingTop,py:fe.paddingY,px:fe.paddingX,pb:fe.paddingBottom,pl:fe.paddingLeft,ps:fe.paddingInlineStart,paddingStart:fe.paddingInlineStart,pr:fe.paddingRight,pe:fe.paddingInlineEnd,paddingEnd:fe.paddingInlineEnd});const rP={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},iP={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",q.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},oP={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},sP={clipPath:!0,transform:k.propT("transform",q.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},aP={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},lP={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},Ph=an({},Qa,J,GT,Tl,_t,qT,XT,YT,h1,nP,Go,Nd,fe,rP,iP,oP,sP,aP,lP);Object.assign({},fe,_t,Tl,h1,Go);const uP=e=>[...Object.keys(Ph),...d1(e)],cP=e=>{const t=yu(e);return n=>{const r={...Ph,...t};return Object.hasOwnProperty.call(r,n)}},dP=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const s in e){let a=sn(e[s],t);if(a==null)continue;if(a=Ht(a)&&n(a)?r(a):a,!Array.isArray(a)){o[s]=a;continue}const l=a.slice(0,i.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!hP(t),mP=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[i,o]=fP(t);return t=n(i)??r(o)??r(t),t};function gP(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,s=!1)=>{var c;const a=sn(o,r),l=dP(a)(r);let u={};for(let d in l){const f=l[d];let p=sn(f,r);d in n&&(d=n[d]),pP(d,p)&&(p=mP(r,p));let v=t[d];if(v===!0&&(v={property:d}),Ht(p)){u[d]=u[d]??{},u[d]=an({},u[d],i(p,!0));continue}let y=((c=v==null?void 0:v.transform)==null?void 0:c.call(v,p,r,a))??p;y=v!=null&&v.processResult?i(y,!0):y;const S=sn(v==null?void 0:v.property,r);if(!s&&(v!=null&&v.static)){const m=sn(v.static,r);u=an({},u,m)}if(S&&Array.isArray(S)){for(const m of S)u[m]=y;continue}if(S){S==="&"&&Ht(y)?u=an({},u,y):u[S]=y;continue}if(Ht(y)){u=an({},u,y);continue}u[d]=y}return u};return i}const p1=e=>t=>gP({theme:t,pseudos:yu(t),configs:Ph})(e);function UF(e){return e}function ue(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function yP(e,t){if(Array.isArray(e))return e;if(Ht(e))return t(e);if(e!=null)return[e]}function vP(e,t){for(let n=t+1;n{an(a,{[g]:c?h[g]:{[m]:h[g]}})});continue}if(!d){c?an(a,h):a[m]=h;continue}a[m]=h}}return a}}function SP(e){return t=>{const{variant:n,size:r,theme:i}=t,o=bP(i);return an({},sn(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function vu(e){return u1(e,["styleConfig","size","variant","colorScheme"])}function m1(e){return Ht(e)&&e.reference?e.reference:String(e)}const bu=(e,...t)=>t.map(m1).join(` ${e} `).replace(/calc/g,""),qm=(...e)=>`calc(${bu("+",...e)})`,Xm=(...e)=>`calc(${bu("-",...e)})`,Fd=(...e)=>`calc(${bu("*",...e)})`,Ym=(...e)=>`calc(${bu("/",...e)})`,Qm=e=>{const t=m1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Fd(t,-1)},Lr=Object.assign(e=>({add:(...t)=>Lr(qm(e,...t)),subtract:(...t)=>Lr(Xm(e,...t)),multiply:(...t)=>Lr(Fd(e,...t)),divide:(...t)=>Lr(Ym(e,...t)),negate:()=>Lr(Qm(e)),toString:()=>e.toString()}),{add:qm,subtract:Xm,multiply:Fd,divide:Ym,negate:Qm});function xP(e,t="-"){return e.replace(/\s+/g,t)}function wP(e){const t=xP(e.toString());return CP(kP(t))}function kP(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function CP(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function TP(e,t=""){return[t,e].filter(Boolean).join("-")}function PP(e,t){return`var(${e}${t?`, ${t}`:""})`}function EP(e,t=""){return wP(`--${TP(e,t)}`)}function U(e,t,n){const r=EP(e,n);return{variable:r,reference:PP(r,t)}}function _P(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=U(`${e}-${i}`,o);continue}n[r]=U(`${e}-${r}`)}return n}const $P=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function RP(e){return kT(e,$P)}function AP(e){return e.semanticTokens}function OP(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function LP(e){const t=RP(e),n=AP(e),r=d1(e),i=s=>r.includes(s)||s==="default",o={};return Hm(t,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!1,value:s})}),Hm(n,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!0,value:s})},{stop:s=>Object.keys(s).every(i)}),o}function Zm(e,t){return U(String(e).replace(/\./g,"-"),void 0,t)}function MP(e){var a;const t=LP(e),n=(a=e.config)==null?void 0:a.cssVarPrefix,r=yu(e);let i={};const o={};function s(l,u){const d=[String(l).split(".")[0],u].join(".");if(!t[d])return u;const{reference:p}=Zm(d,n);return p}for(const[l,u]of Object.entries(t)){const{isSemantic:c,value:d}=u,{variable:f,reference:p}=Zm(l,n);if(!c){if(l.startsWith("space")){const y=l.split("."),[S,...m]=y,h=`${S}.-${m.join(".")}`,g=Lr.negate(d),w=Lr.negate(p);o[h]={value:g,var:f,varRef:w}}i[f]=d,o[l]={value:d,var:f,varRef:p};continue}const v=Ht(d)?d:{default:d};i=an(i,Object.entries(v).reduce((y,[S,m])=>{if(!m)return y;const h=s(l,`${m}`);if(S==="default")return y[f]=h,y;const g=(r==null?void 0:r[S])??S;return y[g]={[f]:h},y},{})),o[l]={value:p,var:f,varRef:p}}return{cssVars:i,cssMap:o}}function zP(e){const t=OP(e),{cssMap:n,cssVars:r}=MP(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:vT(t.breakpoints)}),t}function re(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...c){r();for(const d of c)t[d]=l(d);return re(e,t)}function o(...c){for(const d of c)d in t||(t[d]=l(d));return re(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:i,toPart:l,extend:o,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const IP=re("accordion").parts("root","container","button","panel","icon"),DP=re("alert").parts("title","description","container","icon","spinner"),jP=re("avatar").parts("label","badge","container","excessLabel","group"),NP=re("breadcrumb").parts("link","item","container","separator");re("button").parts();const FP=re("checkbox").parts("control","icon","container","label");re("progress").parts("track","filledTrack","label");const BP=re("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),VP=re("editable").parts("preview","input","textarea"),UP=re("form").parts("container","requiredIndicator","helperText"),WP=re("formError").parts("text","icon"),HP=re("input").parts("addon","field","element","group"),KP=re("list").parts("container","item","icon"),GP=re("menu").parts("button","list","item","groupTitle","icon","command","divider"),qP=re("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),XP=re("numberinput").parts("root","field","stepperGroup","stepper");re("pininput").parts("field");const YP=re("popover").parts("content","header","body","footer","popper","arrow","closeButton"),QP=re("progress").parts("label","filledTrack","track"),ZP=re("radio").parts("container","control","label"),JP=re("select").parts("field","icon"),eE=re("slider").parts("container","track","thumb","filledTrack","mark"),tE=re("stat").parts("container","label","helpText","number","icon"),nE=re("switch").parts("container","track","thumb","label"),rE=re("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),iE=re("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),oE=re("tag").parts("container","label","closeButton"),sE=re("card").parts("container","header","body","footer");re("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:aE,defineMultiStyleConfig:lE}=ue(IP.keys),uE={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},cE={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},dE={pt:"2",px:"4",pb:"5"},fE={fontSize:"1.25em"},hE=aE({container:uE,button:cE,panel:dE,icon:fE}),pE=lE({baseStyle:hE});function zr(e,t,n){return Math.min(Math.max(e,n),t)}class mE extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Do=mE;function Eh(e){if(typeof e!="string")throw new Do(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=kE.test(e)?vE(e):e;const n=bE.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(hs(a,2),16)),parseInt(hs(s[3]||"f",2),16)/255]}const r=SE.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const i=xE.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const o=wE.exec(t);if(o){const[s,a,l,u]=Array.from(o).slice(1).map(parseFloat);if(zr(0,100,a)!==a)throw new Do(e);if(zr(0,100,l)!==l)throw new Do(e);return[...CE(s,a,l),Number.isNaN(u)?1:u]}throw new Do(e)}function gE(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const Jm=e=>parseInt(e.replace(/_/g,""),36),yE="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=Jm(t.substring(0,3)),r=Jm(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function vE(e){const t=e.toLowerCase().trim(),n=yE[gE(t)];if(!n)throw new Do(e);return`#${n}`}const hs=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),bE=new RegExp(`^#${hs("([a-f0-9])",3)}([a-f0-9])?$`,"i"),SE=new RegExp(`^#${hs("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),xE=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${hs(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),wE=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,kE=/^[a-z]+$/i,eg=e=>Math.round(e*255),CE=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(eg);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),s=o*(1-Math.abs(i%2-1));let a=0,l=0,u=0;i>=0&&i<1?(a=o,l=s):i>=1&&i<2?(a=s,l=o):i>=2&&i<3?(l=o,u=s):i>=3&&i<4?(l=s,u=o):i>=4&&i<5?(a=s,u=o):i>=5&&i<6&&(a=o,u=s);const c=r-o/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(eg)};function TE(e,t,n,r){return`rgba(${zr(0,255,e).toFixed()}, ${zr(0,255,t).toFixed()}, ${zr(0,255,n).toFixed()}, ${parseFloat(zr(0,1,r).toFixed(3))})`}function PE(e,t){const[n,r,i,o]=Eh(e);return TE(n,r,i,o-t)}function EE(e){const[t,n,r,i]=Eh(e);let o=s=>{const a=zr(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}const _E=e=>Object.keys(e).length===0;function $E(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r{const r=$E(e,`colors.${t}`,t);try{return EE(r),r}catch{return"#000000"}},RE=e=>{const[t,n,r]=Eh(e);return(t*299+n*587+r*114)/1e3},AE=e=>t=>{const n=tt(t,e);return RE(n)<128?"dark":"light"},OE=e=>t=>AE(e)(t)==="dark",Gi=(e,t)=>n=>{const r=tt(n,e);return PE(r,1-t)};function tg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -29,14 +29,14 @@ var NC=Object.defineProperty;var FC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,config transparent 0%, ${tt(n,s)} 50%, transparent 100% - )`;return{...!r&&i&&o,...r?{bgImage:a}:{bgColor:s}}},K$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},G$=e=>({bg:V("gray.100","whiteAlpha.300")(e)}),q$=e=>({transitionProperty:"common",transitionDuration:"slow",...H$(e)}),X$=jo(e=>({label:K$,filledTrack:q$(e),track:G$(e)})),Y$={xs:jo({track:{h:"1"}}),sm:jo({track:{h:"2"}}),md:jo({track:{h:"3"}}),lg:jo({track:{h:"4"}})},Q$=W$({sizes:Y$,baseStyle:X$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Z$,definePartsStyle:el}=ue(ZP.keys),J$=e=>{var n;const t=(n=nt(qn.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},eR=el(e=>{var t,n;return{label:(t=qn.baseStyle)==null?void 0:t.call(qn,e).label,container:(n=qn.baseStyle)==null?void 0:n.call(qn,e).container,control:J$(e)}}),tR={md:el({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:el({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:el({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},nR=Z$({baseStyle:eR,sizes:tR,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rR,definePartsStyle:iR}=ue(JP.keys),ba=U("select-bg");var Lv;const oR={...(Lv=ne.baseStyle)==null?void 0:Lv.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ba.reference,[ba.variable]:"colors.white",_dark:{[ba.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ba.reference}},sR={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},aR=iR({field:oR,icon:sR}),Sa={paddingInlineEnd:"8"};var Mv,zv,Iv,Dv,jv,Nv,Fv,Bv;const lR={lg:{...(Mv=ne.sizes)==null?void 0:Mv.lg,field:{...(zv=ne.sizes)==null?void 0:zv.lg.field,...Sa}},md:{...(Iv=ne.sizes)==null?void 0:Iv.md,field:{...(Dv=ne.sizes)==null?void 0:Dv.md.field,...Sa}},sm:{...(jv=ne.sizes)==null?void 0:jv.sm,field:{...(Nv=ne.sizes)==null?void 0:Nv.sm.field,...Sa}},xs:{...(Fv=ne.sizes)==null?void 0:Fv.xs,field:{...(Bv=ne.sizes)==null?void 0:Bv.xs.field,...Sa},icon:{insetEnd:"1"}}},uR=rR({baseStyle:aR,sizes:lR,variants:ne.variants,defaultProps:ne.defaultProps}),Rc=U("skeleton-start-color"),Ac=U("skeleton-end-color"),cR={[Rc.variable]:"colors.gray.100",[Ac.variable]:"colors.gray.400",_dark:{[Rc.variable]:"colors.gray.800",[Ac.variable]:"colors.gray.600"},background:Rc.reference,borderColor:Ac.reference,opacity:.7,borderRadius:"sm"},dR={baseStyle:cR},Oc=U("skip-link-bg"),fR={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Oc.variable]:"colors.white",_dark:{[Oc.variable]:"colors.gray.700"},bg:Oc.reference}},hR={baseStyle:fR},{defineMultiStyleConfig:pR,definePartsStyle:xu}=ue(eE.keys),ms=U("slider-thumb-size"),gs=U("slider-track-size"),Qn=U("slider-bg"),mR=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},..._h({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},gR=e=>({..._h({orientation:e.orientation,horizontal:{h:gs.reference},vertical:{w:gs.reference}}),overflow:"hidden",borderRadius:"sm",[Qn.variable]:"colors.gray.200",_dark:{[Qn.variable]:"colors.whiteAlpha.200"},_disabled:{[Qn.variable]:"colors.gray.300",_dark:{[Qn.variable]:"colors.whiteAlpha.300"}},bg:Qn.reference}),yR=e=>{const{orientation:t}=e;return{..._h({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:ms.reference,h:ms.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},vR=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Qn.variable]:`colors.${t}.500`,_dark:{[Qn.variable]:`colors.${t}.200`},bg:Qn.reference}},bR=xu(e=>({container:mR(e),track:gR(e),thumb:yR(e),filledTrack:vR(e)})),SR=xu({container:{[ms.variable]:"sizes.4",[gs.variable]:"sizes.1"}}),xR=xu({container:{[ms.variable]:"sizes.3.5",[gs.variable]:"sizes.1"}}),wR=xu({container:{[ms.variable]:"sizes.2.5",[gs.variable]:"sizes.0.5"}}),kR={lg:SR,md:xR,sm:wR},CR=pR({baseStyle:bR,sizes:kR,defaultProps:{size:"md",colorScheme:"blue"}}),Mr=Me("spinner-size"),TR={width:[Mr.reference],height:[Mr.reference]},PR={xs:{[Mr.variable]:"sizes.3"},sm:{[Mr.variable]:"sizes.4"},md:{[Mr.variable]:"sizes.6"},lg:{[Mr.variable]:"sizes.8"},xl:{[Mr.variable]:"sizes.12"}},ER={baseStyle:TR,sizes:PR,defaultProps:{size:"md"}},{defineMultiStyleConfig:_R,definePartsStyle:_1}=ue(tE.keys),$R={fontWeight:"medium"},RR={opacity:.8,marginBottom:"2"},AR={verticalAlign:"baseline",fontWeight:"semibold"},OR={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},LR=_1({container:{},label:$R,helpText:RR,number:AR,icon:OR}),MR={md:_1({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},zR=_R({baseStyle:LR,sizes:MR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:IR,definePartsStyle:No}=ue(["stepper","step","title","description","indicator","separator","icon","number"]),xn=U("stepper-indicator-size"),mi=U("stepper-icon-size"),gi=U("stepper-title-font-size"),Fo=U("stepper-description-font-size"),xo=U("stepper-accent-color"),DR=No(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[xo.variable]:`colors.${e}.500`,_dark:{[xo.variable]:`colors.${e}.200`}},title:{fontSize:gi.reference,fontWeight:"medium"},description:{fontSize:Fo.reference,color:"chakra-subtle-text"},number:{fontSize:gi.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:mi.reference,height:mi.reference},indicator:{flexShrink:0,borderRadius:"full",width:xn.reference,height:xn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:xo.reference},"&[data-status=complete]":{bg:xo.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:xo.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${xn.reference} - 8px)`,top:`calc(${xn.reference} + 4px)`,insetStart:`calc(${xn.reference} / 2 - 1px)`}}})),jR=IR({baseStyle:DR,sizes:{xs:No({stepper:{[xn.variable]:"sizes.4",[mi.variable]:"sizes.3",[gi.variable]:"fontSizes.xs",[Fo.variable]:"fontSizes.xs"}}),sm:No({stepper:{[xn.variable]:"sizes.6",[mi.variable]:"sizes.4",[gi.variable]:"fontSizes.sm",[Fo.variable]:"fontSizes.xs"}}),md:No({stepper:{[xn.variable]:"sizes.8",[mi.variable]:"sizes.5",[gi.variable]:"fontSizes.md",[Fo.variable]:"fontSizes.sm"}}),lg:No({stepper:{[xn.variable]:"sizes.10",[mi.variable]:"sizes.6",[gi.variable]:"fontSizes.lg",[Fo.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:NR,definePartsStyle:tl}=ue(nE.keys),Zo=Me("switch-track-width"),Vr=Me("switch-track-height"),Lc=Me("switch-track-diff"),FR=Sn.subtract(Zo,Vr),Wd=Me("switch-thumb-x"),wo=Me("switch-bg"),BR=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Zo.reference],height:[Vr.reference],transitionProperty:"common",transitionDuration:"fast",[wo.variable]:"colors.gray.300",_dark:{[wo.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[wo.variable]:`colors.${t}.500`,_dark:{[wo.variable]:`colors.${t}.200`}},bg:wo.reference}},VR={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Vr.reference],height:[Vr.reference],_checked:{transform:`translateX(${Wd.reference})`}},UR=tl(e=>({container:{[Lc.variable]:FR,[Wd.variable]:Lc.reference,_rtl:{[Wd.variable]:Sn(Lc).negate().toString()}},track:BR(e),thumb:VR})),WR={sm:tl({container:{[Zo.variable]:"1.375rem",[Vr.variable]:"sizes.3"}}),md:tl({container:{[Zo.variable]:"1.875rem",[Vr.variable]:"sizes.4"}}),lg:tl({container:{[Zo.variable]:"2.875rem",[Vr.variable]:"sizes.6"}})},HR=NR({baseStyle:UR,sizes:WR,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:KR,definePartsStyle:Di}=ue(rE.keys),GR=Di({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),El={"&[data-is-numeric=true]":{textAlign:"end"}},qR=Di(e=>{const{colorScheme:t}=e;return{th:{color:V("gray.600","gray.400")(e),borderBottom:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e),...El},td:{borderBottom:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e),...El},caption:{color:V("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),XR=Di(e=>{const{colorScheme:t}=e;return{th:{color:V("gray.600","gray.400")(e),borderBottom:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e),...El},td:{borderBottom:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e),...El},caption:{color:V("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e)},td:{background:V(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),YR={simple:qR,striped:XR,unstyled:{}},QR={sm:Di({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Di({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Di({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},ZR=KR({baseStyle:GR,variants:YR,sizes:QR,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),lt=U("tabs-color"),Ut=U("tabs-bg"),xa=U("tabs-border-color"),{defineMultiStyleConfig:JR,definePartsStyle:un}=ue(iE.keys),eA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},tA=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},nA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},rA={p:4},iA=un(e=>({root:eA(e),tab:tA(e),tablist:nA(e),tabpanel:rA})),oA={sm:un({tab:{py:1,px:4,fontSize:"sm"}}),md:un({tab:{fontSize:"md",py:2,px:4}}),lg:un({tab:{fontSize:"lg",py:3,px:4}})},sA=un(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[lt.variable]:`colors.${t}.600`,_dark:{[lt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ut.variable]:"colors.gray.200",_dark:{[Ut.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:lt.reference,bg:Ut.reference}}}),aA=un(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[xa.variable]:"transparent",_selected:{[lt.variable]:`colors.${t}.600`,[xa.variable]:"colors.white",_dark:{[lt.variable]:`colors.${t}.300`,[xa.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:xa.reference},color:lt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),lA=un(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ut.variable]:"colors.gray.50",_dark:{[Ut.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ut.variable]:"colors.white",[lt.variable]:`colors.${t}.600`,_dark:{[Ut.variable]:"colors.gray.800",[lt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:lt.reference,bg:Ut.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),uA=un(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:tt(n,`${t}.700`),bg:tt(n,`${t}.100`)}}}}),cA=un(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[lt.variable]:"colors.gray.600",_dark:{[lt.variable]:"inherit"},_selected:{[lt.variable]:"colors.white",[Ut.variable]:`colors.${t}.600`,_dark:{[lt.variable]:"colors.gray.800",[Ut.variable]:`colors.${t}.300`}},color:lt.reference,bg:Ut.reference}}}),dA=un({}),fA={line:sA,enclosed:aA,"enclosed-colored":lA,"soft-rounded":uA,"solid-rounded":cA,unstyled:dA},hA=JR({baseStyle:iA,sizes:oA,variants:fA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:pA,definePartsStyle:Ur}=ue(oE.keys),ag=U("tag-bg"),lg=U("tag-color"),Mc=U("tag-shadow"),nl=U("tag-min-height"),rl=U("tag-min-width"),il=U("tag-font-size"),ol=U("tag-padding-inline"),mA={fontWeight:"medium",lineHeight:1.2,outline:0,[lg.variable]:Pe.color.reference,[ag.variable]:Pe.bg.reference,[Mc.variable]:Pe.shadow.reference,color:lg.reference,bg:ag.reference,boxShadow:Mc.reference,borderRadius:"md",minH:nl.reference,minW:rl.reference,fontSize:il.reference,px:ol.reference,_focusVisible:{[Mc.variable]:"shadows.outline"}},gA={lineHeight:1.2,overflow:"visible"},yA={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},vA=Ur({container:mA,label:gA,closeButton:yA}),bA={sm:Ur({container:{[nl.variable]:"sizes.5",[rl.variable]:"sizes.5",[il.variable]:"fontSizes.xs",[ol.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ur({container:{[nl.variable]:"sizes.6",[rl.variable]:"sizes.6",[il.variable]:"fontSizes.sm",[ol.variable]:"space.2"}}),lg:Ur({container:{[nl.variable]:"sizes.8",[rl.variable]:"sizes.8",[il.variable]:"fontSizes.md",[ol.variable]:"space.3"}})},SA={subtle:Ur(e=>{var t;return{container:(t=Xo.variants)==null?void 0:t.subtle(e)}}),solid:Ur(e=>{var t;return{container:(t=Xo.variants)==null?void 0:t.solid(e)}}),outline:Ur(e=>{var t;return{container:(t=Xo.variants)==null?void 0:t.outline(e)}})},xA=pA({variants:SA,baseStyle:vA,sizes:bA,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Vv;const wA={...(Vv=ne.baseStyle)==null?void 0:Vv.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Uv;const kA={outline:e=>{var t;return((t=ne.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=ne.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=ne.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Uv=ne.variants)==null?void 0:Uv.unstyled.field)??{}};var Wv,Hv,Kv,Gv;const CA={xs:((Wv=ne.sizes)==null?void 0:Wv.xs.field)??{},sm:((Hv=ne.sizes)==null?void 0:Hv.sm.field)??{},md:((Kv=ne.sizes)==null?void 0:Kv.md.field)??{},lg:((Gv=ne.sizes)==null?void 0:Gv.lg.field)??{}},TA={baseStyle:wA,sizes:CA,variants:kA,defaultProps:{size:"md",variant:"outline"}},wa=Me("tooltip-bg"),zc=Me("tooltip-fg"),PA=Me("popper-arrow-bg"),EA={bg:wa.reference,color:zc.reference,[wa.variable]:"colors.gray.700",[zc.variable]:"colors.whiteAlpha.900",_dark:{[wa.variable]:"colors.gray.300",[zc.variable]:"colors.gray.900"},[PA.variable]:wa.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},_A={baseStyle:EA},$A={Accordion:pE,Alert:QE,Avatar:l2,Badge:Xo,Breadcrumb:v2,Button:E2,Checkbox:qn,CloseButton:V2,Code:K2,Container:q2,Divider:J2,Drawer:c_,Editable:y_,Form:k_,FormError:$_,FormLabel:A_,Heading:M_,Input:ne,Kbd:W_,Link:K_,List:Q_,Menu:l$,Modal:b$,NumberInput:_$,PinInput:O$,Popover:U$,Progress:Q$,Radio:nR,Select:uR,Skeleton:dR,SkipLink:hR,Slider:CR,Spinner:ER,Stat:zR,Switch:HR,Table:ZR,Tabs:hA,Tag:xA,Textarea:TA,Tooltip:_A,Card:O2,Stepper:jR},RA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},AA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},OA={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},LA={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},MA={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},zA={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},IA={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},DA={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},jA={property:zA,easing:IA,duration:DA},NA={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},FA={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},BA={breakpoints:AA,zIndices:NA,radii:LA,blur:FA,colors:OA,...T1,sizes:b1,shadows:MA,space:v1,borders:RA,transition:jA},VA={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},UA={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},WA="ltr",HA={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},KA={semanticTokens:VA,direction:WA,...BA,components:$A,styles:UA,config:HA};var GA=!1;function qA(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(uo,--ht):0,Xi--,Ee===10&&(Xi=1,ku--),Ee}function bt(){return Ee=ht2||vs(Ee)>3?"":" "}function aO(e,t){for(;--t&&bt()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return Xs(e,sl()+(t<6&&cn()==32&&bt()==32))}function Kd(e){for(;bt();)switch(Ee){case e:return ht;case 34:case 39:e!==34&&e!==39&&Kd(Ee);break;case 40:e===41&&Kd(e);break;case 92:bt();break}return ht}function lO(e,t){for(;bt()&&e+Ee!==57;)if(e+Ee===84&&cn()===47)break;return"/*"+Xs(t,ht-1)+"*"+wu(e===47?e:bt())}function uO(e){for(;!vs(cn());)bt();return Xs(e,ht)}function cO(e){return M1(ll("",null,null,null,[""],e=L1(e),0,[0],e))}function ll(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,y=0,v=1,S=1,m=1,h=0,g="",w=i,P=o,$=r,_=g;S;)switch(y=h,h=bt()){case 40:if(y!=108&&Fe(_,d-1)==58){Hd(_+=te(al(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:_+=al(h);break;case 9:case 10:case 13:case 32:_+=sO(y);break;case 92:_+=aO(sl()-1,7);continue;case 47:switch(cn()){case 42:case 47:ka(dO(lO(bt(),sl()),t,n),l);break;default:_+="/"}break;case 123*v:a[u++]=tn(_)*m;case 125*v:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:m==-1&&(_=te(_,/\f/g,"")),p>0&&tn(_)-d&&ka(p>32?cg(_+";",r,n,d-1):cg(te(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(ka($=ug(_,t,n,u,c,i,a,g,w=[],P=[],d),o),h===123)if(c===0)ll(_,t,$,$,w,o,d,a,P);else switch(f===99&&Fe(_,3)===110?100:f){case 100:case 108:case 109:case 115:ll(e,$,$,r&&ka(ug(e,$,$,0,0,i,a,g,i,w=[],d),P),i,P,d,a,r?w:P);break;default:ll(_,$,$,$,[""],P,0,a,P)}}u=c=p=0,v=m=1,g=_="",d=s;break;case 58:d=1+tn(_),p=y;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&oO()==125)continue}switch(_+=wu(h),h*v){case 38:m=c>0?1:(_+="\f",-1);break;case 44:a[u++]=(tn(_)-1)*m,m=1;break;case 64:cn()===45&&(_+=al(bt())),f=cn(),c=d=tn(g=_+=uO(sl())),h++;break;case 45:y===45&&tn(_)==2&&(v=0)}}return o}function ug(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,f=i===0?o:[""],p=Mh(f),y=0,v=0,S=0;y0?f[m]+" "+h:te(h,/&\f/g,f[m])))&&(l[S++]=g);return Cu(e,t,n,i===0?Oh:a,l,u,c)}function dO(e,t,n){return Cu(e,t,n,$1,wu(iO()),ys(e,2,-2),0)}function cg(e,t,n,r){return Cu(e,t,n,Lh,ys(e,0,r),ys(e,r+1,-1),r)}function ji(e,t){for(var n="",r=Mh(e),i=0;i6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+_l+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hd(e,"stretch")?I1(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,tn(e)-3-(~Hd(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Fe(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return ee+e+He+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+He+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+He+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+He+e+e}return e}var SO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Lh:t.return=I1(t.value,t.length);break;case R1:return ji([ko(t,{value:te(t.value,"@","@"+ee)})],i);case Oh:if(t.length)return rO(t.props,function(o){switch(nO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ji([ko(t,{props:[te(o,/:(read-\w+)/,":"+_l+"$1")]})],i);case"::placeholder":return ji([ko(t,{props:[te(o,/:(plac\w+)/,":"+ee+"input-$1")]}),ko(t,{props:[te(o,/:(plac\w+)/,":"+_l+"$1")]}),ko(t,{props:[te(o,/:(plac\w+)/,He+"input-$1")]})],i)}return""})}},xO=[SO],wO=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(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||xO,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),m=1;m({bg:V("gray.100","whiteAlpha.300")(e)}),q$=e=>({transitionProperty:"common",transitionDuration:"slow",...H$(e)}),X$=jo(e=>({label:K$,filledTrack:q$(e),track:G$(e)})),Y$={xs:jo({track:{h:"1"}}),sm:jo({track:{h:"2"}}),md:jo({track:{h:"3"}}),lg:jo({track:{h:"4"}})},Q$=W$({sizes:Y$,baseStyle:X$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Z$,definePartsStyle:el}=ue(ZP.keys),J$=e=>{var n;const t=(n=nt(qn.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},eR=el(e=>{var t,n;return{label:(t=qn.baseStyle)==null?void 0:t.call(qn,e).label,container:(n=qn.baseStyle)==null?void 0:n.call(qn,e).container,control:J$(e)}}),tR={md:el({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:el({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:el({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},nR=Z$({baseStyle:eR,sizes:tR,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rR,definePartsStyle:iR}=ue(JP.keys),ba=U("select-bg");var Lv;const oR={...(Lv=ne.baseStyle)==null?void 0:Lv.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ba.reference,[ba.variable]:"colors.white",_dark:{[ba.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ba.reference}},sR={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},aR=iR({field:oR,icon:sR}),Sa={paddingInlineEnd:"8"};var Mv,zv,Iv,Dv,jv,Nv,Fv,Bv;const lR={lg:{...(Mv=ne.sizes)==null?void 0:Mv.lg,field:{...(zv=ne.sizes)==null?void 0:zv.lg.field,...Sa}},md:{...(Iv=ne.sizes)==null?void 0:Iv.md,field:{...(Dv=ne.sizes)==null?void 0:Dv.md.field,...Sa}},sm:{...(jv=ne.sizes)==null?void 0:jv.sm,field:{...(Nv=ne.sizes)==null?void 0:Nv.sm.field,...Sa}},xs:{...(Fv=ne.sizes)==null?void 0:Fv.xs,field:{...(Bv=ne.sizes)==null?void 0:Bv.xs.field,...Sa},icon:{insetEnd:"1"}}},uR=rR({baseStyle:aR,sizes:lR,variants:ne.variants,defaultProps:ne.defaultProps}),Rc=U("skeleton-start-color"),Ac=U("skeleton-end-color"),cR={[Rc.variable]:"colors.gray.100",[Ac.variable]:"colors.gray.400",_dark:{[Rc.variable]:"colors.gray.800",[Ac.variable]:"colors.gray.600"},background:Rc.reference,borderColor:Ac.reference,opacity:.7,borderRadius:"sm"},dR={baseStyle:cR},Oc=U("skip-link-bg"),fR={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Oc.variable]:"colors.white",_dark:{[Oc.variable]:"colors.gray.700"},bg:Oc.reference}},hR={baseStyle:fR},{defineMultiStyleConfig:pR,definePartsStyle:xu}=ue(eE.keys),ms=U("slider-thumb-size"),gs=U("slider-track-size"),Qn=U("slider-bg"),mR=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},..._h({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},gR=e=>({..._h({orientation:e.orientation,horizontal:{h:gs.reference},vertical:{w:gs.reference}}),overflow:"hidden",borderRadius:"sm",[Qn.variable]:"colors.gray.200",_dark:{[Qn.variable]:"colors.whiteAlpha.200"},_disabled:{[Qn.variable]:"colors.gray.300",_dark:{[Qn.variable]:"colors.whiteAlpha.300"}},bg:Qn.reference}),yR=e=>{const{orientation:t}=e;return{..._h({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:ms.reference,h:ms.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},vR=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Qn.variable]:`colors.${t}.500`,_dark:{[Qn.variable]:`colors.${t}.200`},bg:Qn.reference}},bR=xu(e=>({container:mR(e),track:gR(e),thumb:yR(e),filledTrack:vR(e)})),SR=xu({container:{[ms.variable]:"sizes.4",[gs.variable]:"sizes.1"}}),xR=xu({container:{[ms.variable]:"sizes.3.5",[gs.variable]:"sizes.1"}}),wR=xu({container:{[ms.variable]:"sizes.2.5",[gs.variable]:"sizes.0.5"}}),kR={lg:SR,md:xR,sm:wR},CR=pR({baseStyle:bR,sizes:kR,defaultProps:{size:"md",colorScheme:"blue"}}),Mr=Me("spinner-size"),TR={width:[Mr.reference],height:[Mr.reference]},PR={xs:{[Mr.variable]:"sizes.3"},sm:{[Mr.variable]:"sizes.4"},md:{[Mr.variable]:"sizes.6"},lg:{[Mr.variable]:"sizes.8"},xl:{[Mr.variable]:"sizes.12"}},ER={baseStyle:TR,sizes:PR,defaultProps:{size:"md"}},{defineMultiStyleConfig:_R,definePartsStyle:_1}=ue(tE.keys),$R={fontWeight:"medium"},RR={opacity:.8,marginBottom:"2"},AR={verticalAlign:"baseline",fontWeight:"semibold"},OR={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},LR=_1({container:{},label:$R,helpText:RR,number:AR,icon:OR}),MR={md:_1({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},zR=_R({baseStyle:LR,sizes:MR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:IR,definePartsStyle:No}=ue(["stepper","step","title","description","indicator","separator","icon","number"]),xn=U("stepper-indicator-size"),mi=U("stepper-icon-size"),gi=U("stepper-title-font-size"),Fo=U("stepper-description-font-size"),xo=U("stepper-accent-color"),DR=No(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[xo.variable]:`colors.${e}.500`,_dark:{[xo.variable]:`colors.${e}.200`}},title:{fontSize:gi.reference,fontWeight:"medium"},description:{fontSize:Fo.reference,color:"chakra-subtle-text"},number:{fontSize:gi.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:mi.reference,height:mi.reference},indicator:{flexShrink:0,borderRadius:"full",width:xn.reference,height:xn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:xo.reference},"&[data-status=complete]":{bg:xo.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:xo.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${xn.reference} - 8px)`,top:`calc(${xn.reference} + 4px)`,insetStart:`calc(${xn.reference} / 2 - 1px)`}}})),jR=IR({baseStyle:DR,sizes:{xs:No({stepper:{[xn.variable]:"sizes.4",[mi.variable]:"sizes.3",[gi.variable]:"fontSizes.xs",[Fo.variable]:"fontSizes.xs"}}),sm:No({stepper:{[xn.variable]:"sizes.6",[mi.variable]:"sizes.4",[gi.variable]:"fontSizes.sm",[Fo.variable]:"fontSizes.xs"}}),md:No({stepper:{[xn.variable]:"sizes.8",[mi.variable]:"sizes.5",[gi.variable]:"fontSizes.md",[Fo.variable]:"fontSizes.sm"}}),lg:No({stepper:{[xn.variable]:"sizes.10",[mi.variable]:"sizes.6",[gi.variable]:"fontSizes.lg",[Fo.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:NR,definePartsStyle:tl}=ue(nE.keys),Zo=Me("switch-track-width"),Vr=Me("switch-track-height"),Lc=Me("switch-track-diff"),FR=Sn.subtract(Zo,Vr),Wd=Me("switch-thumb-x"),wo=Me("switch-bg"),BR=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Zo.reference],height:[Vr.reference],transitionProperty:"common",transitionDuration:"fast",[wo.variable]:"colors.gray.300",_dark:{[wo.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[wo.variable]:`colors.${t}.500`,_dark:{[wo.variable]:`colors.${t}.200`}},bg:wo.reference}},VR={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Vr.reference],height:[Vr.reference],_checked:{transform:`translateX(${Wd.reference})`}},UR=tl(e=>({container:{[Lc.variable]:FR,[Wd.variable]:Lc.reference,_rtl:{[Wd.variable]:Sn(Lc).negate().toString()}},track:BR(e),thumb:VR})),WR={sm:tl({container:{[Zo.variable]:"1.375rem",[Vr.variable]:"sizes.3"}}),md:tl({container:{[Zo.variable]:"1.875rem",[Vr.variable]:"sizes.4"}}),lg:tl({container:{[Zo.variable]:"2.875rem",[Vr.variable]:"sizes.6"}})},HR=NR({baseStyle:UR,sizes:WR,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:KR,definePartsStyle:Di}=ue(rE.keys),GR=Di({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),El={"&[data-is-numeric=true]":{textAlign:"end"}},qR=Di(e=>{const{colorScheme:t}=e;return{th:{color:V("gray.600","gray.400")(e),borderBottom:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e),...El},td:{borderBottom:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e),...El},caption:{color:V("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),XR=Di(e=>{const{colorScheme:t}=e;return{th:{color:V("gray.600","gray.400")(e),borderBottom:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e),...El},td:{borderBottom:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e),...El},caption:{color:V("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:V(`${t}.100`,`${t}.700`)(e)},td:{background:V(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),YR={simple:qR,striped:XR,unstyled:{}},QR={sm:Di({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Di({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Di({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},ZR=KR({baseStyle:GR,variants:YR,sizes:QR,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),lt=U("tabs-color"),Ut=U("tabs-bg"),xa=U("tabs-border-color"),{defineMultiStyleConfig:JR,definePartsStyle:un}=ue(iE.keys),eA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},tA=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},nA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},rA={p:4},iA=un(e=>({root:eA(e),tab:tA(e),tablist:nA(e),tabpanel:rA})),oA={sm:un({tab:{py:1,px:4,fontSize:"sm"}}),md:un({tab:{fontSize:"md",py:2,px:4}}),lg:un({tab:{fontSize:"lg",py:3,px:4}})},sA=un(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[lt.variable]:`colors.${t}.600`,_dark:{[lt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ut.variable]:"colors.gray.200",_dark:{[Ut.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:lt.reference,bg:Ut.reference}}}),aA=un(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[xa.variable]:"transparent",_selected:{[lt.variable]:`colors.${t}.600`,[xa.variable]:"colors.white",_dark:{[lt.variable]:`colors.${t}.300`,[xa.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:xa.reference},color:lt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),lA=un(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ut.variable]:"colors.gray.50",_dark:{[Ut.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ut.variable]:"colors.white",[lt.variable]:`colors.${t}.600`,_dark:{[Ut.variable]:"colors.gray.800",[lt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:lt.reference,bg:Ut.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),uA=un(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:tt(n,`${t}.700`),bg:tt(n,`${t}.100`)}}}}),cA=un(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[lt.variable]:"colors.gray.600",_dark:{[lt.variable]:"inherit"},_selected:{[lt.variable]:"colors.white",[Ut.variable]:`colors.${t}.600`,_dark:{[lt.variable]:"colors.gray.800",[Ut.variable]:`colors.${t}.300`}},color:lt.reference,bg:Ut.reference}}}),dA=un({}),fA={line:sA,enclosed:aA,"enclosed-colored":lA,"soft-rounded":uA,"solid-rounded":cA,unstyled:dA},hA=JR({baseStyle:iA,sizes:oA,variants:fA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:pA,definePartsStyle:Ur}=ue(oE.keys),ag=U("tag-bg"),lg=U("tag-color"),Mc=U("tag-shadow"),nl=U("tag-min-height"),rl=U("tag-min-width"),il=U("tag-font-size"),ol=U("tag-padding-inline"),mA={fontWeight:"medium",lineHeight:1.2,outline:0,[lg.variable]:Pe.color.reference,[ag.variable]:Pe.bg.reference,[Mc.variable]:Pe.shadow.reference,color:lg.reference,bg:ag.reference,boxShadow:Mc.reference,borderRadius:"md",minH:nl.reference,minW:rl.reference,fontSize:il.reference,px:ol.reference,_focusVisible:{[Mc.variable]:"shadows.outline"}},gA={lineHeight:1.2,overflow:"visible"},yA={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},vA=Ur({container:mA,label:gA,closeButton:yA}),bA={sm:Ur({container:{[nl.variable]:"sizes.5",[rl.variable]:"sizes.5",[il.variable]:"fontSizes.xs",[ol.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ur({container:{[nl.variable]:"sizes.6",[rl.variable]:"sizes.6",[il.variable]:"fontSizes.sm",[ol.variable]:"space.2"}}),lg:Ur({container:{[nl.variable]:"sizes.8",[rl.variable]:"sizes.8",[il.variable]:"fontSizes.md",[ol.variable]:"space.3"}})},SA={subtle:Ur(e=>{var t;return{container:(t=Xo.variants)==null?void 0:t.subtle(e)}}),solid:Ur(e=>{var t;return{container:(t=Xo.variants)==null?void 0:t.solid(e)}}),outline:Ur(e=>{var t;return{container:(t=Xo.variants)==null?void 0:t.outline(e)}})},xA=pA({variants:SA,baseStyle:vA,sizes:bA,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Vv;const wA={...(Vv=ne.baseStyle)==null?void 0:Vv.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Uv;const kA={outline:e=>{var t;return((t=ne.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=ne.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=ne.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Uv=ne.variants)==null?void 0:Uv.unstyled.field)??{}};var Wv,Hv,Kv,Gv;const CA={xs:((Wv=ne.sizes)==null?void 0:Wv.xs.field)??{},sm:((Hv=ne.sizes)==null?void 0:Hv.sm.field)??{},md:((Kv=ne.sizes)==null?void 0:Kv.md.field)??{},lg:((Gv=ne.sizes)==null?void 0:Gv.lg.field)??{}},TA={baseStyle:wA,sizes:CA,variants:kA,defaultProps:{size:"md",variant:"outline"}},wa=Me("tooltip-bg"),zc=Me("tooltip-fg"),PA=Me("popper-arrow-bg"),EA={bg:wa.reference,color:zc.reference,[wa.variable]:"colors.gray.700",[zc.variable]:"colors.whiteAlpha.900",_dark:{[wa.variable]:"colors.gray.300",[zc.variable]:"colors.gray.900"},[PA.variable]:wa.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},_A={baseStyle:EA},$A={Accordion:pE,Alert:QE,Avatar:l2,Badge:Xo,Breadcrumb:v2,Button:E2,Checkbox:qn,CloseButton:V2,Code:K2,Container:q2,Divider:J2,Drawer:c_,Editable:y_,Form:k_,FormError:$_,FormLabel:A_,Heading:M_,Input:ne,Kbd:W_,Link:K_,List:Q_,Menu:l$,Modal:b$,NumberInput:_$,PinInput:O$,Popover:U$,Progress:Q$,Radio:nR,Select:uR,Skeleton:dR,SkipLink:hR,Slider:CR,Spinner:ER,Stat:zR,Switch:HR,Table:ZR,Tabs:hA,Tag:xA,Textarea:TA,Tooltip:_A,Card:O2,Stepper:jR},RA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},AA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},OA={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},LA={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},MA={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},zA={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},IA={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},DA={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},jA={property:zA,easing:IA,duration:DA},NA={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},FA={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},BA={breakpoints:AA,zIndices:NA,radii:LA,blur:FA,colors:OA,...T1,sizes:b1,shadows:MA,space:v1,borders:RA,transition:jA},VA={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},UA={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},WA="ltr",HA={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},KA={semanticTokens:VA,direction:WA,...BA,components:$A,styles:UA,config:HA};var GA=!1;function qA(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(uo,--ht):0,Xi--,Ee===10&&(Xi=1,ku--),Ee}function bt(){return Ee=ht2||vs(Ee)>3?"":" "}function aO(e,t){for(;--t&&bt()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return Xs(e,sl()+(t<6&&cn()==32&&bt()==32))}function Kd(e){for(;bt();)switch(Ee){case e:return ht;case 34:case 39:e!==34&&e!==39&&Kd(Ee);break;case 40:e===41&&Kd(e);break;case 92:bt();break}return ht}function lO(e,t){for(;bt()&&e+Ee!==57;)if(e+Ee===84&&cn()===47)break;return"/*"+Xs(t,ht-1)+"*"+wu(e===47?e:bt())}function uO(e){for(;!vs(cn());)bt();return Xs(e,ht)}function cO(e){return M1(ll("",null,null,null,[""],e=L1(e),0,[0],e))}function ll(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,v=0,y=1,S=1,m=1,h=0,g="",w=i,P=o,$=r,_=g;S;)switch(v=h,h=bt()){case 40:if(v!=108&&Fe(_,d-1)==58){Hd(_+=te(al(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:_+=al(h);break;case 9:case 10:case 13:case 32:_+=sO(v);break;case 92:_+=aO(sl()-1,7);continue;case 47:switch(cn()){case 42:case 47:ka(dO(lO(bt(),sl()),t,n),l);break;default:_+="/"}break;case 123*y:a[u++]=tn(_)*m;case 125*y:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:m==-1&&(_=te(_,/\f/g,"")),p>0&&tn(_)-d&&ka(p>32?cg(_+";",r,n,d-1):cg(te(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(ka($=ug(_,t,n,u,c,i,a,g,w=[],P=[],d),o),h===123)if(c===0)ll(_,t,$,$,w,o,d,a,P);else switch(f===99&&Fe(_,3)===110?100:f){case 100:case 108:case 109:case 115:ll(e,$,$,r&&ka(ug(e,$,$,0,0,i,a,g,i,w=[],d),P),i,P,d,a,r?w:P);break;default:ll(_,$,$,$,[""],P,0,a,P)}}u=c=p=0,y=m=1,g=_="",d=s;break;case 58:d=1+tn(_),p=v;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&oO()==125)continue}switch(_+=wu(h),h*y){case 38:m=c>0?1:(_+="\f",-1);break;case 44:a[u++]=(tn(_)-1)*m,m=1;break;case 64:cn()===45&&(_+=al(bt())),f=cn(),c=d=tn(g=_+=uO(sl())),h++;break;case 45:v===45&&tn(_)==2&&(y=0)}}return o}function ug(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,f=i===0?o:[""],p=Mh(f),v=0,y=0,S=0;v0?f[m]+" "+h:te(h,/&\f/g,f[m])))&&(l[S++]=g);return Cu(e,t,n,i===0?Oh:a,l,u,c)}function dO(e,t,n){return Cu(e,t,n,$1,wu(iO()),ys(e,2,-2),0)}function cg(e,t,n,r){return Cu(e,t,n,Lh,ys(e,0,r),ys(e,r+1,-1),r)}function ji(e,t){for(var n="",r=Mh(e),i=0;i6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+_l+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hd(e,"stretch")?I1(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,tn(e)-3-(~Hd(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Fe(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return ee+e+He+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+He+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+He+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+He+e+e}return e}var SO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Lh:t.return=I1(t.value,t.length);break;case R1:return ji([ko(t,{value:te(t.value,"@","@"+ee)})],i);case Oh:if(t.length)return rO(t.props,function(o){switch(nO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ji([ko(t,{props:[te(o,/:(read-\w+)/,":"+_l+"$1")]})],i);case"::placeholder":return ji([ko(t,{props:[te(o,/:(plac\w+)/,":"+ee+"input-$1")]}),ko(t,{props:[te(o,/:(plac\w+)/,":"+_l+"$1")]}),ko(t,{props:[te(o,/:(plac\w+)/,He+"input-$1")]})],i)}return""})}},xO=[SO],wO=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(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||xO,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),m=1;m=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 MO={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,scale: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},zO=!1,IO=/[A-Z]|^ms/g,DO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,U1=function(t){return t.charCodeAt(1)===45},hg=function(t){return t!=null&&typeof t!="boolean"},Ic=z1(function(e){return U1(e)?e:e.replace(IO,"-$&").toLowerCase()}),pg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(DO,function(r,i,o){return nn={name:i,styles:o,next:nn},i})}return MO[t]!==1&&!U1(t)&&typeof n=="number"&&n!==0?n+"px":n},jO="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function bs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return nn={name:i.name,styles:i.styles,next:nn},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)nn={name:s.name,styles:s.styles,next:nn},s=s.next;var a=o.styles+";";return a}return NO(e,t,n)}case"function":{if(e!==void 0){var l=nn,u=n(e);return nn=l,bs(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function NO(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o==null||o()},setClassName(i){document.body.classList.add(i?Ca.dark:Ca.light),document.body.classList.remove(i?Ca.light:Ca.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),s=a=>{i(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(s):o.addEventListener("change",s),()=>{typeof o.removeListener=="function"?o.removeListener(s):o.removeEventListener("change",s)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const qO="chakra-ui-color-mode";function XO(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const YO=XO(qO),yg=()=>{},QO=cT()?x.useLayoutEffect:x.useEffect;function vg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const K1=Nh(function(t,n){const{value:r,children:i,options:{useSystemColorMode:o,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=YO}=t,u=s==="dark"?"dark":"light",[c,d]=x.useState(()=>vg(l,u)),[f,p]=x.useState(()=>vg(l)),{getSystemTheme:y,setClassName:v,setDataset:S,addListener:m}=x.useMemo(()=>GO({preventTransition:a,nonce:n==null?void 0:n.nonce}),[a,n==null?void 0:n.nonce]),h=s==="system"&&!c?f:c,g=x.useCallback($=>{const _=$==="system"?y():$;d(_),v(_==="dark"),S(_),l.set(_)},[l,y,v,S]);QO(()=>{s==="system"&&p(y())},[]),x.useEffect(()=>{const $=l.get();if($){g($);return}if(s==="system"){g("system");return}g(u)},[l,u,s,g]);const w=x.useCallback(()=>{g(h==="dark"?"light":"dark")},[h,g]);x.useEffect(()=>{if(o)return m(g)},[o,m,g]);const P=x.useMemo(()=>({colorMode:r??h,toggleColorMode:r?yg:w,setColorMode:r?yg:g,forced:r!==void 0}),[h,w,g,r]);return O.jsx(Fh.Provider,{value:P,children:i})});K1.displayName="ColorModeProvider";const G1=String.raw,q1=G1` + */var De=typeof Symbol=="function"&&Symbol.for,zh=De?Symbol.for("react.element"):60103,Ih=De?Symbol.for("react.portal"):60106,Tu=De?Symbol.for("react.fragment"):60107,Pu=De?Symbol.for("react.strict_mode"):60108,Eu=De?Symbol.for("react.profiler"):60114,_u=De?Symbol.for("react.provider"):60109,$u=De?Symbol.for("react.context"):60110,Dh=De?Symbol.for("react.async_mode"):60111,Ru=De?Symbol.for("react.concurrent_mode"):60111,Au=De?Symbol.for("react.forward_ref"):60112,Ou=De?Symbol.for("react.suspense"):60113,kO=De?Symbol.for("react.suspense_list"):60120,Lu=De?Symbol.for("react.memo"):60115,Mu=De?Symbol.for("react.lazy"):60116,CO=De?Symbol.for("react.block"):60121,TO=De?Symbol.for("react.fundamental"):60117,PO=De?Symbol.for("react.responder"):60118,EO=De?Symbol.for("react.scope"):60119;function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zh:switch(e=e.type,e){case Dh:case Ru:case Tu:case Eu:case Pu:case Ou:return e;default:switch(e=e&&e.$$typeof,e){case $u:case Au:case Mu:case Lu:case _u:return e;default:return t}}case Ih:return t}}}function j1(e){return kt(e)===Ru}oe.AsyncMode=Dh;oe.ConcurrentMode=Ru;oe.ContextConsumer=$u;oe.ContextProvider=_u;oe.Element=zh;oe.ForwardRef=Au;oe.Fragment=Tu;oe.Lazy=Mu;oe.Memo=Lu;oe.Portal=Ih;oe.Profiler=Eu;oe.StrictMode=Pu;oe.Suspense=Ou;oe.isAsyncMode=function(e){return j1(e)||kt(e)===Dh};oe.isConcurrentMode=j1;oe.isContextConsumer=function(e){return kt(e)===$u};oe.isContextProvider=function(e){return kt(e)===_u};oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zh};oe.isForwardRef=function(e){return kt(e)===Au};oe.isFragment=function(e){return kt(e)===Tu};oe.isLazy=function(e){return kt(e)===Mu};oe.isMemo=function(e){return kt(e)===Lu};oe.isPortal=function(e){return kt(e)===Ih};oe.isProfiler=function(e){return kt(e)===Eu};oe.isStrictMode=function(e){return kt(e)===Pu};oe.isSuspense=function(e){return kt(e)===Ou};oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tu||e===Ru||e===Eu||e===Pu||e===Ou||e===kO||typeof e=="object"&&e!==null&&(e.$$typeof===Mu||e.$$typeof===Lu||e.$$typeof===_u||e.$$typeof===$u||e.$$typeof===Au||e.$$typeof===TO||e.$$typeof===PO||e.$$typeof===EO||e.$$typeof===CO)};oe.typeOf=kt;D1.exports=oe;var _O=D1.exports,N1=_O,$O={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},RO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F1={};F1[N1.ForwardRef]=$O;F1[N1.Memo]=RO;var AO=!0;function OO(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var B1=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||AO===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},V1=function(t,n,r){B1(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 LO(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 MO={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,scale: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},zO=!1,IO=/[A-Z]|^ms/g,DO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,U1=function(t){return t.charCodeAt(1)===45},hg=function(t){return t!=null&&typeof t!="boolean"},Ic=z1(function(e){return U1(e)?e:e.replace(IO,"-$&").toLowerCase()}),pg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(DO,function(r,i,o){return nn={name:i,styles:o,next:nn},i})}return MO[t]!==1&&!U1(t)&&typeof n=="number"&&n!==0?n+"px":n},jO="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function bs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return nn={name:i.name,styles:i.styles,next:nn},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)nn={name:s.name,styles:s.styles,next:nn},s=s.next;var a=o.styles+";";return a}return NO(e,t,n)}case"function":{if(e!==void 0){var l=nn,u=n(e);return nn=l,bs(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function NO(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o==null||o()},setClassName(i){document.body.classList.add(i?Ca.dark:Ca.light),document.body.classList.remove(i?Ca.light:Ca.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),s=a=>{i(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(s):o.addEventListener("change",s),()=>{typeof o.removeListener=="function"?o.removeListener(s):o.removeEventListener("change",s)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const qO="chakra-ui-color-mode";function XO(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const YO=XO(qO),yg=()=>{},QO=cT()?x.useLayoutEffect:x.useEffect;function vg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const K1=Nh(function(t,n){const{value:r,children:i,options:{useSystemColorMode:o,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=YO}=t,u=s==="dark"?"dark":"light",[c,d]=x.useState(()=>vg(l,u)),[f,p]=x.useState(()=>vg(l)),{getSystemTheme:v,setClassName:y,setDataset:S,addListener:m}=x.useMemo(()=>GO({preventTransition:a,nonce:n==null?void 0:n.nonce}),[a,n==null?void 0:n.nonce]),h=s==="system"&&!c?f:c,g=x.useCallback($=>{const _=$==="system"?v():$;d(_),y(_==="dark"),S(_),l.set(_)},[l,v,y,S]);QO(()=>{s==="system"&&p(v())},[]),x.useEffect(()=>{const $=l.get();if($){g($);return}if(s==="system"){g("system");return}g(u)},[l,u,s,g]);const w=x.useCallback(()=>{g(h==="dark"?"light":"dark")},[h,g]);x.useEffect(()=>{if(o)return m(g)},[o,m,g]);const P=x.useMemo(()=>({colorMode:r??h,toggleColorMode:r?yg:w,setColorMode:r?yg:g,forced:r!==void 0}),[h,w,g,r]);return O.jsx(Fh.Provider,{value:P,children:i})});K1.displayName="ColorModeProvider";const G1=String.raw,q1=G1` :root, :host { --chakra-vh: 100vh; @@ -315,7 +315,7 @@ var NC=Object.defineProperty;var FC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,config } ${q1} - `});function eL(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=x.useMemo(()=>zP(n),[n]);return O.jsxs(WO,{theme:i,children:[O.jsx(tL,{root:t}),r]})}function tL({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return O.jsx(zu,{styles:n=>({[t]:n.__cssVars})})}Xt({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function WF(e){return Xt({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function nL(){const{colorMode:e}=Bh();return O.jsx(zu,{styles:t=>{const n=l1(t,"styles.global"),r=sn(n,{theme:t,colorMode:e});return r?p1(r)(t):void 0}})}const[rL,iL]=Xt({strict:!1,name:"PortalManagerContext"});function X1(e){const{children:t,zIndex:n}=e;return O.jsx(rL,{value:{zIndex:n},children:t})}X1.displayName="PortalManager";const Y1=x.createContext({getDocument(){return document},getWindow(){return window}});Y1.displayName="EnvironmentContext";function Q1(e){const{children:t,environment:n,disabled:r}=e,i=x.useRef(null),o=x.useMemo(()=>n||{getDocument:()=>{var a;return((a=i.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=i.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return O.jsxs(Y1.Provider,{value:o,children:[t,s&&O.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}Q1.displayName="EnvironmentProvider";const oL=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=O.jsx(Q1,{environment:a,disabled:u,children:t});return O.jsx(eL,{theme:s,cssVarsRoot:l,children:O.jsxs(K1,{colorModeManager:n,options:s.config,children:[o?O.jsx(JO,{scope:i}):O.jsx(ZO,{}),!c&&O.jsx(nL,{}),r?O.jsx(X1,{zIndex:r,children:d}):d]})})};function sL(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function xs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gd=e=>Array.isArray(e);function Z1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Vh(e,t,n,r){if(typeof t=="function"){const[i,o]=bg(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Iu(e,t,n){const r=e.getProps();return Vh(r,t,n!==void 0?n:r.custom,e)}const Uh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wh=["initial",...Uh],Ys=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yr=new Set(Ys),_n=e=>e*1e3,$n=e=>e/1e3,aL={type:"spring",stiffness:500,damping:25,restSpeed:10},lL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),uL={type:"keyframes",duration:.8},cL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dL=(e,{keyframes:t})=>t.length>2?uL:yr.has(e)?e.startsWith("scale")?lL(t[1]):aL:cL;function Hh(e,t){return e[t]||e.default||e}const fL={skipAnimations:!1,useManualTiming:!1},hL=e=>e!==null;function Du(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(hL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Xe=e=>e;function pL(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,i&&(i=!1,l.process(u))}};return l}const Ta=["read","resolveKeyframes","update","preRender","render","postRender"],mL=40;function J1(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ta.reduce((m,h)=>(m[h]=pL(o),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,mL),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},y=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:Ta.reduce((m,h)=>{const g=s[h];return m[h]=(w,P=!1,$=!1)=>(n||y(),g.schedule(w,P,$)),m},{}),cancel:m=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gL=1e-7,yL=12;function vL(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=eb(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>gL&&++avL(o,0,1,e,n);return o=>o===0||o===1?o:eb(i(o),t,r)}const tb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nb=e=>t=>1-e(1-t),rb=Qs(.33,1.53,.69,.99),Kh=nb(rb),ib=tb(Kh),ob=e=>(e*=2)<1?.5*Kh(e):.5*(2-Math.pow(2,-10*(e-1))),Gh=e=>1-Math.sin(Math.acos(e)),sb=nb(Gh),ab=tb(Gh),lb=e=>/^0[^.\s]+$/u.test(e);function bL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lb(e):!0}let qd=Xe;const ub=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),cb=e=>t=>typeof t=="string"&&t.startsWith(e),db=cb("--"),SL=cb("var(--"),qh=e=>SL(e)?xL.test(e.split("/*")[0].trim()):!1,xL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kL(e){const t=wL.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function fb(e,t,n=1){const[r,i]=kL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return ub(s)?parseFloat(s):s}return qh(i)?fb(i,t,n+1):i}const hr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},ks={...co,transform:e=>hr(0,1,e)},Pa={...co,default:1},Zs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Kn=Zs("deg"),dn=Zs("%"),W=Zs("px"),CL=Zs("vh"),TL=Zs("vw"),Sg={...dn,parse:e=>dn.parse(e)/100,transform:e=>dn.transform(e*100)},PL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xg=e=>e===co||e===W,wg=(e,t)=>parseFloat(e.split(", ")[t]),kg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return wg(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?wg(o[1],e):0}},EL=new Set(["x","y","z"]),_L=Ys.filter(e=>!EL.has(e));function $L(e){const t=[];return _L.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Yi={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:kg(4,13),y:kg(5,14)};Yi.translateX=Yi.x;Yi.translateY=Yi.y;const hb=e=>t=>t.test(e),RL={test:e=>e==="auto",parse:e=>e},pb=[co,W,dn,Kn,TL,CL,RL],Cg=e=>pb.find(hb(e)),Wr=new Set;let Xd=!1,Yd=!1;function mb(){if(Yd){const e=Array.from(Wr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=$L(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)})}Yd=!1,Xd=!1,Wr.forEach(e=>e.complete()),Wr.clear()}function gb(){Wr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yd=!0)})}function AL(){gb(),mb()}class Xh{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?(Wr.add(this),Xd||(Xd=!0,se.read(gb),se.resolveKeyframes(mb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;oMath.round(e*1e5)/1e5,Yh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OL(e){return e==null}const LL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qh=(e,t)=>n=>!!(typeof n=="string"&&LL.test(n)&&n.startsWith(e)||t&&!OL(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Yh);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ML=e=>hr(0,255,e),jc={...co,transform:e=>Math.round(ML(e))},Ir={test:Qh("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+jc.transform(e)+", "+jc.transform(t)+", "+jc.transform(n)+", "+Jo(ks.transform(r))+")"};function zL(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 Qd={test:Qh("#"),parse:zL,transform:Ir.transform},yi={test:Qh("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dn.transform(Jo(t))+", "+dn.transform(Jo(n))+", "+Jo(ks.transform(r))+")"},Ke={test:e=>Ir.test(e)||Qd.test(e)||yi.test(e),parse:e=>Ir.test(e)?Ir.parse(e):yi.test(e)?yi.parse(e):Qd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ir.transform(e):yi.transform(e)},IL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function DL(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(IL))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",jL="var",NL="var(",Tg="${}",FL=/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 Cs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(FL,l=>(Ke.test(l)?(r.color.push(o),i.push(bb),n.push(Ke.parse(l))):l.startsWith(NL)?(r.var.push(o),i.push(jL),n.push(l)):(r.number.push(o),i.push(vb),n.push(parseFloat(l))),++o,Tg)).split(Tg);return{values:n,split:a,indexes:r,types:i}}function Sb(e){return Cs(e).values}function xb(e){const{split:t,types:n}=Cs(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function VL(e){const t=Sb(e);return xb(e)(t.map(BL))}const pr={test:DL,parse:Sb,createTransformer:xb,getAnimatableNone:VL},UL=new Set(["brightness","contrast","saturate","opacity"]);function WL(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Yh)||[];if(!r)return e;const i=n.replace(r,"");let o=UL.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const HL=/\b([a-z-]*)\(.*?\)/gu,Zd={...pr,getAnimatableNone:e=>{const t=e.match(HL);return t?t.map(WL).join(" "):e}},KL={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,backgroundPositionX:W,backgroundPositionY:W},GL={rotate:Kn,rotateX:Kn,rotateY:Kn,rotateZ:Kn,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:Kn,skewX:Kn,skewY:Kn,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ks,originX:Sg,originY:Sg,originZ:W},Pg={...co,transform:Math.round},Zh={...KL,...GL,zIndex:Pg,size:W,fillOpacity:ks,strokeOpacity:ks,numOctaves:Pg},qL={...Zh,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:Zd,WebkitFilter:Zd},Jh=e=>qL[e];function wb(e,t){let n=Jh(e);return n!==Zd&&(n=pr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const XL=new Set(["auto","none","0"]);function YL(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function ep(e){return typeof e=="function"}let ul;function QL(){ul=void 0}const fn={now:()=>(ul===void 0&&fn.set(Ne.isProcessing||fL.useManualTiming?Ne.timestamp:performance.now()),ul),set:e=>{ul=e,queueMicrotask(QL)}},Eg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pr.test(e)||e==="0")&&!e.startsWith("url("));function ZL(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&AL(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=fn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!JL(t,r,i,o))if(s)this.options.duration=0;else{l==null||l(Du(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Tb(e,t){return t?e*(1e3/t):0}const t5=5;function Pb(e,t,n){const r=Math.max(t-t5,0);return Tb(n-e(r),t-r)}const Nc=.001,n5=.01,r5=10,i5=.05,o5=1;function s5({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=hr(i5,o5,s),e=hr(n5,r5,$n(e)),s<1?(i=u=>{const c=u*s,d=c*e,f=c-n,p=Jd(u,s),y=Math.exp(-d);return Nc-f/p*y},o=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),v=Jd(Math.pow(u,2),s);return(-i(u)+Nc>0?-1:1)*((f-p)*y)/v}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Nc+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=l5(i,o,a);if(e=_n(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 a5=12;function l5(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function d5(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!_g(e,c5)&&_g(e,u5)){const n=s5(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Eb({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}=d5({...r,velocity:-$n(r.velocity||0)}),p=d||0,y=l/(2*Math.sqrt(a*u)),v=o-i,S=$n(Math.sqrt(a/u)),m=Math.abs(v)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let h;if(y<1){const g=Jd(S,y);h=w=>{const P=Math.exp(-y*S*w);return o-P*((p+y*S*v)/g*Math.sin(g*w)+v*Math.cos(g*w))}}else if(y===1)h=g=>o-Math.exp(-S*g)*(v+(p+S*v)*g);else{const g=S*Math.sqrt(y*y-1);h=w=>{const P=Math.exp(-y*S*w),$=Math.min(g*w,300);return o-P*((p+y*S*v)*Math.sinh($)+g*v*Math.cosh($))/g}}return{calculatedDuration:f&&c||null,next:g=>{const w=h(g);if(f)s.done=g>=c;else{let P=0;y<1&&(P=g===0?_n(p):Pb(h,g,w));const $=Math.abs(P)<=n,_=Math.abs(o-w)<=t;s.done=$&&_}return s.value=s.done?o:w,s}}}function $g({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=A=>a!==void 0&&Al,y=A=>a===void 0?l:l===void 0||Math.abs(a-A)-v*Math.exp(-A/r),g=A=>m+h(A),w=A=>{const F=h(A),j=g(A);f.done=Math.abs(F)<=u,f.value=f.done?m:j};let P,$;const _=A=>{p(f.value)&&(P=A,$=Eb({keyframes:[f.value,y(f.value)],velocity:Pb(g,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:A=>{let F=!1;return!$&&P===void 0&&(F=!0,w(A),_(A)),P!==void 0&&A>=P?$.next(A-P):(!F&&w(A),f)}}}const f5=Qs(.42,0,1,1),h5=Qs(0,0,.58,1),_b=Qs(.42,0,.58,1),p5=e=>Array.isArray(e)&&typeof e[0]!="number",Rg={linear:Xe,easeIn:f5,easeInOut:_b,easeOut:h5,circIn:Gh,circInOut:ab,circOut:sb,backIn:Kh,backInOut:ib,backOut:rb,anticipate:ob},Ag=e=>{if(Array.isArray(e)){qd(e.length===4);const[t,n,r,i]=e;return Qs(t,n,r,i)}else if(typeof e=="string")return qd(Rg[e]!==void 0),Rg[e];return e},m5=(e,t)=>n=>t(e(n)),Rn=(...e)=>e.reduce(m5),Qi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ve=(e,t,n)=>e+(t-e)*n;function Fc(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 g5({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=Fc(l,a,e+1/3),o=Fc(l,a,e),s=Fc(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Rl(e,t){return n=>n>0?t:e}const Bc=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},y5=[Qd,Ir,yi],v5=e=>y5.find(t=>t.test(e));function Og(e){const t=v5(e);if(!t)return!1;let n=t.parse(e);return t===yi&&(n=g5(n)),n}const Lg=(e,t)=>{const n=Og(e),r=Og(t);if(!n||!r)return Rl(e,t);const i={...n};return o=>(i.red=Bc(n.red,r.red,o),i.green=Bc(n.green,r.green,o),i.blue=Bc(n.blue,r.blue,o),i.alpha=ve(n.alpha,r.alpha,o),Ir.transform(i))},ef=new Set(["none","hidden"]);function b5(e,t){return ef.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function S5(e,t){return n=>ve(e,t,n)}function tp(e){return typeof e=="number"?S5:typeof e=="string"?qh(e)?Rl:Ke.test(e)?Lg:k5:Array.isArray(e)?$b:typeof e=="object"?Ke.test(e)?Lg:x5:Rl}function $b(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>tp(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function w5(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=pr.createTransformer(t),r=Cs(e),i=Cs(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?ef.has(e)&&!i.values.length||ef.has(t)&&!r.values.length?b5(e,t):Rn($b(w5(r,i),i.values),n):Rl(e,t)};function Rb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ve(e,t,n):tp(e)(e,t)}function C5(e,t,n){const r=[],i=n||Rb,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=C5(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(hr(e[0],e[o-1],u)):l}function P5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qi(0,t,r);e.push(ve(n,1,i))}}function E5(e){const t=[0];return P5(t,e.length-1),t}function _5(e,t){return e.map(n=>n*t)}function $5(e,t){return e.map(()=>t||_b).splice(0,e.length-1)}function Al({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=p5(r)?r.map(Ag):Ag(r),o={done:!1,value:t[0]},s=_5(n&&n.length===t.length?n:E5(t),e),a=T5(s,t,{ease:Array.isArray(i)?i:$5(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const Mg=2e4;function R5(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Mg?1/0:t}const A5=e=>{const t=({timestamp:n})=>e(n);return{start:()=>se.update(t,!0),stop:()=>fr(t),now:()=>Ne.isProcessing?Ne.timestamp:fn.now()}},O5={decay:$g,inertia:$g,tween:Al,keyframes:Al,spring:Eb},L5=e=>e/100;class np extends Cb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Xh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(o,a,n,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=ep(n)?n:O5[n]||Al;let l,u;a!==Al&&typeof t[0]!="number"&&(l=Rn(L5,Rb(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=R5(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:A}=this.options;return{done:!0,value:A[A.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:y,repeatDelay:v,onUpdate:S}=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 m=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let g=this.currentTime,w=o;if(p){const A=Math.min(this.currentTime,c)/d;let F=Math.floor(A),j=A%1;!j&&A>=1&&(j=1),j===1&&F--,F=Math.min(F,p+1),!!(F%2)&&(y==="reverse"?(j=1-j,v&&(j-=v/d)):y==="mirror"&&(w=s)),g=hr(0,1,j)*d}const P=h?{done:!1,value:l[0]}:w.next(g);a&&(P.value=a(P.value));let{done:$}=P;!h&&u!==null&&($=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return _&&i!==void 0&&(P.value=Du(l,this.options,i)),S&&S(P.value),_&&this.finish(),P}get duration(){const{resolved:t}=this;return t?$n(t.calculatedDuration):0}get time(){return $n(this.currentTime)}set time(t){t=_n(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=$n(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=A5,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),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 Ab=new Set(["opacity","clipPath","filter","transform"]),Ob=e=>Array.isArray(e)&&typeof e[0]=="number",M5=10,z5=(e,t)=>{let n="";const r=Math.max(Math.round(t/M5),2);for(let i=0;i(t===void 0&&(t=e()),t)}const I5={linearEasing:void 0};function D5(e,t){const n=rp(e);return()=>{var r;return(r=I5[t])!==null&&r!==void 0?r:n()}}const Ol=D5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Lb(e){return!!(typeof e=="function"&&Ol()||!e||typeof e=="string"&&(e in tf||Ol())||Ob(e)||Array.isArray(e)&&e.every(Lb))}const Bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bo([0,.65,.55,1]),circOut:Bo([.55,0,1,.45]),backIn:Bo([.31,.01,.66,-.59]),backOut:Bo([.33,1.53,.69,.99])};function Mb(e,t){if(e)return typeof e=="function"&&Ol()?z5(e,t):Ob(e)?Bo(e):Array.isArray(e)?e.map(n=>Mb(n,t)||tf.easeOut):tf[e]}function j5(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=Mb(a,i);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"})}function zg(e,t){e.timeline=t,e.onfinish=null}const N5=rp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ll=10,F5=2e4;function B5(e){return ep(e.type)||e.type==="spring"||!Lb(e.ease)}function V5(e,t){const n=new np({...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(s,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Ol()&&U5(s)&&(s=zb[s]),B5(this.options)){const{onComplete:f,onUpdate:p,motionValue:y,element:v,...S}=this.options,m=V5(t,S);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,o=m.times,s=m.ease,a="keyframes"}const d=j5(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(zg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Du(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,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 $n(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return $n(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_n(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}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xe;const{animation:r}=n;zg(r,t)}return Xe}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;this.resolveFinishedPromise(),this.updateFinishedPromise();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")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...p}=this.options,y=new np({...p,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),v=_n(this.time);u.setWithVelocity(y.sample(v-Ll).value,y.sample(v).value,Ll)}const{onStop:l}=this.options;l&&l(),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 N5()&&r&&Ab.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const W5=rp(()=>window.ScrollTimeline!==void 0);class H5{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rW5()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function K5({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}const ip=(e,t,n,r={},i,o)=>s=>{const a=Hh(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-_n(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};K5(a)||(c={...c,...dL(e,c)}),c.duration&&(c.duration=_n(c.duration)),c.repeatDelay&&(c.repeatDelay=_n(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=Du(c.keyframes,a);if(f!==void 0)return se.update(()=>{c.onUpdate(f),c.onComplete()}),new H5([])}return!o&&Ig.supports(c)?new Ig(c):new np(c)},G5=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),q5=e=>Gd(e)?e[e.length-1]||0:e;function op(e,t){e.indexOf(t)===-1&&e.push(t)}function sp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ap{constructor(){this.subscriptions=[]}add(t){return op(this.subscriptions,t),()=>sp(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 Y5{constructor(t,n={}){this.version="11.11.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=fn.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.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=X5(this.current))}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 ap);const r=this.events[t].add(n);return t==="change"?()=>{r(),se.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=fn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Dg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dg);return Tb(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 Ts(e,t){return new Y5(e,t)}function Q5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ts(n))}function Z5(e,t){const n=Iu(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=q5(o[s]);Q5(e,s,a)}}const ju=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),J5="framerAppearId",Ib="data-"+ju(J5);function Db(e){return e.props[Ib]}const qe=e=>!!(e&&e.getVelocity);function eM(e){return!!(qe(e)&&e.add)}function jb(e){if(yr.has(e))return"transform";if(Ab.has(e))return ju(e)}function nf(e,t){var n;if(!e.applyWillChange)return;const r=e.getValue("willChange");if(eM(r))return r.add(t);!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&jb(t)&&e.setStaticValue("willChange","transform")}function tM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),p=l[d];if(p===void 0||c&&tM(c,d))continue;const y={delay:n,...Hh(s||{},d)};let v=!1;if(window.MotionHandoffAnimation){const m=Db(e);if(m){const h=window.MotionHandoffAnimation(m,d,se);h!==null&&(y.startTime=h,v=!0)}}nf(e,d),f.start(ip(d,f,p,e.shouldReduceMotion&&yr.has(d)?{type:!1}:y,e,v));const S=f.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{se.update(()=>{a&&Z5(e,a)})}),u}function rf(e,t,n={}){var r;const i=Iu(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(Nb(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return nM(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 nM(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(rM).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(rf(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function rM(e,t){return e.sortNodePosition(t)}function iM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>rf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=rf(e,t,n);else{const i=typeof t=="function"?Iu(e,t,n.custom):t;r=Promise.all(Nb(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const oM=Wh.length;function Fb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Fb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>iM(e,n,r)))}function uM(e){let t=lM(e),n=jg(),r=!0;const i=l=>(u,c)=>{var d;const f=Iu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:y,...v}=f;u={...u,...v,...y}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Fb(e.parent)||{},d=[],f=new Set;let p={},y=1/0;for(let S=0;Sy&&w,F=!1;const j=Array.isArray(g)?g:[g];let K=j.reduce(i(m),{});P===!1&&(K={});const{prevResolvedValues:ce={}}=h,Ze={...ce,...K},Re=L=>{A=!0,f.has(L)&&(F=!0,f.delete(L)),h.needsAnimating[L]=!0;const R=e.getValue(L);R&&(R.liveStyle=!1)};for(const L in Ze){const R=K[L],D=ce[L];if(p.hasOwnProperty(L))continue;let I=!1;Gd(R)&&Gd(D)?I=!Z1(R,D):I=R!==D,I?R!=null?Re(L):f.add(L):R!==void 0&&f.has(L)?Re(L):h.protectedKeys[L]=!0}h.prevProp=g,h.prevResolvedValues=K,h.isActive&&(p={...p,...K}),r&&e.blockInitialAnimation&&(A=!1),A&&(!($&&_)||F)&&d.push(...j.map(L=>({animation:L,options:{type:m}})))}if(f.size){const S={};f.forEach(m=>{const h=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),S[m]=h??null}),d.push({animation:S})}let v=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?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,reset:()=>{n=jg(),r=!0}}}function cM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Z1(t,e):!1}function Er(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jg(){return{animate:Er(!0),whileInView:Er(),whileHover:Er(),whileTap:Er(),whileDrag:Er(),whileFocus:Er(),exit:Er()}}class vr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dM extends vr{constructor(t){super(t),t.animationState||(t.animationState=uM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let fM=0;class hM extends vr{constructor(){super(...arguments),this.id=fM++}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 pM={animation:{Feature:dM},exit:{Feature:hM}},Bb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Nu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const mM=e=>t=>Bb(t)&&e(t,Nu(t));function Cn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function An(e,t,n,r){return Cn(e,t,mM(n),r)}const Ng=(e,t)=>Math.abs(e-t);function gM(e,t){const n=Ng(e.x,t.x),r=Ng(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vb{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=Uc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=gM(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:y}=d,{timestamp:v}=Ne;this.history.push({...y,timestamp:v});const{onStart:S,onMove:m}=this.handlers;f||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Vc(f,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Uc(d.type==="pointercancel"?this.lastMoveEventInfo:Vc(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,S),y&&y(d,S)},!Bb(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Nu(t),a=Vc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ne;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Uc(a,this.history)),this.removeListeners=Rn(An(this.contextWindow,"pointermove",this.handlePointerMove),An(this.contextWindow,"pointerup",this.handlePointerUp),An(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),fr(this.updatePoint)}}function Vc(e,t){return t?{point:t(e.point)}:e}function Fg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uc({point:e},t){return{point:e,delta:Fg(e,Ub(t)),offset:Fg(e,yM(t)),velocity:vM(t,.1)}}function yM(e){return e[0]}function Ub(e){return e[e.length-1]}function vM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ub(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_n(t)));)n--;if(!r)return{x:0,y:0};const o=$n(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 Wb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Bg=Wb("dragHorizontal"),Vg=Wb("dragVertical");function Hb(e){let t=!1;if(e==="y")t=Vg();else if(e==="x")t=Bg();else{const n=Bg(),r=Vg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Kb(){const e=Hb(!0);return e?(e(),!1):!0}function vi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Gb=1e-4,bM=1-Gb,SM=1+Gb,qb=.01,xM=0-qb,wM=0+qb;function xt(e){return e.max-e.min}function kM(e,t,n){return Math.abs(e-t)<=n}function Ug(e,t,n,r=.5){e.origin=r,e.originPoint=ve(t.min,t.max,e.origin),e.scale=xt(n)/xt(t),e.translate=ve(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bM&&e.scale<=SM||isNaN(e.scale))&&(e.scale=1),(e.translate>=xM&&e.translate<=wM||isNaN(e.translate))&&(e.translate=0)}function es(e,t,n,r){Ug(e.x,t.x,n.x,r?r.originX:void 0),Ug(e.y,t.y,n.y,r?r.originY:void 0)}function Wg(e,t,n){e.min=n.min+t.min,e.max=e.min+xt(t)}function CM(e,t,n){Wg(e.x,t.x,n.x),Wg(e.y,t.y,n.y)}function Hg(e,t,n){e.min=t.min-n.min,e.max=e.min+xt(t)}function ts(e,t,n){Hg(e.x,t.x,n.x),Hg(e.y,t.y,n.y)}function TM(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ve(n,e,r.max):Math.min(e,n)),e}function Kg(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 PM(e,{top:t,left:n,bottom:r,right:i}){return{x:Kg(e.x,n,i),y:Kg(e.y,t,r)}}function Gg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Qi(t.min,t.max-r,e.min):r>i&&(n=Qi(e.min,e.max-i,t.min)),hr(0,1,n)}function $M(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 of=.35;function RM(e=of){return e===!1?e=0:e===!0&&(e=of),{x:qg(e,"left","right"),y:qg(e,"top","bottom")}}function qg(e,t,n){return{min:Xg(e,t),max:Xg(e,n)}}function Xg(e,t){return typeof e=="number"?e:e[t]||0}const Yg=()=>({translate:0,scale:1,origin:0,originPoint:0}),bi=()=>({x:Yg(),y:Yg()}),Qg=()=>({min:0,max:0}),Ce=()=>({x:Qg(),y:Qg()});function $t(e){return[e("x"),e("y")]}function Xb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function AM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function OM(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 Wc(e){return e===void 0||e===1}function sf({scale:e,scaleX:t,scaleY:n}){return!Wc(e)||!Wc(t)||!Wc(n)}function $r(e){return sf(e)||Yb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Yb(e){return Zg(e.x)||Zg(e.y)}function Zg(e){return e&&e!=="0%"}function Ml(e,t,n){const r=e-n,i=t*r;return n+i}function Jg(e,t,n,r,i){return i!==void 0&&(e=Ml(e,i,r)),Ml(e,n,r)+t}function af(e,t=0,n=1,r,i){e.min=Jg(e.min,t,n,r,i),e.max=Jg(e.max,t,n,r,i)}function Qb(e,{x:t,y:n}){af(e.x,t.translate,t.scale,t.originPoint),af(e.y,n.translate,n.scale,n.originPoint)}const ey=.999999999999,ty=1.0000000000001;function LM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;aey&&(t.x=1),t.yey&&(t.y=1)}function Si(e,t){e.min=e.min+t,e.max=e.max+t}function ny(e,t,n,r,i=.5){const o=ve(e.min,e.max,i);af(e,t,n,o,r)}function xi(e,t){ny(e.x,t.x,t.scaleX,t.scale,t.originX),ny(e.y,t.y,t.scaleY,t.scale,t.originY)}function Zb(e,t){return Xb(OM(e.getBoundingClientRect(),t))}function MM(e,t,n){const r=Zb(e,n),{scroll:i}=t;return i&&(Si(r.x,i.offset.x),Si(r.y,i.offset.y)),r}const Jb=({current:e})=>e?e.ownerDocument.defaultView:null,zM=new WeakMap;class IM{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=Ce(),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(Nu(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Hb(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),$t(S=>{let m=this.getAxisMotionValue(S).get()||0;if(dn.test(m)){const{projection:h}=this.visualElement;if(h&&h.layout){const g=h.layout.layoutBox[S];g&&(m=xt(g)*(parseFloat(m)/100))}}this.originPoint[S]=m}),y&&se.postRender(()=>y(c,d)),nf(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=d;if(p&&this.currentDirection===null){this.currentDirection=DM(S),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),v&&v(c,d)},a=(c,d)=>this.stop(c,d),l=()=>$t(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 Vb(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Jb(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&&se.postRender(()=>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||!Ea(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=TM(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&&vi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=PM(i.layoutBox,n):this.constraints=!1,this.elastic=RM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$t(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=$M(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!vi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=MM(r,i.root,this.visualElement.getTransformPagePoint());let s=EM(i.layout.layoutBox,o);if(n){const a=n(AM(s));this.hasMutatedConstraints=!!a,a&&(s=Xb(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=$t(c=>{if(!Ea(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,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return nf(this.visualElement,t),r.start(ip(t,r,0,n,this.visualElement,!1))}stopAnimation(){$t(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$t(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){$t(n=>{const{drag:r}=this.getProps();if(!Ea(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]-ve(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!vi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$t(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=_M({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(),$t(s=>{if(!Ea(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ve(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;zM.set(this.visualElement,this);const t=this.visualElement.current,n=An(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();vi(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),se.read(r);const s=Cn(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&($t(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=of,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ea(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function DM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jM extends vr{constructor(t){super(t),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new IM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const ry=e=>(t,n)=>{e&&se.postRender(()=>e(t,n))};class NM extends vr{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(t){this.session=new Vb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ry(t),onStart:ry(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&se.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=An(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Js=x.createContext(null);function FM(){const e=x.useContext(Js);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=x.useId();x.useEffect(()=>r(i),[]);const o=x.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}function BM(){return VM(x.useContext(Js))}function VM(e){return e===null?!0:e.isPresent}const lp=x.createContext({}),eS=x.createContext({}),cl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function iy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Co={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const n=iy(e,t.target.x),r=iy(e,t.target.y);return`${n}% ${r}%`}},UM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=pr.parse(e);if(i.length>5)return r;const o=pr.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=ve(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}},zl={};function WM(e){Object.assign(zl,e)}const{schedule:up,cancel:HF}=J1(queueMicrotask,!1);class HM extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;WM(KM),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()})),cl.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()||se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),up.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 tS(e){const[t,n]=FM(),r=x.useContext(lp);return O.jsx(HM,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(eS),isPresent:t,safeToRemove:n})}const KM={borderRadius:{...Co,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Co,borderTopRightRadius:Co,borderBottomLeftRadius:Co,borderBottomRightRadius:Co,boxShadow:UM},nS=["TopLeft","TopRight","BottomLeft","BottomRight"],GM=nS.length,oy=e=>typeof e=="string"?parseFloat(e):e,sy=e=>typeof e=="number"||W.test(e);function qM(e,t,n,r,i,o){i?(e.opacity=ve(0,n.opacity!==void 0?n.opacity:1,XM(r)),e.opacityExit=ve(t.opacity!==void 0?t.opacity:1,0,YM(r))):o&&(e.opacity=ve(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Qi(e,t,r))}function ly(e,t){e.min=t.min,e.max=t.max}function Et(e,t){ly(e.x,t.x),ly(e.y,t.y)}function uy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cy(e,t,n,r,i){return e-=t,e=Ml(e,1/n,r),i!==void 0&&(e=Ml(e,1/i,r)),e}function QM(e,t=0,n=1,r=.5,i,o=e,s=e){if(dn.test(t)&&(t=parseFloat(t),t=ve(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ve(o.min,o.max,r);e===o&&(a-=t),e.min=cy(e.min,t,n,a,i),e.max=cy(e.max,t,n,a,i)}function dy(e,t,[n,r,i],o,s){QM(e,t[n],t[r],t[i],t.scale,o,s)}const ZM=["x","scaleX","originX"],JM=["y","scaleY","originY"];function fy(e,t,n,r){dy(e.x,t,ZM,n?n.x:void 0,r?r.x:void 0),dy(e.y,t,JM,n?n.y:void 0,r?r.y:void 0)}function hy(e){return e.translate===0&&e.scale===1}function iS(e){return hy(e.x)&&hy(e.y)}function py(e,t){return e.min===t.min&&e.max===t.max}function ez(e,t){return py(e.x,t.x)&&py(e.y,t.y)}function my(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function oS(e,t){return my(e.x,t.x)&&my(e.y,t.y)}function gy(e){return xt(e.x)/xt(e.y)}function yy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tz{constructor(){this.members=[]}add(t){op(this.members,t),t.scheduleRender()}remove(t){if(sp(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 nz(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:y}=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) `),y&&(r+=`skewY(${y}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 rz=(e,t)=>e.depth-t.depth;class iz{constructor(){this.children=[],this.isDirty=!1}add(t){op(this.children,t),this.isDirty=!0}remove(t){sp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rz),this.isDirty=!1,this.children.forEach(t)}}function dl(e){const t=qe(e)?e.get():e;return G5(t)?t.toValue():t}function oz(e,t){const n=fn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(fr(r),e(o-t))};return se.read(r,!0),()=>fr(r)}function sz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function az(e,t,n){const r=qe(e)?e:Ts(e);return r.start(ip("",r,t,n)),r.animation}const Rr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vo=typeof window<"u"&&window.MotionDebug!==void 0,Hc=["","X","Y","Z"],lz={visibility:"hidden"},vy=1e3;let uz=0;function Kc(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function sS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Db(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",se,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&sS(r)}function aS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=uz++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Vo&&(Rr.totalNodes=Rr.resolvedTargetDeltas=Rr.recalculatedProjection=0),this.nodes.forEach(fz),this.nodes.forEach(yz),this.nodes.forEach(vz),this.nodes.forEach(hz),Vo&&window.MotionDebug.record(Rr)},this.resolvedRelativeTargetAt=0,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=oz(f,250),cl.hasAnimatedSinceResize&&(cl.hasAnimatedSinceResize=!1,this.nodes.forEach(Sy))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||kz,{onLayoutAnimationStart:S,onLayoutAnimationComplete:m}=c.getProps(),h=!this.targetLayout||!oS(this.targetLayout,y)||p,g=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const w={...Hh(v,"layout"),onPlay:S,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Sy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}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,fr(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(bz),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 P=w/1e3;xy(d.x,s.x,P),xy(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ts(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xz(this.relativeTarget,this.relativeTargetOrigin,f,P),g&&ez(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=Ce()),Et(g,this.relativeTarget)),v&&(this.animationValues=c,qM(c,u,this.latestValues,P,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(fr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{cl.hasAnimatedSinceResize=!0,this.currentAnimation=az(0,vy,{...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(vy),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&&lS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ce();const d=xt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=xt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Et(a,l),xi(a,c),es(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tz),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&&Kc("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(by),this.root.sharedNodes.clear()}}}function cz(e){e.updateLayout()}function dz(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"?$t(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=xt(f);f.min=r[d].min,f.max=f.min+p}):lS(o,n.layoutBox,r)&&$t(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=xt(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=bi();es(a,r,n.layoutBox);const l=bi();s?es(l,e.applyTransform(i,!0),n.measuredBox):es(l,r,n.layoutBox);const u=!iS(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 y=Ce();ts(y,n.layoutBox,f.layoutBox);const v=Ce();ts(v,r,p.layoutBox),oS(y,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,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 fz(e){Vo&&Rr.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 hz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pz(e){e.clearSnapshot()}function by(e){e.clearMeasurements()}function mz(e){e.isLayoutDirty=!1}function gz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yz(e){e.resolveTargetDelta()}function vz(e){e.calcProjection()}function bz(e){e.resetSkewAndRotation()}function Sz(e){e.removeLeadSnapshot()}function xy(e,t,n){e.translate=ve(t.translate,0,n),e.scale=ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wy(e,t,n,r){e.min=ve(t.min,n.min,r),e.max=ve(t.max,n.max,r)}function xz(e,t,n,r){wy(e.x,t.x,n.x,r),wy(e.y,t.y,n.y,r)}function wz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kz={duration:.45,ease:[.4,0,.1,1]},ky=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cy=ky("applewebkit/")&&!ky("chrome/")?Math.round:Xe;function Ty(e){e.min=Cy(e.min),e.max=Cy(e.max)}function Cz(e){Ty(e.x),Ty(e.y)}function lS(e,t,n){return e==="position"||e==="preserve-aspect"&&!kM(gy(t),gy(n),.2)}function Tz(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Pz=aS({attachResizeListener:(e,t)=>Cn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gc={current:void 0},uS=aS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gc.current){const e=new Pz({});e.mount(window),e.setOptions({layoutScroll:!0}),Gc.current=e}return Gc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ez={pan:{Feature:NM},drag:{Feature:jM,ProjectionNode:uS,MeasureLayout:tS}};function Py(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||Kb())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&se.postRender(()=>l(o,s))};return An(e.current,n,i,{passive:!e.getProps()[r]})}class _z extends vr{mount(){this.unmount=Rn(Py(this.node,!0),Py(this.node,!1))}unmount(){}}class $z extends vr{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=Rn(Cn(this.node.current,"focus",()=>this.onFocus()),Cn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cS=(e,t)=>t?e===t?!0:cS(e,t.parentElement):!1;function qc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Nu(n))}class Rz extends vr{constructor(){super(...arguments),this.removeStartListeners=Xe,this.removeEndListeners=Xe,this.removeAccessibleListeners=Xe,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=An(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!cS(this.node.current,a.target)?c:u;f&&se.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=An(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Rn(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()||qc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&se.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Cn(this.node.current,"keyup",s),qc("down",(a,l)=>{this.startPress(a,l)})},n=Cn(this.node.current,"keydown",t),r=()=>{this.isPressing&&qc("cancel",(o,s)=>this.cancelPress(o,s))},i=Cn(this.node.current,"blur",r);this.removeAccessibleListeners=Rn(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&&se.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Kb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&se.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=An(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Cn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Rn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const lf=new WeakMap,Xc=new WeakMap,Az=e=>{const t=lf.get(e.target);t&&t(e)},Oz=e=>{e.forEach(Az)};function Lz({root:e,...t}){const n=e||document;Xc.has(n)||Xc.set(n,{});const r=Xc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Oz,{root:e,...t})),r[i]}function Mz(e,t,n){const r=Lz(t);return lf.set(e,n),r.observe(e),()=>{lf.delete(e),r.unobserve(e)}}const zz={some:0,all:1};class Iz extends vr{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:zz[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 Mz(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(Dz(t,n))&&this.startObserver()}unmount(){}}function Dz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jz={inView:{Feature:Iz},tap:{Feature:Rz},focus:{Feature:$z},hover:{Feature:_z}},Nz={layout:{ProjectionNode:uS,MeasureLayout:tS}},cp=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fu=x.createContext({}),dp=typeof window<"u",dS=dp?x.useLayoutEffect:x.useEffect,fS=x.createContext({strict:!1});function Fz(e,t,n,r,i){var o,s;const{visualElement:a}=x.useContext(Fu),l=x.useContext(fS),u=x.useContext(Js),c=x.useContext(cp).reducedMotion,d=x.useRef();r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,p=x.useContext(eS);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Bz(d.current,n,i,p),x.useInsertionEffect(()=>{f&&f.update(n,u)});const y=n[Ib],v=x.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,y)));return dS(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),up.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,y)}),v.current=!1))}),f}function Bz(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hS(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&vi(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function hS(e){if(e)return e.options.allowProjection!==!1?e.projection:hS(e.parent)}function Vz(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):vi(n)&&(n.current=r))},[t])}function Bu(e){return xs(e.animate)||Wh.some(t=>ws(e[t]))}function pS(e){return!!(Bu(e)||e.variants)}function Uz(e,t){if(Bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ws(n)?n:void 0,animate:ws(r)?r:void 0}}return e.inherit!==!1?t:{}}function Wz(e){const{initial:t,animate:n}=Uz(e,x.useContext(Fu));return x.useMemo(()=>({initial:t,animate:n}),[Ey(t),Ey(n)])}function Ey(e){return Array.isArray(e)?e.join(" "):e}const _y={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"]},Zi={};for(const e in _y)Zi[e]={isEnabled:t=>_y[e].some(n=>!!t[n])};function Hz(e){for(const t in e)Zi[t]={...Zi[t],...e[t]}}const Kz=Symbol.for("motionComponentSymbol");function Gz({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Hz(e);function o(a,l){let u;const c={...x.useContext(cp),...a,layoutId:qz(a)},{isStatic:d}=c,f=Wz(a),p=r(a,d);if(!d&&dp){Xz();const y=Yz(c);u=y.MeasureLayout,f.visualElement=Fz(i,p,c,t,y.ProjectionNode)}return O.jsxs(Fu.Provider,{value:f,children:[u&&f.visualElement?O.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,Vz(p,f.visualElement,l),p,d,f.visualElement)]})}const s=x.forwardRef(o);return s[Kz]=i,s}function qz({layoutId:e}){const t=x.useContext(lp).id;return t&&e!==void 0?t+"-"+e:e}function Xz(e,t){x.useContext(fS).strict}function Yz(e){const{drag:t,layout:n}=Zi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Qz=["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 fp(e){return typeof e!="string"||e.includes("-")?!1:!!(Qz.indexOf(e)>-1||/[A-Z]/u.test(e))}function mS(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 gS=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 yS(e,t,n,r){mS(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(gS.has(i)?i:ju(i),t.attrs[i])}function vS(e,{layout:t,layoutId:n}){return yr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function hp(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(qe(i[s])||t.style&&qe(t.style[s])||vS(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 n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function bS(e,t,n){const r=hp(e,t,n);for(const i in e)if(qe(e[i])||qe(t[i])){const o=Ys.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function pp(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}function Zz({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,s,a){const l={latestValues:Jz(i,o,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(i,u,l)),l}const SS=e=>(t,n)=>{const r=x.useContext(Fu),i=x.useContext(Js),o=()=>Zz(e,t,r,i,n);return n?o():pp(o)};function $y(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i{for(const m in v){let h=v[m];if(Array.isArray(h)){const g=p?h.length-1:0;h=h[g]}h!==null&&(s[m]=h)}for(const m in S)s[m]=S[m]}),a&&c&&u!==!1&&!xs(c)&&$y(e,c,v=>{for(const S in v)if(jb(S)){s.willChange="transform";return}}),s}const mp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),xS=()=>({...mp(),attrs:{}}),wS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,eI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tI=Ys.length;function nI(e,t,n){let r="",i=!0;for(let o=0;otypeof e=="string"&&e.toLowerCase()==="svg",aI={useVisualState:SS({scrapeMotionValuesFromProps:bS,createRenderState:xS,onMount:(e,t,{renderState:n,latestValues:r})=>{se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),se.render(()=>{yp(n,r,vp(t.tagName),e.transformTemplate),yS(t,n)})}})},lI={useVisualState:SS({applyWillChange:!0,scrapeMotionValuesFromProps:hp,createRenderState:mp})};function kS(e,t,n){for(const r in t)!qe(t[r])&&!vS(r,n)&&(e[r]=t[r])}function uI({transformTemplate:e},t){return x.useMemo(()=>{const n=mp();return gp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cI(e,t){const n=e.style||{},r={};return kS(r,n,e),Object.assign(r,uI(e,t)),r}function dI(e,t){const n={},r=cI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const fI=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 Il(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fI.has(e)}let CS=e=>!Il(e);function hI(e){e&&(CS=t=>t.startsWith("on")?!Il(t):e(t))}try{hI(require("@emotion/is-prop-valid").default)}catch{}function pI(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(CS(i)||n===!0&&Il(i)||!t&&!Il(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function mI(e,t,n,r){const i=x.useMemo(()=>{const o=xS();return yp(o,t,vp(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};kS(o,e.style,e),i.style={...o,...i.style}}return i}function gI(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(fp(n)?mI:dI)(r,o,s,n),u=pI(r,typeof n=="string",e),c=n!==x.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=x.useMemo(()=>qe(d)?d.get():d,[d]);return x.createElement(n,{...c,children:f})}}function yI(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...fp(r)?aI:lI,preloadedFeatures:e,useRender:gI(i),createVisualElement:t,Component:r};return Gz(s)}}const uf={current:null},TS={current:!1};function vI(){if(TS.current=!0,!!dp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>uf.current=e.matches;e.addListener(t),t()}else uf.current=!1}function bI(e,t,n){for(const r in t){const i=t[r],o=n[r];if(qe(i))e.addValue(r,i);else if(qe(o))e.addValue(r,Ts(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ts(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ay=new WeakMap,SI=[...pb,Ke,pr],xI=e=>SI.find(hb(e)),Oy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class wI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xh,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.renderScheduledAt=0,this.scheduleRender=()=>{const f=fn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),TS.current||vI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:uf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ay.delete(this.current),this.projection&&this.projection.unmount(),fr(this.notifyUpdate),fr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=yr.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&se.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Zi){const n=Zi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ce()}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=Ts(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"&&(ub(i)||lb(i))?i=parseFloat(i):!xI(i)&&pr.test(n)&&(i=wb(t,n)),this.setBaseTarget(t,qe(i)?i.get():i)),qe(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=Vh(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&&!qe(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 ap),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class PS extends wI{constructor(){super(...arguments),this.KeyframeResolver=kb}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 kI(e){return window.getComputedStyle(e)}class CI extends PS{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=mS}readValueFromInstance(t,n){if(yr.has(n)){const r=Jh(n);return r&&r.default||0}else{const r=kI(t),i=(db(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Zb(t,n)}build(t,n,r){gp(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return hp(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;qe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class TI extends PS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(yr.has(n)){const r=Jh(n);return r&&r.default||0}return n=gS.has(n)?n:ju(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return bS(t,n,r)}build(t,n,r){yp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){yS(t,n,r,i)}mount(t){this.isSVGTag=vp(t.tagName),super.mount(t)}}const PI=(e,t)=>fp(e)?new TI(t):new CI(t,{allowProjection:e!==x.Fragment}),EI=yI({...pM,...jz,...Ez,...Nz},PI),_I=sL(EI);class $I extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function RI({children:e,isPresent:t}){const n=x.useId(),r=x.useRef(null),i=x.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=x.useContext(cp);return x.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=i.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + `});function eL(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=x.useMemo(()=>zP(n),[n]);return O.jsxs(WO,{theme:i,children:[O.jsx(tL,{root:t}),r]})}function tL({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return O.jsx(zu,{styles:n=>({[t]:n.__cssVars})})}Xt({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function WF(e){return Xt({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function nL(){const{colorMode:e}=Bh();return O.jsx(zu,{styles:t=>{const n=l1(t,"styles.global"),r=sn(n,{theme:t,colorMode:e});return r?p1(r)(t):void 0}})}const[rL,iL]=Xt({strict:!1,name:"PortalManagerContext"});function X1(e){const{children:t,zIndex:n}=e;return O.jsx(rL,{value:{zIndex:n},children:t})}X1.displayName="PortalManager";const Y1=x.createContext({getDocument(){return document},getWindow(){return window}});Y1.displayName="EnvironmentContext";function Q1(e){const{children:t,environment:n,disabled:r}=e,i=x.useRef(null),o=x.useMemo(()=>n||{getDocument:()=>{var a;return((a=i.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=i.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return O.jsxs(Y1.Provider,{value:o,children:[t,s&&O.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}Q1.displayName="EnvironmentProvider";const oL=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=O.jsx(Q1,{environment:a,disabled:u,children:t});return O.jsx(eL,{theme:s,cssVarsRoot:l,children:O.jsxs(K1,{colorModeManager:n,options:s.config,children:[o?O.jsx(JO,{scope:i}):O.jsx(ZO,{}),!c&&O.jsx(nL,{}),r?O.jsx(X1,{zIndex:r,children:d}):d]})})};function sL(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function xs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gd=e=>Array.isArray(e);function Z1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Vh(e,t,n,r){if(typeof t=="function"){const[i,o]=bg(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Iu(e,t,n){const r=e.getProps();return Vh(r,t,n!==void 0?n:r.custom,e)}const Uh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wh=["initial",...Uh],Ys=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yr=new Set(Ys),_n=e=>e*1e3,$n=e=>e/1e3,aL={type:"spring",stiffness:500,damping:25,restSpeed:10},lL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),uL={type:"keyframes",duration:.8},cL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dL=(e,{keyframes:t})=>t.length>2?uL:yr.has(e)?e.startsWith("scale")?lL(t[1]):aL:cL;function Hh(e,t){return e[t]||e.default||e}const fL={skipAnimations:!1,useManualTiming:!1},hL=e=>e!==null;function Du(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(hL),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Xe=e=>e;function pL(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,i&&(i=!1,l.process(u))}};return l}const Ta=["read","resolveKeyframes","update","preRender","render","postRender"],mL=40;function J1(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ta.reduce((m,h)=>(m[h]=pL(o),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,mL),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},v=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:Ta.reduce((m,h)=>{const g=s[h];return m[h]=(w,P=!1,$=!1)=>(n||v(),g.schedule(w,P,$)),m},{}),cancel:m=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gL=1e-7,yL=12;function vL(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=eb(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>gL&&++avL(o,0,1,e,n);return o=>o===0||o===1?o:eb(i(o),t,r)}const tb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nb=e=>t=>1-e(1-t),rb=Qs(.33,1.53,.69,.99),Kh=nb(rb),ib=tb(Kh),ob=e=>(e*=2)<1?.5*Kh(e):.5*(2-Math.pow(2,-10*(e-1))),Gh=e=>1-Math.sin(Math.acos(e)),sb=nb(Gh),ab=tb(Gh),lb=e=>/^0[^.\s]+$/u.test(e);function bL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lb(e):!0}let qd=Xe;const ub=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),cb=e=>t=>typeof t=="string"&&t.startsWith(e),db=cb("--"),SL=cb("var(--"),qh=e=>SL(e)?xL.test(e.split("/*")[0].trim()):!1,xL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kL(e){const t=wL.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function fb(e,t,n=1){const[r,i]=kL(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return ub(s)?parseFloat(s):s}return qh(i)?fb(i,t,n+1):i}const hr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},ks={...co,transform:e=>hr(0,1,e)},Pa={...co,default:1},Zs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Kn=Zs("deg"),dn=Zs("%"),W=Zs("px"),CL=Zs("vh"),TL=Zs("vw"),Sg={...dn,parse:e=>dn.parse(e)/100,transform:e=>dn.transform(e*100)},PL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xg=e=>e===co||e===W,wg=(e,t)=>parseFloat(e.split(", ")[t]),kg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return wg(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?wg(o[1],e):0}},EL=new Set(["x","y","z"]),_L=Ys.filter(e=>!EL.has(e));function $L(e){const t=[];return _L.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Yi={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:kg(4,13),y:kg(5,14)};Yi.translateX=Yi.x;Yi.translateY=Yi.y;const hb=e=>t=>t.test(e),RL={test:e=>e==="auto",parse:e=>e},pb=[co,W,dn,Kn,TL,CL,RL],Cg=e=>pb.find(hb(e)),Wr=new Set;let Xd=!1,Yd=!1;function mb(){if(Yd){const e=Array.from(Wr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=$L(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)})}Yd=!1,Xd=!1,Wr.forEach(e=>e.complete()),Wr.clear()}function gb(){Wr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yd=!0)})}function AL(){gb(),mb()}class Xh{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?(Wr.add(this),Xd||(Xd=!0,se.read(gb),se.resolveKeyframes(mb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;oMath.round(e*1e5)/1e5,Yh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OL(e){return e==null}const LL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qh=(e,t)=>n=>!!(typeof n=="string"&&LL.test(n)&&n.startsWith(e)||t&&!OL(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Yh);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ML=e=>hr(0,255,e),jc={...co,transform:e=>Math.round(ML(e))},Ir={test:Qh("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+jc.transform(e)+", "+jc.transform(t)+", "+jc.transform(n)+", "+Jo(ks.transform(r))+")"};function zL(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 Qd={test:Qh("#"),parse:zL,transform:Ir.transform},yi={test:Qh("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dn.transform(Jo(t))+", "+dn.transform(Jo(n))+", "+Jo(ks.transform(r))+")"},Ke={test:e=>Ir.test(e)||Qd.test(e)||yi.test(e),parse:e=>Ir.test(e)?Ir.parse(e):yi.test(e)?yi.parse(e):Qd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ir.transform(e):yi.transform(e)},IL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function DL(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(IL))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",jL="var",NL="var(",Tg="${}",FL=/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 Cs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(FL,l=>(Ke.test(l)?(r.color.push(o),i.push(bb),n.push(Ke.parse(l))):l.startsWith(NL)?(r.var.push(o),i.push(jL),n.push(l)):(r.number.push(o),i.push(vb),n.push(parseFloat(l))),++o,Tg)).split(Tg);return{values:n,split:a,indexes:r,types:i}}function Sb(e){return Cs(e).values}function xb(e){const{split:t,types:n}=Cs(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function VL(e){const t=Sb(e);return xb(e)(t.map(BL))}const pr={test:DL,parse:Sb,createTransformer:xb,getAnimatableNone:VL},UL=new Set(["brightness","contrast","saturate","opacity"]);function WL(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Yh)||[];if(!r)return e;const i=n.replace(r,"");let o=UL.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const HL=/\b([a-z-]*)\(.*?\)/gu,Zd={...pr,getAnimatableNone:e=>{const t=e.match(HL);return t?t.map(WL).join(" "):e}},KL={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,backgroundPositionX:W,backgroundPositionY:W},GL={rotate:Kn,rotateX:Kn,rotateY:Kn,rotateZ:Kn,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:Kn,skewX:Kn,skewY:Kn,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ks,originX:Sg,originY:Sg,originZ:W},Pg={...co,transform:Math.round},Zh={...KL,...GL,zIndex:Pg,size:W,fillOpacity:ks,strokeOpacity:ks,numOctaves:Pg},qL={...Zh,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:Zd,WebkitFilter:Zd},Jh=e=>qL[e];function wb(e,t){let n=Jh(e);return n!==Zd&&(n=pr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const XL=new Set(["auto","none","0"]);function YL(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function ep(e){return typeof e=="function"}let ul;function QL(){ul=void 0}const fn={now:()=>(ul===void 0&&fn.set(Ne.isProcessing||fL.useManualTiming?Ne.timestamp:performance.now()),ul),set:e=>{ul=e,queueMicrotask(QL)}},Eg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pr.test(e)||e==="0")&&!e.startsWith("url("));function ZL(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&AL(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=fn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!JL(t,r,i,o))if(s)this.options.duration=0;else{l==null||l(Du(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Tb(e,t){return t?e*(1e3/t):0}const t5=5;function Pb(e,t,n){const r=Math.max(t-t5,0);return Tb(n-e(r),t-r)}const Nc=.001,n5=.01,r5=10,i5=.05,o5=1;function s5({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=hr(i5,o5,s),e=hr(n5,r5,$n(e)),s<1?(i=u=>{const c=u*s,d=c*e,f=c-n,p=Jd(u,s),v=Math.exp(-d);return Nc-f/p*v},o=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),y=Jd(Math.pow(u,2),s);return(-i(u)+Nc>0?-1:1)*((f-p)*v)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Nc+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=l5(i,o,a);if(e=_n(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 a5=12;function l5(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function d5(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!_g(e,c5)&&_g(e,u5)){const n=s5(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Eb({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}=d5({...r,velocity:-$n(r.velocity||0)}),p=d||0,v=l/(2*Math.sqrt(a*u)),y=o-i,S=$n(Math.sqrt(a/u)),m=Math.abs(y)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let h;if(v<1){const g=Jd(S,v);h=w=>{const P=Math.exp(-v*S*w);return o-P*((p+v*S*y)/g*Math.sin(g*w)+y*Math.cos(g*w))}}else if(v===1)h=g=>o-Math.exp(-S*g)*(y+(p+S*y)*g);else{const g=S*Math.sqrt(v*v-1);h=w=>{const P=Math.exp(-v*S*w),$=Math.min(g*w,300);return o-P*((p+v*S*y)*Math.sinh($)+g*y*Math.cosh($))/g}}return{calculatedDuration:f&&c||null,next:g=>{const w=h(g);if(f)s.done=g>=c;else{let P=0;v<1&&(P=g===0?_n(p):Pb(h,g,w));const $=Math.abs(P)<=n,_=Math.abs(o-w)<=t;s.done=$&&_}return s.value=s.done?o:w,s}}}function $g({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=A=>a!==void 0&&Al,v=A=>a===void 0?l:l===void 0||Math.abs(a-A)-y*Math.exp(-A/r),g=A=>m+h(A),w=A=>{const F=h(A),j=g(A);f.done=Math.abs(F)<=u,f.value=f.done?m:j};let P,$;const _=A=>{p(f.value)&&(P=A,$=Eb({keyframes:[f.value,v(f.value)],velocity:Pb(g,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:A=>{let F=!1;return!$&&P===void 0&&(F=!0,w(A),_(A)),P!==void 0&&A>=P?$.next(A-P):(!F&&w(A),f)}}}const f5=Qs(.42,0,1,1),h5=Qs(0,0,.58,1),_b=Qs(.42,0,.58,1),p5=e=>Array.isArray(e)&&typeof e[0]!="number",Rg={linear:Xe,easeIn:f5,easeInOut:_b,easeOut:h5,circIn:Gh,circInOut:ab,circOut:sb,backIn:Kh,backInOut:ib,backOut:rb,anticipate:ob},Ag=e=>{if(Array.isArray(e)){qd(e.length===4);const[t,n,r,i]=e;return Qs(t,n,r,i)}else if(typeof e=="string")return qd(Rg[e]!==void 0),Rg[e];return e},m5=(e,t)=>n=>t(e(n)),Rn=(...e)=>e.reduce(m5),Qi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ve=(e,t,n)=>e+(t-e)*n;function Fc(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 g5({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=Fc(l,a,e+1/3),o=Fc(l,a,e),s=Fc(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Rl(e,t){return n=>n>0?t:e}const Bc=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},y5=[Qd,Ir,yi],v5=e=>y5.find(t=>t.test(e));function Og(e){const t=v5(e);if(!t)return!1;let n=t.parse(e);return t===yi&&(n=g5(n)),n}const Lg=(e,t)=>{const n=Og(e),r=Og(t);if(!n||!r)return Rl(e,t);const i={...n};return o=>(i.red=Bc(n.red,r.red,o),i.green=Bc(n.green,r.green,o),i.blue=Bc(n.blue,r.blue,o),i.alpha=ve(n.alpha,r.alpha,o),Ir.transform(i))},ef=new Set(["none","hidden"]);function b5(e,t){return ef.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function S5(e,t){return n=>ve(e,t,n)}function tp(e){return typeof e=="number"?S5:typeof e=="string"?qh(e)?Rl:Ke.test(e)?Lg:k5:Array.isArray(e)?$b:typeof e=="object"?Ke.test(e)?Lg:x5:Rl}function $b(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>tp(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function w5(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=pr.createTransformer(t),r=Cs(e),i=Cs(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?ef.has(e)&&!i.values.length||ef.has(t)&&!r.values.length?b5(e,t):Rn($b(w5(r,i),i.values),n):Rl(e,t)};function Rb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ve(e,t,n):tp(e)(e,t)}function C5(e,t,n){const r=[],i=n||Rb,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=C5(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(hr(e[0],e[o-1],u)):l}function P5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qi(0,t,r);e.push(ve(n,1,i))}}function E5(e){const t=[0];return P5(t,e.length-1),t}function _5(e,t){return e.map(n=>n*t)}function $5(e,t){return e.map(()=>t||_b).splice(0,e.length-1)}function Al({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=p5(r)?r.map(Ag):Ag(r),o={done:!1,value:t[0]},s=_5(n&&n.length===t.length?n:E5(t),e),a=T5(s,t,{ease:Array.isArray(i)?i:$5(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const Mg=2e4;function R5(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Mg?1/0:t}const A5=e=>{const t=({timestamp:n})=>e(n);return{start:()=>se.update(t,!0),stop:()=>fr(t),now:()=>Ne.isProcessing?Ne.timestamp:fn.now()}},O5={decay:$g,inertia:$g,tween:Al,keyframes:Al,spring:Eb},L5=e=>e/100;class np extends Cb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Xh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(o,a,n,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=ep(n)?n:O5[n]||Al;let l,u;a!==Al&&typeof t[0]!="number"&&(l=Rn(L5,Rb(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=R5(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:A}=this.options;return{done:!0,value:A[A.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:v,repeatDelay:y,onUpdate:S}=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 m=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let g=this.currentTime,w=o;if(p){const A=Math.min(this.currentTime,c)/d;let F=Math.floor(A),j=A%1;!j&&A>=1&&(j=1),j===1&&F--,F=Math.min(F,p+1),!!(F%2)&&(v==="reverse"?(j=1-j,y&&(j-=y/d)):v==="mirror"&&(w=s)),g=hr(0,1,j)*d}const P=h?{done:!1,value:l[0]}:w.next(g);a&&(P.value=a(P.value));let{done:$}=P;!h&&u!==null&&($=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return _&&i!==void 0&&(P.value=Du(l,this.options,i)),S&&S(P.value),_&&this.finish(),P}get duration(){const{resolved:t}=this;return t?$n(t.calculatedDuration):0}get time(){return $n(this.currentTime)}set time(t){t=_n(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=$n(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=A5,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),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 Ab=new Set(["opacity","clipPath","filter","transform"]),Ob=e=>Array.isArray(e)&&typeof e[0]=="number",M5=10,z5=(e,t)=>{let n="";const r=Math.max(Math.round(t/M5),2);for(let i=0;i(t===void 0&&(t=e()),t)}const I5={linearEasing:void 0};function D5(e,t){const n=rp(e);return()=>{var r;return(r=I5[t])!==null&&r!==void 0?r:n()}}const Ol=D5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Lb(e){return!!(typeof e=="function"&&Ol()||!e||typeof e=="string"&&(e in tf||Ol())||Ob(e)||Array.isArray(e)&&e.every(Lb))}const Bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bo([0,.65,.55,1]),circOut:Bo([.55,0,1,.45]),backIn:Bo([.31,.01,.66,-.59]),backOut:Bo([.33,1.53,.69,.99])};function Mb(e,t){if(e)return typeof e=="function"&&Ol()?z5(e,t):Ob(e)?Bo(e):Array.isArray(e)?e.map(n=>Mb(n,t)||tf.easeOut):tf[e]}function j5(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=Mb(a,i);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"})}function zg(e,t){e.timeline=t,e.onfinish=null}const N5=rp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ll=10,F5=2e4;function B5(e){return ep(e.type)||e.type==="spring"||!Lb(e.ease)}function V5(e,t){const n=new np({...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(s,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Ol()&&U5(s)&&(s=zb[s]),B5(this.options)){const{onComplete:f,onUpdate:p,motionValue:v,element:y,...S}=this.options,m=V5(t,S);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,o=m.times,s=m.ease,a="keyframes"}const d=j5(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(zg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Du(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,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 $n(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return $n(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_n(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}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xe;const{animation:r}=n;zg(r,t)}return Xe}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;this.resolveFinishedPromise(),this.updateFinishedPromise();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")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...p}=this.options,v=new np({...p,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),y=_n(this.time);u.setWithVelocity(v.sample(y-Ll).value,v.sample(y).value,Ll)}const{onStop:l}=this.options;l&&l(),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 N5()&&r&&Ab.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const W5=rp(()=>window.ScrollTimeline!==void 0);class H5{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rW5()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function K5({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}const ip=(e,t,n,r={},i,o)=>s=>{const a=Hh(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-_n(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};K5(a)||(c={...c,...dL(e,c)}),c.duration&&(c.duration=_n(c.duration)),c.repeatDelay&&(c.repeatDelay=_n(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=Du(c.keyframes,a);if(f!==void 0)return se.update(()=>{c.onUpdate(f),c.onComplete()}),new H5([])}return!o&&Ig.supports(c)?new Ig(c):new np(c)},G5=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),q5=e=>Gd(e)?e[e.length-1]||0:e;function op(e,t){e.indexOf(t)===-1&&e.push(t)}function sp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ap{constructor(){this.subscriptions=[]}add(t){return op(this.subscriptions,t),()=>sp(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 Y5{constructor(t,n={}){this.version="11.11.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=fn.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.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=X5(this.current))}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 ap);const r=this.events[t].add(n);return t==="change"?()=>{r(),se.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=fn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Dg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dg);return Tb(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 Ts(e,t){return new Y5(e,t)}function Q5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ts(n))}function Z5(e,t){const n=Iu(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=q5(o[s]);Q5(e,s,a)}}const ju=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),J5="framerAppearId",Ib="data-"+ju(J5);function Db(e){return e.props[Ib]}const qe=e=>!!(e&&e.getVelocity);function eM(e){return!!(qe(e)&&e.add)}function jb(e){if(yr.has(e))return"transform";if(Ab.has(e))return ju(e)}function nf(e,t){var n;if(!e.applyWillChange)return;const r=e.getValue("willChange");if(eM(r))return r.add(t);!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&jb(t)&&e.setStaticValue("willChange","transform")}function tM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),p=l[d];if(p===void 0||c&&tM(c,d))continue;const v={delay:n,...Hh(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const m=Db(e);if(m){const h=window.MotionHandoffAnimation(m,d,se);h!==null&&(v.startTime=h,y=!0)}}nf(e,d),f.start(ip(d,f,p,e.shouldReduceMotion&&yr.has(d)?{type:!1}:v,e,y));const S=f.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{se.update(()=>{a&&Z5(e,a)})}),u}function rf(e,t,n={}){var r;const i=Iu(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(Nb(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return nM(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 nM(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(rM).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(rf(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function rM(e,t){return e.sortNodePosition(t)}function iM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>rf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=rf(e,t,n);else{const i=typeof t=="function"?Iu(e,t,n.custom):t;r=Promise.all(Nb(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const oM=Wh.length;function Fb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Fb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>iM(e,n,r)))}function uM(e){let t=lM(e),n=jg(),r=!0;const i=l=>(u,c)=>{var d;const f=Iu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:v,...y}=f;u={...u,...y,...v}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Fb(e.parent)||{},d=[],f=new Set;let p={},v=1/0;for(let S=0;Sv&&w,F=!1;const j=Array.isArray(g)?g:[g];let K=j.reduce(i(m),{});P===!1&&(K={});const{prevResolvedValues:ce={}}=h,Ze={...ce,...K},Re=L=>{A=!0,f.has(L)&&(F=!0,f.delete(L)),h.needsAnimating[L]=!0;const R=e.getValue(L);R&&(R.liveStyle=!1)};for(const L in Ze){const R=K[L],D=ce[L];if(p.hasOwnProperty(L))continue;let I=!1;Gd(R)&&Gd(D)?I=!Z1(R,D):I=R!==D,I?R!=null?Re(L):f.add(L):R!==void 0&&f.has(L)?Re(L):h.protectedKeys[L]=!0}h.prevProp=g,h.prevResolvedValues=K,h.isActive&&(p={...p,...K}),r&&e.blockInitialAnimation&&(A=!1),A&&(!($&&_)||F)&&d.push(...j.map(L=>({animation:L,options:{type:m}})))}if(f.size){const S={};f.forEach(m=>{const h=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),S[m]=h??null}),d.push({animation:S})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?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,reset:()=>{n=jg(),r=!0}}}function cM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Z1(t,e):!1}function Er(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jg(){return{animate:Er(!0),whileInView:Er(),whileHover:Er(),whileTap:Er(),whileDrag:Er(),whileFocus:Er(),exit:Er()}}class vr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dM extends vr{constructor(t){super(t),t.animationState||(t.animationState=uM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let fM=0;class hM extends vr{constructor(){super(...arguments),this.id=fM++}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 pM={animation:{Feature:dM},exit:{Feature:hM}},Bb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Nu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const mM=e=>t=>Bb(t)&&e(t,Nu(t));function Cn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function An(e,t,n,r){return Cn(e,t,mM(n),r)}const Ng=(e,t)=>Math.abs(e-t);function gM(e,t){const n=Ng(e.x,t.x),r=Ng(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vb{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=Uc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=gM(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:v}=d,{timestamp:y}=Ne;this.history.push({...v,timestamp:y});const{onStart:S,onMove:m}=this.handlers;f||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Vc(f,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Uc(d.type==="pointercancel"?this.lastMoveEventInfo:Vc(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,S),v&&v(d,S)},!Bb(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Nu(t),a=Vc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ne;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Uc(a,this.history)),this.removeListeners=Rn(An(this.contextWindow,"pointermove",this.handlePointerMove),An(this.contextWindow,"pointerup",this.handlePointerUp),An(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),fr(this.updatePoint)}}function Vc(e,t){return t?{point:t(e.point)}:e}function Fg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uc({point:e},t){return{point:e,delta:Fg(e,Ub(t)),offset:Fg(e,yM(t)),velocity:vM(t,.1)}}function yM(e){return e[0]}function Ub(e){return e[e.length-1]}function vM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ub(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_n(t)));)n--;if(!r)return{x:0,y:0};const o=$n(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 Wb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Bg=Wb("dragHorizontal"),Vg=Wb("dragVertical");function Hb(e){let t=!1;if(e==="y")t=Vg();else if(e==="x")t=Bg();else{const n=Bg(),r=Vg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Kb(){const e=Hb(!0);return e?(e(),!1):!0}function vi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Gb=1e-4,bM=1-Gb,SM=1+Gb,qb=.01,xM=0-qb,wM=0+qb;function xt(e){return e.max-e.min}function kM(e,t,n){return Math.abs(e-t)<=n}function Ug(e,t,n,r=.5){e.origin=r,e.originPoint=ve(t.min,t.max,e.origin),e.scale=xt(n)/xt(t),e.translate=ve(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bM&&e.scale<=SM||isNaN(e.scale))&&(e.scale=1),(e.translate>=xM&&e.translate<=wM||isNaN(e.translate))&&(e.translate=0)}function es(e,t,n,r){Ug(e.x,t.x,n.x,r?r.originX:void 0),Ug(e.y,t.y,n.y,r?r.originY:void 0)}function Wg(e,t,n){e.min=n.min+t.min,e.max=e.min+xt(t)}function CM(e,t,n){Wg(e.x,t.x,n.x),Wg(e.y,t.y,n.y)}function Hg(e,t,n){e.min=t.min-n.min,e.max=e.min+xt(t)}function ts(e,t,n){Hg(e.x,t.x,n.x),Hg(e.y,t.y,n.y)}function TM(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ve(n,e,r.max):Math.min(e,n)),e}function Kg(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 PM(e,{top:t,left:n,bottom:r,right:i}){return{x:Kg(e.x,n,i),y:Kg(e.y,t,r)}}function Gg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Qi(t.min,t.max-r,e.min):r>i&&(n=Qi(e.min,e.max-i,t.min)),hr(0,1,n)}function $M(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 of=.35;function RM(e=of){return e===!1?e=0:e===!0&&(e=of),{x:qg(e,"left","right"),y:qg(e,"top","bottom")}}function qg(e,t,n){return{min:Xg(e,t),max:Xg(e,n)}}function Xg(e,t){return typeof e=="number"?e:e[t]||0}const Yg=()=>({translate:0,scale:1,origin:0,originPoint:0}),bi=()=>({x:Yg(),y:Yg()}),Qg=()=>({min:0,max:0}),Ce=()=>({x:Qg(),y:Qg()});function $t(e){return[e("x"),e("y")]}function Xb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function AM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function OM(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 Wc(e){return e===void 0||e===1}function sf({scale:e,scaleX:t,scaleY:n}){return!Wc(e)||!Wc(t)||!Wc(n)}function $r(e){return sf(e)||Yb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Yb(e){return Zg(e.x)||Zg(e.y)}function Zg(e){return e&&e!=="0%"}function Ml(e,t,n){const r=e-n,i=t*r;return n+i}function Jg(e,t,n,r,i){return i!==void 0&&(e=Ml(e,i,r)),Ml(e,n,r)+t}function af(e,t=0,n=1,r,i){e.min=Jg(e.min,t,n,r,i),e.max=Jg(e.max,t,n,r,i)}function Qb(e,{x:t,y:n}){af(e.x,t.translate,t.scale,t.originPoint),af(e.y,n.translate,n.scale,n.originPoint)}const ey=.999999999999,ty=1.0000000000001;function LM(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;aey&&(t.x=1),t.yey&&(t.y=1)}function Si(e,t){e.min=e.min+t,e.max=e.max+t}function ny(e,t,n,r,i=.5){const o=ve(e.min,e.max,i);af(e,t,n,o,r)}function xi(e,t){ny(e.x,t.x,t.scaleX,t.scale,t.originX),ny(e.y,t.y,t.scaleY,t.scale,t.originY)}function Zb(e,t){return Xb(OM(e.getBoundingClientRect(),t))}function MM(e,t,n){const r=Zb(e,n),{scroll:i}=t;return i&&(Si(r.x,i.offset.x),Si(r.y,i.offset.y)),r}const Jb=({current:e})=>e?e.ownerDocument.defaultView:null,zM=new WeakMap;class IM{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=Ce(),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(Nu(c,"page").point)},o=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:v}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Hb(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),$t(S=>{let m=this.getAxisMotionValue(S).get()||0;if(dn.test(m)){const{projection:h}=this.visualElement;if(h&&h.layout){const g=h.layout.layoutBox[S];g&&(m=xt(g)*(parseFloat(m)/100))}}this.originPoint[S]=m}),v&&se.postRender(()=>v(c,d)),nf(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:v,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=d;if(p&&this.currentDirection===null){this.currentDirection=DM(S),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>$t(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 Vb(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Jb(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&&se.postRender(()=>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||!Ea(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=TM(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&&vi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=PM(i.layoutBox,n):this.constraints=!1,this.elastic=RM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$t(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=$M(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!vi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=MM(r,i.root,this.visualElement.getTransformPagePoint());let s=EM(i.layout.layoutBox,o);if(n){const a=n(AM(s));this.hasMutatedConstraints=!!a,a&&(s=Xb(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=$t(c=>{if(!Ea(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,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return nf(this.visualElement,t),r.start(ip(t,r,0,n,this.visualElement,!1))}stopAnimation(){$t(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$t(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){$t(n=>{const{drag:r}=this.getProps();if(!Ea(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]-ve(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!vi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$t(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=_M({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(),$t(s=>{if(!Ea(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ve(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;zM.set(this.visualElement,this);const t=this.visualElement.current,n=An(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();vi(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),se.read(r);const s=Cn(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&($t(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=of,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ea(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function DM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jM extends vr{constructor(t){super(t),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new IM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const ry=e=>(t,n)=>{e&&se.postRender(()=>e(t,n))};class NM extends vr{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(t){this.session=new Vb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ry(t),onStart:ry(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&se.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=An(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Js=x.createContext(null);function FM(){const e=x.useContext(Js);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=x.useId();x.useEffect(()=>r(i),[]);const o=x.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}function BM(){return VM(x.useContext(Js))}function VM(e){return e===null?!0:e.isPresent}const lp=x.createContext({}),eS=x.createContext({}),cl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function iy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Co={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const n=iy(e,t.target.x),r=iy(e,t.target.y);return`${n}% ${r}%`}},UM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=pr.parse(e);if(i.length>5)return r;const o=pr.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=ve(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}},zl={};function WM(e){Object.assign(zl,e)}const{schedule:up,cancel:HF}=J1(queueMicrotask,!1);class HM extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;WM(KM),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()})),cl.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()||se.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),up.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 tS(e){const[t,n]=FM(),r=x.useContext(lp);return O.jsx(HM,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(eS),isPresent:t,safeToRemove:n})}const KM={borderRadius:{...Co,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Co,borderTopRightRadius:Co,borderBottomLeftRadius:Co,borderBottomRightRadius:Co,boxShadow:UM},nS=["TopLeft","TopRight","BottomLeft","BottomRight"],GM=nS.length,oy=e=>typeof e=="string"?parseFloat(e):e,sy=e=>typeof e=="number"||W.test(e);function qM(e,t,n,r,i,o){i?(e.opacity=ve(0,n.opacity!==void 0?n.opacity:1,XM(r)),e.opacityExit=ve(t.opacity!==void 0?t.opacity:1,0,YM(r))):o&&(e.opacity=ve(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Qi(e,t,r))}function ly(e,t){e.min=t.min,e.max=t.max}function Et(e,t){ly(e.x,t.x),ly(e.y,t.y)}function uy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cy(e,t,n,r,i){return e-=t,e=Ml(e,1/n,r),i!==void 0&&(e=Ml(e,1/i,r)),e}function QM(e,t=0,n=1,r=.5,i,o=e,s=e){if(dn.test(t)&&(t=parseFloat(t),t=ve(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ve(o.min,o.max,r);e===o&&(a-=t),e.min=cy(e.min,t,n,a,i),e.max=cy(e.max,t,n,a,i)}function dy(e,t,[n,r,i],o,s){QM(e,t[n],t[r],t[i],t.scale,o,s)}const ZM=["x","scaleX","originX"],JM=["y","scaleY","originY"];function fy(e,t,n,r){dy(e.x,t,ZM,n?n.x:void 0,r?r.x:void 0),dy(e.y,t,JM,n?n.y:void 0,r?r.y:void 0)}function hy(e){return e.translate===0&&e.scale===1}function iS(e){return hy(e.x)&&hy(e.y)}function py(e,t){return e.min===t.min&&e.max===t.max}function ez(e,t){return py(e.x,t.x)&&py(e.y,t.y)}function my(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function oS(e,t){return my(e.x,t.x)&&my(e.y,t.y)}function gy(e){return xt(e.x)/xt(e.y)}function yy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tz{constructor(){this.members=[]}add(t){op(this.members,t),t.scheduleRender()}remove(t){if(sp(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 nz(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:v}=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) `),v&&(r+=`skewY(${v}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 rz=(e,t)=>e.depth-t.depth;class iz{constructor(){this.children=[],this.isDirty=!1}add(t){op(this.children,t),this.isDirty=!0}remove(t){sp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rz),this.isDirty=!1,this.children.forEach(t)}}function dl(e){const t=qe(e)?e.get():e;return G5(t)?t.toValue():t}function oz(e,t){const n=fn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(fr(r),e(o-t))};return se.read(r,!0),()=>fr(r)}function sz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function az(e,t,n){const r=qe(e)?e:Ts(e);return r.start(ip("",r,t,n)),r.animation}const Rr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vo=typeof window<"u"&&window.MotionDebug!==void 0,Hc=["","X","Y","Z"],lz={visibility:"hidden"},vy=1e3;let uz=0;function Kc(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function sS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Db(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",se,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&sS(r)}function aS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=uz++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Vo&&(Rr.totalNodes=Rr.resolvedTargetDeltas=Rr.recalculatedProjection=0),this.nodes.forEach(fz),this.nodes.forEach(yz),this.nodes.forEach(vz),this.nodes.forEach(hz),Vo&&window.MotionDebug.record(Rr)},this.resolvedRelativeTargetAt=0,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=oz(f,250),cl.hasAnimatedSinceResize&&(cl.hasAnimatedSinceResize=!1,this.nodes.forEach(Sy))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||kz,{onLayoutAnimationStart:S,onLayoutAnimationComplete:m}=c.getProps(),h=!this.targetLayout||!oS(this.targetLayout,v)||p,g=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const w={...Hh(y,"layout"),onPlay:S,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Sy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,fr(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(bz),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 P=w/1e3;xy(d.x,s.x,P),xy(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ts(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xz(this.relativeTarget,this.relativeTargetOrigin,f,P),g&&ez(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=Ce()),Et(g,this.relativeTarget)),y&&(this.animationValues=c,qM(c,u,this.latestValues,P,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(fr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=se.update(()=>{cl.hasAnimatedSinceResize=!0,this.currentAnimation=az(0,vy,{...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(vy),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&&lS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ce();const d=xt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=xt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Et(a,l),xi(a,c),es(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tz),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&&Kc("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(by),this.root.sharedNodes.clear()}}}function cz(e){e.updateLayout()}function dz(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"?$t(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=xt(f);f.min=r[d].min,f.max=f.min+p}):lS(o,n.layoutBox,r)&&$t(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=xt(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=bi();es(a,r,n.layoutBox);const l=bi();s?es(l,e.applyTransform(i,!0),n.measuredBox):es(l,r,n.layoutBox);const u=!iS(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 v=Ce();ts(v,n.layoutBox,f.layoutBox);const y=Ce();ts(y,r,p.layoutBox),oS(v,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,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 fz(e){Vo&&Rr.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 hz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pz(e){e.clearSnapshot()}function by(e){e.clearMeasurements()}function mz(e){e.isLayoutDirty=!1}function gz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yz(e){e.resolveTargetDelta()}function vz(e){e.calcProjection()}function bz(e){e.resetSkewAndRotation()}function Sz(e){e.removeLeadSnapshot()}function xy(e,t,n){e.translate=ve(t.translate,0,n),e.scale=ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wy(e,t,n,r){e.min=ve(t.min,n.min,r),e.max=ve(t.max,n.max,r)}function xz(e,t,n,r){wy(e.x,t.x,n.x,r),wy(e.y,t.y,n.y,r)}function wz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kz={duration:.45,ease:[.4,0,.1,1]},ky=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cy=ky("applewebkit/")&&!ky("chrome/")?Math.round:Xe;function Ty(e){e.min=Cy(e.min),e.max=Cy(e.max)}function Cz(e){Ty(e.x),Ty(e.y)}function lS(e,t,n){return e==="position"||e==="preserve-aspect"&&!kM(gy(t),gy(n),.2)}function Tz(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Pz=aS({attachResizeListener:(e,t)=>Cn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gc={current:void 0},uS=aS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gc.current){const e=new Pz({});e.mount(window),e.setOptions({layoutScroll:!0}),Gc.current=e}return Gc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ez={pan:{Feature:NM},drag:{Feature:jM,ProjectionNode:uS,MeasureLayout:tS}};function Py(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||Kb())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&se.postRender(()=>l(o,s))};return An(e.current,n,i,{passive:!e.getProps()[r]})}class _z extends vr{mount(){this.unmount=Rn(Py(this.node,!0),Py(this.node,!1))}unmount(){}}class $z extends vr{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=Rn(Cn(this.node.current,"focus",()=>this.onFocus()),Cn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cS=(e,t)=>t?e===t?!0:cS(e,t.parentElement):!1;function qc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Nu(n))}class Rz extends vr{constructor(){super(...arguments),this.removeStartListeners=Xe,this.removeEndListeners=Xe,this.removeAccessibleListeners=Xe,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=An(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!cS(this.node.current,a.target)?c:u;f&&se.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=An(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Rn(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()||qc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&se.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Cn(this.node.current,"keyup",s),qc("down",(a,l)=>{this.startPress(a,l)})},n=Cn(this.node.current,"keydown",t),r=()=>{this.isPressing&&qc("cancel",(o,s)=>this.cancelPress(o,s))},i=Cn(this.node.current,"blur",r);this.removeAccessibleListeners=Rn(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&&se.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Kb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&se.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=An(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Cn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Rn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const lf=new WeakMap,Xc=new WeakMap,Az=e=>{const t=lf.get(e.target);t&&t(e)},Oz=e=>{e.forEach(Az)};function Lz({root:e,...t}){const n=e||document;Xc.has(n)||Xc.set(n,{});const r=Xc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Oz,{root:e,...t})),r[i]}function Mz(e,t,n){const r=Lz(t);return lf.set(e,n),r.observe(e),()=>{lf.delete(e),r.unobserve(e)}}const zz={some:0,all:1};class Iz extends vr{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:zz[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 Mz(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(Dz(t,n))&&this.startObserver()}unmount(){}}function Dz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jz={inView:{Feature:Iz},tap:{Feature:Rz},focus:{Feature:$z},hover:{Feature:_z}},Nz={layout:{ProjectionNode:uS,MeasureLayout:tS}},cp=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fu=x.createContext({}),dp=typeof window<"u",dS=dp?x.useLayoutEffect:x.useEffect,fS=x.createContext({strict:!1});function Fz(e,t,n,r,i){var o,s;const{visualElement:a}=x.useContext(Fu),l=x.useContext(fS),u=x.useContext(Js),c=x.useContext(cp).reducedMotion,d=x.useRef();r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,p=x.useContext(eS);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Bz(d.current,n,i,p),x.useInsertionEffect(()=>{f&&f.update(n,u)});const v=n[Ib],y=x.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,v)));return dS(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),up.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,v)}),y.current=!1))}),f}function Bz(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hS(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&vi(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function hS(e){if(e)return e.options.allowProjection!==!1?e.projection:hS(e.parent)}function Vz(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):vi(n)&&(n.current=r))},[t])}function Bu(e){return xs(e.animate)||Wh.some(t=>ws(e[t]))}function pS(e){return!!(Bu(e)||e.variants)}function Uz(e,t){if(Bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ws(n)?n:void 0,animate:ws(r)?r:void 0}}return e.inherit!==!1?t:{}}function Wz(e){const{initial:t,animate:n}=Uz(e,x.useContext(Fu));return x.useMemo(()=>({initial:t,animate:n}),[Ey(t),Ey(n)])}function Ey(e){return Array.isArray(e)?e.join(" "):e}const _y={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"]},Zi={};for(const e in _y)Zi[e]={isEnabled:t=>_y[e].some(n=>!!t[n])};function Hz(e){for(const t in e)Zi[t]={...Zi[t],...e[t]}}const Kz=Symbol.for("motionComponentSymbol");function Gz({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Hz(e);function o(a,l){let u;const c={...x.useContext(cp),...a,layoutId:qz(a)},{isStatic:d}=c,f=Wz(a),p=r(a,d);if(!d&&dp){Xz();const v=Yz(c);u=v.MeasureLayout,f.visualElement=Fz(i,p,c,t,v.ProjectionNode)}return O.jsxs(Fu.Provider,{value:f,children:[u&&f.visualElement?O.jsx(u,{visualElement:f.visualElement,...c}):null,n(i,a,Vz(p,f.visualElement,l),p,d,f.visualElement)]})}const s=x.forwardRef(o);return s[Kz]=i,s}function qz({layoutId:e}){const t=x.useContext(lp).id;return t&&e!==void 0?t+"-"+e:e}function Xz(e,t){x.useContext(fS).strict}function Yz(e){const{drag:t,layout:n}=Zi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Qz=["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 fp(e){return typeof e!="string"||e.includes("-")?!1:!!(Qz.indexOf(e)>-1||/[A-Z]/u.test(e))}function mS(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 gS=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 yS(e,t,n,r){mS(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(gS.has(i)?i:ju(i),t.attrs[i])}function vS(e,{layout:t,layoutId:n}){return yr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function hp(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(qe(i[s])||t.style&&qe(t.style[s])||vS(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 n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function bS(e,t,n){const r=hp(e,t,n);for(const i in e)if(qe(e[i])||qe(t[i])){const o=Ys.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function pp(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}function Zz({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,s,a){const l={latestValues:Jz(i,o,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(i,u,l)),l}const SS=e=>(t,n)=>{const r=x.useContext(Fu),i=x.useContext(Js),o=()=>Zz(e,t,r,i,n);return n?o():pp(o)};function $y(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i{for(const m in y){let h=y[m];if(Array.isArray(h)){const g=p?h.length-1:0;h=h[g]}h!==null&&(s[m]=h)}for(const m in S)s[m]=S[m]}),a&&c&&u!==!1&&!xs(c)&&$y(e,c,y=>{for(const S in y)if(jb(S)){s.willChange="transform";return}}),s}const mp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),xS=()=>({...mp(),attrs:{}}),wS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,eI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tI=Ys.length;function nI(e,t,n){let r="",i=!0;for(let o=0;otypeof e=="string"&&e.toLowerCase()==="svg",aI={useVisualState:SS({scrapeMotionValuesFromProps:bS,createRenderState:xS,onMount:(e,t,{renderState:n,latestValues:r})=>{se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),se.render(()=>{yp(n,r,vp(t.tagName),e.transformTemplate),yS(t,n)})}})},lI={useVisualState:SS({applyWillChange:!0,scrapeMotionValuesFromProps:hp,createRenderState:mp})};function kS(e,t,n){for(const r in t)!qe(t[r])&&!vS(r,n)&&(e[r]=t[r])}function uI({transformTemplate:e},t){return x.useMemo(()=>{const n=mp();return gp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cI(e,t){const n=e.style||{},r={};return kS(r,n,e),Object.assign(r,uI(e,t)),r}function dI(e,t){const n={},r=cI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const fI=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 Il(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fI.has(e)}let CS=e=>!Il(e);function hI(e){e&&(CS=t=>t.startsWith("on")?!Il(t):e(t))}try{hI(require("@emotion/is-prop-valid").default)}catch{}function pI(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(CS(i)||n===!0&&Il(i)||!t&&!Il(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function mI(e,t,n,r){const i=x.useMemo(()=>{const o=xS();return yp(o,t,vp(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};kS(o,e.style,e),i.style={...o,...i.style}}return i}function gI(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(fp(n)?mI:dI)(r,o,s,n),u=pI(r,typeof n=="string",e),c=n!==x.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=x.useMemo(()=>qe(d)?d.get():d,[d]);return x.createElement(n,{...c,children:f})}}function yI(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...fp(r)?aI:lI,preloadedFeatures:e,useRender:gI(i),createVisualElement:t,Component:r};return Gz(s)}}const uf={current:null},TS={current:!1};function vI(){if(TS.current=!0,!!dp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>uf.current=e.matches;e.addListener(t),t()}else uf.current=!1}function bI(e,t,n){for(const r in t){const i=t[r],o=n[r];if(qe(i))e.addValue(r,i);else if(qe(o))e.addValue(r,Ts(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ts(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ay=new WeakMap,SI=[...pb,Ke,pr],xI=e=>SI.find(hb(e)),Oy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class wI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xh,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.renderScheduledAt=0,this.scheduleRender=()=>{const f=fn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),TS.current||vI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:uf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ay.delete(this.current),this.projection&&this.projection.unmount(),fr(this.notifyUpdate),fr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=yr.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&se.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Zi){const n=Zi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ce()}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=Ts(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"&&(ub(i)||lb(i))?i=parseFloat(i):!xI(i)&&pr.test(n)&&(i=wb(t,n)),this.setBaseTarget(t,qe(i)?i.get():i)),qe(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=Vh(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&&!qe(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 ap),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class PS extends wI{constructor(){super(...arguments),this.KeyframeResolver=kb}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 kI(e){return window.getComputedStyle(e)}class CI extends PS{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=mS}readValueFromInstance(t,n){if(yr.has(n)){const r=Jh(n);return r&&r.default||0}else{const r=kI(t),i=(db(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Zb(t,n)}build(t,n,r){gp(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return hp(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;qe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class TI extends PS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(yr.has(n)){const r=Jh(n);return r&&r.default||0}return n=gS.has(n)?n:ju(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return bS(t,n,r)}build(t,n,r){yp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){yS(t,n,r,i)}mount(t){this.isSVGTag=vp(t.tagName),super.mount(t)}}const PI=(e,t)=>fp(e)?new TI(t):new CI(t,{allowProjection:e!==x.Fragment}),EI=yI({...pM,...jz,...Ez,...Nz},PI),_I=sL(EI);class $I extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function RI({children:e,isPresent:t}){const n=x.useId(),r=x.useRef(null),i=x.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=x.useContext(cp);return x.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=i.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; @@ -323,7 +323,7 @@ var NC=Object.defineProperty;var FC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,config top: ${l}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(c)}},[t]),O.jsx($I,{isPresent:t,childRef:r,sizeRef:i,children:x.cloneElement(e,{ref:r})})}const AI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=pp(OI),l=x.useId(),u=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?[Math.random()]:[n]);return x.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),x.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=O.jsx(RI,{isPresent:n,children:e})),O.jsx(Js.Provider,{value:u,children:e})};function OI(){return new Map}const _a=e=>e.key||"";function Ly(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const LI=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=x.useMemo(()=>Ly(e),[e]),l=a.map(_a),u=x.useRef(!0),c=x.useRef(a),d=pp(()=>new Map),[f,p]=x.useState(a),[y,v]=x.useState(a);dS(()=>{u.current=!1,c.current=a;for(let h=0;h{const g=_a(h),w=a===y||l.includes(g),P=()=>{if(d.has(g))d.set(g,!0);else return;let $=!0;d.forEach(_=>{_||($=!1)}),$&&(m==null||m(),v(c.current),i&&i())};return O.jsx(AI,{isPresent:w,initial:!u.current||r?void 0:!1,custom:w?void 0:n,presenceAffectsLayout:o,mode:s,onExitComplete:w?void 0:P,children:h},g)})})},MI=(e,t)=>e.find(n=>n.id===t);function My(e,t){const n=ES(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function ES(e,t){for(const[n,r]of Object.entries(e))if(MI(r,t))return n}function zI(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function II(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:s}}var DI=/^((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)-.*))$/,jI=z1(function(e){return DI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),NI=jI,FI=function(t){return t!=="theme"},zy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?NI:FI},Iy=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},BI=!1,VI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return B1(n,r,i),BO(function(){return V1(n,r,i)}),null},UI=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=Iy(t,n,r),l=a||zy(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=>{const{theme:n,css:r,__css:i,sx:o,...s}=t,a=cP(n),[l]=TT(s,a),u=sn(e,t),c=fT({},i,u,a1(l),o),d=p1(c)(t.theme);return r?[d,r]:d};function Yc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=GI);const i=XI({baseStyle:n}),o=qI(e,r)(i);return x.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:p}=Bh(),y=p?f:void 0;return x.createElement(o,{ref:u,"data-theme":y,...d},c)})}function YI(){const e=new Map;return new Proxy(Yc,{apply(t,n,r){return Yc(...r)},get(t,n){return e.has(n)||e.set(n,Yc(n)),e.get(n)}})}const it=YI(),QI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},_S=x.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=QI,toastSpacing:c="0.5rem"}=e,[d,f]=x.useState(a),p=BM();Km(()=>{p||r==null||r()},[p]),Km(()=>{f(a)},[a]);const y=()=>f(null),v=()=>f(a),S=()=>{p&&i()};x.useEffect(()=>{p&&o&&i()},[p,o,i]),$T(S,d);const m=x.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=x.useMemo(()=>zI(s),[s]);return O.jsx(_I.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:v,custom:{position:s},style:h,children:O.jsx(it.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:sn(n,{id:t,onClose:S})})})});_S.displayName="ToastComponent";function Fn(e){return x.forwardRef(e)}var ZI=typeof Element<"u",JI=typeof Map=="function",e3=typeof Set=="function",t3=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function fl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!fl(e[r],t[r]))return!1;return!0}var o;if(JI&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!fl(r.value[1],t.get(r.value[0])))return!1;return!0}if(e3&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(t3&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(ZI&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!fl(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var n3=function(t,n){try{return fl(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const $S=ei(n3);function r3(){const e=x.useContext(Ss);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function i3(){const e=Bh(),t=r3();return{...e,theme:t}}function o3(e,t,n){if(t==null)return t;const r=i=>{var o,s;return(s=(o=e.__cssMap)==null?void 0:o[i])==null?void 0:s.value};return r(t)??r(n)??n}function GF(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const s=i.filter(Boolean),a=r.map((l,u)=>{const c=`${e}.${l}`;return o3(o,c,s[u]??l)});return Array.isArray(t)?a:a[0]}}function RS(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=i3(),s=e?l1(i,`components.${e}`):void 0,a=n||s,l=an({theme:i,colorMode:o},(a==null?void 0:a.defaultProps)??{},a1(u1(r,["children"]))),u=x.useRef({});if(a){const d=SP(a)(l);$S(u.current,d)||(u.current=d)}return u.current}function bp(e,t={}){return RS(e,t)}function AS(e,t={}){return RS(e,t)}const Dy={path:O.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[O.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),O.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),O.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ea=Fn((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:s,className:a,__css:l,...u}=e,c=Nn("chakra-icon",a),d=bp("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...d},p={ref:t,focusable:o,className:c,__css:f},y=r??Dy.viewBox;if(n&&typeof n!="string")return O.jsx(it.svg,{as:n,...p,...u});const v=s??Dy.path;return O.jsx(it.svg,{verticalAlign:"middle",viewBox:y,...p,...u,children:v})});ea.displayName="Icon";function s3(e){return O.jsx(ea,{viewBox:"0 0 24 24",...e,children:O.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function a3(e){return O.jsx(ea,{viewBox:"0 0 24 24",...e,children:O.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function jy(e){return O.jsx(ea,{viewBox:"0 0 24 24",...e,children:O.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const l3=KO({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),OS=Fn((e,t)=>{const n=bp("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=vu(e),u=Nn("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${l3} ${o} linear infinite`,...n};return O.jsx(it.div,{ref:t,__css:c,className:u,...l,children:r&&O.jsx(it.span,{srOnly:!0,children:r})})});OS.displayName="Spinner";const[u3,Sp]=Xt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[c3,xp]=Xt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),LS={info:{icon:a3,colorScheme:"blue"},warning:{icon:jy,colorScheme:"orange"},success:{icon:s3,colorScheme:"green"},error:{icon:jy,colorScheme:"red"},loading:{icon:OS,colorScheme:"blue"}};function d3(e){return LS[e].colorScheme}function f3(e){return LS[e].icon}const MS=Fn(function(t,n){const{status:r="info",addRole:i=!0,...o}=vu(t),s=t.colorScheme??d3(r),a=AS("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return O.jsx(u3,{value:{status:r},children:O.jsx(c3,{value:a,children:O.jsx(it.div,{"data-status":r,role:i?"alert":void 0,ref:n,...o,className:Nn("chakra-alert",t.className),__css:l})})})});MS.displayName="Alert";function zS(e){const{status:t}=Sp(),n=f3(t),r=xp(),i=t==="loading"?r.spinner:r.icon;return O.jsx(it.span,{display:"inherit","data-status":t,...e,className:Nn("chakra-alert__icon",e.className),__css:i,children:e.children||O.jsx(n,{h:"100%",w:"100%"})})}zS.displayName="AlertIcon";const IS=Fn(function(t,n){const r=xp(),{status:i}=Sp();return O.jsx(it.div,{ref:n,"data-status":i,...t,className:Nn("chakra-alert__title",t.className),__css:r.title})});IS.displayName="AlertTitle";const DS=Fn(function(t,n){const{status:r}=Sp(),i=xp(),o={display:"inline",...i.description};return O.jsx(it.div,{ref:n,"data-status":r,...t,className:Nn("chakra-alert__desc",t.className),__css:o})});DS.displayName="AlertDescription";function h3(e){return O.jsx(ea,{focusable:"false","aria-hidden":!0,...e,children:O.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const jS=Fn(function(t,n){const r=bp("CloseButton",t),{children:i,isDisabled:o,__css:s,...a}=vu(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return O.jsx(it.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...l,...r,...s},...a,children:i||O.jsx(h3,{width:"1em",height:"1em"})})});jS.displayName="CloseButton";const p3=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return O.jsxs(MS,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[O.jsx(zS,{children:u}),O.jsxs(it.div,{flex:"1",maxWidth:"100%",children:[i&&O.jsx(IS,{id:c==null?void 0:c.title,children:i}),a&&O.jsx(DS,{id:c==null?void 0:c.description,display:"block",children:a})]}),o&&O.jsx(jS,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function m3(e={}){const{render:t,toastComponent:n=p3}=e;return i=>typeof t=="function"?t({...i,...e}):O.jsx(n,{...i,...e})}const g3={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},ns=y3(g3);function y3(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(s=>({...s,[o]:s[o].filter(a=>a.id!=i)}))},notify:(i,o)=>{const s=v3(i,o),{position:a,id:l}=s;return r(u=>{const d=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:d}}),l},update:(i,o)=>{i&&r(s=>{const a={...s},{position:l,index:u}=My(a,i);return l&&u!==-1&&(a[l][u]={...a[l][u],...o,message:m3(o)}),a})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=o[u].map(c=>({...c,requestClose:!0})),l),{...o}))},close:i=>{r(o=>{const s=ES(o,i);return s?{...o,[s]:o[s].map(a=>a.id==i?{...a,requestClose:!0}:a)}:o})},isActive:i=>!!My(ns.getState(),i).position}}let Ny=0;function v3(e,t={}){Ny+=1;const n=t.id??Ny,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ns.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var NS={exports:{}},Ct={},FS={exports:{}},BS={};/** + `),()=>{document.head.removeChild(c)}},[t]),O.jsx($I,{isPresent:t,childRef:r,sizeRef:i,children:x.cloneElement(e,{ref:r})})}const AI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=pp(OI),l=x.useId(),u=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?[Math.random()]:[n]);return x.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),x.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=O.jsx(RI,{isPresent:n,children:e})),O.jsx(Js.Provider,{value:u,children:e})};function OI(){return new Map}const _a=e=>e.key||"";function Ly(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const LI=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=x.useMemo(()=>Ly(e),[e]),l=a.map(_a),u=x.useRef(!0),c=x.useRef(a),d=pp(()=>new Map),[f,p]=x.useState(a),[v,y]=x.useState(a);dS(()=>{u.current=!1,c.current=a;for(let h=0;h{const g=_a(h),w=a===v||l.includes(g),P=()=>{if(d.has(g))d.set(g,!0);else return;let $=!0;d.forEach(_=>{_||($=!1)}),$&&(m==null||m(),y(c.current),i&&i())};return O.jsx(AI,{isPresent:w,initial:!u.current||r?void 0:!1,custom:w?void 0:n,presenceAffectsLayout:o,mode:s,onExitComplete:w?void 0:P,children:h},g)})})},MI=(e,t)=>e.find(n=>n.id===t);function My(e,t){const n=ES(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function ES(e,t){for(const[n,r]of Object.entries(e))if(MI(r,t))return n}function zI(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function II(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:s}}var DI=/^((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)-.*))$/,jI=z1(function(e){return DI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),NI=jI,FI=function(t){return t!=="theme"},zy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?NI:FI},Iy=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},BI=!1,VI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return B1(n,r,i),BO(function(){return V1(n,r,i)}),null},UI=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=Iy(t,n,r),l=a||zy(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=>{const{theme:n,css:r,__css:i,sx:o,...s}=t,a=cP(n),[l]=TT(s,a),u=sn(e,t),c=fT({},i,u,a1(l),o),d=p1(c)(t.theme);return r?[d,r]:d};function Yc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=GI);const i=XI({baseStyle:n}),o=qI(e,r)(i);return x.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:p}=Bh(),v=p?f:void 0;return x.createElement(o,{ref:u,"data-theme":v,...d},c)})}function YI(){const e=new Map;return new Proxy(Yc,{apply(t,n,r){return Yc(...r)},get(t,n){return e.has(n)||e.set(n,Yc(n)),e.get(n)}})}const it=YI(),QI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},_S=x.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=QI,toastSpacing:c="0.5rem"}=e,[d,f]=x.useState(a),p=BM();Km(()=>{p||r==null||r()},[p]),Km(()=>{f(a)},[a]);const v=()=>f(null),y=()=>f(a),S=()=>{p&&i()};x.useEffect(()=>{p&&o&&i()},[p,o,i]),$T(S,d);const m=x.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=x.useMemo(()=>zI(s),[s]);return O.jsx(_I.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:y,custom:{position:s},style:h,children:O.jsx(it.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:sn(n,{id:t,onClose:S})})})});_S.displayName="ToastComponent";function Fn(e){return x.forwardRef(e)}var ZI=typeof Element<"u",JI=typeof Map=="function",e3=typeof Set=="function",t3=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function fl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!fl(e[r],t[r]))return!1;return!0}var o;if(JI&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!fl(r.value[1],t.get(r.value[0])))return!1;return!0}if(e3&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(t3&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(ZI&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!fl(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var n3=function(t,n){try{return fl(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const $S=ei(n3);function r3(){const e=x.useContext(Ss);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function i3(){const e=Bh(),t=r3();return{...e,theme:t}}function o3(e,t,n){if(t==null)return t;const r=i=>{var o,s;return(s=(o=e.__cssMap)==null?void 0:o[i])==null?void 0:s.value};return r(t)??r(n)??n}function GF(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const s=i.filter(Boolean),a=r.map((l,u)=>{const c=`${e}.${l}`;return o3(o,c,s[u]??l)});return Array.isArray(t)?a:a[0]}}function RS(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=i3(),s=e?l1(i,`components.${e}`):void 0,a=n||s,l=an({theme:i,colorMode:o},(a==null?void 0:a.defaultProps)??{},a1(u1(r,["children"]))),u=x.useRef({});if(a){const d=SP(a)(l);$S(u.current,d)||(u.current=d)}return u.current}function bp(e,t={}){return RS(e,t)}function AS(e,t={}){return RS(e,t)}const Dy={path:O.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[O.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),O.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),O.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ea=Fn((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:s,className:a,__css:l,...u}=e,c=Nn("chakra-icon",a),d=bp("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...d},p={ref:t,focusable:o,className:c,__css:f},v=r??Dy.viewBox;if(n&&typeof n!="string")return O.jsx(it.svg,{as:n,...p,...u});const y=s??Dy.path;return O.jsx(it.svg,{verticalAlign:"middle",viewBox:v,...p,...u,children:y})});ea.displayName="Icon";function s3(e){return O.jsx(ea,{viewBox:"0 0 24 24",...e,children:O.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function a3(e){return O.jsx(ea,{viewBox:"0 0 24 24",...e,children:O.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function jy(e){return O.jsx(ea,{viewBox:"0 0 24 24",...e,children:O.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const l3=KO({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),OS=Fn((e,t)=>{const n=bp("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=vu(e),u=Nn("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${l3} ${o} linear infinite`,...n};return O.jsx(it.div,{ref:t,__css:c,className:u,...l,children:r&&O.jsx(it.span,{srOnly:!0,children:r})})});OS.displayName="Spinner";const[u3,Sp]=Xt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[c3,xp]=Xt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),LS={info:{icon:a3,colorScheme:"blue"},warning:{icon:jy,colorScheme:"orange"},success:{icon:s3,colorScheme:"green"},error:{icon:jy,colorScheme:"red"},loading:{icon:OS,colorScheme:"blue"}};function d3(e){return LS[e].colorScheme}function f3(e){return LS[e].icon}const MS=Fn(function(t,n){const{status:r="info",addRole:i=!0,...o}=vu(t),s=t.colorScheme??d3(r),a=AS("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return O.jsx(u3,{value:{status:r},children:O.jsx(c3,{value:a,children:O.jsx(it.div,{"data-status":r,role:i?"alert":void 0,ref:n,...o,className:Nn("chakra-alert",t.className),__css:l})})})});MS.displayName="Alert";function zS(e){const{status:t}=Sp(),n=f3(t),r=xp(),i=t==="loading"?r.spinner:r.icon;return O.jsx(it.span,{display:"inherit","data-status":t,...e,className:Nn("chakra-alert__icon",e.className),__css:i,children:e.children||O.jsx(n,{h:"100%",w:"100%"})})}zS.displayName="AlertIcon";const IS=Fn(function(t,n){const r=xp(),{status:i}=Sp();return O.jsx(it.div,{ref:n,"data-status":i,...t,className:Nn("chakra-alert__title",t.className),__css:r.title})});IS.displayName="AlertTitle";const DS=Fn(function(t,n){const{status:r}=Sp(),i=xp(),o={display:"inline",...i.description};return O.jsx(it.div,{ref:n,"data-status":r,...t,className:Nn("chakra-alert__desc",t.className),__css:o})});DS.displayName="AlertDescription";function h3(e){return O.jsx(ea,{focusable:"false","aria-hidden":!0,...e,children:O.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const jS=Fn(function(t,n){const r=bp("CloseButton",t),{children:i,isDisabled:o,__css:s,...a}=vu(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return O.jsx(it.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...l,...r,...s},...a,children:i||O.jsx(h3,{width:"1em",height:"1em"})})});jS.displayName="CloseButton";const p3=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return O.jsxs(MS,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[O.jsx(zS,{children:u}),O.jsxs(it.div,{flex:"1",maxWidth:"100%",children:[i&&O.jsx(IS,{id:c==null?void 0:c.title,children:i}),a&&O.jsx(DS,{id:c==null?void 0:c.description,display:"block",children:a})]}),o&&O.jsx(jS,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function m3(e={}){const{render:t,toastComponent:n=p3}=e;return i=>typeof t=="function"?t({...i,...e}):O.jsx(n,{...i,...e})}const g3={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},ns=y3(g3);function y3(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(s=>({...s,[o]:s[o].filter(a=>a.id!=i)}))},notify:(i,o)=>{const s=v3(i,o),{position:a,id:l}=s;return r(u=>{const d=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:d}}),l},update:(i,o)=>{i&&r(s=>{const a={...s},{position:l,index:u}=My(a,i);return l&&u!==-1&&(a[l][u]={...a[l][u],...o,message:m3(o)}),a})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=o[u].map(c=>({...c,requestClose:!0})),l),{...o}))},close:i=>{r(o=>{const s=ES(o,i);return s?{...o,[s]:o[s].map(a=>a.id==i?{...a,requestClose:!0}:a)}:o})},isActive:i=>!!My(ns.getState(),i).position}}let Ny=0;function v3(e,t={}){Ny+=1;const n=t.id??Ny,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ns.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var NS={exports:{}},Ct={},FS={exports:{}},BS={};/** * @license React * scheduler.production.min.js * @@ -331,7 +331,7 @@ var NC=Object.defineProperty;var FC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,config * * 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(R,D){var I=R.length;R.push(D);e:for(;0>>1,xe=R[Q];if(0>>1;Qi(mo,I))pti(kr,mo)?(R[Q]=kr,R[pt]=I,Q=pt):(R[Q]=mo,R[Je]=I,Q=Je);else if(pti(kr,I))R[Q]=kr,R[pt]=I,Q=pt;else break e}}return D}function i(R,D){var I=R.sortIndex-D.sortIndex;return I!==0?I:R.id-D.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,y=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=R)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function w(R){if(v=!1,g(R),!y)if(n(l)!==null)y=!0,M(P);else{var D=n(u);D!==null&&L(w,D.startTime-R)}}function P(R,D){y=!1,v&&(v=!1,m(A),A=-1),p=!0;var I=f;try{for(g(D),d=n(l);d!==null&&(!(d.expirationTime>D)||R&&!K());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,f=d.priorityLevel;var xe=Q(d.expirationTime<=D);D=e.unstable_now(),typeof xe=="function"?d.callback=xe:d===n(l)&&r(l),g(D)}else r(l);d=n(l)}if(d!==null)var H=!0;else{var Je=n(u);Je!==null&&L(w,Je.startTime-D),H=!1}return H}finally{d=null,f=I,p=!1}}var $=!1,_=null,A=-1,F=5,j=-1;function K(){return!(e.unstable_now()-jR||125Q?(R.sortIndex=I,t(u,R),n(l)===null&&R===n(u)&&(v?(m(A),A=-1):v=!0,L(w,I-Q))):(R.sortIndex=xe,t(l,R),y||p||(y=!0,M(P))),R},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(R){var D=f;return function(){var I=f;f=D;try{return R.apply(this,arguments)}finally{f=I}}}})(BS);FS.exports=BS;var b3=FS.exports;/** + */(function(e){function t(R,D){var I=R.length;R.push(D);e:for(;0>>1,xe=R[Q];if(0>>1;Qi(mo,I))pti(kr,mo)?(R[Q]=kr,R[pt]=I,Q=pt):(R[Q]=mo,R[Je]=I,Q=Je);else if(pti(kr,I))R[Q]=kr,R[pt]=I,Q=pt;else break e}}return D}function i(R,D){var I=R.sortIndex-D.sortIndex;return I!==0?I:R.id-D.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,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=R)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function w(R){if(y=!1,g(R),!v)if(n(l)!==null)v=!0,M(P);else{var D=n(u);D!==null&&L(w,D.startTime-R)}}function P(R,D){v=!1,y&&(y=!1,m(A),A=-1),p=!0;var I=f;try{for(g(D),d=n(l);d!==null&&(!(d.expirationTime>D)||R&&!K());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,f=d.priorityLevel;var xe=Q(d.expirationTime<=D);D=e.unstable_now(),typeof xe=="function"?d.callback=xe:d===n(l)&&r(l),g(D)}else r(l);d=n(l)}if(d!==null)var H=!0;else{var Je=n(u);Je!==null&&L(w,Je.startTime-D),H=!1}return H}finally{d=null,f=I,p=!1}}var $=!1,_=null,A=-1,F=5,j=-1;function K(){return!(e.unstable_now()-jR||125Q?(R.sortIndex=I,t(u,R),n(l)===null&&R===n(u)&&(y?(m(A),A=-1):y=!0,L(w,I-Q))):(R.sortIndex=xe,t(l,R),v||p||(v=!0,M(P))),R},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(R){var D=f;return function(){var I=f;f=D;try{return R.apply(this,arguments)}finally{f=I}}}})(BS);FS.exports=BS;var b3=FS.exports;/** * @license React * react-dom.production.min.js * @@ -343,10 +343,10 @@ var NC=Object.defineProperty;var FC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,config `+Qc+e}var Zc=!1;function Jc(e,t){if(!e||Zc)return"";Zc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` `),o=r.stack.split(` `),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||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{Zc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Uo(e):""}function T3(e){switch(e.tag){case 5:return Uo(e.type);case 16:return Uo("Lazy");case 13:return Uo("Suspense");case 19:return Uo("SuspenseList");case 0:case 2:case 15:return e=Jc(e.type,!1),e;case 11:return e=Jc(e.type.render,!1),e;case 1:return e=Jc(e.type,!0),e;default:return""}}function mf(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 ki:return"Fragment";case wi:return"Portal";case ff:return"Profiler";case Tp:return"StrictMode";case hf:return"Suspense";case pf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WS:return(e.displayName||"Context")+".Consumer";case US:return(e._context.displayName||"Context")+".Provider";case Pp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ep:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function P3(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 mf(t);case 8:return t===Tp?"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 mr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function KS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E3(e){var t=KS(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 Ra(e){e._valueTracker||(e._valueTracker=E3(e))}function GS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=KS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dl(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 gf(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mr(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 qS(e,t){t=t.checked,t!=null&&Cp(e,"checked",t,!1)}function yf(e,t){qS(e,t);var n=mr(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")?vf(e,t.type,n):t.hasOwnProperty("defaultValue")&&vf(e,t.type,mr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wy(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 vf(e,t,n){(t!=="number"||Dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wo=Array.isArray;function Ni(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Aa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Es(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rs={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},_3=["Webkit","ms","Moz","O"];Object.keys(rs).forEach(function(e){_3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rs[t]=rs[e]})});function ZS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||rs.hasOwnProperty(e)&&rs[e]?(""+t).trim():t+"px"}function JS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ZS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var $3=Se({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 xf(e,t){if(t){if($3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function wf(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 kf=null;function _p(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cf=null,Fi=null,Bi=null;function Gy(e){if(e=ra(e)){if(typeof Cf!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Ku(t),Cf(e.stateNode,e.type,t))}}function ex(e){Fi?Bi?Bi.push(e):Bi=[e]:Fi=e}function tx(){if(Fi){var e=Fi,t=Bi;if(Bi=Fi=null,Gy(e),t)for(e=0;e>>=0,e===0?32:31-(F3(e)/B3|0)|0}var Oa=64,La=4194304;function Ho(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 Bl(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=Ho(a):(o&=s,o!==0&&(r=Ho(o)))}else s=n&~i,s!==0?r=Ho(s):o!==0&&(r=Ho(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 ta(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function H3(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=os),n0=" ",r0=!1;function xx(e,t){switch(e){case"keyup":return bD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ci=!1;function xD(e,t){switch(e){case"compositionend":return wx(t);case"keypress":return t.which!==32?null:(r0=!0,n0);case"textInput":return e=t.data,e===n0&&r0?null:e;default:return null}}function wD(e,t){if(Ci)return e==="compositionend"||!Ip&&xx(e,t)?(e=bx(),pl=Lp=er=null,Ci=!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=a0(n)}}function Px(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Px(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ex(){for(var e=window,t=Dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dl(e.document)}return t}function Dp(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 AD(e){var t=Ex(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Px(n.ownerDocument.documentElement,n)){if(r!==null&&Dp(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=l0(n,o);var s=l0(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,Ti=null,Rf=null,as=null,Af=!1;function u0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Af||Ti==null||Ti!==Dl(r)||(r=Ti,"selectionStart"in r&&Dp(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}),as&&Ls(as,r)||(as=r,r=Wl(Rf,"onSelect"),0_i||(e.current=Df[_i],Df[_i]=null,_i--)}function le(e,t){_i++,Df[_i]=e.current,e.current=t}var gr={},Ye=Sr(gr),ct=Sr(!1),qr=gr;function eo(e,t){var n=e.type.contextTypes;if(!n)return gr;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 dt(e){return e=e.childContextTypes,e!=null}function Kl(){he(ct),he(Ye)}function g0(e,t,n){if(Ye.current!==gr)throw Error(z(168));le(Ye,t),le(ct,n)}function Ix(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(z(108,P3(e)||"Unknown",i));return Se({},n,r)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gr,qr=Ye.current,le(Ye,e),le(ct,ct.current),!0}function y0(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Ix(e,t,qr),r.__reactInternalMemoizedMergedChildContext=e,he(ct),he(Ye),le(Ye,e)):he(ct),le(ct,n)}var bn=null,Gu=!1,hd=!1;function Dx(e){bn===null?bn=[e]:bn.push(e)}function UD(e){Gu=!0,Dx(e)}function xr(){if(!hd&&bn!==null){hd=!0;var e=0,t=ie;try{var n=bn;for(ie=1;e>=s,i-=s,Tn=1<<32-Kt(t)+i|n<A?(F=_,_=null):F=_.sibling;var j=f(m,_,g[A],w);if(j===null){_===null&&(_=F);break}e&&_&&j.alternate===null&&t(m,_),h=o(j,h,A),$===null?P=j:$.sibling=j,$=j,_=F}if(A===g.length)return n(m,_),ge&&Ar(m,A),P;if(_===null){for(;AA?(F=_,_=null):F=_.sibling;var K=f(m,_,j.value,w);if(K===null){_===null&&(_=F);break}e&&_&&K.alternate===null&&t(m,_),h=o(K,h,A),$===null?P=K:$.sibling=K,$=K,_=F}if(j.done)return n(m,_),ge&&Ar(m,A),P;if(_===null){for(;!j.done;A++,j=g.next())j=d(m,j.value,w),j!==null&&(h=o(j,h,A),$===null?P=j:$.sibling=j,$=j);return ge&&Ar(m,A),P}for(_=r(m,_);!j.done;A++,j=g.next())j=p(_,m,A,j.value,w),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?A:j.key),h=o(j,h,A),$===null?P=j:$.sibling=j,$=j);return e&&_.forEach(function(ce){return t(m,ce)}),ge&&Ar(m,A),P}function S(m,h,g,w){if(typeof g=="object"&&g!==null&&g.type===ki&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case $a:e:{for(var P=g.key,$=h;$!==null;){if($.key===P){if(P=g.type,P===ki){if($.tag===7){n(m,$.sibling),h=i($,g.props.children),h.return=m,m=h;break e}}else if($.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Xn&&S0(P)===$.type){n(m,$.sibling),h=i($,g.props),h.ref=Ro(m,$,g),h.return=m,m=h;break e}n(m,$);break}else t(m,$);$=$.sibling}g.type===ki?(h=Kr(g.props.children,m.mode,w,g.key),h.return=m,m=h):(w=wl(g.type,g.key,g.props,null,m.mode,w),w.ref=Ro(m,h,g),w.return=m,m=w)}return s(m);case wi:e:{for($=g.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=xd(g,m.mode,w),h.return=m,m=h}return s(m);case Xn:return $=g._init,S(m,h,$(g._payload),w)}if(Wo(g))return y(m,h,g,w);if(To(g))return v(m,h,g,w);Fa(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=Sd(g,m.mode,w),h.return=m,m=h),s(m)):n(m,h)}return S}var no=Bx(!0),Vx=Bx(!1),Yl=Sr(null),Ql=null,Ai=null,Bp=null;function Vp(){Bp=Ai=Ql=null}function Up(e){var t=Yl.current;he(Yl),e._currentValue=t}function Ff(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ui(e,t){Ql=e,Bp=Ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function zt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},Ai===null){if(Ql===null)throw Error(z(308));Ai=e,Ql.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var jr=null;function Wp(e){jr===null?jr=[e]:jr.push(e)}function Ux(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Wp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dn(e,r)}function Dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Yn=!1;function Hp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function On(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ar(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Dn(e,n)}return i=r.interleaved,i===null?(t.next=t,Wp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dn(e,n)}function gl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rp(e,n)}}function x0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zl(e,t,n,r){var i=e.updateQueue;Yn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,c=u=l=null,a=o;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(f=t,p=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(p,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,f=typeof y=="function"?y.call(p,d,f):y,f==null)break e;d=Se({},d,f);break e;case 2:Yn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Qr|=s,e.lanes=s,e.memoizedState=d}}function w0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=md.transition;md.transition={};try{e(!1),t()}finally{ie=n,md.transition=r}}function aw(){return It().memoizedState}function GD(e,t,n){var r=ur(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lw(e))uw(t,n);else if(n=Ux(e,t,n,r),n!==null){var i=rt();Gt(n,e,r,i),cw(n,t,r)}}function qD(e,t,n){var r=ur(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lw(e))uw(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,qt(a,s)){var l=t.interleaved;l===null?(i.next=i,Wp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ux(e,t,i,r),n!==null&&(i=rt(),Gt(n,e,r,i),cw(n,t,r))}}function lw(e){var t=e.alternate;return e===be||t!==null&&t===be}function uw(e,t){ls=eu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rp(e,n)}}var tu={readContext:zt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},XD={readContext:zt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:C0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vl(4194308,4,nw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return vl(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();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=GD.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:k0,useDebugValue:Jp,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=k0(!1),t=e[0];return e=KD.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=be,i=Jt();if(ge){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Ie===null)throw Error(z(349));Yr&30||qx(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,C0(Yx.bind(null,r,o,e),[e]),r.flags|=2048,Bs(9,Xx.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Jt(),t=Ie.identifierPrefix;if(ge){var n=Pn,r=Tn;n=(r&~(1<<32-Kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ns++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Zc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Uo(e):""}function T3(e){switch(e.tag){case 5:return Uo(e.type);case 16:return Uo("Lazy");case 13:return Uo("Suspense");case 19:return Uo("SuspenseList");case 0:case 2:case 15:return e=Jc(e.type,!1),e;case 11:return e=Jc(e.type.render,!1),e;case 1:return e=Jc(e.type,!0),e;default:return""}}function mf(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 ki:return"Fragment";case wi:return"Portal";case ff:return"Profiler";case Tp:return"StrictMode";case hf:return"Suspense";case pf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WS:return(e.displayName||"Context")+".Consumer";case US:return(e._context.displayName||"Context")+".Provider";case Pp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ep:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function P3(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 mf(t);case 8:return t===Tp?"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 mr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function KS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E3(e){var t=KS(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 Ra(e){e._valueTracker||(e._valueTracker=E3(e))}function GS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=KS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dl(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 gf(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mr(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 qS(e,t){t=t.checked,t!=null&&Cp(e,"checked",t,!1)}function yf(e,t){qS(e,t);var n=mr(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")?vf(e,t.type,n):t.hasOwnProperty("defaultValue")&&vf(e,t.type,mr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wy(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 vf(e,t,n){(t!=="number"||Dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wo=Array.isArray;function Ni(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Aa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Es(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rs={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},_3=["Webkit","ms","Moz","O"];Object.keys(rs).forEach(function(e){_3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rs[t]=rs[e]})});function ZS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||rs.hasOwnProperty(e)&&rs[e]?(""+t).trim():t+"px"}function JS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ZS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var $3=Se({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 xf(e,t){if(t){if($3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function wf(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 kf=null;function _p(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cf=null,Fi=null,Bi=null;function Gy(e){if(e=ra(e)){if(typeof Cf!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Ku(t),Cf(e.stateNode,e.type,t))}}function ex(e){Fi?Bi?Bi.push(e):Bi=[e]:Fi=e}function tx(){if(Fi){var e=Fi,t=Bi;if(Bi=Fi=null,Gy(e),t)for(e=0;e>>=0,e===0?32:31-(F3(e)/B3|0)|0}var Oa=64,La=4194304;function Ho(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 Bl(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=Ho(a):(o&=s,o!==0&&(r=Ho(o)))}else s=n&~i,s!==0?r=Ho(s):o!==0&&(r=Ho(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 ta(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function H3(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=os),n0=" ",r0=!1;function xx(e,t){switch(e){case"keyup":return bD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ci=!1;function xD(e,t){switch(e){case"compositionend":return wx(t);case"keypress":return t.which!==32?null:(r0=!0,n0);case"textInput":return e=t.data,e===n0&&r0?null:e;default:return null}}function wD(e,t){if(Ci)return e==="compositionend"||!Ip&&xx(e,t)?(e=bx(),pl=Lp=er=null,Ci=!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=a0(n)}}function Px(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Px(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ex(){for(var e=window,t=Dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dl(e.document)}return t}function Dp(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 AD(e){var t=Ex(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Px(n.ownerDocument.documentElement,n)){if(r!==null&&Dp(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=l0(n,o);var s=l0(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,Ti=null,Rf=null,as=null,Af=!1;function u0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Af||Ti==null||Ti!==Dl(r)||(r=Ti,"selectionStart"in r&&Dp(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}),as&&Ls(as,r)||(as=r,r=Wl(Rf,"onSelect"),0_i||(e.current=Df[_i],Df[_i]=null,_i--)}function le(e,t){_i++,Df[_i]=e.current,e.current=t}var gr={},Ye=Sr(gr),ct=Sr(!1),qr=gr;function eo(e,t){var n=e.type.contextTypes;if(!n)return gr;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 dt(e){return e=e.childContextTypes,e!=null}function Kl(){he(ct),he(Ye)}function g0(e,t,n){if(Ye.current!==gr)throw Error(z(168));le(Ye,t),le(ct,n)}function Ix(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(z(108,P3(e)||"Unknown",i));return Se({},n,r)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gr,qr=Ye.current,le(Ye,e),le(ct,ct.current),!0}function y0(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Ix(e,t,qr),r.__reactInternalMemoizedMergedChildContext=e,he(ct),he(Ye),le(Ye,e)):he(ct),le(ct,n)}var bn=null,Gu=!1,hd=!1;function Dx(e){bn===null?bn=[e]:bn.push(e)}function UD(e){Gu=!0,Dx(e)}function xr(){if(!hd&&bn!==null){hd=!0;var e=0,t=ie;try{var n=bn;for(ie=1;e>=s,i-=s,Tn=1<<32-Kt(t)+i|n<A?(F=_,_=null):F=_.sibling;var j=f(m,_,g[A],w);if(j===null){_===null&&(_=F);break}e&&_&&j.alternate===null&&t(m,_),h=o(j,h,A),$===null?P=j:$.sibling=j,$=j,_=F}if(A===g.length)return n(m,_),ge&&Ar(m,A),P;if(_===null){for(;AA?(F=_,_=null):F=_.sibling;var K=f(m,_,j.value,w);if(K===null){_===null&&(_=F);break}e&&_&&K.alternate===null&&t(m,_),h=o(K,h,A),$===null?P=K:$.sibling=K,$=K,_=F}if(j.done)return n(m,_),ge&&Ar(m,A),P;if(_===null){for(;!j.done;A++,j=g.next())j=d(m,j.value,w),j!==null&&(h=o(j,h,A),$===null?P=j:$.sibling=j,$=j);return ge&&Ar(m,A),P}for(_=r(m,_);!j.done;A++,j=g.next())j=p(_,m,A,j.value,w),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?A:j.key),h=o(j,h,A),$===null?P=j:$.sibling=j,$=j);return e&&_.forEach(function(ce){return t(m,ce)}),ge&&Ar(m,A),P}function S(m,h,g,w){if(typeof g=="object"&&g!==null&&g.type===ki&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case $a:e:{for(var P=g.key,$=h;$!==null;){if($.key===P){if(P=g.type,P===ki){if($.tag===7){n(m,$.sibling),h=i($,g.props.children),h.return=m,m=h;break e}}else if($.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Xn&&S0(P)===$.type){n(m,$.sibling),h=i($,g.props),h.ref=Ro(m,$,g),h.return=m,m=h;break e}n(m,$);break}else t(m,$);$=$.sibling}g.type===ki?(h=Kr(g.props.children,m.mode,w,g.key),h.return=m,m=h):(w=wl(g.type,g.key,g.props,null,m.mode,w),w.ref=Ro(m,h,g),w.return=m,m=w)}return s(m);case wi:e:{for($=g.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=xd(g,m.mode,w),h.return=m,m=h}return s(m);case Xn:return $=g._init,S(m,h,$(g._payload),w)}if(Wo(g))return v(m,h,g,w);if(To(g))return y(m,h,g,w);Fa(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=Sd(g,m.mode,w),h.return=m,m=h),s(m)):n(m,h)}return S}var no=Bx(!0),Vx=Bx(!1),Yl=Sr(null),Ql=null,Ai=null,Bp=null;function Vp(){Bp=Ai=Ql=null}function Up(e){var t=Yl.current;he(Yl),e._currentValue=t}function Ff(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ui(e,t){Ql=e,Bp=Ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function zt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},Ai===null){if(Ql===null)throw Error(z(308));Ai=e,Ql.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var jr=null;function Wp(e){jr===null?jr=[e]:jr.push(e)}function Ux(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Wp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dn(e,r)}function Dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Yn=!1;function Hp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function On(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ar(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Dn(e,n)}return i=r.interleaved,i===null?(t.next=t,Wp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dn(e,n)}function gl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rp(e,n)}}function x0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zl(e,t,n,r){var i=e.updateQueue;Yn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,c=u=l=null,a=o;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,y=a;switch(f=t,p=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(p,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(p,d,f):v,f==null)break e;d=Se({},d,f);break e;case 2:Yn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Qr|=s,e.lanes=s,e.memoizedState=d}}function w0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=md.transition;md.transition={};try{e(!1),t()}finally{ie=n,md.transition=r}}function aw(){return It().memoizedState}function GD(e,t,n){var r=ur(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lw(e))uw(t,n);else if(n=Ux(e,t,n,r),n!==null){var i=rt();Gt(n,e,r,i),cw(n,t,r)}}function qD(e,t,n){var r=ur(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lw(e))uw(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,qt(a,s)){var l=t.interleaved;l===null?(i.next=i,Wp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ux(e,t,i,r),n!==null&&(i=rt(),Gt(n,e,r,i),cw(n,t,r))}}function lw(e){var t=e.alternate;return e===be||t!==null&&t===be}function uw(e,t){ls=eu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rp(e,n)}}var tu={readContext:zt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},XD={readContext:zt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:C0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vl(4194308,4,nw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return vl(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();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=GD.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:k0,useDebugValue:Jp,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=k0(!1),t=e[0];return e=KD.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=be,i=Jt();if(ge){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Ie===null)throw Error(z(349));Yr&30||qx(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,C0(Yx.bind(null,r,o,e),[e]),r.flags|=2048,Bs(9,Xx.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Jt(),t=Ie.identifierPrefix;if(ge){var n=Pn,r=Tn;n=(r&~(1<<32-Kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ns++,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[rn]=t,e[Is]=r,Sw(e,t,!1,!1),t.stateNode=e;e:{switch(s=wf(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;ioo&&(t.flags|=128,r=!0,Ao(o,!1),t.lanes=4194304)}else{if(!r)if(e=Jl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ao(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ge)return We(t),null}else 2*Te()-o.renderingStartTime>oo&&n!==1073741824&&(t.flags|=128,r=!0,Ao(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=Te(),t.sibling=null,n=ye.current,le(ye,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return om(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function rj(e,t){switch(Np(t),t.tag){case 1:return dt(t.type)&&Kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ro(),he(ct),he(Ye),qp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gp(t),null;case 13:if(he(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(ye),null;case 4:return ro(),null;case 10:return Up(t.type._context),null;case 22:case 23:return om(),null;case 24:return null;default:return null}}var Va=!1,Ge=!1,ij=typeof WeakSet=="function"?WeakSet:Set,N=null;function Oi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Xf(e,t,n){try{n()}catch(r){ke(e,t,r)}}var z0=!1;function oj(e,t){if(Of=Vl,e=Ex(),Dp(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(Lf={focusedElem:e,selectionRange:n},Vl=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,S=y.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ft(t.type,v),S);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(w){ke(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return y=z0,z0=!1,y}function us(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&&Xf(t,n,o)}i=i.next}while(i!==r)}}function Yu(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 Yf(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 kw(e){var t=e.alternate;t!==null&&(e.alternate=null,kw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[Is],delete t[If],delete t[BD],delete t[VD])),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 Cw(e){return e.tag===5||e.tag===3||e.tag===4}function I0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cw(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 Qf(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=Hl));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function Zf(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(Zf(e,t,n),e=e.sibling;e!==null;)Zf(e,t,n),e=e.sibling}var je=null,Bt=!1;function Hn(e,t,n){for(n=n.child;n!==null;)Tw(e,t,n),n=n.sibling}function Tw(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Vu,n)}catch{}switch(n.tag){case 5:Ge||Oi(n,t);case 6:var r=je,i=Bt;je=null,Hn(e,t,n),je=r,Bt=i,je!==null&&(Bt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Bt?(e=je,n=n.stateNode,e.nodeType===8?fd(e.parentNode,n):e.nodeType===1&&fd(e,n),As(e)):fd(je,n.stateNode));break;case 4:r=je,i=Bt,je=n.stateNode.containerInfo,Bt=!0,Hn(e,t,n),je=r,Bt=i;break;case 0:case 11:case 14:case 15:if(!Ge&&(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)&&Xf(n,t,s),i=i.next}while(i!==r)}Hn(e,t,n);break;case 1:if(!Ge&&(Oi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}Hn(e,t,n);break;case 21:Hn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,Hn(e,t,n),Ge=r):Hn(e,t,n);break;default:Hn(e,t,n)}}function D0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ij),t.forEach(function(r){var i=pj.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aj(r/1960))-r,10e?16:e,tr===null)var r=!1;else{if(e=tr,tr=null,iu=0,Y&6)throw Error(z(331));var i=Y;for(Y|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lTe()-rm?Hr(e,0):nm|=n),ft(e,t)}function Lw(e,t){t===0&&(e.mode&1?(t=La,La<<=1,!(La&130023424)&&(La=4194304)):t=1);var n=rt();e=Dn(e,t),e!==null&&(ta(e,t,n),ft(e,n))}function hj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lw(e,n)}function pj(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(z(314))}r!==null&&r.delete(t),Lw(e,n)}var Mw;Mw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,tj(e,t,n);ut=!!(e.flags&131072)}else ut=!1,ge&&t.flags&1048576&&jx(t,Xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var i=eo(t,Ye.current);Ui(t,n),i=Yp(null,t,r,e,i,n);var o=Qp();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,dt(r)?(o=!0,Gl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hp(t),i.updater=Xu,t.stateNode=i,i._reactInternals=t,Vf(t,r,e,n),t=Hf(null,t,r,!0,o,n)):(t.tag=0,ge&&o&&jp(t),et(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=gj(r),e=Ft(r,e),i){case 0:t=Wf(null,t,r,e,n);break e;case 1:t=O0(null,t,r,e,n);break e;case 11:t=R0(null,t,r,e,n);break e;case 14:t=A0(null,t,r,Ft(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Wf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),O0(e,t,r,i,n);case 3:e:{if(yw(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Wx(e,t),Zl(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=io(Error(z(423)),t),t=L0(e,t,r,n,i);break e}else if(r!==i){i=io(Error(z(424)),t),t=L0(e,t,r,n,i);break e}else for(yt=sr(t.stateNode.containerInfo.firstChild),St=t,ge=!0,Vt=null,n=Vx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(to(),r===i){t=jn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return Hx(t),e===null&&Nf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Mf(r,i)?s=null:o!==null&&Mf(r,o)&&(t.flags|=32),gw(e,t),et(e,t,s,n),t.child;case 6:return e===null&&Nf(t),null;case 13:return vw(e,t,n);case 4:return Kp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=no(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),R0(e,t,r,i,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(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,le(Yl,r._currentValue),r._currentValue=s,o!==null)if(qt(o.value,s)){if(o.children===i.children&&!ct.current){t=jn(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=On(-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),Ff(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(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ff(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}et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ui(t,n),i=zt(i),r=r(i),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,i=Ft(r,t.pendingProps),i=Ft(r.type,i),A0(e,t,r,i,n);case 15:return pw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),bl(e,t),t.tag=1,dt(r)?(e=!0,Gl(t)):e=!1,Ui(t,n),dw(t,r,i),Vf(t,r,i,n),Hf(null,t,r,!0,e,n);case 19:return bw(e,t,n);case 22:return mw(e,t,n)}throw Error(z(156,t.tag))};function zw(e,t){return lx(e,t)}function mj(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 Lt(e,t,n,r){return new mj(e,t,n,r)}function am(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gj(e){if(typeof e=="function")return am(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pp)return 11;if(e===Ep)return 14}return 2}function cr(e,t){var n=e.alternate;return n===null?(n=Lt(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 wl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")am(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ki:return Kr(n.children,i,o,t);case Tp:s=8,i|=8;break;case ff:return e=Lt(12,n,t,i|2),e.elementType=ff,e.lanes=o,e;case hf:return e=Lt(13,n,t,i),e.elementType=hf,e.lanes=o,e;case pf:return e=Lt(19,n,t,i),e.elementType=pf,e.lanes=o,e;case HS:return Zu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case US:s=10;break e;case WS:s=9;break e;case Pp:s=11;break e;case Ep:s=14;break e;case Xn:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Lt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Kr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function Zu(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=HS,e.lanes=n,e.stateNode={isHidden:!1},e}function Sd(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function xd(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yj(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=td(0),this.expirationTimes=td(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=td(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function lm(e,t,n,r,i,o,s,a,l){return e=new yj(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hp(o),e}function vj(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nw)}catch(e){console.error(e)}}Nw(),NS.exports=Ct;var fm=NS.exports;const[Fw,kj]=Xt({strict:!1,name:"PortalContext"}),hm="chakra-portal",Cj=".chakra-portal",Tj=e=>O.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Pj=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=x.useState(null),o=x.useRef(null),[,s]=x.useState({});x.useEffect(()=>s({}),[]);const a=kj(),l=iL();zd(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;o.current=c.createElement("div"),o.current.className=hm,d.appendChild(o.current),s({});const f=o.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?O.jsx(Tj,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return o.current?fm.createPortal(O.jsx(Fw,{value:o.current,children:u}),o.current):O.jsx("span",{ref:c=>{c&&i(c)}})},Ej=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),s=x.useMemo(()=>{const l=i==null?void 0:i.ownerDocument.createElement("div");return l&&(l.className=hm),l},[i]),[,a]=x.useState({});return zd(()=>a({}),[]),zd(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?fm.createPortal(O.jsx(Fw,{value:r?s:null,children:t}),s):null};function rc(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?O.jsx(Ej,{containerRef:n,...r}):O.jsx(Pj,{...r})}rc.className=hm;rc.selector=Cj;rc.displayName="Portal";const[_j,qF]=Xt({name:"ToastOptionsContext",strict:!1}),$j=e=>{const t=x.useSyncExternalStore(ns.subscribe,ns.getState,ns.getState),{motionVariants:n,component:r=_S,portalProps:i,animatePresenceProps:o}=e,a=Object.keys(t).map(l=>{const u=t[l];return O.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:II(l),children:O.jsx(LI,{...o,initial:!1,children:u.map(c=>O.jsx(r,{motionVariants:n,...c},c.id))})},l)});return O.jsx(rc,{...i,children:a})},Rj=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return O.jsxs(oL,{theme:r,...o,children:[O.jsx(_j,{value:i==null?void 0:i.defaultOptions,children:n}),O.jsx($j,{...i})]})},Aj=Rj(KA);function H0(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const Oj=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function K0(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function G0(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const rh=typeof window<"u"?x.useLayoutEffect:x.useEffect,au=e=>e;var Lj=Object.defineProperty,Mj=(e,t,n)=>t in e?Lj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t,n)=>(Mj(e,typeof t!="symbol"?t+"":t,n),n);class zj{constructor(){we(this,"descendants",new Map),we(this,"register",t=>{if(t!=null)return Oj(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),we(this,"unregister",t=>{this.descendants.delete(t);const n=H0(Array.from(this.descendants.keys()));this.assignIndex(n)}),we(this,"destroy",()=>{this.descendants.clear()}),we(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),we(this,"count",()=>this.descendants.size),we(this,"enabledCount",()=>this.enabledValues().length),we(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),we(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),we(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),we(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),we(this,"first",()=>this.item(0)),we(this,"firstEnabled",()=>this.enabledItem(0)),we(this,"last",()=>this.item(this.descendants.size-1)),we(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),we(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),we(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),we(this,"next",(t,n=!0)=>{const r=K0(t,this.count(),n);return this.item(r)}),we(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=K0(i,this.enabledCount(),n);return this.enabledItem(o)}),we(this,"prev",(t,n=!0)=>{const r=G0(t,this.count()-1,n);return this.item(r)}),we(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=G0(i,this.enabledCount()-1,n);return this.enabledItem(o)}),we(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),i=H0(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const o={node:t,index:-1,...n};this.descendants.set(t,o),this.assignIndex(i)})}}function Ij(){const e=x.useRef(new zj);return rh(()=>()=>e.current.destroy()),e.current}const[Dj,Bw]=Xt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function jj(e){const t=Bw(),[n,r]=x.useState(-1),i=x.useRef(null);rh(()=>()=>{i.current&&t.unregister(i.current)},[]),rh(()=>{if(!i.current)return;const s=Number(i.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const o=au(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:gu(o,i)}}function Nj(){return[au(Dj),()=>au(Bw()),()=>Ij(),i=>jj(i)]}const ih=it("div");ih.displayName="Box";var Vw={exports:{}},Fj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Bj=Fj,Vj=Bj;function Uw(){}function Ww(){}Ww.resetWarningCache=Uw;var Uj=function(){function e(r,i,o,s,a,l){if(l!==Vj){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ww,resetWarningCache:Uw};return n.PropTypes=n,n};Vw.exports=Uj();var Wj=Vw.exports;const _r=ei(Wj);function Hj(){const e=x.useRef(new Map),t=e.current,n=x.useCallback((i,o,s,a)=>{e.current.set(s,{type:o,el:i,options:a}),i.addEventListener(o,s,a)},[]),r=x.useCallback((i,o,s,a)=>{i.removeEventListener(o,s,a),e.current.delete(s)},[]);return x.useEffect(()=>()=>{t.forEach((i,o)=>{r(i.el,i.type,o,i.options)})},[r,t]),{add:n,remove:r}}function wd(e){var i,o;const t=((o=(i=e.composedPath)==null?void 0:i.call(e))==null?void 0:o[0])??e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function Kj(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:o=!0,onMouseDown:s,onMouseUp:a,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...y}=e,[v,S]=x.useState(!0),[m,h]=x.useState(!1),g=Hj(),w=L=>{L&&L.tagName!=="BUTTON"&&S(!1)},P=v?d:d||0,$=n&&!r,_=x.useCallback(L=>{if(n){L.stopPropagation(),L.preventDefault();return}L.currentTarget.focus(),l==null||l(L)},[n,l]),A=x.useCallback(L=>{m&&wd(L)&&(L.preventDefault(),L.stopPropagation(),h(!1),g.remove(document,"keyup",A,!1))},[m,g]),F=x.useCallback(L=>{if(u==null||u(L),n||L.defaultPrevented||L.metaKey||!wd(L.nativeEvent)||v)return;const R=i&&L.key==="Enter";o&&L.key===" "&&(L.preventDefault(),h(!0)),R&&(L.preventDefault(),L.currentTarget.click()),g.add(document,"keyup",A,!1)},[n,v,u,i,o,g,A]),j=x.useCallback(L=>{if(c==null||c(L),n||L.defaultPrevented||L.metaKey||!wd(L.nativeEvent)||v)return;o&&L.key===" "&&(L.preventDefault(),h(!1),L.currentTarget.click())},[o,v,n,c]),K=x.useCallback(L=>{L.button===0&&(h(!1),g.remove(document,"mouseup",K,!1))},[g]),ce=x.useCallback(L=>{if(L.button!==0)return;if(n){L.stopPropagation(),L.preventDefault();return}v||h(!0),L.currentTarget.focus({preventScroll:!0}),g.add(document,"mouseup",K,!1),s==null||s(L)},[n,v,s,g,K]),Ze=x.useCallback(L=>{L.button===0&&(v||h(!1),a==null||a(L))},[a,v]),Re=x.useCallback(L=>{if(n){L.preventDefault();return}f==null||f(L)},[n,f]),T=x.useCallback(L=>{m&&(L.preventDefault(),h(!1)),p==null||p(L)},[m,p]),M=gu(t,w);return v?{...y,ref:M,type:"button","aria-disabled":$?void 0:n,disabled:$,onClick:_,onMouseDown:s,onMouseUp:a,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...y,ref:M,role:"button","data-active":hT(m),"aria-disabled":n?"true":void 0,tabIndex:$?void 0:P,onClick:_,onMouseDown:ce,onMouseUp:Ze,onKeyUp:j,onKeyDown:F,onMouseOver:Re,onMouseLeave:T}}const[Gj,qj,Xj,Yj]=Nj();function Qj(e){const{defaultIndex:t,onChange:n,index:r,isManual:i,isLazy:o,lazyBehavior:s="unmount",orientation:a="horizontal",direction:l="ltr",...u}=e,[c,d]=x.useState(t??0),[f,p]=ET({defaultValue:t??0,value:r,onChange:n});x.useEffect(()=>{r!=null&&d(r)},[r]);const y=Xj(),v=x.useId();return{id:`tabs-${e.id??v}`,selectedIndex:f,focusedIndex:c,setSelectedIndex:p,setFocusedIndex:d,isManual:i,isLazy:o,lazyBehavior:s,orientation:a,descendants:y,direction:l,htmlProps:u}}const[Zj,Hw]=Xt({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function Jj(e){const{focusedIndex:t,orientation:n,direction:r}=Hw(),i=qj(),o=x.useCallback(s=>{const a=()=>{var g;const h=i.nextEnabled(t);h&&((g=h.node)==null||g.focus())},l=()=>{var g;const h=i.prevEnabled(t);h&&((g=h.node)==null||g.focus())},u=()=>{var g;const h=i.firstEnabled();h&&((g=h.node)==null||g.focus())},c=()=>{var g;const h=i.lastEnabled();h&&((g=h.node)==null||g.focus())},d=n==="horizontal",f=n==="vertical",p=s.key,y=r==="ltr"?"ArrowLeft":"ArrowRight",v=r==="ltr"?"ArrowRight":"ArrowLeft",m={[y]:()=>d&&l(),[v]:()=>d&&a(),ArrowDown:()=>f&&a(),ArrowUp:()=>f&&l(),Home:u,End:c}[p];m&&(s.preventDefault(),m(s))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:Md(e.onKeyDown,o)}}function e4(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:o,id:s,setFocusedIndex:a,selectedIndex:l}=Hw(),{index:u,register:c}=Yj({disabled:t&&!n}),d=u===l,f=()=>{i(u)},p=()=>{a(u),!o&&!(t&&n)&&i(u)};return{...Kj({...r,ref:gu(c,e.ref),isDisabled:t,isFocusable:n,onClick:Md(e.onClick,f)}),id:t4(s,u),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":n4(s,u),onFocus:t?void 0:Md(e.onFocus,p)}}Xt({});function t4(e,t){return`${e}--tab-${t}`}function n4(e,t){return`${e}--tabpanel-${t}`}const[r4,Kw]=Xt({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Gw=Fn(function(t,n){const r=AS("Tabs",t),{children:i,className:o,...s}=vu(t),{htmlProps:a,descendants:l,...u}=Qj(s),c=x.useMemo(()=>u,[u]),{isFitted:d,...f}=a,p={position:"relative",...r.root};return O.jsx(Gj,{value:l,children:O.jsx(Zj,{value:c,children:O.jsx(r4,{value:r,children:O.jsx(it.div,{className:Nn("chakra-tabs",o),ref:n,...f,__css:p,children:i})})})})});Gw.displayName="Tabs";const oh=Fn(function(t,n){const r=Kw(),i=e4({...t,ref:n}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return O.jsx(it.button,{...i,className:Nn("chakra-tabs__tab",t.className),__css:o})});oh.displayName="Tab";const qw=Fn(function(t,n){const r=Jj({...t,ref:n}),i=Kw(),o={display:"flex",...i.tablist};return O.jsx(it.div,{...r,className:Nn("chakra-tabs__tablist",t.className),__css:o})});qw.displayName="TabList";var Xw,Yw,q0=fm;Yw=q0.createRoot,Xw=q0.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function vd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Uf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ZD=typeof WeakMap=="function"?WeakMap:Map;function fw(e,t,n){n=On(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ru||(ru=!0,Jf=r),Uf(e,t)},n}function hw(e,t,n){n=On(-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(){Uf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Uf(e,t),typeof r!="function"&&(lr===null?lr=new Set([this]):lr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function E0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ZD;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=fj.bind(null,e,t,n),t.then(e,e))}function _0(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 $0(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=On(-1,1),t.tag=2,ar(n,t,1))),n.lanes|=1),e)}var JD=Bn.ReactCurrentOwner,ut=!1;function et(e,t,n,r){t.child=e===null?Vx(t,null,n,r):no(t,e.child,n,r)}function R0(e,t,n,r,i){n=n.render;var o=t.ref;return Ui(t,i),r=Yp(e,t,n,r,o,i),n=Qp(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,jn(e,t,i)):(ge&&n&&jp(t),t.flags|=1,et(e,t,r,i),t.child)}function A0(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!am(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,pw(e,t,o,r,i)):(e=wl(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:Ls,n(s,r)&&e.ref===t.ref)return jn(e,t,i)}return t.flags|=1,e=cr(o,r),e.ref=t.ref,e.return=t,t.child=e}function pw(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ls(o,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,jn(e,t,i)}return Wf(e,t,n,r,i)}function mw(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},le(Li,gt),gt|=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,le(Li,gt),gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,le(Li,gt),gt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,le(Li,gt),gt|=r;return et(e,t,i,n),t.child}function gw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wf(e,t,n,r,i){var o=dt(n)?qr:Ye.current;return o=eo(t,o),Ui(t,i),n=Yp(e,t,n,r,o,i),r=Qp(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,jn(e,t,i)):(ge&&r&&jp(t),t.flags|=1,et(e,t,n,i),t.child)}function O0(e,t,n,r,i){if(dt(n)){var o=!0;Gl(t)}else o=!1;if(Ui(t,i),t.stateNode===null)bl(e,t),dw(t,n,r),Vf(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=zt(u):(u=dt(n)?qr:Ye.current,u=eo(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)&&P0(t,s,r,u),Yn=!1;var f=t.memoizedState;s.state=f,Zl(t,r,s,i),l=t.memoizedState,a!==r||f!==l||ct.current||Yn?(typeof c=="function"&&(Bf(t,n,c,r),l=t.memoizedState),(a=Yn||T0(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,Wx(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ft(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=zt(l):(l=dt(n)?qr:Ye.current,l=eo(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)&&P0(t,s,r,l),Yn=!1,f=t.memoizedState,s.state=f,Zl(t,r,s,i);var v=t.memoizedState;a!==d||f!==v||ct.current||Yn?(typeof p=="function"&&(Bf(t,n,p,r),v=t.memoizedState),(u=Yn||T0(t,n,u,r,f,v,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,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=v),s.props=r,s.state=v,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 Hf(e,t,n,r,o,i)}function Hf(e,t,n,r,i,o){gw(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&y0(t,n,!1),jn(e,t,o);r=t.stateNode,JD.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=no(t,e.child,null,o),t.child=no(t,null,a,o)):et(e,t,a,o),t.memoizedState=r.state,i&&y0(t,n,!0),t.child}function yw(e){var t=e.stateNode;t.pendingContext?g0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&g0(e,t.context,!1),Kp(e,t.containerInfo)}function L0(e,t,n,r,i){return to(),Fp(i),t.flags|=256,et(e,t,n,r),t.child}var Kf={dehydrated:null,treeContext:null,retryLane:0};function Gf(e){return{baseLanes:e,cachePool:null,transitions:null}}function vw(e,t,n){var r=t.pendingProps,i=ye.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),le(ye,i&1),e===null)return Nf(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=Zu(s,r,0,null),e=Kr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Gf(n),t.memoizedState=Kf,e):em(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return ej(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=cr(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=cr(a,o):(o=Kr(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?Gf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Kf,r}return o=e.child,e=o.sibling,r=cr(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 em(e,t){return t=Zu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ba(e,t,n,r){return r!==null&&Fp(r),no(t,e.child,null,n),e=em(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ej(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=vd(Error(z(422))),Ba(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Zu({mode:"visible",children:r.children},i,0,null),o=Kr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&no(t,e.child,null,s),t.child.memoizedState=Gf(s),t.memoizedState=Kf,o);if(!(t.mode&1))return Ba(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(z(419)),r=vd(o,r,void 0),Ba(e,t,s,r)}if(a=(s&e.childLanes)!==0,ut||a){if(r=Ie,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,Dn(e,i),Gt(r,e,i,-1))}return sm(),r=vd(Error(z(421))),Ba(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=hj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,yt=sr(i.nextSibling),St=t,ge=!0,Vt=null,e!==null&&(At[Ot++]=Tn,At[Ot++]=Pn,At[Ot++]=Xr,Tn=e.id,Pn=e.overflow,Xr=t),t=em(t,r.children),t.flags|=4096,t)}function M0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ff(e.return,t,n)}function bd(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 bw(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(et(e,t,r.children,n),r=ye.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&&M0(e,n,t);else if(e.tag===19)M0(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(le(ye,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&&Jl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bd(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&&Jl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bd(t,!0,n,null,o);break;case"together":bd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=cr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=cr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function tj(e,t,n){switch(t.tag){case 3:yw(t),to();break;case 5:Hx(t);break;case 1:dt(t.type)&&Gl(t);break;case 4:Kp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(Yl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?vw(e,t,n):(le(ye,ye.current&1),e=jn(e,t,n),e!==null?e.sibling:null);le(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bw(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,mw(e,t,n)}return jn(e,t,n)}var Sw,qf,xw,ww;Sw=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}};qf=function(){};xw=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Nr(pn.current);var o=null;switch(n){case"input":i=gf(e,i),r=gf(e,r),o=[];break;case"select":i=Se({},i,{value:void 0}),r=Se({},r,{value:void 0}),o=[];break;case"textarea":i=bf(e,i),r=bf(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Hl)}xf(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"&&(Ps.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"&&(Ps.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&de("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)}};ww=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ao(e,t){if(!ge)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 We(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 nj(e,t,n){var r=t.pendingProps;switch(Np(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return dt(t.type)&&Kl(),We(t),null;case 3:return r=t.stateNode,ro(),he(ct),he(Ye),qp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Na(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vt!==null&&(nh(Vt),Vt=null))),qf(e,t),We(t),null;case 5:Gp(t);var i=Nr(js.current);if(n=t.type,e!==null&&t.stateNode!=null)xw(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return We(t),null}if(e=Nr(pn.current),Na(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[rn]=t,r[Is]=o,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("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[rn]=t,e[Is]=r,Sw(e,t,!1,!1),t.stateNode=e;e:{switch(s=wf(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;ioo&&(t.flags|=128,r=!0,Ao(o,!1),t.lanes=4194304)}else{if(!r)if(e=Jl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ao(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ge)return We(t),null}else 2*Te()-o.renderingStartTime>oo&&n!==1073741824&&(t.flags|=128,r=!0,Ao(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=Te(),t.sibling=null,n=ye.current,le(ye,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return om(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function rj(e,t){switch(Np(t),t.tag){case 1:return dt(t.type)&&Kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ro(),he(ct),he(Ye),qp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gp(t),null;case 13:if(he(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(ye),null;case 4:return ro(),null;case 10:return Up(t.type._context),null;case 22:case 23:return om(),null;case 24:return null;default:return null}}var Va=!1,Ge=!1,ij=typeof WeakSet=="function"?WeakSet:Set,N=null;function Oi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Xf(e,t,n){try{n()}catch(r){ke(e,t,r)}}var z0=!1;function oj(e,t){if(Of=Vl,e=Ex(),Dp(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(Lf={focusedElem:e,selectionRange:n},Vl=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ft(t.type,y),S);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(w){ke(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return v=z0,z0=!1,v}function us(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&&Xf(t,n,o)}i=i.next}while(i!==r)}}function Yu(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 Yf(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 kw(e){var t=e.alternate;t!==null&&(e.alternate=null,kw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[Is],delete t[If],delete t[BD],delete t[VD])),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 Cw(e){return e.tag===5||e.tag===3||e.tag===4}function I0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cw(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 Qf(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=Hl));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function Zf(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(Zf(e,t,n),e=e.sibling;e!==null;)Zf(e,t,n),e=e.sibling}var je=null,Bt=!1;function Hn(e,t,n){for(n=n.child;n!==null;)Tw(e,t,n),n=n.sibling}function Tw(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Vu,n)}catch{}switch(n.tag){case 5:Ge||Oi(n,t);case 6:var r=je,i=Bt;je=null,Hn(e,t,n),je=r,Bt=i,je!==null&&(Bt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Bt?(e=je,n=n.stateNode,e.nodeType===8?fd(e.parentNode,n):e.nodeType===1&&fd(e,n),As(e)):fd(je,n.stateNode));break;case 4:r=je,i=Bt,je=n.stateNode.containerInfo,Bt=!0,Hn(e,t,n),je=r,Bt=i;break;case 0:case 11:case 14:case 15:if(!Ge&&(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)&&Xf(n,t,s),i=i.next}while(i!==r)}Hn(e,t,n);break;case 1:if(!Ge&&(Oi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}Hn(e,t,n);break;case 21:Hn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,Hn(e,t,n),Ge=r):Hn(e,t,n);break;default:Hn(e,t,n)}}function D0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ij),t.forEach(function(r){var i=pj.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aj(r/1960))-r,10e?16:e,tr===null)var r=!1;else{if(e=tr,tr=null,iu=0,Y&6)throw Error(z(331));var i=Y;for(Y|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lTe()-rm?Hr(e,0):nm|=n),ft(e,t)}function Lw(e,t){t===0&&(e.mode&1?(t=La,La<<=1,!(La&130023424)&&(La=4194304)):t=1);var n=rt();e=Dn(e,t),e!==null&&(ta(e,t,n),ft(e,n))}function hj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lw(e,n)}function pj(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(z(314))}r!==null&&r.delete(t),Lw(e,n)}var Mw;Mw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,tj(e,t,n);ut=!!(e.flags&131072)}else ut=!1,ge&&t.flags&1048576&&jx(t,Xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var i=eo(t,Ye.current);Ui(t,n),i=Yp(null,t,r,e,i,n);var o=Qp();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,dt(r)?(o=!0,Gl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hp(t),i.updater=Xu,t.stateNode=i,i._reactInternals=t,Vf(t,r,e,n),t=Hf(null,t,r,!0,o,n)):(t.tag=0,ge&&o&&jp(t),et(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=gj(r),e=Ft(r,e),i){case 0:t=Wf(null,t,r,e,n);break e;case 1:t=O0(null,t,r,e,n);break e;case 11:t=R0(null,t,r,e,n);break e;case 14:t=A0(null,t,r,Ft(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Wf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),O0(e,t,r,i,n);case 3:e:{if(yw(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Wx(e,t),Zl(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=io(Error(z(423)),t),t=L0(e,t,r,n,i);break e}else if(r!==i){i=io(Error(z(424)),t),t=L0(e,t,r,n,i);break e}else for(yt=sr(t.stateNode.containerInfo.firstChild),St=t,ge=!0,Vt=null,n=Vx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(to(),r===i){t=jn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return Hx(t),e===null&&Nf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Mf(r,i)?s=null:o!==null&&Mf(r,o)&&(t.flags|=32),gw(e,t),et(e,t,s,n),t.child;case 6:return e===null&&Nf(t),null;case 13:return vw(e,t,n);case 4:return Kp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=no(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),R0(e,t,r,i,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(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,le(Yl,r._currentValue),r._currentValue=s,o!==null)if(qt(o.value,s)){if(o.children===i.children&&!ct.current){t=jn(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=On(-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),Ff(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(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ff(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}et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ui(t,n),i=zt(i),r=r(i),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,i=Ft(r,t.pendingProps),i=Ft(r.type,i),A0(e,t,r,i,n);case 15:return pw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),bl(e,t),t.tag=1,dt(r)?(e=!0,Gl(t)):e=!1,Ui(t,n),dw(t,r,i),Vf(t,r,i,n),Hf(null,t,r,!0,e,n);case 19:return bw(e,t,n);case 22:return mw(e,t,n)}throw Error(z(156,t.tag))};function zw(e,t){return lx(e,t)}function mj(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 Lt(e,t,n,r){return new mj(e,t,n,r)}function am(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gj(e){if(typeof e=="function")return am(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pp)return 11;if(e===Ep)return 14}return 2}function cr(e,t){var n=e.alternate;return n===null?(n=Lt(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 wl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")am(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ki:return Kr(n.children,i,o,t);case Tp:s=8,i|=8;break;case ff:return e=Lt(12,n,t,i|2),e.elementType=ff,e.lanes=o,e;case hf:return e=Lt(13,n,t,i),e.elementType=hf,e.lanes=o,e;case pf:return e=Lt(19,n,t,i),e.elementType=pf,e.lanes=o,e;case HS:return Zu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case US:s=10;break e;case WS:s=9;break e;case Pp:s=11;break e;case Ep:s=14;break e;case Xn:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Lt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Kr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function Zu(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=HS,e.lanes=n,e.stateNode={isHidden:!1},e}function Sd(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function xd(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yj(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=td(0),this.expirationTimes=td(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=td(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function lm(e,t,n,r,i,o,s,a,l){return e=new yj(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hp(o),e}function vj(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nw)}catch(e){console.error(e)}}Nw(),NS.exports=Ct;var fm=NS.exports;const[Fw,kj]=Xt({strict:!1,name:"PortalContext"}),hm="chakra-portal",Cj=".chakra-portal",Tj=e=>O.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Pj=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=x.useState(null),o=x.useRef(null),[,s]=x.useState({});x.useEffect(()=>s({}),[]);const a=kj(),l=iL();zd(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;o.current=c.createElement("div"),o.current.className=hm,d.appendChild(o.current),s({});const f=o.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?O.jsx(Tj,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return o.current?fm.createPortal(O.jsx(Fw,{value:o.current,children:u}),o.current):O.jsx("span",{ref:c=>{c&&i(c)}})},Ej=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),s=x.useMemo(()=>{const l=i==null?void 0:i.ownerDocument.createElement("div");return l&&(l.className=hm),l},[i]),[,a]=x.useState({});return zd(()=>a({}),[]),zd(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?fm.createPortal(O.jsx(Fw,{value:r?s:null,children:t}),s):null};function rc(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?O.jsx(Ej,{containerRef:n,...r}):O.jsx(Pj,{...r})}rc.className=hm;rc.selector=Cj;rc.displayName="Portal";const[_j,qF]=Xt({name:"ToastOptionsContext",strict:!1}),$j=e=>{const t=x.useSyncExternalStore(ns.subscribe,ns.getState,ns.getState),{motionVariants:n,component:r=_S,portalProps:i,animatePresenceProps:o}=e,a=Object.keys(t).map(l=>{const u=t[l];return O.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:II(l),children:O.jsx(LI,{...o,initial:!1,children:u.map(c=>O.jsx(r,{motionVariants:n,...c},c.id))})},l)});return O.jsx(rc,{...i,children:a})},Rj=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return O.jsxs(oL,{theme:r,...o,children:[O.jsx(_j,{value:i==null?void 0:i.defaultOptions,children:n}),O.jsx($j,{...i})]})},Aj=Rj(KA);function H0(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const Oj=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function K0(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function G0(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const rh=typeof window<"u"?x.useLayoutEffect:x.useEffect,au=e=>e;var Lj=Object.defineProperty,Mj=(e,t,n)=>t in e?Lj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t,n)=>(Mj(e,typeof t!="symbol"?t+"":t,n),n);class zj{constructor(){we(this,"descendants",new Map),we(this,"register",t=>{if(t!=null)return Oj(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),we(this,"unregister",t=>{this.descendants.delete(t);const n=H0(Array.from(this.descendants.keys()));this.assignIndex(n)}),we(this,"destroy",()=>{this.descendants.clear()}),we(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),we(this,"count",()=>this.descendants.size),we(this,"enabledCount",()=>this.enabledValues().length),we(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),we(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),we(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),we(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),we(this,"first",()=>this.item(0)),we(this,"firstEnabled",()=>this.enabledItem(0)),we(this,"last",()=>this.item(this.descendants.size-1)),we(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),we(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),we(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),we(this,"next",(t,n=!0)=>{const r=K0(t,this.count(),n);return this.item(r)}),we(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=K0(i,this.enabledCount(),n);return this.enabledItem(o)}),we(this,"prev",(t,n=!0)=>{const r=G0(t,this.count()-1,n);return this.item(r)}),we(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=G0(i,this.enabledCount()-1,n);return this.enabledItem(o)}),we(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),i=H0(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const o={node:t,index:-1,...n};this.descendants.set(t,o),this.assignIndex(i)})}}function Ij(){const e=x.useRef(new zj);return rh(()=>()=>e.current.destroy()),e.current}const[Dj,Bw]=Xt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function jj(e){const t=Bw(),[n,r]=x.useState(-1),i=x.useRef(null);rh(()=>()=>{i.current&&t.unregister(i.current)},[]),rh(()=>{if(!i.current)return;const s=Number(i.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const o=au(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:gu(o,i)}}function Nj(){return[au(Dj),()=>au(Bw()),()=>Ij(),i=>jj(i)]}const ih=it("div");ih.displayName="Box";var Vw={exports:{}},Fj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Bj=Fj,Vj=Bj;function Uw(){}function Ww(){}Ww.resetWarningCache=Uw;var Uj=function(){function e(r,i,o,s,a,l){if(l!==Vj){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ww,resetWarningCache:Uw};return n.PropTypes=n,n};Vw.exports=Uj();var Wj=Vw.exports;const _r=ei(Wj);function Hj(){const e=x.useRef(new Map),t=e.current,n=x.useCallback((i,o,s,a)=>{e.current.set(s,{type:o,el:i,options:a}),i.addEventListener(o,s,a)},[]),r=x.useCallback((i,o,s,a)=>{i.removeEventListener(o,s,a),e.current.delete(s)},[]);return x.useEffect(()=>()=>{t.forEach((i,o)=>{r(i.el,i.type,o,i.options)})},[r,t]),{add:n,remove:r}}function wd(e){var i,o;const t=((o=(i=e.composedPath)==null?void 0:i.call(e))==null?void 0:o[0])??e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function Kj(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:o=!0,onMouseDown:s,onMouseUp:a,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...v}=e,[y,S]=x.useState(!0),[m,h]=x.useState(!1),g=Hj(),w=L=>{L&&L.tagName!=="BUTTON"&&S(!1)},P=y?d:d||0,$=n&&!r,_=x.useCallback(L=>{if(n){L.stopPropagation(),L.preventDefault();return}L.currentTarget.focus(),l==null||l(L)},[n,l]),A=x.useCallback(L=>{m&&wd(L)&&(L.preventDefault(),L.stopPropagation(),h(!1),g.remove(document,"keyup",A,!1))},[m,g]),F=x.useCallback(L=>{if(u==null||u(L),n||L.defaultPrevented||L.metaKey||!wd(L.nativeEvent)||y)return;const R=i&&L.key==="Enter";o&&L.key===" "&&(L.preventDefault(),h(!0)),R&&(L.preventDefault(),L.currentTarget.click()),g.add(document,"keyup",A,!1)},[n,y,u,i,o,g,A]),j=x.useCallback(L=>{if(c==null||c(L),n||L.defaultPrevented||L.metaKey||!wd(L.nativeEvent)||y)return;o&&L.key===" "&&(L.preventDefault(),h(!1),L.currentTarget.click())},[o,y,n,c]),K=x.useCallback(L=>{L.button===0&&(h(!1),g.remove(document,"mouseup",K,!1))},[g]),ce=x.useCallback(L=>{if(L.button!==0)return;if(n){L.stopPropagation(),L.preventDefault();return}y||h(!0),L.currentTarget.focus({preventScroll:!0}),g.add(document,"mouseup",K,!1),s==null||s(L)},[n,y,s,g,K]),Ze=x.useCallback(L=>{L.button===0&&(y||h(!1),a==null||a(L))},[a,y]),Re=x.useCallback(L=>{if(n){L.preventDefault();return}f==null||f(L)},[n,f]),T=x.useCallback(L=>{m&&(L.preventDefault(),h(!1)),p==null||p(L)},[m,p]),M=gu(t,w);return y?{...v,ref:M,type:"button","aria-disabled":$?void 0:n,disabled:$,onClick:_,onMouseDown:s,onMouseUp:a,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...v,ref:M,role:"button","data-active":hT(m),"aria-disabled":n?"true":void 0,tabIndex:$?void 0:P,onClick:_,onMouseDown:ce,onMouseUp:Ze,onKeyUp:j,onKeyDown:F,onMouseOver:Re,onMouseLeave:T}}const[Gj,qj,Xj,Yj]=Nj();function Qj(e){const{defaultIndex:t,onChange:n,index:r,isManual:i,isLazy:o,lazyBehavior:s="unmount",orientation:a="horizontal",direction:l="ltr",...u}=e,[c,d]=x.useState(t??0),[f,p]=ET({defaultValue:t??0,value:r,onChange:n});x.useEffect(()=>{r!=null&&d(r)},[r]);const v=Xj(),y=x.useId();return{id:`tabs-${e.id??y}`,selectedIndex:f,focusedIndex:c,setSelectedIndex:p,setFocusedIndex:d,isManual:i,isLazy:o,lazyBehavior:s,orientation:a,descendants:v,direction:l,htmlProps:u}}const[Zj,Hw]=Xt({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function Jj(e){const{focusedIndex:t,orientation:n,direction:r}=Hw(),i=qj(),o=x.useCallback(s=>{const a=()=>{var g;const h=i.nextEnabled(t);h&&((g=h.node)==null||g.focus())},l=()=>{var g;const h=i.prevEnabled(t);h&&((g=h.node)==null||g.focus())},u=()=>{var g;const h=i.firstEnabled();h&&((g=h.node)==null||g.focus())},c=()=>{var g;const h=i.lastEnabled();h&&((g=h.node)==null||g.focus())},d=n==="horizontal",f=n==="vertical",p=s.key,v=r==="ltr"?"ArrowLeft":"ArrowRight",y=r==="ltr"?"ArrowRight":"ArrowLeft",m={[v]:()=>d&&l(),[y]:()=>d&&a(),ArrowDown:()=>f&&a(),ArrowUp:()=>f&&l(),Home:u,End:c}[p];m&&(s.preventDefault(),m(s))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:Md(e.onKeyDown,o)}}function e4(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:o,id:s,setFocusedIndex:a,selectedIndex:l}=Hw(),{index:u,register:c}=Yj({disabled:t&&!n}),d=u===l,f=()=>{i(u)},p=()=>{a(u),!o&&!(t&&n)&&i(u)};return{...Kj({...r,ref:gu(c,e.ref),isDisabled:t,isFocusable:n,onClick:Md(e.onClick,f)}),id:t4(s,u),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":n4(s,u),onFocus:t?void 0:Md(e.onFocus,p)}}Xt({});function t4(e,t){return`${e}--tab-${t}`}function n4(e,t){return`${e}--tabpanel-${t}`}const[r4,Kw]=Xt({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Gw=Fn(function(t,n){const r=AS("Tabs",t),{children:i,className:o,...s}=vu(t),{htmlProps:a,descendants:l,...u}=Qj(s),c=x.useMemo(()=>u,[u]),{isFitted:d,...f}=a,p={position:"relative",...r.root};return O.jsx(Gj,{value:l,children:O.jsx(Zj,{value:c,children:O.jsx(r4,{value:r,children:O.jsx(it.div,{className:Nn("chakra-tabs",o),ref:n,...f,__css:p,children:i})})})})});Gw.displayName="Tabs";const oh=Fn(function(t,n){const r=Kw(),i=e4({...t,ref:n}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return O.jsx(it.button,{...i,className:Nn("chakra-tabs__tab",t.className),__css:o})});oh.displayName="Tab";const qw=Fn(function(t,n){const r=Jj({...t,ref:n}),i=Kw(),o={display:"flex",...i.tablist};return O.jsx(it.div,{...r,className:Nn("chakra-tabs__tablist",t.className),__css:o})});qw.displayName="TabList";var Xw,Yw,q0=fm;Yw=q0.createRoot,Xw=q0.hydrateRoot;/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. @@ -355,7 +355,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Qw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function o4(){return Math.random().toString(36).substr(2,8)}function Y0(e,t){return{usr:e.state,key:e.key,idx:t}}function sh(e,t,n,r){return n===void 0&&(n=null),Us({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?po(t):t,{state:n,key:t&&t.key||r||o4()})}function lu(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 po(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 s4(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=nr.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Us({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=nr.Pop;let S=c(),m=S==null?null:S-u;u=S,l&&l({action:a,location:v.location,delta:m})}function f(S,m){a=nr.Push;let h=sh(v.location,S,m);u=c()+1;let g=Y0(h,u),w=v.createHref(h);try{s.pushState(g,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(w)}o&&l&&l({action:a,location:v.location,delta:1})}function p(S,m){a=nr.Replace;let h=sh(v.location,S,m);u=c();let g=Y0(h,u),w=v.createHref(h);s.replaceState(g,"",w),o&&l&&l({action:a,location:v.location,delta:0})}function y(S){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof S=="string"?S:lu(S);return h=h.replace(/ $/,"%20"),$e(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let v={get action(){return a},get location(){return e(i,s)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(X0,d),l=S,()=>{i.removeEventListener(X0,d),l=null}},createHref(S){return t(i,S)},createURL:y,encodeLocation(S){let m=y(S);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:p,go(S){return s.go(S)}};return v}var Q0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Q0||(Q0={}));function a4(e,t,n){return n===void 0&&(n="/"),l4(e,t,n,!1)}function l4(e,t,n,r){let i=typeof t=="string"?po(t):t,o=pm(i.pathname||"/",n);if(o==null)return null;let s=Zw(e);u4(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&($e(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=dr([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&($e(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zw(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:g4(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 Jw(o.path))i(o,s,l)}),t}function Jw(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=Jw(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 u4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:y4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const c4=/^:[\w-]+$/,d4=3,f4=2,h4=1,p4=10,m4=-2,Z0=e=>e==="*";function g4(e,t){let n=e.split("/"),r=n.length;return n.some(Z0)&&(r+=m4),t&&(r+=f4),n.filter(i=>!Z0(i)).reduce((i,o)=>i+(c4.test(o)?d4:o===""?h4:p4),r)}function y4(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 v4(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:f,isOptional:p}=c;if(f==="*"){let v=a[d]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=a[d];return p&&!y?u[f]=void 0:u[f]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function b4(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Qw(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 S4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qw(!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 pm(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 x4(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?po(e):e;return{pathname:n?n.startsWith("/")?n:w4(n,t):t,search:T4(r),hash:P4(i)}}function w4(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 kd(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 k4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ek(e,t){let n=k4(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tk(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=po(e):(i=Us({},e),$e(!i.pathname||!i.pathname.includes("?"),kd("?","pathname","search",i)),$e(!i.pathname||!i.pathname.includes("#"),kd("#","pathname","hash",i)),$e(!i.search||!i.search.includes("#"),kd("#","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=x4(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const dr=e=>e.join("/").replace(/\/\/+/g,"/"),C4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function E4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nk=["post","put","patch","delete"];new Set(nk);const _4=["get",...nk];new Set(_4);/** + */function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Qw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function o4(){return Math.random().toString(36).substr(2,8)}function Y0(e,t){return{usr:e.state,key:e.key,idx:t}}function sh(e,t,n,r){return n===void 0&&(n=null),Us({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?po(t):t,{state:n,key:t&&t.key||r||o4()})}function lu(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 po(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 s4(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=nr.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Us({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=nr.Pop;let S=c(),m=S==null?null:S-u;u=S,l&&l({action:a,location:y.location,delta:m})}function f(S,m){a=nr.Push;let h=sh(y.location,S,m);u=c()+1;let g=Y0(h,u),w=y.createHref(h);try{s.pushState(g,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(w)}o&&l&&l({action:a,location:y.location,delta:1})}function p(S,m){a=nr.Replace;let h=sh(y.location,S,m);u=c();let g=Y0(h,u),w=y.createHref(h);s.replaceState(g,"",w),o&&l&&l({action:a,location:y.location,delta:0})}function v(S){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof S=="string"?S:lu(S);return h=h.replace(/ $/,"%20"),$e(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return a},get location(){return e(i,s)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(X0,d),l=S,()=>{i.removeEventListener(X0,d),l=null}},createHref(S){return t(i,S)},createURL:v,encodeLocation(S){let m=v(S);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:p,go(S){return s.go(S)}};return y}var Q0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Q0||(Q0={}));function a4(e,t,n){return n===void 0&&(n="/"),l4(e,t,n,!1)}function l4(e,t,n,r){let i=typeof t=="string"?po(t):t,o=pm(i.pathname||"/",n);if(o==null)return null;let s=Zw(e);u4(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&($e(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=dr([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&($e(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zw(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:g4(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 Jw(o.path))i(o,s,l)}),t}function Jw(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=Jw(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 u4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:y4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const c4=/^:[\w-]+$/,d4=3,f4=2,h4=1,p4=10,m4=-2,Z0=e=>e==="*";function g4(e,t){let n=e.split("/"),r=n.length;return n.some(Z0)&&(r+=m4),t&&(r+=f4),n.filter(i=>!Z0(i)).reduce((i,o)=>i+(c4.test(o)?d4:o===""?h4:p4),r)}function y4(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 v4(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:f,isOptional:p}=c;if(f==="*"){let y=a[d]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=a[d];return p&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function b4(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Qw(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 S4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qw(!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 pm(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 x4(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?po(e):e;return{pathname:n?n.startsWith("/")?n:w4(n,t):t,search:T4(r),hash:P4(i)}}function w4(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 kd(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 k4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ek(e,t){let n=k4(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tk(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=po(e):(i=Us({},e),$e(!i.pathname||!i.pathname.includes("?"),kd("?","pathname","search",i)),$e(!i.pathname||!i.pathname.includes("#"),kd("#","pathname","hash",i)),$e(!i.search||!i.search.includes("#"),kd("#","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=x4(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const dr=e=>e.join("/").replace(/\/\/+/g,"/"),C4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function E4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nk=["post","put","patch","delete"];new Set(nk);const _4=["get",...nk];new Set(_4);/** * React Router v6.27.0 * * Copyright (c) Remix Software Inc. @@ -364,7 +364,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),x.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=tk(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:dr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}function XF(){let{matches:e}=x.useContext(wr),t=e[e.length-1];return t?t.params:{}}function ok(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(ri),{matches:i}=x.useContext(wr),{pathname:o}=sa(),s=JSON.stringify(ek(i,r.v7_relativeSplatPath));return x.useMemo(()=>tk(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function L4(e,t){return M4(e,t)}function M4(e,t,n,r){oa()||$e(!1);let{navigator:i}=x.useContext(ri),{matches:o}=x.useContext(wr),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=sa(),c;if(t){var d;let S=typeof t=="string"?po(t):t;l==="/"||(d=S.pathname)!=null&&d.startsWith(l)||$e(!1),c=S}else c=u;let f=c.pathname||"/",p=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=a4(e,{pathname:p}),v=N4(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:dr([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:dr([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r);return t&&v?x.createElement(ic.Provider,{value:{location:Ws({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:nr.Pop}},v):v}function z4(){let e=U4(),t=E4(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 x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,null)}const I4=x.createElement(z4,null);class D4 extends x.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?x.createElement(wr.Provider,{value:this.props.routeContext},x.createElement(rk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function j4(e){let{routeContext:t,match:n,children:r}=e,i=x.useContext(mm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(wr.Provider,{value:t},r)}function N4(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(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)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])!==void 0);c>=0||$e(!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,y=!1,v=null,S=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,v=d.route.errorElement||I4,l&&(u<0&&f===0?(y=!0,S=null):u===f&&(y=!0,S=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,f+1)),h=()=>{let g;return p?g=v:y?g=S:d.route.Component?g=x.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,x.createElement(j4,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?x.createElement(D4,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var sk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sk||{}),uu=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}(uu||{});function F4(e){let t=x.useContext(mm);return t||$e(!1),t}function B4(e){let t=x.useContext($4);return t||$e(!1),t}function V4(e){let t=x.useContext(wr);return t||$e(!1),t}function ak(e){let t=V4(),n=t.matches[t.matches.length-1];return n.route.id||$e(!1),n.route.id}function U4(){var e;let t=x.useContext(rk),n=B4(uu.UseRouteError),r=ak(uu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function W4(){let{router:e}=F4(sk.UseNavigateStable),t=ak(uu.UseNavigateStable),n=x.useRef(!1);return ik(()=>{n.current=!0}),x.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ws({fromRouteId:t},o)))},[e,t])}function Gn(e){$e(!1)}function H4(e){let{basename:t="/",children:n=null,location:r,navigationType:i=nr.Pop,navigator:o,static:s=!1,future:a}=e;oa()&&$e(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:o,static:s,future:Ws({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=po(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:y="default"}=r,v=x.useMemo(()=>{let S=pm(c,l);return S==null?null:{location:{pathname:S,search:d,hash:f,state:p,key:y},navigationType:i}},[l,c,d,f,p,y,i]);return v==null?null:x.createElement(ri.Provider,{value:u},x.createElement(ic.Provider,{children:n,value:v}))}function K4(e){let{children:t,location:n}=e;return L4(ah(t),n)}new Promise(()=>{});function ah(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let o=[...t,i];if(r.type===x.Fragment){n.push.apply(n,ah(r.props.children,o));return}r.type!==Gn&&$e(!1),!r.props.index||!r.props.children||$e(!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=ah(r.props.children,o)),n.push(s)}),n}/** + */function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),x.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=tk(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:dr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}function XF(){let{matches:e}=x.useContext(wr),t=e[e.length-1];return t?t.params:{}}function ok(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(ri),{matches:i}=x.useContext(wr),{pathname:o}=sa(),s=JSON.stringify(ek(i,r.v7_relativeSplatPath));return x.useMemo(()=>tk(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function L4(e,t){return M4(e,t)}function M4(e,t,n,r){oa()||$e(!1);let{navigator:i}=x.useContext(ri),{matches:o}=x.useContext(wr),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=sa(),c;if(t){var d;let S=typeof t=="string"?po(t):t;l==="/"||(d=S.pathname)!=null&&d.startsWith(l)||$e(!1),c=S}else c=u;let f=c.pathname||"/",p=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let v=a4(e,{pathname:p}),y=N4(v&&v.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:dr([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:dr([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r);return t&&y?x.createElement(ic.Provider,{value:{location:Ws({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:nr.Pop}},y):y}function z4(){let e=U4(),t=E4(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 x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,null)}const I4=x.createElement(z4,null);class D4 extends x.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?x.createElement(wr.Provider,{value:this.props.routeContext},x.createElement(rk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function j4(e){let{routeContext:t,match:n,children:r}=e,i=x.useContext(mm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(wr.Provider,{value:t},r)}function N4(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(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)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])!==void 0);c>=0||$e(!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,v=!1,y=null,S=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||I4,l&&(u<0&&f===0?(v=!0,S=null):u===f&&(v=!0,S=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,f+1)),h=()=>{let g;return p?g=y:v?g=S:d.route.Component?g=x.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,x.createElement(j4,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?x.createElement(D4,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var sk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sk||{}),uu=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}(uu||{});function F4(e){let t=x.useContext(mm);return t||$e(!1),t}function B4(e){let t=x.useContext($4);return t||$e(!1),t}function V4(e){let t=x.useContext(wr);return t||$e(!1),t}function ak(e){let t=V4(),n=t.matches[t.matches.length-1];return n.route.id||$e(!1),n.route.id}function U4(){var e;let t=x.useContext(rk),n=B4(uu.UseRouteError),r=ak(uu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function W4(){let{router:e}=F4(sk.UseNavigateStable),t=ak(uu.UseNavigateStable),n=x.useRef(!1);return ik(()=>{n.current=!0}),x.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ws({fromRouteId:t},o)))},[e,t])}function Gn(e){$e(!1)}function H4(e){let{basename:t="/",children:n=null,location:r,navigationType:i=nr.Pop,navigator:o,static:s=!1,future:a}=e;oa()&&$e(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:o,static:s,future:Ws({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=po(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:v="default"}=r,y=x.useMemo(()=>{let S=pm(c,l);return S==null?null:{location:{pathname:S,search:d,hash:f,state:p,key:v},navigationType:i}},[l,c,d,f,p,v,i]);return y==null?null:x.createElement(ri.Provider,{value:u},x.createElement(ic.Provider,{children:n,value:y}))}function K4(e){let{children:t,location:n}=e;return L4(ah(t),n)}new Promise(()=>{});function ah(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let o=[...t,i];if(r.type===x.Fragment){n.push.apply(n,ah(r.props.children,o));return}r.type!==Gn&&$e(!1),!r.props.index||!r.props.children||$e(!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=ah(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. @@ -373,5 +373,5 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function q4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function X4(e,t){return e.button===0&&(!t||t==="_self")&&!q4(e)}const Y4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Q4="6";try{window.__reactRouterVersion=Q4}catch{}const Z4="startTransition",ev=Od[Z4];function J4(e){let{basename:t,children:n,future:r,window:i}=e,o=x.useRef();o.current==null&&(o.current=i4({window:i,v5Compat:!0}));let s=o.current,[a,l]=x.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=x.useCallback(d=>{u&&ev?ev(()=>l(d)):l(d)},[l,u]);return x.useLayoutEffect(()=>s.listen(c),[s,c]),x.createElement(H4,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const eN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tv=x.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=G4(t,Y4),{basename:p}=x.useContext(ri),y,v=!1;if(typeof u=="string"&&tN.test(u)&&(y=u,eN))try{let g=new URL(window.location.href),w=u.startsWith("//")?new URL(g.protocol+u):new URL(u),P=pm(w.pathname,p);w.origin===g.origin&&P!=null?u=P+w.search+w.hash:v=!0}catch{}let S=R4(u,{relative:i}),m=nN(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:d});function h(g){r&&r(g),g.defaultPrevented||m(g)}return x.createElement("a",lh({},f,{href:y||S,onClick:v||o?r:h,ref:n,target:l}))});var nv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(nv||(nv={}));var rv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rv||(rv={}));function nN(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=A4(),u=sa(),c=ok(e,{relative:s});return x.useCallback(d=>{if(X4(d,n)){d.preventDefault();let f=r!==void 0?r:lu(u)===lu(c);l(e,{replace:f,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[u,l,c,r,i,n,e,o,s,a])}const rN={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class cu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||rN,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[a,l]=s;for(let u=0;u{let[a,l]=s;for(let u=0;u{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},iv=e=>e==null?"":""+e,iN=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},oN=/###/g,ov=e=>e&&e.indexOf("###")>-1?e.replace(oN,"."):e,sv=e=>!e||typeof e=="string",fs=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let i=0;for(;i{const{obj:r,k:i}=fs(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=fs(e,s,Object);for(;a.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=fs(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},sN=(e,t,n,r)=>{const{obj:i,k:o}=fs(e,t,Object);i[o]=i[o]||[],i[o].push(n)},du=(e,t)=>{const{obj:n,k:r}=fs(e,t);if(n)return n[r]},aN=(e,t,n)=>{const r=du(e,n);return r!==void 0?r:du(t,n)},lk=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):lk(e[r],t[r],n):e[r]=t[r]);return e},li=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var lN={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const uN=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>lN[t]):e;class cN{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const dN=[" ",",","?","!",";"],fN=new cN(20),hN=(e,t,n)=>{t=t||"",n=n||"";const r=dN.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const i=fN.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!i.test(e);if(!o){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o},uh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&le&&e.indexOf("_")>0?e.replace("_","-"):e;class lv extends oc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):typeof r=="string"&&o?a.push(...r.split(o)):a.push(r)));const l=du(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||typeof r!="string"?l:uh(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),av(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=du(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?lk(l,r,o):l={...l,...r},av(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var uk={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const uv={};class hu extends oc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),iN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ln.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!hN(t,r,i);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${w}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let f=d&&d.res;const p=d&&d.usedKey||s,y=d&&d.exactUsedKey||s,v=Object.prototype.toString.apply(f),S=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,h=!this.i18nFormat||this.i18nFormat.handleAsObject;if(h&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&S.indexOf(v)<0&&!(typeof m=="string"&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(d.res=w,d.usedParams=this.getUsedParamsDetails(n),d):w}if(o){const w=Array.isArray(f),P=w?[]:{},$=w?y:p;for(const _ in f)if(Object.prototype.hasOwnProperty.call(f,_)){const A=`${$}${o}${_}`;P[_]=this.translate(A,{...n,joinArrays:!1,ns:a}),P[_]===A&&(P[_]=f[_])}f=P}}else if(h&&typeof m=="string"&&Array.isArray(f))f=f.join(m),f&&(f=this.extendTranslation(f,t,n,r));else{let w=!1,P=!1;const $=n.count!==void 0&&typeof n.count!="string",_=hu.hasDefaultValue(n),A=$?this.pluralResolver.getSuffix(u,n.count,n):"",F=n.ordinal&&$?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",j=$&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),K=j&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${A}`]||n[`defaultValue${F}`]||n.defaultValue;!this.isValidLookup(f)&&_&&(w=!0,f=K),this.isValidLookup(f)||(P=!0,f=s);const Ze=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:f,Re=_&&K!==f&&this.options.updateMissing;if(P||w||Re){if(this.logger.log(Re?"updateKey":"missingKey",u,l,s,Re?K:f),o){const R=this.resolve(s,{...n,keySeparator:!1});R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let T=[];const M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&M&&M[0])for(let R=0;R{const Q=_&&I!==f?I:Ze;this.options.missingKeyHandler?this.options.missingKeyHandler(R,l,D,Q,Re,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(R,l,D,Q,Re,n),this.emit("missingKey",R,l,D,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?T.forEach(R=>{const D=this.pluralResolver.getSuffixes(R,n);j&&n[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(I=>{L([R],s+I,n[`defaultValue${I}`]||K)})}):L(T,s,K))}f=this.extendTranslation(f,t,n,d,r),P&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(P||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,w?f:void 0):f=this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,i,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||i.usedLng,r),u){const f=t.match(this.interpolator.nestingRegexp),p=f&&f.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,s,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",p=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(a=S,!uv[`${v[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(uv[`${v[0]}-${S}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(m=>{if(this.isValidLookup(r))return;s=m;const h=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(h,c,m,S,n);else{let w;f&&(w=this.pluralResolver.getSuffix(m,n.count,n));const P=`${this.options.pluralSeparator}zero`,$=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(h.push(c+w),n.ordinal&&w.indexOf($)===0&&h.push(c+w.replace($,this.options.pluralSeparator)),p&&h.push(c+P)),y){const _=`${c}${this.options.contextSeparator}${n.context}`;h.push(_),f&&(h.push(_+w),n.ordinal&&w.indexOf($)===0&&h.push(_+w.replace($,this.options.pluralSeparator)),p&&h.push(_+P))}}let g;for(;g=h.pop();)this.isValidLookup(r)||(o=g,r=this.getResource(m,S,g,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Cd=e=>e.charAt(0).toUpperCase()+e.slice(1);class cv{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ln.create("languageUtils")}getScriptPartFromCode(t){if(t=fu(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=fu(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Cd(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Cd(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Cd(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(s=>{i.indexOf(s)<0&&o(this.formatLanguageCode(s))}),i}}let pN=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],mN={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const gN=["v1","v2","v3"],yN=["v4"],dv={zero:0,one:1,two:2,few:3,many:4,other:5},vN=()=>{const e={};return pN.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:mN[t.fc]}})}),e};class bN{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ln.create("pluralResolver"),(!this.options.compatibilityJSON||yN.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=vN(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=fu(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const s=new Intl.PluralRules(r,{type:i});return this.pluralRulesCache[o]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>dv[i]-dv[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!gN.includes(this.options.compatibilityJSON)}}const fv=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=aN(e,t,n);return!o&&i&&typeof n=="string"&&(o=uh(e,n,r),o===void 0&&(o=uh(t,n,r))),o},Td=e=>e.replace(/\$/g,"$$$$");class SN{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ln.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:y,nestingSuffixEscaped:v,nestingOptionsSeparator:S,maxReplaces:m,alwaysFormat:h}=t.interpolation;this.escape=n!==void 0?n:uN,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?li(o):s||"{{",this.suffix=a?li(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?li(f):p||li("$t("),this.nestingSuffix=y?li(y):v||li(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=m||1e3,this.alwaysFormat=h!==void 0?h:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const m=fv(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...i,...n,interpolationkey:p}):m}const y=p.split(this.formatSeparator),v=y.shift().trim(),S=y.join(this.formatSeparator).trim();return this.format(fv(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...i,...n,interpolationkey:v})};this.resetRegExp();const c=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>Td(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?Td(this.escape(p)):Td(p)}].forEach(p=>{for(a=0;o=p.regex.exec(t);){const y=o[1].trim();if(s=u(y),s===void 0)if(typeof c=="function"){const S=c(t,o,i);s=typeof S=="string"?S:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))s="";else if(d){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=iv(s));const v=p.safeValue(s);if(t=t.replace(o[0],v),d?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=o[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,s;const a=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const p=f.match(/'/g),y=f.match(/"/g);(p&&p.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),l=c,u=!0}if(o=n(a.call(this,i[1].trim(),s),s),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=iv(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const xN=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},ui=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=r+JSON.stringify(o);let a=t[s];return a||(a=e(fu(r),i),t[s]=a),a(n)}};class wN{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ln.create("formatter"),this.options=t,this.formats={number:ui((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:ui((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:ui((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:ui((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:ui((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ui(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(a=>a.indexOf(")")>-1)){const a=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,a)].join(this.formatSeparator)}return o.reduce((a,l)=>{const{formatName:u,formatOptions:c}=xN(l);if(this.formats[u]){let d=a;try{const f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},p=f.locale||f.lng||i.locale||i.lng||r;d=this.formats[u](a,p,{...c,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}const kN=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class CN extends oc{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=ln.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},s={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),o[f]===void 0&&(o[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),!n&&r&&this.store.addResourceBundle(o,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{sN(l.loaded,[o],s),kN(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:s});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&i{this.read.call(this,t,n,r,i+1,o*2,s)},o);return}s(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,l):c=u(t,n,r,i),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,i,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const hv=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),pv=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ha=()=>{},TN=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Hs extends oc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=pv(t),this.services={},this.logger=ln,this.modules={external:[]},TN(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=hv();this.options={...i,...this.options,...pv(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?ln.init(o(this.modules.logger),this.options):ln.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=wN);const d=new cv(this.options);this.store=new lv(this.options.resources,this.options);const f=this.services;f.logger=ln,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new bN(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=o(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new SN(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new CN(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(p){for(var y=arguments.length,v=new Array(y>1?y-1:0),S=1;S1?y-1:0),S=1;S{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Ha),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=Lo(),u=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),r(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ha;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=Lo();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Ha),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&uk.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Lo();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),i}getFixedT(t,n,r){var i=this;const o=function(s,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d`${l.keyPrefix}${f}${y}`):p=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,i.t(p,l)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}loadNamespaces(t,n){const r=Lo();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Lo();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(s=>i.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new cv(hv());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Hs(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ha;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Hs(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new lv(this.store.data,i),o.services.resourceStore=o.store),o.translator=new hu(o.services,i),o.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c{console!=null&&console.warn&&(Gr(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},mv={},ch=(...e)=>{Gr(e[0])&&mv[e[0]]||(Gr(e[0])&&(mv[e[0]]=new Date),PN(...e))},ck=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},dh=(e,t,n)=>{e.loadNamespaces(t,ck(e,n))},gv=(e,t,n,r)=>{if(Gr(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return dh(e,n,r);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,ck(e,r))},EN=(e,t,n={})=>!t.languages||!t.languages.length?(ch("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),Gr=e=>typeof e=="string",_N=e=>typeof e=="object"&&e!==null,$N=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,RN={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},AN=e=>RN[e],ON=e=>e.replace($N,AN);let fh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ON};const LN=(e={})=>{fh={...fh,...e}},MN=()=>fh;let dk;const zN=e=>{dk=e},IN=()=>dk,DN={type:"3rdParty",init(e){LN(e.options.react),zN(e)}},jN=x.createContext();class NN{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const FN=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},fk=(e,t,n,r)=>e.getFixedT(t,n,r),BN=(e,t,n,r)=>x.useCallback(fk(e,t,n,r),[e,t,n,r]),VN=(e,t={})=>{var w,P,$,_;const{i18n:n}=t,{i18n:r,defaultNS:i}=x.useContext(jN)||{},o=n||r||IN();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new NN),!o){ch("You will need to pass in an i18next instance by using initReactI18next");const A=(j,K)=>Gr(K)?K:_N(K)&&Gr(K.defaultValue)?K.defaultValue:Array.isArray(j)?j[j.length-1]:j,F=[A,{},!1];return F.t=A,F.i18n={},F.ready=!1,F}(w=o.options.react)!=null&&w.wait&&ch("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...MN(),...o.options.react,...t},{useSuspense:a,keyPrefix:l}=s;let u=i||((P=o.options)==null?void 0:P.defaultNS);u=Gr(u)?[u]:u||["translation"],(_=($=o.reportNamespaces).addUsedNamespaces)==null||_.call($,u);const c=(o.isInitialized||o.initializedStoreOnce)&&u.every(A=>EN(A,o,s)),d=BN(o,t.lng||null,s.nsMode==="fallback"?u:u[0],l),f=()=>d,p=()=>fk(o,t.lng||null,s.nsMode==="fallback"?u:u[0],l),[y,v]=x.useState(f);let S=u.join();t.lng&&(S=`${t.lng}${S}`);const m=FN(S),h=x.useRef(!0);x.useEffect(()=>{const{bindI18n:A,bindI18nStore:F}=s;h.current=!0,!c&&!a&&(t.lng?gv(o,t.lng,u,()=>{h.current&&v(p)}):dh(o,u,()=>{h.current&&v(p)})),c&&m&&m!==S&&h.current&&v(p);const j=()=>{h.current&&v(p)};return A&&(o==null||o.on(A,j)),F&&(o==null||o.store.on(F,j)),()=>{h.current=!1,o&&(A==null||A.split(" ").forEach(K=>o.off(K,j))),F&&o&&F.split(" ").forEach(K=>o.store.off(K,j))}},[o,S]),x.useEffect(()=>{h.current&&c&&v(f)},[o,l,c]);const g=[y,o,c];if(g.t=y,g.i18n=o,g.ready=c,c||!c&&!a)return g;throw new Promise(A=>{t.lng?gv(o,t.lng,u,()=>A()):dh(o,u,()=>A())})};function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(e)}function hk(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":hh(XMLHttpRequest))==="object"}function UN(e){return!!e&&typeof e.then=="function"}function WN(e){return UN(e)?e:Promise.resolve(e)}function HN(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ph={exports:{}},Ka={exports:{}},yv;function KN(){return yv||(yv=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof wn<"u"&&wn,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var a=typeof o<"u"&&o||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(T){return T&&DataView.prototype.isPrototypeOf(T)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(T){return T&&c.indexOf(Object.prototype.toString.call(T))>-1};function f(T){if(typeof T!="string"&&(T=String(T)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(T)||T==="")throw new TypeError('Invalid character in header field name: "'+T+'"');return T.toLowerCase()}function p(T){return typeof T!="string"&&(T=String(T)),T}function y(T){var M={next:function(){var L=T.shift();return{done:L===void 0,value:L}}};return l.iterable&&(M[Symbol.iterator]=function(){return M}),M}function v(T){this.map={},T instanceof v?T.forEach(function(M,L){this.append(L,M)},this):Array.isArray(T)?T.forEach(function(M){this.append(M[0],M[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(M){this.append(M,T[M])},this)}v.prototype.append=function(T,M){T=f(T),M=p(M);var L=this.map[T];this.map[T]=L?L+", "+M:M},v.prototype.delete=function(T){delete this.map[f(T)]},v.prototype.get=function(T){return T=f(T),this.has(T)?this.map[T]:null},v.prototype.has=function(T){return this.map.hasOwnProperty(f(T))},v.prototype.set=function(T,M){this.map[f(T)]=p(M)},v.prototype.forEach=function(T,M){for(var L in this.map)this.map.hasOwnProperty(L)&&T.call(M,this.map[L],L,this)},v.prototype.keys=function(){var T=[];return this.forEach(function(M,L){T.push(L)}),y(T)},v.prototype.values=function(){var T=[];return this.forEach(function(M){T.push(M)}),y(T)},v.prototype.entries=function(){var T=[];return this.forEach(function(M,L){T.push([L,M])}),y(T)},l.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function S(T){if(T.bodyUsed)return Promise.reject(new TypeError("Already read"));T.bodyUsed=!0}function m(T){return new Promise(function(M,L){T.onload=function(){M(T.result)},T.onerror=function(){L(T.error)}})}function h(T){var M=new FileReader,L=m(M);return M.readAsArrayBuffer(T),L}function g(T){var M=new FileReader,L=m(M);return M.readAsText(T),L}function w(T){for(var M=new Uint8Array(T),L=new Array(M.length),R=0;R-1?M:T}function F(T,M){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');M=M||{};var L=M.body;if(T instanceof F){if(T.bodyUsed)throw new TypeError("Already read");this.url=T.url,this.credentials=T.credentials,M.headers||(this.headers=new v(T.headers)),this.method=T.method,this.mode=T.mode,this.signal=T.signal,!L&&T._bodyInit!=null&&(L=T._bodyInit,T.bodyUsed=!0)}else this.url=String(T);if(this.credentials=M.credentials||this.credentials||"same-origin",(M.headers||!this.headers)&&(this.headers=new v(M.headers)),this.method=A(M.method||this.method||"GET"),this.mode=M.mode||this.mode||null,this.signal=M.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(M.cache==="no-store"||M.cache==="no-cache")){var R=/([?&])_=[^&]*/;if(R.test(this.url))this.url=this.url.replace(R,"$1_="+new Date().getTime());else{var D=/\?/;this.url+=(D.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function j(T){var M=new FormData;return T.trim().split("&").forEach(function(L){if(L){var R=L.split("="),D=R.shift().replace(/\+/g," "),I=R.join("=").replace(/\+/g," ");M.append(decodeURIComponent(D),decodeURIComponent(I))}}),M}function K(T){var M=new v,L=T.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(R){return R.indexOf(` -`)===0?R.substr(1,R.length):R}).forEach(function(R){var D=R.split(":"),I=D.shift().trim();if(I){var Q=D.join(":").trim();M.append(I,Q)}}),M}$.call(F.prototype);function ce(T,M){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');M||(M={}),this.type="default",this.status=M.status===void 0?200:M.status,this.ok=this.status>=200&&this.status<300,this.statusText=M.statusText===void 0?"":""+M.statusText,this.headers=new v(M.headers),this.url=M.url||"",this._initBody(T)}$.call(ce.prototype),ce.prototype.clone=function(){return new ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},ce.error=function(){var T=new ce(null,{status:0,statusText:""});return T.type="error",T};var Ze=[301,302,303,307,308];ce.redirect=function(T,M){if(Ze.indexOf(M)===-1)throw new RangeError("Invalid status code");return new ce(null,{status:M,headers:{location:T}})},s.DOMException=a.DOMException;try{new s.DOMException}catch{s.DOMException=function(M,L){this.message=M,this.name=L;var R=Error(M);this.stack=R.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function Re(T,M){return new Promise(function(L,R){var D=new F(T,M);if(D.signal&&D.signal.aborted)return R(new s.DOMException("Aborted","AbortError"));var I=new XMLHttpRequest;function Q(){I.abort()}I.onload=function(){var H={status:I.status,statusText:I.statusText,headers:K(I.getAllResponseHeaders()||"")};H.url="responseURL"in I?I.responseURL:H.headers.get("X-Request-URL");var Je="response"in I?I.response:I.responseText;setTimeout(function(){L(new ce(Je,H))},0)},I.onerror=function(){setTimeout(function(){R(new TypeError("Network request failed"))},0)},I.ontimeout=function(){setTimeout(function(){R(new TypeError("Network request failed"))},0)},I.onabort=function(){setTimeout(function(){R(new s.DOMException("Aborted","AbortError"))},0)};function xe(H){try{return H===""&&a.location.href?a.location.href:H}catch{return H}}I.open(D.method,xe(D.url),!0),D.credentials==="include"?I.withCredentials=!0:D.credentials==="omit"&&(I.withCredentials=!1),"responseType"in I&&(l.blob?I.responseType="blob":l.arrayBuffer&&D.headers.get("Content-Type")&&D.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(I.responseType="arraybuffer")),M&&typeof M.headers=="object"&&!(M.headers instanceof v)?Object.getOwnPropertyNames(M.headers).forEach(function(H){I.setRequestHeader(H,p(M.headers[H]))}):D.headers.forEach(function(H,Je){I.setRequestHeader(Je,H)}),D.signal&&(D.signal.addEventListener("abort",Q),I.onreadystatechange=function(){I.readyState===4&&D.signal.removeEventListener("abort",Q)}),I.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return Re.polyfill=!0,a.fetch||(a.fetch=Re,a.Headers=v,a.Request=F,a.Response=ce),s.Headers=v,s.Request=F,s.Response=ce,s.fetch=Re,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Ka,Ka.exports)),Ka.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof wn<"u"&&wn.fetch?n=wn.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof HN<"u"&&typeof window>"u"){var r=n||KN();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(ph,ph.exports);var pk=ph.exports;const mk=ei(pk),vv=qv({__proto__:null,default:mk},[pk]);function bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=Sv({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},wv?{}:s),l=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{xv(n,a,i,l)}catch(u){if(!s||Object.keys(s).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(s).forEach(function(c){delete a[c]}),xv(n,a,i,l),wv=!0}catch(c){i(c)}}},QN=function(t,n,r,i){r&&Jr(r)==="object"&&(r=mh("",r).slice(1)),t.queryStringParams&&(n=mh(n,t.queryStringParams));try{var o;Ks?o=new Ks:o=new pu("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var a in s)o.setRequestHeader(a,s[a]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(l){console&&console.log(l)}},ZN=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Ln&&n.indexOf("file:")!==0)return YN(t,n,r,i);if(hk()||typeof ActiveXObject=="function")return QN(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}function kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pd(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};JN(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return tF(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Pd(Pd(Pd({},rF()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);so(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,s){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,i)),l=WN(l),l.then(function(u){if(!u)return s(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:i.join("+")});a.loadUrl(c,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,a=typeof i=="string"?[i]:i,l=typeof o=="string"?[o]:o,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(c,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&c&&c.message&&c.message.toLowerCase().indexOf("failed")>-1&&(c.message.indexOf("fetch")>-1||c.message.toLowerCase().indexOf("network")>-1))return r("failed loading "+n+": "+c.message,!0);if(c)return r(c,!1);var f,p;try{typeof d.data=="string"?f=s.options.parse(d.data,i,o):f=d.data}catch{p="failed parsing "+n+" to json"}if(p)return r(p,!1);r(null,f)})}},{key:"create",value:function(n,r,i,o,s){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,i,o),u=0,c=[],d=[];n.forEach(function(f){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(f,r));var y=a.services.interpolator.interpolate(p,{lng:f,ns:r});a.options.request(a.options,y,l,function(v,S){u+=1,c.push(v),d.push(S),u===n.length&&typeof s=="function"&&s(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var f=o.toResolveHierarchy(d);f.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){i.read(c,d,"read",null,null,function(f,p){f&&s.warn("loading namespace ".concat(d," for language ").concat(c," failed"),f),!f&&p&&s.log("loaded namespace ".concat(d," for language ").concat(c),p),i.loaded("".concat(c,"|").concat(d),f,p)})})})}}}])}();vk.type="backend";Qe.use(vk).use(DN).init({fallbackLng:"de"});var iF=function(e,t,n,r,i,o,s,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,s,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},oF=iF;const Cv=ei(oF);var sF=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var s=Object.keys(t),a=Object.keys(n);if(s.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(bk||{}),Ed={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Tv=Object.values(bk),gm={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},lF=Object.entries(gm).reduce((e,[t,n])=>(e[n]=t,e),{}),Wt="data-rh",Hi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ki=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},uF=e=>{let t=Ki(e,"title");const n=Ki(e,Hi.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Ki(e,Hi.DEFAULT_TITLE);return t||r||void 0},cF=e=>Ki(e,Hi.ON_CHANGE_CLIENT_STATE)||(()=>{}),_d=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),dF=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;oconsole&&typeof console.warn=="function"&&console.warn(e),Mo=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&fF(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const s={};o.filter(l=>{let u;const c=Object.keys(l);for(let f=0;fi.push(l));const a=Object.keys(s);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:dF(["href"],e),bodyAttributes:_d("bodyAttributes",e),defer:Ki(e,Hi.DEFER),encode:Ki(e,Hi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:_d("htmlAttributes",e),linkTags:Mo("link",["rel","href"],e),metaTags:Mo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Mo("noscript",["innerHTML"],e),onChangeClientState:cF(e),scriptTags:Mo("script",["src","innerHTML"],e),styleTags:Mo("style",["cssText"],e),title:uF(e),titleAttributes:_d("titleAttributes",e),prioritizeSeoTags:hF(e,Hi.PRIORITIZE_SEO_TAGS)}),Sk=e=>Array.isArray(e)?e.join(""):e,mF=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(mF(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Pv=(e,t)=>({...e,[t]:void 0}),gF=["noscript","script","style"],gh=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),xk=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),yF=(e,t,n,r)=>{const i=xk(n),o=Sk(t);return i?`<${e} ${Wt}="true" ${i}>${gh(o,r)}`:`<${e} ${Wt}="true">${gh(o,r)}`},vF=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,s=Object.keys(o).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof o[c]>"u"?c:`${c}="${gh(o[c],n)}"`;return u?`${u} ${d}`:d},""),a=o.innerHTML||o.cssText||"",l=gF.indexOf(e)===-1;return`${r}<${e} ${Wt}="true" ${s}${l?"/>":`>${a}`}`},""),wk=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=gm[r];return n[i||r]=e[r],n},t),bF=(e,t,n)=>{const r={key:t,[Wt]:!0},i=wk(n,r);return[on.createElement("title",i,t)]},kl=(e,t)=>t.map((n,r)=>{const i={key:r,[Wt]:!0};return Object.keys(n).forEach(o=>{const a=gm[o]||o;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[a]=n[o]}),on.createElement(e,i)}),Rt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>bF(e,t.title,t.titleAttributes),toString:()=>yF(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>wk(t),toString:()=>xk(t)};default:return{toComponent:()=>kl(e,t),toString:()=>vF(e,t,n)}}},SF=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=$d(e,Ed.meta),o=$d(t,Ed.link),s=$d(n,Ed.script);return{priorityMethods:{toComponent:()=>[...kl("meta",i.priority),...kl("link",o.priority),...kl("script",s.priority)],toString:()=>`${Rt("meta",i.priority,r)} ${Rt("link",o.priority,r)} ${Rt("script",s.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:s.default}},xF=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:s,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:c,metaTags:d,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:p,linkTags:c,metaTags:d,scriptTags:f}=SF(e)),{priority:p,base:Rt("base",t,r),bodyAttributes:Rt("bodyAttributes",n,r),htmlAttributes:Rt("htmlAttributes",i,r),link:Rt("link",c,r),meta:Rt("meta",d,r),noscript:Rt("noscript",o,r),script:Rt("script",f,r),style:Rt("style",s,r),title:Rt("title",{title:a,titleAttributes:l},r)}},yh=xF,Ga=[],kk=!!(typeof window<"u"&&window.document&&window.document.createElement),vh=class{constructor(e,t){gn(this,"instances",[]);gn(this,"canUseDOM",kk);gn(this,"context");gn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ga:this.instances,add:e=>{(this.canUseDOM?Ga:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ga:this.instances).indexOf(e);(this.canUseDOM?Ga:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=yh({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},wF={},Ck=on.createContext(wF),Fr,Tk=(Fr=class extends x.Component{constructor(n){super(n);gn(this,"helmetData");this.helmetData=new vh(this.props.context||{},Fr.canUseDOM)}render(){return on.createElement(Ck.Provider,{value:this.helmetData.value},this.props.children)}},gn(Fr,"canUseDOM",kk),Fr),ci=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Wt}]`),i=[].slice.call(r),o=[];let s;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const c=u,d=typeof a[c]>"u"?"":a[c];l.setAttribute(u,d)}l.setAttribute(Wt,"true"),i.some((u,c)=>(s=c,l.isEqualNode(u)))?i.splice(s,1):o.push(l)}),i.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),o.forEach(a=>n.appendChild(a)),{oldTags:i,newTags:o}},bh=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Wt),i=r?r.split(","):[],o=[...i],s=Object.keys(t);for(const a of s){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),i.indexOf(a)===-1&&i.push(a);const u=o.indexOf(a);u!==-1&&o.splice(u,1)}for(let a=o.length-1;a>=0;a-=1)n.removeAttribute(o[a]);i.length===o.length?n.removeAttribute(Wt):n.getAttribute(Wt)!==s.join(",")&&n.setAttribute(Wt,s.join(","))},kF=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Sk(e)),bh("title",t)},Ev=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:s,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:c,title:d,titleAttributes:f}=e;bh("body",r),bh("html",i),kF(d,f);const p={baseTag:ci("base",n),linkTags:ci("link",o),metaTags:ci("meta",s),noscriptTags:ci("noscript",a),scriptTags:ci("script",u),styleTags:ci("style",c)},y={},v={};Object.keys(p).forEach(S=>{const{newTags:m,oldTags:h}=p[S];m.length&&(y[S]=m),h.length&&(v[S]=p[S].oldTags)}),t&&t(),l(e,y,v)},zo=null,CF=e=>{zo&&cancelAnimationFrame(zo),e.defer?zo=requestAnimationFrame(()=>{Ev(e,()=>{zo=null})}):(Ev(e),zo=null)},TF=CF,_v=class extends x.Component{constructor(){super(...arguments);gn(this,"rendered",!1)}shouldComponentUpdate(t){return!aF(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=pF(t.get().map(o=>{const s={...o.props};return delete s.context,s}));Tk.canUseDOM?TF(i):yh&&(r=yh(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Ad,PF=(Ad=class extends x.Component{shouldComponentUpdate(e){return!$S(Pv(this.props,"helmetData"),Pv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Cv(Tv.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Tv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Cv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return on.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,s=Object.keys(o).reduce((l,u)=>(l[lF[u]||u]=o[u],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,s,i);break;default:t=this.mapObjectTypeChildren(r,t,s,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof vh)){const i=r;r=new vh(i.context,!0),delete n.helmetData}return r?on.createElement(_v,{...n,context:r.value}):on.createElement(Ck.Consumer,null,i=>on.createElement(_v,{...n,context:i}))}},gn(Ad,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Ad);const EF=()=>{const{t:e}=VN(),t=sa(),n=r=>t.pathname===r;return O.jsx(Gw,{as:"nav",className:"links",index:n("/")?0:n("/about")?1:-1,children:O.jsxs(qw,{children:[O.jsx(oh,{as:tv,to:"/",isSelected:n("/"),fontSize:"xl",fontWeight:"bold",p:4,children:"OpenPV"},"/"),O.jsx(oh,{as:tv,to:"/about",isSelected:n("/about"),children:e("about.title")},"/about")]})})},ym=e=>O.jsxs(Tk,{children:[O.jsxs(PF,{titleTemplate:"%s | OpenPV",defaultTitle:"OpenPV",defer:!1,children:[e.title&&O.jsx("title",{children:e.title}),O.jsx("meta",{name:"description",content:e.description}),O.jsx("meta",{name:"Beschreibung",content:e.description})]}),O.jsxs(_F,{children:[O.jsx(EF,{}),e.children]})]});ym.propTypes={children:_r.oneOfType([_r.arrayOf(_r.node),_r.node]),fullPage:_r.bool,title:_r.string,description:_r.string};ym.defaultProps={children:null,fullPage:!1,title:null,description:"Ermittle das Potential für eine Solaranlage."};const _F=({children:e})=>O.jsx(ih,{as:"div",display:"flex",margin:"0",maxWidth:"100%",opacity:1,padding:0,width:"100vw",height:"100vh",position:"fixed",left:0,top:0,flexDirection:"column",children:O.jsx(ih,{display:"flex",flexDirection:"column",justifyContent:"space-between",minWidth:0,minHeight:0,overflow:"hidden",flexGrow:1,width:"100%",height:"100%",children:e})});var $F={};const{PUBLIC_URL:RF}=$F,AF=x.lazy(()=>ao(()=>import("./Map-BrJAk4eL.js"),__vite__mapDeps([0,1,2,3,4]))),OF=x.lazy(()=>ao(()=>import("./Simulation-BDBKazo-.js").then(e=>e.S),__vite__mapDeps([5,6,1,2,7]))),LF=x.lazy(()=>ao(()=>import("./NotFound-CI2r9Xpd.js"),[])),MF=x.lazy(()=>ao(()=>import("./Impressum-O1V9FZWa.js"),__vite__mapDeps([8,6]))),zF=x.lazy(()=>ao(()=>import("./Datenschutz-BuuC7UFN.js"),__vite__mapDeps([9,6]))),$v=x.lazy(()=>ao(()=>import("./About-Cy9qfuX9.js"),__vite__mapDeps([10,1,6,7,3])));window.isTouchDevice=IF();const Rv=()=>O.jsx(Aj,{children:O.jsx(on.StrictMode,{children:O.jsx(J4,{basename:RF,children:O.jsx(x.Suspense,{fallback:O.jsx(ym,{}),children:O.jsxs(K4,{children:[O.jsx(Gn,{path:"/",element:O.jsx(AF,{})}),O.jsx(Gn,{path:"/simulation/:lon/:lat",element:O.jsx(OF,{})}),O.jsx(Gn,{path:"/anleitung",element:O.jsx($v,{})}),O.jsx(Gn,{path:"/about",element:O.jsx($v,{})}),O.jsx(Gn,{path:"/impressum",element:O.jsx(MF,{})}),O.jsx(Gn,{path:"/datenschutz",element:O.jsx(zF,{})}),O.jsx(Gn,{path:"*",element:O.jsx(LF,{})})]})})})})}),Rd=document.getElementById("root");Rd.hasChildNodes()?Xw(Rd,O.jsx(Rv,{})):Yw(Rd).render(O.jsx(Rv,{}));function IF(){const e="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,t=window.matchMedia("(pointer: coarse)").matches;return console.log(e&&t?"The device is of type touch.":"The device is a laptop."),e&&t}export{OS as $,LI as A,ih as B,KO as C,AS as D,ET as E,BF as F,kT as G,ei as H,ea as I,MS as J,jS as K,DS as L,ym as M,$l as N,XF as O,rc as P,UF as Q,on as R,Tk as S,PF as T,tv as U,GF as V,Ht as W,dT as X,FF as Y,NF as Z,ao as _,m3 as a,VF as a0,FM as a1,a1 as a2,Qe as a3,WF as a4,wn as a5,qF as b,it as c,x as d,fm as e,Fn as f,VN as g,A4 as h,jF as i,O as j,Ya as k,Nn as l,_I as m,zd as n,u1 as o,Km as p,hT as q,sn as r,Md as s,ns as t,i3 as u,gu as v,bp as w,vu as x,Xt as y,r3 as z}; + */function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function q4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function X4(e,t){return e.button===0&&(!t||t==="_self")&&!q4(e)}const Y4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Q4="6";try{window.__reactRouterVersion=Q4}catch{}const Z4="startTransition",ev=Od[Z4];function J4(e){let{basename:t,children:n,future:r,window:i}=e,o=x.useRef();o.current==null&&(o.current=i4({window:i,v5Compat:!0}));let s=o.current,[a,l]=x.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=x.useCallback(d=>{u&&ev?ev(()=>l(d)):l(d)},[l,u]);return x.useLayoutEffect(()=>s.listen(c),[s,c]),x.createElement(H4,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const eN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tv=x.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=G4(t,Y4),{basename:p}=x.useContext(ri),v,y=!1;if(typeof u=="string"&&tN.test(u)&&(v=u,eN))try{let g=new URL(window.location.href),w=u.startsWith("//")?new URL(g.protocol+u):new URL(u),P=pm(w.pathname,p);w.origin===g.origin&&P!=null?u=P+w.search+w.hash:y=!0}catch{}let S=R4(u,{relative:i}),m=nN(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:d});function h(g){r&&r(g),g.defaultPrevented||m(g)}return x.createElement("a",lh({},f,{href:v||S,onClick:y||o?r:h,ref:n,target:l}))});var nv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(nv||(nv={}));var rv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rv||(rv={}));function nN(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=A4(),u=sa(),c=ok(e,{relative:s});return x.useCallback(d=>{if(X4(d,n)){d.preventDefault();let f=r!==void 0?r:lu(u)===lu(c);l(e,{replace:f,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[u,l,c,r,i,n,e,o,s,a])}const rN={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class cu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||rN,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[a,l]=s;for(let u=0;u{let[a,l]=s;for(let u=0;u{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},iv=e=>e==null?"":""+e,iN=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},oN=/###/g,ov=e=>e&&e.indexOf("###")>-1?e.replace(oN,"."):e,sv=e=>!e||typeof e=="string",fs=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let i=0;for(;i{const{obj:r,k:i}=fs(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=fs(e,s,Object);for(;a.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=fs(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},sN=(e,t,n,r)=>{const{obj:i,k:o}=fs(e,t,Object);i[o]=i[o]||[],i[o].push(n)},du=(e,t)=>{const{obj:n,k:r}=fs(e,t);if(n)return n[r]},aN=(e,t,n)=>{const r=du(e,n);return r!==void 0?r:du(t,n)},lk=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):lk(e[r],t[r],n):e[r]=t[r]);return e},li=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var lN={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const uN=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>lN[t]):e;class cN{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const dN=[" ",",","?","!",";"],fN=new cN(20),hN=(e,t,n)=>{t=t||"",n=n||"";const r=dN.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const i=fN.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!i.test(e);if(!o){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o},uh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&le&&e.indexOf("_")>0?e.replace("_","-"):e;class lv extends oc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):typeof r=="string"&&o?a.push(...r.split(o)):a.push(r)));const l=du(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||typeof r!="string"?l:uh(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),av(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=du(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?lk(l,r,o):l={...l,...r},av(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var uk={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const uv={};class hu extends oc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),iN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ln.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!hN(t,r,i);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${w}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let f=d&&d.res;const p=d&&d.usedKey||s,v=d&&d.exactUsedKey||s,y=Object.prototype.toString.apply(f),S=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,h=!this.i18nFormat||this.i18nFormat.handleAsObject;if(h&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&S.indexOf(y)<0&&!(typeof m=="string"&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(d.res=w,d.usedParams=this.getUsedParamsDetails(n),d):w}if(o){const w=Array.isArray(f),P=w?[]:{},$=w?v:p;for(const _ in f)if(Object.prototype.hasOwnProperty.call(f,_)){const A=`${$}${o}${_}`;P[_]=this.translate(A,{...n,joinArrays:!1,ns:a}),P[_]===A&&(P[_]=f[_])}f=P}}else if(h&&typeof m=="string"&&Array.isArray(f))f=f.join(m),f&&(f=this.extendTranslation(f,t,n,r));else{let w=!1,P=!1;const $=n.count!==void 0&&typeof n.count!="string",_=hu.hasDefaultValue(n),A=$?this.pluralResolver.getSuffix(u,n.count,n):"",F=n.ordinal&&$?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",j=$&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),K=j&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${A}`]||n[`defaultValue${F}`]||n.defaultValue;!this.isValidLookup(f)&&_&&(w=!0,f=K),this.isValidLookup(f)||(P=!0,f=s);const Ze=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:f,Re=_&&K!==f&&this.options.updateMissing;if(P||w||Re){if(this.logger.log(Re?"updateKey":"missingKey",u,l,s,Re?K:f),o){const R=this.resolve(s,{...n,keySeparator:!1});R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let T=[];const M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&M&&M[0])for(let R=0;R{const Q=_&&I!==f?I:Ze;this.options.missingKeyHandler?this.options.missingKeyHandler(R,l,D,Q,Re,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(R,l,D,Q,Re,n),this.emit("missingKey",R,l,D,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?T.forEach(R=>{const D=this.pluralResolver.getSuffixes(R,n);j&&n[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(I=>{L([R],s+I,n[`defaultValue${I}`]||K)})}):L(T,s,K))}f=this.extendTranslation(f,t,n,d,r),P&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(P||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,w?f:void 0):f=this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,i,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||i.usedLng,r),u){const f=t.match(this.interpolator.nestingRegexp),p=f&&f.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,s,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",p=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(a=S,!uv[`${y[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(uv[`${y[0]}-${S}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(m=>{if(this.isValidLookup(r))return;s=m;const h=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(h,c,m,S,n);else{let w;f&&(w=this.pluralResolver.getSuffix(m,n.count,n));const P=`${this.options.pluralSeparator}zero`,$=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(h.push(c+w),n.ordinal&&w.indexOf($)===0&&h.push(c+w.replace($,this.options.pluralSeparator)),p&&h.push(c+P)),v){const _=`${c}${this.options.contextSeparator}${n.context}`;h.push(_),f&&(h.push(_+w),n.ordinal&&w.indexOf($)===0&&h.push(_+w.replace($,this.options.pluralSeparator)),p&&h.push(_+P))}}let g;for(;g=h.pop();)this.isValidLookup(r)||(o=g,r=this.getResource(m,S,g,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Cd=e=>e.charAt(0).toUpperCase()+e.slice(1);class cv{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ln.create("languageUtils")}getScriptPartFromCode(t){if(t=fu(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=fu(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Cd(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Cd(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Cd(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(s=>{i.indexOf(s)<0&&o(this.formatLanguageCode(s))}),i}}let pN=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],mN={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const gN=["v1","v2","v3"],yN=["v4"],dv={zero:0,one:1,two:2,few:3,many:4,other:5},vN=()=>{const e={};return pN.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:mN[t.fc]}})}),e};class bN{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=ln.create("pluralResolver"),(!this.options.compatibilityJSON||yN.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=vN(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=fu(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const s=new Intl.PluralRules(r,{type:i});return this.pluralRulesCache[o]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>dv[i]-dv[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!gN.includes(this.options.compatibilityJSON)}}const fv=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=aN(e,t,n);return!o&&i&&typeof n=="string"&&(o=uh(e,n,r),o===void 0&&(o=uh(t,n,r))),o},Td=e=>e.replace(/\$/g,"$$$$");class SN{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ln.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:v,nestingSuffixEscaped:y,nestingOptionsSeparator:S,maxReplaces:m,alwaysFormat:h}=t.interpolation;this.escape=n!==void 0?n:uN,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?li(o):s||"{{",this.suffix=a?li(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?li(f):p||li("$t("),this.nestingSuffix=v?li(v):y||li(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=m||1e3,this.alwaysFormat=h!==void 0?h:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const m=fv(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...i,...n,interpolationkey:p}):m}const v=p.split(this.formatSeparator),y=v.shift().trim(),S=v.join(this.formatSeparator).trim();return this.format(fv(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...i,...n,interpolationkey:y})};this.resetRegExp();const c=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>Td(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?Td(this.escape(p)):Td(p)}].forEach(p=>{for(a=0;o=p.regex.exec(t);){const v=o[1].trim();if(s=u(v),s===void 0)if(typeof c=="function"){const S=c(t,o,i);s=typeof S=="string"?S:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))s="";else if(d){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=iv(s));const y=p.safeValue(s);if(t=t.replace(o[0],y),d?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=o[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,s;const a=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const p=f.match(/'/g),v=f.match(/"/g);(p&&p.length%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),l=c,u=!0}if(o=n(a.call(this,i[1].trim(),s),s),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=iv(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const xN=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},ui=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=r+JSON.stringify(o);let a=t[s];return a||(a=e(fu(r),i),t[s]=a),a(n)}};class wN{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ln.create("formatter"),this.options=t,this.formats={number:ui((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:ui((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:ui((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:ui((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:ui((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ui(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(a=>a.indexOf(")")>-1)){const a=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,a)].join(this.formatSeparator)}return o.reduce((a,l)=>{const{formatName:u,formatOptions:c}=xN(l);if(this.formats[u]){let d=a;try{const f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},p=f.locale||f.lng||i.locale||i.lng||r;d=this.formats[u](a,p,{...c,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}const kN=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class CN extends oc{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=ln.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},s={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),o[f]===void 0&&(o[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),!n&&r&&this.store.addResourceBundle(o,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{sN(l.loaded,[o],s),kN(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:s});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&i{this.read.call(this,t,n,r,i+1,o*2,s)},o);return}s(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,l):c=u(t,n,r,i),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,i,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const hv=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),pv=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ha=()=>{},TN=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Hs extends oc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=pv(t),this.services={},this.logger=ln,this.modules={external:[]},TN(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=hv();this.options={...i,...this.options,...pv(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?ln.init(o(this.modules.logger),this.options):ln.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=wN);const d=new cv(this.options);this.store=new lv(this.options.resources,this.options);const f=this.services;f.logger=ln,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new bN(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=o(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new SN(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new CN(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(p){for(var v=arguments.length,y=new Array(v>1?v-1:0),S=1;S1?v-1:0),S=1;S{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Ha),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=Lo(),u=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),r(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ha;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=Lo();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Ha),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&uk.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Lo();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),i}getFixedT(t,n,r){var i=this;const o=function(s,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d`${l.keyPrefix}${f}${v}`):p=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,i.t(p,l)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}loadNamespaces(t,n){const r=Lo();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Lo();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(s=>i.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new cv(hv());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Hs(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ha;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Hs(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new lv(this.store.data,i),o.services.resourceStore=o.store),o.translator=new hu(o.services,i),o.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c{console!=null&&console.warn&&(Gr(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},mv={},ch=(...e)=>{Gr(e[0])&&mv[e[0]]||(Gr(e[0])&&(mv[e[0]]=new Date),PN(...e))},ck=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},dh=(e,t,n)=>{e.loadNamespaces(t,ck(e,n))},gv=(e,t,n,r)=>{if(Gr(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return dh(e,n,r);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,ck(e,r))},EN=(e,t,n={})=>!t.languages||!t.languages.length?(ch("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),Gr=e=>typeof e=="string",_N=e=>typeof e=="object"&&e!==null,$N=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,RN={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},AN=e=>RN[e],ON=e=>e.replace($N,AN);let fh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ON};const LN=(e={})=>{fh={...fh,...e}},MN=()=>fh;let dk;const zN=e=>{dk=e},IN=()=>dk,DN={type:"3rdParty",init(e){LN(e.options.react),zN(e)}},jN=x.createContext();class NN{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const FN=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},fk=(e,t,n,r)=>e.getFixedT(t,n,r),BN=(e,t,n,r)=>x.useCallback(fk(e,t,n,r),[e,t,n,r]),VN=(e,t={})=>{var w,P,$,_;const{i18n:n}=t,{i18n:r,defaultNS:i}=x.useContext(jN)||{},o=n||r||IN();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new NN),!o){ch("You will need to pass in an i18next instance by using initReactI18next");const A=(j,K)=>Gr(K)?K:_N(K)&&Gr(K.defaultValue)?K.defaultValue:Array.isArray(j)?j[j.length-1]:j,F=[A,{},!1];return F.t=A,F.i18n={},F.ready=!1,F}(w=o.options.react)!=null&&w.wait&&ch("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...MN(),...o.options.react,...t},{useSuspense:a,keyPrefix:l}=s;let u=i||((P=o.options)==null?void 0:P.defaultNS);u=Gr(u)?[u]:u||["translation"],(_=($=o.reportNamespaces).addUsedNamespaces)==null||_.call($,u);const c=(o.isInitialized||o.initializedStoreOnce)&&u.every(A=>EN(A,o,s)),d=BN(o,t.lng||null,s.nsMode==="fallback"?u:u[0],l),f=()=>d,p=()=>fk(o,t.lng||null,s.nsMode==="fallback"?u:u[0],l),[v,y]=x.useState(f);let S=u.join();t.lng&&(S=`${t.lng}${S}`);const m=FN(S),h=x.useRef(!0);x.useEffect(()=>{const{bindI18n:A,bindI18nStore:F}=s;h.current=!0,!c&&!a&&(t.lng?gv(o,t.lng,u,()=>{h.current&&y(p)}):dh(o,u,()=>{h.current&&y(p)})),c&&m&&m!==S&&h.current&&y(p);const j=()=>{h.current&&y(p)};return A&&(o==null||o.on(A,j)),F&&(o==null||o.store.on(F,j)),()=>{h.current=!1,o&&(A==null||A.split(" ").forEach(K=>o.off(K,j))),F&&o&&F.split(" ").forEach(K=>o.store.off(K,j))}},[o,S]),x.useEffect(()=>{h.current&&c&&y(f)},[o,l,c]);const g=[v,o,c];if(g.t=v,g.i18n=o,g.ready=c,c||!c&&!a)return g;throw new Promise(A=>{t.lng?gv(o,t.lng,u,()=>A()):dh(o,u,()=>A())})};function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(e)}function hk(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":hh(XMLHttpRequest))==="object"}function UN(e){return!!e&&typeof e.then=="function"}function WN(e){return UN(e)?e:Promise.resolve(e)}function HN(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ph={exports:{}},Ka={exports:{}},yv;function KN(){return yv||(yv=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof wn<"u"&&wn,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var a=typeof o<"u"&&o||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(T){return T&&DataView.prototype.isPrototypeOf(T)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(T){return T&&c.indexOf(Object.prototype.toString.call(T))>-1};function f(T){if(typeof T!="string"&&(T=String(T)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(T)||T==="")throw new TypeError('Invalid character in header field name: "'+T+'"');return T.toLowerCase()}function p(T){return typeof T!="string"&&(T=String(T)),T}function v(T){var M={next:function(){var L=T.shift();return{done:L===void 0,value:L}}};return l.iterable&&(M[Symbol.iterator]=function(){return M}),M}function y(T){this.map={},T instanceof y?T.forEach(function(M,L){this.append(L,M)},this):Array.isArray(T)?T.forEach(function(M){this.append(M[0],M[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(M){this.append(M,T[M])},this)}y.prototype.append=function(T,M){T=f(T),M=p(M);var L=this.map[T];this.map[T]=L?L+", "+M:M},y.prototype.delete=function(T){delete this.map[f(T)]},y.prototype.get=function(T){return T=f(T),this.has(T)?this.map[T]:null},y.prototype.has=function(T){return this.map.hasOwnProperty(f(T))},y.prototype.set=function(T,M){this.map[f(T)]=p(M)},y.prototype.forEach=function(T,M){for(var L in this.map)this.map.hasOwnProperty(L)&&T.call(M,this.map[L],L,this)},y.prototype.keys=function(){var T=[];return this.forEach(function(M,L){T.push(L)}),v(T)},y.prototype.values=function(){var T=[];return this.forEach(function(M){T.push(M)}),v(T)},y.prototype.entries=function(){var T=[];return this.forEach(function(M,L){T.push([L,M])}),v(T)},l.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(T){if(T.bodyUsed)return Promise.reject(new TypeError("Already read"));T.bodyUsed=!0}function m(T){return new Promise(function(M,L){T.onload=function(){M(T.result)},T.onerror=function(){L(T.error)}})}function h(T){var M=new FileReader,L=m(M);return M.readAsArrayBuffer(T),L}function g(T){var M=new FileReader,L=m(M);return M.readAsText(T),L}function w(T){for(var M=new Uint8Array(T),L=new Array(M.length),R=0;R-1?M:T}function F(T,M){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');M=M||{};var L=M.body;if(T instanceof F){if(T.bodyUsed)throw new TypeError("Already read");this.url=T.url,this.credentials=T.credentials,M.headers||(this.headers=new y(T.headers)),this.method=T.method,this.mode=T.mode,this.signal=T.signal,!L&&T._bodyInit!=null&&(L=T._bodyInit,T.bodyUsed=!0)}else this.url=String(T);if(this.credentials=M.credentials||this.credentials||"same-origin",(M.headers||!this.headers)&&(this.headers=new y(M.headers)),this.method=A(M.method||this.method||"GET"),this.mode=M.mode||this.mode||null,this.signal=M.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(M.cache==="no-store"||M.cache==="no-cache")){var R=/([?&])_=[^&]*/;if(R.test(this.url))this.url=this.url.replace(R,"$1_="+new Date().getTime());else{var D=/\?/;this.url+=(D.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function j(T){var M=new FormData;return T.trim().split("&").forEach(function(L){if(L){var R=L.split("="),D=R.shift().replace(/\+/g," "),I=R.join("=").replace(/\+/g," ");M.append(decodeURIComponent(D),decodeURIComponent(I))}}),M}function K(T){var M=new y,L=T.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(R){return R.indexOf(` +`)===0?R.substr(1,R.length):R}).forEach(function(R){var D=R.split(":"),I=D.shift().trim();if(I){var Q=D.join(":").trim();M.append(I,Q)}}),M}$.call(F.prototype);function ce(T,M){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');M||(M={}),this.type="default",this.status=M.status===void 0?200:M.status,this.ok=this.status>=200&&this.status<300,this.statusText=M.statusText===void 0?"":""+M.statusText,this.headers=new y(M.headers),this.url=M.url||"",this._initBody(T)}$.call(ce.prototype),ce.prototype.clone=function(){return new ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},ce.error=function(){var T=new ce(null,{status:0,statusText:""});return T.type="error",T};var Ze=[301,302,303,307,308];ce.redirect=function(T,M){if(Ze.indexOf(M)===-1)throw new RangeError("Invalid status code");return new ce(null,{status:M,headers:{location:T}})},s.DOMException=a.DOMException;try{new s.DOMException}catch{s.DOMException=function(M,L){this.message=M,this.name=L;var R=Error(M);this.stack=R.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function Re(T,M){return new Promise(function(L,R){var D=new F(T,M);if(D.signal&&D.signal.aborted)return R(new s.DOMException("Aborted","AbortError"));var I=new XMLHttpRequest;function Q(){I.abort()}I.onload=function(){var H={status:I.status,statusText:I.statusText,headers:K(I.getAllResponseHeaders()||"")};H.url="responseURL"in I?I.responseURL:H.headers.get("X-Request-URL");var Je="response"in I?I.response:I.responseText;setTimeout(function(){L(new ce(Je,H))},0)},I.onerror=function(){setTimeout(function(){R(new TypeError("Network request failed"))},0)},I.ontimeout=function(){setTimeout(function(){R(new TypeError("Network request failed"))},0)},I.onabort=function(){setTimeout(function(){R(new s.DOMException("Aborted","AbortError"))},0)};function xe(H){try{return H===""&&a.location.href?a.location.href:H}catch{return H}}I.open(D.method,xe(D.url),!0),D.credentials==="include"?I.withCredentials=!0:D.credentials==="omit"&&(I.withCredentials=!1),"responseType"in I&&(l.blob?I.responseType="blob":l.arrayBuffer&&D.headers.get("Content-Type")&&D.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(I.responseType="arraybuffer")),M&&typeof M.headers=="object"&&!(M.headers instanceof y)?Object.getOwnPropertyNames(M.headers).forEach(function(H){I.setRequestHeader(H,p(M.headers[H]))}):D.headers.forEach(function(H,Je){I.setRequestHeader(Je,H)}),D.signal&&(D.signal.addEventListener("abort",Q),I.onreadystatechange=function(){I.readyState===4&&D.signal.removeEventListener("abort",Q)}),I.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return Re.polyfill=!0,a.fetch||(a.fetch=Re,a.Headers=y,a.Request=F,a.Response=ce),s.Headers=y,s.Request=F,s.Response=ce,s.fetch=Re,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Ka,Ka.exports)),Ka.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof wn<"u"&&wn.fetch?n=wn.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof HN<"u"&&typeof window>"u"){var r=n||KN();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(ph,ph.exports);var pk=ph.exports;const mk=ei(pk),vv=qv({__proto__:null,default:mk},[pk]);function bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=Sv({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},wv?{}:s),l=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{xv(n,a,i,l)}catch(u){if(!s||Object.keys(s).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(s).forEach(function(c){delete a[c]}),xv(n,a,i,l),wv=!0}catch(c){i(c)}}},QN=function(t,n,r,i){r&&Jr(r)==="object"&&(r=mh("",r).slice(1)),t.queryStringParams&&(n=mh(n,t.queryStringParams));try{var o;Ks?o=new Ks:o=new pu("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var a in s)o.setRequestHeader(a,s[a]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(l){console&&console.log(l)}},ZN=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Ln&&n.indexOf("file:")!==0)return YN(t,n,r,i);if(hk()||typeof ActiveXObject=="function")return QN(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}function kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pd(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};JN(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return tF(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Pd(Pd(Pd({},rF()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);so(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,s){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,i)),l=WN(l),l.then(function(u){if(!u)return s(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:i.join("+")});a.loadUrl(c,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,a=typeof i=="string"?[i]:i,l=typeof o=="string"?[o]:o,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(c,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&c&&c.message){var f=c.message.toLowerCase(),p=["failed","fetch","network","load"].find(function(S){return f.indexOf(S)>-1});if(p)return r("failed loading "+n+": "+c.message,!0)}if(c)return r(c,!1);var v,y;try{typeof d.data=="string"?v=s.options.parse(d.data,i,o):v=d.data}catch{y="failed parsing "+n+" to json"}if(y)return r(y,!1);r(null,v)})}},{key:"create",value:function(n,r,i,o,s){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,i,o),u=0,c=[],d=[];n.forEach(function(f){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(f,r));var v=a.services.interpolator.interpolate(p,{lng:f,ns:r});a.options.request(a.options,v,l,function(y,S){u+=1,c.push(y),d.push(S),u===n.length&&typeof s=="function"&&s(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var f=o.toResolveHierarchy(d);f.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){i.read(c,d,"read",null,null,function(f,p){f&&s.warn("loading namespace ".concat(d," for language ").concat(c," failed"),f),!f&&p&&s.log("loaded namespace ".concat(d," for language ").concat(c),p),i.loaded("".concat(c,"|").concat(d),f,p)})})})}}}])}();vk.type="backend";Qe.use(vk).use(DN).init({fallbackLng:"de"});var iF=function(e,t,n,r,i,o,s,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,s,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},oF=iF;const Cv=ei(oF);var sF=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var s=Object.keys(t),a=Object.keys(n);if(s.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(bk||{}),Ed={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Tv=Object.values(bk),gm={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},lF=Object.entries(gm).reduce((e,[t,n])=>(e[n]=t,e),{}),Wt="data-rh",Hi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ki=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},uF=e=>{let t=Ki(e,"title");const n=Ki(e,Hi.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Ki(e,Hi.DEFAULT_TITLE);return t||r||void 0},cF=e=>Ki(e,Hi.ON_CHANGE_CLIENT_STATE)||(()=>{}),_d=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),dF=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;oconsole&&typeof console.warn=="function"&&console.warn(e),Mo=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&fF(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const s={};o.filter(l=>{let u;const c=Object.keys(l);for(let f=0;fi.push(l));const a=Object.keys(s);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:dF(["href"],e),bodyAttributes:_d("bodyAttributes",e),defer:Ki(e,Hi.DEFER),encode:Ki(e,Hi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:_d("htmlAttributes",e),linkTags:Mo("link",["rel","href"],e),metaTags:Mo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Mo("noscript",["innerHTML"],e),onChangeClientState:cF(e),scriptTags:Mo("script",["src","innerHTML"],e),styleTags:Mo("style",["cssText"],e),title:uF(e),titleAttributes:_d("titleAttributes",e),prioritizeSeoTags:hF(e,Hi.PRIORITIZE_SEO_TAGS)}),Sk=e=>Array.isArray(e)?e.join(""):e,mF=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(mF(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Pv=(e,t)=>({...e,[t]:void 0}),gF=["noscript","script","style"],gh=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),xk=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),yF=(e,t,n,r)=>{const i=xk(n),o=Sk(t);return i?`<${e} ${Wt}="true" ${i}>${gh(o,r)}`:`<${e} ${Wt}="true">${gh(o,r)}`},vF=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,s=Object.keys(o).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof o[c]>"u"?c:`${c}="${gh(o[c],n)}"`;return u?`${u} ${d}`:d},""),a=o.innerHTML||o.cssText||"",l=gF.indexOf(e)===-1;return`${r}<${e} ${Wt}="true" ${s}${l?"/>":`>${a}`}`},""),wk=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=gm[r];return n[i||r]=e[r],n},t),bF=(e,t,n)=>{const r={key:t,[Wt]:!0},i=wk(n,r);return[on.createElement("title",i,t)]},kl=(e,t)=>t.map((n,r)=>{const i={key:r,[Wt]:!0};return Object.keys(n).forEach(o=>{const a=gm[o]||o;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[a]=n[o]}),on.createElement(e,i)}),Rt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>bF(e,t.title,t.titleAttributes),toString:()=>yF(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>wk(t),toString:()=>xk(t)};default:return{toComponent:()=>kl(e,t),toString:()=>vF(e,t,n)}}},SF=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=$d(e,Ed.meta),o=$d(t,Ed.link),s=$d(n,Ed.script);return{priorityMethods:{toComponent:()=>[...kl("meta",i.priority),...kl("link",o.priority),...kl("script",s.priority)],toString:()=>`${Rt("meta",i.priority,r)} ${Rt("link",o.priority,r)} ${Rt("script",s.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:s.default}},xF=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:s,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:c,metaTags:d,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:p,linkTags:c,metaTags:d,scriptTags:f}=SF(e)),{priority:p,base:Rt("base",t,r),bodyAttributes:Rt("bodyAttributes",n,r),htmlAttributes:Rt("htmlAttributes",i,r),link:Rt("link",c,r),meta:Rt("meta",d,r),noscript:Rt("noscript",o,r),script:Rt("script",f,r),style:Rt("style",s,r),title:Rt("title",{title:a,titleAttributes:l},r)}},yh=xF,Ga=[],kk=!!(typeof window<"u"&&window.document&&window.document.createElement),vh=class{constructor(e,t){gn(this,"instances",[]);gn(this,"canUseDOM",kk);gn(this,"context");gn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ga:this.instances,add:e=>{(this.canUseDOM?Ga:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ga:this.instances).indexOf(e);(this.canUseDOM?Ga:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=yh({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},wF={},Ck=on.createContext(wF),Fr,Tk=(Fr=class extends x.Component{constructor(n){super(n);gn(this,"helmetData");this.helmetData=new vh(this.props.context||{},Fr.canUseDOM)}render(){return on.createElement(Ck.Provider,{value:this.helmetData.value},this.props.children)}},gn(Fr,"canUseDOM",kk),Fr),ci=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Wt}]`),i=[].slice.call(r),o=[];let s;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const c=u,d=typeof a[c]>"u"?"":a[c];l.setAttribute(u,d)}l.setAttribute(Wt,"true"),i.some((u,c)=>(s=c,l.isEqualNode(u)))?i.splice(s,1):o.push(l)}),i.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),o.forEach(a=>n.appendChild(a)),{oldTags:i,newTags:o}},bh=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Wt),i=r?r.split(","):[],o=[...i],s=Object.keys(t);for(const a of s){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),i.indexOf(a)===-1&&i.push(a);const u=o.indexOf(a);u!==-1&&o.splice(u,1)}for(let a=o.length-1;a>=0;a-=1)n.removeAttribute(o[a]);i.length===o.length?n.removeAttribute(Wt):n.getAttribute(Wt)!==s.join(",")&&n.setAttribute(Wt,s.join(","))},kF=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Sk(e)),bh("title",t)},Ev=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:s,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:c,title:d,titleAttributes:f}=e;bh("body",r),bh("html",i),kF(d,f);const p={baseTag:ci("base",n),linkTags:ci("link",o),metaTags:ci("meta",s),noscriptTags:ci("noscript",a),scriptTags:ci("script",u),styleTags:ci("style",c)},v={},y={};Object.keys(p).forEach(S=>{const{newTags:m,oldTags:h}=p[S];m.length&&(v[S]=m),h.length&&(y[S]=p[S].oldTags)}),t&&t(),l(e,v,y)},zo=null,CF=e=>{zo&&cancelAnimationFrame(zo),e.defer?zo=requestAnimationFrame(()=>{Ev(e,()=>{zo=null})}):(Ev(e),zo=null)},TF=CF,_v=class extends x.Component{constructor(){super(...arguments);gn(this,"rendered",!1)}shouldComponentUpdate(t){return!aF(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=pF(t.get().map(o=>{const s={...o.props};return delete s.context,s}));Tk.canUseDOM?TF(i):yh&&(r=yh(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Ad,PF=(Ad=class extends x.Component{shouldComponentUpdate(e){return!$S(Pv(this.props,"helmetData"),Pv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Cv(Tv.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Tv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Cv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return on.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,s=Object.keys(o).reduce((l,u)=>(l[lF[u]||u]=o[u],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,s,i);break;default:t=this.mapObjectTypeChildren(r,t,s,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof vh)){const i=r;r=new vh(i.context,!0),delete n.helmetData}return r?on.createElement(_v,{...n,context:r.value}):on.createElement(Ck.Consumer,null,i=>on.createElement(_v,{...n,context:i}))}},gn(Ad,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Ad);const EF=()=>{const{t:e}=VN(),t=sa(),n=r=>t.pathname===r;return O.jsx(Gw,{as:"nav",className:"links",index:n("/")?0:n("/about")?1:-1,children:O.jsxs(qw,{children:[O.jsx(oh,{as:tv,to:"/",isSelected:n("/"),fontSize:"xl",fontWeight:"bold",p:4,children:"OpenPV"},"/"),O.jsx(oh,{as:tv,to:"/about",isSelected:n("/about"),children:e("about.title")},"/about")]})})},ym=e=>O.jsxs(Tk,{children:[O.jsxs(PF,{titleTemplate:"%s | OpenPV",defaultTitle:"OpenPV",defer:!1,children:[e.title&&O.jsx("title",{children:e.title}),O.jsx("meta",{name:"description",content:e.description}),O.jsx("meta",{name:"Beschreibung",content:e.description})]}),O.jsxs(_F,{children:[O.jsx(EF,{}),e.children]})]});ym.propTypes={children:_r.oneOfType([_r.arrayOf(_r.node),_r.node]),fullPage:_r.bool,title:_r.string,description:_r.string};ym.defaultProps={children:null,fullPage:!1,title:null,description:"Ermittle das Potential für eine Solaranlage."};const _F=({children:e})=>O.jsx(ih,{as:"div",display:"flex",margin:"0",maxWidth:"100%",opacity:1,padding:0,width:"100vw",height:"100vh",position:"fixed",left:0,top:0,flexDirection:"column",children:O.jsx(ih,{display:"flex",flexDirection:"column",justifyContent:"space-between",minWidth:0,minHeight:0,overflow:"hidden",flexGrow:1,width:"100%",height:"100%",children:e})});var $F={};const{PUBLIC_URL:RF}=$F,AF=x.lazy(()=>ao(()=>import("./Map-D9xkNy6Y.js"),__vite__mapDeps([0,1,2,3,4]))),OF=x.lazy(()=>ao(()=>import("./Simulation-RZxs6R_p.js").then(e=>e.S),__vite__mapDeps([5,6,1,2,7]))),LF=x.lazy(()=>ao(()=>import("./NotFound-B7VH-638.js"),[])),MF=x.lazy(()=>ao(()=>import("./Impressum-CgX14S4L.js"),__vite__mapDeps([8,6]))),zF=x.lazy(()=>ao(()=>import("./Datenschutz-Cu6H6gyQ.js"),__vite__mapDeps([9,6]))),$v=x.lazy(()=>ao(()=>import("./About-i5R1jy45.js"),__vite__mapDeps([10,1,6,7,3])));window.isTouchDevice=IF();const Rv=()=>O.jsx(Aj,{children:O.jsx(on.StrictMode,{children:O.jsx(J4,{basename:RF,children:O.jsx(x.Suspense,{fallback:O.jsx(ym,{}),children:O.jsxs(K4,{children:[O.jsx(Gn,{path:"/",element:O.jsx(AF,{})}),O.jsx(Gn,{path:"/simulation/:lon/:lat",element:O.jsx(OF,{})}),O.jsx(Gn,{path:"/anleitung",element:O.jsx($v,{})}),O.jsx(Gn,{path:"/about",element:O.jsx($v,{})}),O.jsx(Gn,{path:"/impressum",element:O.jsx(MF,{})}),O.jsx(Gn,{path:"/datenschutz",element:O.jsx(zF,{})}),O.jsx(Gn,{path:"*",element:O.jsx(LF,{})})]})})})})}),Rd=document.getElementById("root");Rd.hasChildNodes()?Xw(Rd,O.jsx(Rv,{})):Yw(Rd).render(O.jsx(Rv,{}));function IF(){const e="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,t=window.matchMedia("(pointer: coarse)").matches;return console.log(e&&t?"The device is of type touch.":"The device is a laptop."),e&&t}export{OS as $,LI as A,ih as B,KO as C,AS as D,ET as E,BF as F,kT as G,ei as H,ea as I,MS as J,jS as K,DS as L,ym as M,$l as N,XF as O,rc as P,UF as Q,on as R,Tk as S,PF as T,tv as U,GF as V,Ht as W,dT as X,FF as Y,NF as Z,ao as _,m3 as a,VF as a0,FM as a1,a1 as a2,Qe as a3,WF as a4,wn as a5,qF as b,it as c,x as d,fm as e,Fn as f,VN as g,A4 as h,jF as i,O as j,Ya as k,Nn as l,_I as m,zd as n,u1 as o,Km as p,hT as q,sn as r,Md as s,ns as t,i3 as u,gu as v,bp as w,vu as x,Xt as y,r3 as z}; diff --git a/assets/lerc-44IRF6I9.js b/assets/lerc-cqroyPOz.js similarity index 99% rename from assets/lerc-44IRF6I9.js rename to assets/lerc-cqroyPOz.js index d40adc5..a7c2b8f 100644 --- a/assets/lerc-44IRF6I9.js +++ b/assets/lerc-cqroyPOz.js @@ -1 +1 @@ -import{L as oA,a as gA,i as sA}from"./Simulation-BDBKazo-.js";import{H as DA}from"./index-Ba81FydE.js";import{B as nA}from"./basedecoder-DvumDe3Y.js";import"./heading-GfTBNZPF.js";import"./Footer-BEVKcqw5.js";import"./location-B7dRf9MH.js";import"./stack-B6rX1mqT.js";var iA={exports:{}};(function(j){/* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */(function(){var J=function(){var u={};u.defaultNoDataValue=-34027999387901484e22,u.decode=function(I,a){a=a||{};var Q=a.encodedMaskData||a.encodedMaskData===null,g=E(I,a.inputOffset||0,Q),D=a.noDataValue!==null?a.noDataValue:u.defaultNoDataValue,B=L(g,a.pixelType||Float32Array,a.encodedMaskData,D,a.returnMask),C={width:g.width,height:g.height,pixelData:B.resultPixels,minValue:B.minValue,maxValue:g.pixels.maxValue,noDataValue:D};return B.resultMask&&(C.maskData=B.resultMask),a.returnEncodedMask&&g.mask&&(C.encodedMaskData=g.mask.bitset?g.mask.bitset:null),a.returnFileInfo&&(C.fileInfo=d(g),a.computeUsedBitDepths&&(C.fileInfo.bitDepths=z(g))),C};var L=function(I,a,Q,g,D){var B=0,C=I.pixels.numBlocksX,o=I.pixels.numBlocksY,r=Math.floor(I.width/C),s=Math.floor(I.height/o),f=2*I.maxZError,e=Number.MAX_VALUE,i;Q=Q||(I.mask?I.mask.bitset:null);var t,F;t=new a(I.width*I.height),D&&Q&&(F=new Uint8Array(I.width*I.height));for(var S=new Float32Array(r*s),h,U,G=0;G<=o;G++){var R=G!==o?s:I.height%o;if(R!==0)for(var w=0;w<=C;w++){var n=w!==C?r:I.width%C;if(n!==0){var l=G*I.width*s+w*r,y=I.width-n,k=I.pixels.blocks[B],M,c,N;k.encoding<2?(k.encoding===0?M=k.rawData:(A(k.stuffedData,k.bitsPerPixel,k.numValidPixels,k.offset,f,S,I.pixels.maxValue),M=S),c=0):k.encoding===2?N=0:N=k.offset;var q;if(Q)for(U=0;U>3],q<<=l&7),h=0;h>3]),q&128?(F&&(F[l]=1),i=k.encoding<2?M[c++]:N,e=e>i?i:e,t[l++]=i):(F&&(F[l]=0),t[l++]=g),q<<=1;l+=y}else if(k.encoding<2)for(U=0;Ui?i:e,t[l++]=i;l+=y}else for(e=e>N?N:e,U=0;U0){var C=new Uint8Array(Math.ceil(g.width*g.height/8));B=new DataView(I,a,g.mask.numBytes);var o=B.getInt16(0,!0),r=2,s=0;do{if(o>0)for(;o--;)C[s++]=B.getUint8(r++);else{var f=B.getUint8(r++);for(o=-o;o--;)C[s++]=f}o=B.getInt16(r,!0),r+=2}while(r0?1:0),F=i+(g.height%i>0?1:0);g.pixels.blocks=new Array(t*F);for(var S=0,h=0;h3)throw"Invalid block encoding ("+w.encoding+")";if(w.encoding===2){a++;continue}if(n!==0&&n!==2){if(n>>=6,w.offsetType=n,n===2)w.offset=B.getInt8(1),G++;else if(n===1)w.offset=B.getInt16(1,!0),G+=2;else if(n===0)w.offset=B.getFloat32(1,!0),G+=4;else throw"Invalid block offset type";if(w.encoding===1)if(n=B.getUint8(G),G++,w.bitsPerPixel=n&63,n>>=6,w.numValidPixelsType=n,n===2)w.numValidPixels=B.getUint8(G),G++;else if(n===1)w.numValidPixels=B.getUint16(G,!0),G+=2;else if(n===0)w.numValidPixels=B.getUint32(G,!0),G+=4;else throw"Invalid valid pixel count type"}if(a+=G,w.encoding!==3){var l,y;if(w.encoding===0){var k=(g.pixels.numBytes-1)/4;if(k!==Math.floor(k))throw"uncompressed block has invalid length";l=new ArrayBuffer(k*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,k*4));var M=new Float32Array(l);w.rawData=M,a+=k*4}else if(w.encoding===1){var c=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),N=Math.ceil(c/4);l=new ArrayBuffer(N*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,c)),w.stuffedData=new Uint32Array(l),a+=c}}}return g.eofOffset=a,g},A=function(I,a,Q,g,D,B,C){var o=(1<=a)e=i>>>f-a&o,f-=a;else{var S=a-f;e=(i&o)<>>f}B[s]=e=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=Q[f];else for(t=Math.ceil((B-g)/D),r=0;r=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=f=A?(s=f>>>r-A&D,r-=A):(o=A-r,s=(f&D)<>>r),e[C]=s=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=A?(s=e>>>f&D,r-=A,f+=A):(o=A-r,s=e>>>f&D,e=E[B++],r=32-o,s|=(e&(1<=I?(C=o>>>B-I&Q,B-=I):(r=I-B,C=(o&Q)<>>B),A[D]=C;return A},originalUnstuff2:function(E,A,I,a){var Q=(1<=I?(o=r>>>C&Q,B-=I,C+=I):(s=I-B,o=r>>>C&Q,r=E[g++],B=32-s,o|=(r&(1<=359?359:Q;Q-=D;do A+=E[g++]<<8,I+=A+=E[g++];while(--D);A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16)}return a&1&&(I+=A+=E[g]<<8),A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16),(I<<16|A)>>>0},readHeaderInfo:function(E,A){var I=A.ptr,a=new Uint8Array(E,I,6),Q={};if(Q.fileIdentifierString=String.fromCharCode.apply(null,a),Q.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+Q.fileIdentifierString;I+=6;var g=new DataView(E,I,8),D=g.getInt32(0,!0);Q.fileVersion=D,I+=4,D>=3&&(Q.checksum=g.getUint32(4,!0),I+=4),g=new DataView(E,I,12),Q.height=g.getUint32(0,!0),Q.width=g.getUint32(4,!0),I+=8,D>=4?(Q.numDims=g.getUint32(8,!0),I+=4):Q.numDims=1,g=new DataView(E,I,40),Q.numValidPixel=g.getUint32(0,!0),Q.microBlockSize=g.getInt32(4,!0),Q.blobSize=g.getInt32(8,!0),Q.imageType=g.getInt32(12,!0),Q.maxZError=g.getFloat64(16,!0),Q.zMin=g.getFloat64(24,!0),Q.zMax=g.getFloat64(32,!0),I+=40,A.headerInfo=Q,A.ptr=I;var B,C;if(D>=3&&(C=D>=4?52:48,B=this.computeChecksumFletcher32(new Uint8Array(E,I-C,Q.blobSize-14)),B!==Q.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(E,A){var I=A.headerInfo,a=this.getDataTypeArray(I.imageType),Q=I.numDims*this.getDataTypeSize(I.imageType),g=this.readSubArray(E,A.ptr,a,Q),D=this.readSubArray(E,A.ptr+Q,a,Q);A.ptr+=2*Q;var B,C=!0;for(B=0;B0){C=new Uint8Array(Math.ceil(Q/8)),D=new DataView(E,I,B.numBytes);var r=D.getInt16(0,!0),s=2,f=0,e=0;do{if(r>0)for(;r--;)C[f++]=D.getUint8(s++);else for(e=D.getUint8(s++),r=-r;r--;)C[f++]=e;r=D.getInt16(s,!0),s+=2}while(s>3],i<<=t&7):i=C[t>>3],i&128&&(o[t]=1);A.pixels.resultMask=o,B.bitset=C,I+=B.numBytes}return A.ptr=I,A.mask=B,!0},readDataOneSweep:function(E,A,I,a){var Q=A.ptr,g=A.headerInfo,D=g.numDims,B=g.width*g.height,C=g.imageType,o=g.numValidPixel*L.getDataTypeSize(C)*D,r,s=A.pixels.resultMask;if(I===Uint8Array)r=new Uint8Array(E,Q,o);else{var f=new ArrayBuffer(o),e=new Uint8Array(f);e.set(new Uint8Array(E,Q,o)),r=new I(f)}if(r.length===B*D)a?A.pixels.resultPixels=L.swapDimensionOrder(r,B,D,I,!0):A.pixels.resultPixels=r;else{A.pixels.resultPixels=new I(B*D);var i=0,t=0,F=0,S=0;if(D>1){if(a){for(t=0;t=B)return!1;var C=new Uint32Array(B-D);L.decodeBits(E,A,C);var o=[],r,s,f,e;for(r=D;r0&&(o[s].second=G<>>32-e,32-U>=e?(U+=e,U===32&&(U=0,R++,G=h[R])):(U+=e-32,R++,G=h[R],o[s].second|=G>>>32-U));var w=0,n=0,l=new d;for(r=0;r=I?n=I:n=w;var y=[],k,M,c,N,q,m;for(r=D;r0)if(k=[e,s],e<=n)for(M=o[s].second<=0;N--)q=M>>>N&1,q?(m.right||(m.right=new d),m=m.right):(m.left||(m.left=new d),m=m.left),N===0&&!m.val&&(m.val=k[1]);return{decodeLut:y,numBitsLUTQick:n,numBitsLUT:w,tree:l,stuffedData:h,srcPtr:R,bitPos:U}},readHuffman:function(E,A,I,a){var Q=A.headerInfo,g=Q.numDims,D=A.headerInfo.height,B=A.headerInfo.width,C=B*D,o=this.readHuffmanTree(E,A),r=o.decodeLut,s=o.tree,f=o.stuffedData,e=o.srcPtr,i=o.bitPos,t=o.numBitsLUTQick,F=o.numBitsLUT,S=A.headerInfo.imageType===0?128:0,h,U,G,R=A.pixels.resultMask,w,n,l,y,k,M,c,N=0;i>0&&(e++,i=0);var q=f[e],m=A.encodeMode===1,O=new I(C*g),v=O,Y;if(g<2||m){for(Y=0;Y1&&(v=new I(O.buffer,C*Y,C),N=0),A.headerInfo.numValidPixel===B*D)for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0?G+=N:y>0?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0&&R[M-1]?G+=N:y>0&&R[M-B]?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,v[M]=G}A.ptr=A.ptr+(e+1)*4+(i>0?4:0),A.pixels.resultPixels=O,g>1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(O,C,g,I))},decodeBits:function(E,A,I,a,Q){{var g=A.headerInfo,D=g.fileVersion,B=0,C=E.byteLength-A.ptr>=5?5:E.byteLength-A.ptr,o=new DataView(E,A.ptr,C),r=o.getUint8(0);B++;var s=r>>6,f=s===0?4:3-s,e=(r&32)>0,i=r&31,t=0;if(f===1)t=o.getUint8(B),B++;else if(f===2)t=o.getUint16(B,!0),B+=2;else if(f===4)t=o.getUint32(B,!0),B+=4;else throw"Invalid valid pixel count type";var F=2*g.maxZError,S,h,U,G,R,w,n,l,y,k=g.numDims>1?g.maxValues[Q]:g.zMax;if(e){for(A.counter.lut++,l=o.getUint8(B),B++,G=Math.ceil((l-1)*i/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),A.ptr+=B,U.set(new Uint8Array(E,A.ptr,G)),n=new Uint32Array(h),A.ptr+=G,y=0;l-1>>>y;)y++;G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?w=u.unstuffLUT2(n,i,l-1,a,F,k):w=u.unstuffLUT(n,i,l-1,a,F,k),D>=3?u.unstuff2(S,I,y,t,w):u.unstuff(S,I,y,t,w)}else A.counter.bitstuffer++,y=i,A.ptr+=B,y>0&&(G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?a==null?u.originalUnstuff2(S,I,y,t):u.unstuff2(S,I,y,t,!1,a,F,k):a==null?u.originalUnstuff(S,I,y,t):u.unstuff(S,I,y,t,!1,a,F,k))}},readTiles:function(E,A,I,a){var Q=A.headerInfo,g=Q.width,D=Q.height,B=g*D,C=Q.microBlockSize,o=Q.imageType,r=L.getDataTypeSize(o),s=Math.ceil(g/C),f=Math.ceil(D/C);A.pixels.numBlocksY=f,A.pixels.numBlocksX=s,A.pixels.ptr=0;var e=0,i=0,t=0,F=0,S=0,h=0,U=0,G=0,R=0,w=0,n=0,l=0,y=0,k=0,M=0,c=0,N,q,m,O,v,Y,P=new I(C*C),eA=D%C||C,aA=g%C||C,AA,b,$=Q.numDims,W,K=A.pixels.resultMask,H=A.pixels.resultPixels,rA=Q.fileVersion,CA=rA>=5?14:15,p,IA=Q.zMax,V;for(t=0;t1?(V=H,n=t*g*C+F*C,H=new I(A.pixels.resultPixels.buffer,B*W*r,B),IA=Q.maxValues[W]):V=null,U=E.byteLength-A.ptr,N=new DataView(E,A.ptr,Math.min(10,U)),q={},c=0,G=N.getUint8(0),c++,p=Q.fileVersion>=5?G&4:0,R=G>>6&255,w=G>>2&CA,w!==(F*C>>3&CA)||p&&W===0)throw"integrity issue";if(Y=G&3,Y>3)throw A.ptr+=c,"Invalid block encoding ("+Y+")";if(Y===2){if(p)if(K)for(e=0;e1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(A.pixels.resultPixels,B,$,I))},formatFileInfo:function(E){return{fileIdentifierString:E.headerInfo.fileIdentifierString,fileVersion:E.headerInfo.fileVersion,imageType:E.headerInfo.imageType,height:E.headerInfo.height,width:E.headerInfo.width,numValidPixel:E.headerInfo.numValidPixel,microBlockSize:E.headerInfo.microBlockSize,blobSize:E.headerInfo.blobSize,maxZError:E.headerInfo.maxZError,pixelType:L.getPixelType(E.headerInfo.imageType),eofOffset:E.eofOffset,mask:E.mask?{numBytes:E.mask.numBytes}:null,pixels:{numBlocksX:E.pixels.numBlocksX,numBlocksY:E.pixels.numBlocksY,maxValue:E.headerInfo.zMax,minValue:E.headerInfo.zMin,noDataValue:E.noDataValue}}},constructConstantSurface:function(E,A){var I=E.headerInfo.zMax,a=E.headerInfo.zMin,Q=E.headerInfo.maxValues,g=E.headerInfo.numDims,D=E.headerInfo.height*E.headerInfo.width,B=0,C=0,o=0,r=E.pixels.resultMask,s=E.pixels.resultPixels;if(r)if(g>1){if(A)for(B=0;B1&&a!==I)if(A)for(B=0;B=-128&&A<=127;break;case 1:I=A>=0&&A<=255;break;case 2:I=A>=-32768&&A<=32767;break;case 3:I=A>=0&&A<=65536;break;case 4:I=A>=-2147483648&&A<=2147483647;break;case 5:I=A>=0&&A<=4294967296;break;case 6:I=A>=-34027999387901484e22&&A<=34027999387901484e22;break;case 7:I=A>=-17976931348623157e292&&A<=17976931348623157e292;break;default:I=!1}return I},getDataTypeSize:function(E){var A=0;switch(E){case 0:case 1:A=1;break;case 2:case 3:A=2;break;case 4:case 5:case 6:A=4;break;case 7:A=8;break;default:A=E}return A},getDataTypeUsed:function(E,A){var I=E;switch(E){case 2:case 4:I=E-A;break;case 3:case 5:I=E-2*A;break;case 6:A===0?I=E:A===1?I=2:I=1;break;case 7:A===0?I=E:I=E-2*A+1;break;default:I=E;break}return I},getOnePixel:function(E,A,I,a){var Q=0;switch(I){case 0:Q=a.getInt8(A);break;case 1:Q=a.getUint8(A);break;case 2:Q=a.getInt16(A,!0);break;case 3:Q=a.getUint16(A,!0);break;case 4:Q=a.getInt32(A,!0);break;case 5:Q=a.getUInt32(A,!0);break;case 6:Q=a.getFloat32(A,!0);break;case 7:Q=a.getFloat64(A,!0);break;default:throw"the decoder does not understand this pixel type"}return Q},swapDimensionOrder:function(E,A,I,a,Q){var g=0,D=0,B=0,C=0,o=E;if(I>1)if(o=new a(A*I),Q)for(g=0;g5)throw"unsupported lerc version 2."+D;L.readMask(E,Q),g.numValidPixel!==g.width*g.height&&!Q.pixels.resultMask&&(Q.pixels.resultMask=A.maskData);var C=g.width*g.height;Q.pixels.resultPixels=new B(C*g.numDims),Q.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o=!A.returnPixelInterleavedDims;if(g.numValidPixel!==0)if(g.zMax===g.zMin)L.constructConstantSurface(Q,o);else if(D>=4&&L.checkMinMaxRanges(E,Q))L.constructConstantSurface(Q,o);else{var r=new DataView(E,Q.ptr,2),s=r.getUint8(0);if(Q.ptr++,s)L.readDataOneSweep(E,Q,B,o);else if(D>1&&g.imageType<=1&&Math.abs(g.maxZError-.5)<1e-5){var f=r.getUint8(1);if(Q.ptr++,Q.encodeMode=f,f>2||D<4&&f>1)throw"Invalid Huffman flag "+f;f?L.readHuffman(E,Q,B,o):L.readTiles(E,Q,B,o)}else L.readTiles(E,Q,B,o)}Q.eofOffset=Q.ptr;var e;A.inputOffset?(e=Q.headerInfo.blobSize+A.inputOffset-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=A.inputOffset+Q.headerInfo.blobSize)):(e=Q.headerInfo.blobSize-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=Q.headerInfo.blobSize));var i={width:g.width,height:g.height,pixelData:Q.pixels.resultPixels,minValue:g.zMin,maxValue:g.zMax,validPixelCount:g.numValidPixel,dimCount:g.numDims,dimStats:{minValues:g.minValues,maxValues:g.maxValues},maskData:Q.pixels.resultMask};if(Q.pixels.resultMask&&L.isValidPixelValue(g.imageType,I)){var t=Q.pixels.resultMask;for(a=0;a1&&(C&&D.push(C),s.fileInfo.mask&&s.fileInfo.mask.numBytes>0&&r++),a++,o.pixels.push(s.pixelData),o.statistics.push({minValue:s.minValue,maxValue:s.maxValue,noDataValue:s.noDataValue,dimStats:s.dimStats})}var f,e,i;if(I>1&&r>1){for(i=o.width*o.height,o.bandMasks=D,C=new Uint8Array(i),C.set(D[0]),f=1;fJ.arrayBuffer()).then(J=>WebAssembly.instantiate(J,BA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(EA,"base64"),BA).then(this._init),_)}_init(J){x=J.instance,BA.env.emscripten_notify_memory_growth(0)}decode(J,T=0){if(!x)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Z=J.byteLength,X=x.exports.malloc(Z);QA.set(J,X),T=T||Number(x.exports.ZSTD_findDecompressedSize(X,Z));const u=x.exports.malloc(T),L=x.exports.ZSTD_decompress(u,T,X,Z),d=QA.slice(u,u+L);return x.exports.free(X),x.exports.free(u),d}}const EA="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IAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQh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ASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigC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C0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY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wOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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",hA=new wA;class SA extends nA{constructor(J){super(),this.planarConfiguration=typeof J.PlanarConfiguration<"u"?J.PlanarConfiguration:1,this.samplesPerPixel=typeof J.SamplesPerPixel<"u"?J.SamplesPerPixel:1,this.addCompression=J.LercParameters[oA.AddCompression]}decodeBlock(J){switch(this.addCompression){case gA.None:break;case gA.Deflate:J=sA(new Uint8Array(J)).buffer;break;case gA.Zstandard:J=hA.decode(new Uint8Array(J)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return tA.decode(J,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}}export{SA as default,hA as zstd}; +import{L as oA,a as gA,i as sA}from"./Simulation-RZxs6R_p.js";import{H as DA}from"./index-cA1eFW7V.js";import{B as nA}from"./basedecoder-DvumDe3Y.js";import"./heading-DHsph2H5.js";import"./Footer-Cn5RvAyN.js";import"./location-D8PyOyjj.js";import"./stack-ABWX5mQg.js";var iA={exports:{}};(function(j){/* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */(function(){var J=function(){var u={};u.defaultNoDataValue=-34027999387901484e22,u.decode=function(I,a){a=a||{};var Q=a.encodedMaskData||a.encodedMaskData===null,g=E(I,a.inputOffset||0,Q),D=a.noDataValue!==null?a.noDataValue:u.defaultNoDataValue,B=L(g,a.pixelType||Float32Array,a.encodedMaskData,D,a.returnMask),C={width:g.width,height:g.height,pixelData:B.resultPixels,minValue:B.minValue,maxValue:g.pixels.maxValue,noDataValue:D};return B.resultMask&&(C.maskData=B.resultMask),a.returnEncodedMask&&g.mask&&(C.encodedMaskData=g.mask.bitset?g.mask.bitset:null),a.returnFileInfo&&(C.fileInfo=d(g),a.computeUsedBitDepths&&(C.fileInfo.bitDepths=z(g))),C};var L=function(I,a,Q,g,D){var B=0,C=I.pixels.numBlocksX,o=I.pixels.numBlocksY,r=Math.floor(I.width/C),s=Math.floor(I.height/o),f=2*I.maxZError,e=Number.MAX_VALUE,i;Q=Q||(I.mask?I.mask.bitset:null);var t,F;t=new a(I.width*I.height),D&&Q&&(F=new Uint8Array(I.width*I.height));for(var S=new Float32Array(r*s),h,U,G=0;G<=o;G++){var R=G!==o?s:I.height%o;if(R!==0)for(var w=0;w<=C;w++){var n=w!==C?r:I.width%C;if(n!==0){var l=G*I.width*s+w*r,y=I.width-n,k=I.pixels.blocks[B],M,c,N;k.encoding<2?(k.encoding===0?M=k.rawData:(A(k.stuffedData,k.bitsPerPixel,k.numValidPixels,k.offset,f,S,I.pixels.maxValue),M=S),c=0):k.encoding===2?N=0:N=k.offset;var q;if(Q)for(U=0;U>3],q<<=l&7),h=0;h>3]),q&128?(F&&(F[l]=1),i=k.encoding<2?M[c++]:N,e=e>i?i:e,t[l++]=i):(F&&(F[l]=0),t[l++]=g),q<<=1;l+=y}else if(k.encoding<2)for(U=0;Ui?i:e,t[l++]=i;l+=y}else for(e=e>N?N:e,U=0;U0){var C=new Uint8Array(Math.ceil(g.width*g.height/8));B=new DataView(I,a,g.mask.numBytes);var o=B.getInt16(0,!0),r=2,s=0;do{if(o>0)for(;o--;)C[s++]=B.getUint8(r++);else{var f=B.getUint8(r++);for(o=-o;o--;)C[s++]=f}o=B.getInt16(r,!0),r+=2}while(r0?1:0),F=i+(g.height%i>0?1:0);g.pixels.blocks=new Array(t*F);for(var S=0,h=0;h3)throw"Invalid block encoding ("+w.encoding+")";if(w.encoding===2){a++;continue}if(n!==0&&n!==2){if(n>>=6,w.offsetType=n,n===2)w.offset=B.getInt8(1),G++;else if(n===1)w.offset=B.getInt16(1,!0),G+=2;else if(n===0)w.offset=B.getFloat32(1,!0),G+=4;else throw"Invalid block offset type";if(w.encoding===1)if(n=B.getUint8(G),G++,w.bitsPerPixel=n&63,n>>=6,w.numValidPixelsType=n,n===2)w.numValidPixels=B.getUint8(G),G++;else if(n===1)w.numValidPixels=B.getUint16(G,!0),G+=2;else if(n===0)w.numValidPixels=B.getUint32(G,!0),G+=4;else throw"Invalid valid pixel count type"}if(a+=G,w.encoding!==3){var l,y;if(w.encoding===0){var k=(g.pixels.numBytes-1)/4;if(k!==Math.floor(k))throw"uncompressed block has invalid length";l=new ArrayBuffer(k*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,k*4));var M=new Float32Array(l);w.rawData=M,a+=k*4}else if(w.encoding===1){var c=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),N=Math.ceil(c/4);l=new ArrayBuffer(N*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,c)),w.stuffedData=new Uint32Array(l),a+=c}}}return g.eofOffset=a,g},A=function(I,a,Q,g,D,B,C){var o=(1<=a)e=i>>>f-a&o,f-=a;else{var S=a-f;e=(i&o)<>>f}B[s]=e=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=Q[f];else for(t=Math.ceil((B-g)/D),r=0;r=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=f=A?(s=f>>>r-A&D,r-=A):(o=A-r,s=(f&D)<>>r),e[C]=s=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=A?(s=e>>>f&D,r-=A,f+=A):(o=A-r,s=e>>>f&D,e=E[B++],r=32-o,s|=(e&(1<=I?(C=o>>>B-I&Q,B-=I):(r=I-B,C=(o&Q)<>>B),A[D]=C;return A},originalUnstuff2:function(E,A,I,a){var Q=(1<=I?(o=r>>>C&Q,B-=I,C+=I):(s=I-B,o=r>>>C&Q,r=E[g++],B=32-s,o|=(r&(1<=359?359:Q;Q-=D;do A+=E[g++]<<8,I+=A+=E[g++];while(--D);A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16)}return a&1&&(I+=A+=E[g]<<8),A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16),(I<<16|A)>>>0},readHeaderInfo:function(E,A){var I=A.ptr,a=new Uint8Array(E,I,6),Q={};if(Q.fileIdentifierString=String.fromCharCode.apply(null,a),Q.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+Q.fileIdentifierString;I+=6;var g=new DataView(E,I,8),D=g.getInt32(0,!0);Q.fileVersion=D,I+=4,D>=3&&(Q.checksum=g.getUint32(4,!0),I+=4),g=new DataView(E,I,12),Q.height=g.getUint32(0,!0),Q.width=g.getUint32(4,!0),I+=8,D>=4?(Q.numDims=g.getUint32(8,!0),I+=4):Q.numDims=1,g=new DataView(E,I,40),Q.numValidPixel=g.getUint32(0,!0),Q.microBlockSize=g.getInt32(4,!0),Q.blobSize=g.getInt32(8,!0),Q.imageType=g.getInt32(12,!0),Q.maxZError=g.getFloat64(16,!0),Q.zMin=g.getFloat64(24,!0),Q.zMax=g.getFloat64(32,!0),I+=40,A.headerInfo=Q,A.ptr=I;var B,C;if(D>=3&&(C=D>=4?52:48,B=this.computeChecksumFletcher32(new Uint8Array(E,I-C,Q.blobSize-14)),B!==Q.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(E,A){var I=A.headerInfo,a=this.getDataTypeArray(I.imageType),Q=I.numDims*this.getDataTypeSize(I.imageType),g=this.readSubArray(E,A.ptr,a,Q),D=this.readSubArray(E,A.ptr+Q,a,Q);A.ptr+=2*Q;var B,C=!0;for(B=0;B0){C=new Uint8Array(Math.ceil(Q/8)),D=new DataView(E,I,B.numBytes);var r=D.getInt16(0,!0),s=2,f=0,e=0;do{if(r>0)for(;r--;)C[f++]=D.getUint8(s++);else for(e=D.getUint8(s++),r=-r;r--;)C[f++]=e;r=D.getInt16(s,!0),s+=2}while(s>3],i<<=t&7):i=C[t>>3],i&128&&(o[t]=1);A.pixels.resultMask=o,B.bitset=C,I+=B.numBytes}return A.ptr=I,A.mask=B,!0},readDataOneSweep:function(E,A,I,a){var Q=A.ptr,g=A.headerInfo,D=g.numDims,B=g.width*g.height,C=g.imageType,o=g.numValidPixel*L.getDataTypeSize(C)*D,r,s=A.pixels.resultMask;if(I===Uint8Array)r=new Uint8Array(E,Q,o);else{var f=new ArrayBuffer(o),e=new Uint8Array(f);e.set(new Uint8Array(E,Q,o)),r=new I(f)}if(r.length===B*D)a?A.pixels.resultPixels=L.swapDimensionOrder(r,B,D,I,!0):A.pixels.resultPixels=r;else{A.pixels.resultPixels=new I(B*D);var i=0,t=0,F=0,S=0;if(D>1){if(a){for(t=0;t=B)return!1;var C=new Uint32Array(B-D);L.decodeBits(E,A,C);var o=[],r,s,f,e;for(r=D;r0&&(o[s].second=G<>>32-e,32-U>=e?(U+=e,U===32&&(U=0,R++,G=h[R])):(U+=e-32,R++,G=h[R],o[s].second|=G>>>32-U));var w=0,n=0,l=new d;for(r=0;r=I?n=I:n=w;var y=[],k,M,c,N,q,m;for(r=D;r0)if(k=[e,s],e<=n)for(M=o[s].second<=0;N--)q=M>>>N&1,q?(m.right||(m.right=new d),m=m.right):(m.left||(m.left=new d),m=m.left),N===0&&!m.val&&(m.val=k[1]);return{decodeLut:y,numBitsLUTQick:n,numBitsLUT:w,tree:l,stuffedData:h,srcPtr:R,bitPos:U}},readHuffman:function(E,A,I,a){var Q=A.headerInfo,g=Q.numDims,D=A.headerInfo.height,B=A.headerInfo.width,C=B*D,o=this.readHuffmanTree(E,A),r=o.decodeLut,s=o.tree,f=o.stuffedData,e=o.srcPtr,i=o.bitPos,t=o.numBitsLUTQick,F=o.numBitsLUT,S=A.headerInfo.imageType===0?128:0,h,U,G,R=A.pixels.resultMask,w,n,l,y,k,M,c,N=0;i>0&&(e++,i=0);var q=f[e],m=A.encodeMode===1,O=new I(C*g),v=O,Y;if(g<2||m){for(Y=0;Y1&&(v=new I(O.buffer,C*Y,C),N=0),A.headerInfo.numValidPixel===B*D)for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0?G+=N:y>0?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0&&R[M-1]?G+=N:y>0&&R[M-B]?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,v[M]=G}A.ptr=A.ptr+(e+1)*4+(i>0?4:0),A.pixels.resultPixels=O,g>1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(O,C,g,I))},decodeBits:function(E,A,I,a,Q){{var g=A.headerInfo,D=g.fileVersion,B=0,C=E.byteLength-A.ptr>=5?5:E.byteLength-A.ptr,o=new DataView(E,A.ptr,C),r=o.getUint8(0);B++;var s=r>>6,f=s===0?4:3-s,e=(r&32)>0,i=r&31,t=0;if(f===1)t=o.getUint8(B),B++;else if(f===2)t=o.getUint16(B,!0),B+=2;else if(f===4)t=o.getUint32(B,!0),B+=4;else throw"Invalid valid pixel count type";var F=2*g.maxZError,S,h,U,G,R,w,n,l,y,k=g.numDims>1?g.maxValues[Q]:g.zMax;if(e){for(A.counter.lut++,l=o.getUint8(B),B++,G=Math.ceil((l-1)*i/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),A.ptr+=B,U.set(new Uint8Array(E,A.ptr,G)),n=new Uint32Array(h),A.ptr+=G,y=0;l-1>>>y;)y++;G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?w=u.unstuffLUT2(n,i,l-1,a,F,k):w=u.unstuffLUT(n,i,l-1,a,F,k),D>=3?u.unstuff2(S,I,y,t,w):u.unstuff(S,I,y,t,w)}else A.counter.bitstuffer++,y=i,A.ptr+=B,y>0&&(G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?a==null?u.originalUnstuff2(S,I,y,t):u.unstuff2(S,I,y,t,!1,a,F,k):a==null?u.originalUnstuff(S,I,y,t):u.unstuff(S,I,y,t,!1,a,F,k))}},readTiles:function(E,A,I,a){var Q=A.headerInfo,g=Q.width,D=Q.height,B=g*D,C=Q.microBlockSize,o=Q.imageType,r=L.getDataTypeSize(o),s=Math.ceil(g/C),f=Math.ceil(D/C);A.pixels.numBlocksY=f,A.pixels.numBlocksX=s,A.pixels.ptr=0;var e=0,i=0,t=0,F=0,S=0,h=0,U=0,G=0,R=0,w=0,n=0,l=0,y=0,k=0,M=0,c=0,N,q,m,O,v,Y,P=new I(C*C),eA=D%C||C,aA=g%C||C,AA,b,$=Q.numDims,W,K=A.pixels.resultMask,H=A.pixels.resultPixels,rA=Q.fileVersion,CA=rA>=5?14:15,p,IA=Q.zMax,V;for(t=0;t1?(V=H,n=t*g*C+F*C,H=new I(A.pixels.resultPixels.buffer,B*W*r,B),IA=Q.maxValues[W]):V=null,U=E.byteLength-A.ptr,N=new DataView(E,A.ptr,Math.min(10,U)),q={},c=0,G=N.getUint8(0),c++,p=Q.fileVersion>=5?G&4:0,R=G>>6&255,w=G>>2&CA,w!==(F*C>>3&CA)||p&&W===0)throw"integrity issue";if(Y=G&3,Y>3)throw A.ptr+=c,"Invalid block encoding ("+Y+")";if(Y===2){if(p)if(K)for(e=0;e1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(A.pixels.resultPixels,B,$,I))},formatFileInfo:function(E){return{fileIdentifierString:E.headerInfo.fileIdentifierString,fileVersion:E.headerInfo.fileVersion,imageType:E.headerInfo.imageType,height:E.headerInfo.height,width:E.headerInfo.width,numValidPixel:E.headerInfo.numValidPixel,microBlockSize:E.headerInfo.microBlockSize,blobSize:E.headerInfo.blobSize,maxZError:E.headerInfo.maxZError,pixelType:L.getPixelType(E.headerInfo.imageType),eofOffset:E.eofOffset,mask:E.mask?{numBytes:E.mask.numBytes}:null,pixels:{numBlocksX:E.pixels.numBlocksX,numBlocksY:E.pixels.numBlocksY,maxValue:E.headerInfo.zMax,minValue:E.headerInfo.zMin,noDataValue:E.noDataValue}}},constructConstantSurface:function(E,A){var I=E.headerInfo.zMax,a=E.headerInfo.zMin,Q=E.headerInfo.maxValues,g=E.headerInfo.numDims,D=E.headerInfo.height*E.headerInfo.width,B=0,C=0,o=0,r=E.pixels.resultMask,s=E.pixels.resultPixels;if(r)if(g>1){if(A)for(B=0;B1&&a!==I)if(A)for(B=0;B=-128&&A<=127;break;case 1:I=A>=0&&A<=255;break;case 2:I=A>=-32768&&A<=32767;break;case 3:I=A>=0&&A<=65536;break;case 4:I=A>=-2147483648&&A<=2147483647;break;case 5:I=A>=0&&A<=4294967296;break;case 6:I=A>=-34027999387901484e22&&A<=34027999387901484e22;break;case 7:I=A>=-17976931348623157e292&&A<=17976931348623157e292;break;default:I=!1}return I},getDataTypeSize:function(E){var A=0;switch(E){case 0:case 1:A=1;break;case 2:case 3:A=2;break;case 4:case 5:case 6:A=4;break;case 7:A=8;break;default:A=E}return A},getDataTypeUsed:function(E,A){var I=E;switch(E){case 2:case 4:I=E-A;break;case 3:case 5:I=E-2*A;break;case 6:A===0?I=E:A===1?I=2:I=1;break;case 7:A===0?I=E:I=E-2*A+1;break;default:I=E;break}return I},getOnePixel:function(E,A,I,a){var Q=0;switch(I){case 0:Q=a.getInt8(A);break;case 1:Q=a.getUint8(A);break;case 2:Q=a.getInt16(A,!0);break;case 3:Q=a.getUint16(A,!0);break;case 4:Q=a.getInt32(A,!0);break;case 5:Q=a.getUInt32(A,!0);break;case 6:Q=a.getFloat32(A,!0);break;case 7:Q=a.getFloat64(A,!0);break;default:throw"the decoder does not understand this pixel type"}return Q},swapDimensionOrder:function(E,A,I,a,Q){var g=0,D=0,B=0,C=0,o=E;if(I>1)if(o=new a(A*I),Q)for(g=0;g5)throw"unsupported lerc version 2."+D;L.readMask(E,Q),g.numValidPixel!==g.width*g.height&&!Q.pixels.resultMask&&(Q.pixels.resultMask=A.maskData);var C=g.width*g.height;Q.pixels.resultPixels=new B(C*g.numDims),Q.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o=!A.returnPixelInterleavedDims;if(g.numValidPixel!==0)if(g.zMax===g.zMin)L.constructConstantSurface(Q,o);else if(D>=4&&L.checkMinMaxRanges(E,Q))L.constructConstantSurface(Q,o);else{var r=new DataView(E,Q.ptr,2),s=r.getUint8(0);if(Q.ptr++,s)L.readDataOneSweep(E,Q,B,o);else if(D>1&&g.imageType<=1&&Math.abs(g.maxZError-.5)<1e-5){var f=r.getUint8(1);if(Q.ptr++,Q.encodeMode=f,f>2||D<4&&f>1)throw"Invalid Huffman flag "+f;f?L.readHuffman(E,Q,B,o):L.readTiles(E,Q,B,o)}else L.readTiles(E,Q,B,o)}Q.eofOffset=Q.ptr;var e;A.inputOffset?(e=Q.headerInfo.blobSize+A.inputOffset-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=A.inputOffset+Q.headerInfo.blobSize)):(e=Q.headerInfo.blobSize-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=Q.headerInfo.blobSize));var i={width:g.width,height:g.height,pixelData:Q.pixels.resultPixels,minValue:g.zMin,maxValue:g.zMax,validPixelCount:g.numValidPixel,dimCount:g.numDims,dimStats:{minValues:g.minValues,maxValues:g.maxValues},maskData:Q.pixels.resultMask};if(Q.pixels.resultMask&&L.isValidPixelValue(g.imageType,I)){var t=Q.pixels.resultMask;for(a=0;a1&&(C&&D.push(C),s.fileInfo.mask&&s.fileInfo.mask.numBytes>0&&r++),a++,o.pixels.push(s.pixelData),o.statistics.push({minValue:s.minValue,maxValue:s.maxValue,noDataValue:s.noDataValue,dimStats:s.dimStats})}var f,e,i;if(I>1&&r>1){for(i=o.width*o.height,o.bandMasks=D,C=new Uint8Array(i),C.set(D[0]),f=1;fJ.arrayBuffer()).then(J=>WebAssembly.instantiate(J,BA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(EA,"base64"),BA).then(this._init),_)}_init(J){x=J.instance,BA.env.emscripten_notify_memory_growth(0)}decode(J,T=0){if(!x)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Z=J.byteLength,X=x.exports.malloc(Z);QA.set(J,X),T=T||Number(x.exports.ZSTD_findDecompressedSize(X,Z));const u=x.exports.malloc(T),L=x.exports.ZSTD_decompress(u,T,X,Z),d=QA.slice(u,u+L);return x.exports.free(X),x.exports.free(u),d}}const EA="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IAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQh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ASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigC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C0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY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wOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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",hA=new wA;class SA extends nA{constructor(J){super(),this.planarConfiguration=typeof J.PlanarConfiguration<"u"?J.PlanarConfiguration:1,this.samplesPerPixel=typeof J.SamplesPerPixel<"u"?J.SamplesPerPixel:1,this.addCompression=J.LercParameters[oA.AddCompression]}decodeBlock(J){switch(this.addCompression){case gA.None:break;case gA.Deflate:J=sA(new Uint8Array(J)).buffer;break;case gA.Zstandard:J=hA.decode(new Uint8Array(J)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return tA.decode(J,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}}export{SA as default,hA as zstd}; diff --git a/assets/location-B7dRf9MH.js b/assets/location-D8PyOyjj.js similarity index 97% rename from assets/location-B7dRf9MH.js rename to assets/location-D8PyOyjj.js index 001cead..5abc298 100644 --- a/assets/location-B7dRf9MH.js +++ b/assets/location-D8PyOyjj.js @@ -1 +1 @@ -import{y as q,f as b,D as N,x as j,l as C,j as y,c as I,d as u,v as g,q as m,F as k,s as M,Q as B}from"./index-Ba81FydE.js";import{j as E}from"./Footer-BEVKcqw5.js";const[A,W]=q({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[G,w]=q({strict:!1,name:"FormControlContext"});function Q(s){const{id:e,isRequired:a,isInvalid:t,isDisabled:o,isReadOnly:r,...l}=s,c=u.useId(),n=e||`field-${c}`,h=`${n}-label`,f=`${n}-feedback`,x=`${n}-helptext`,[v,p]=u.useState(!1),[S,P]=u.useState(!1),[F,R]=u.useState(!1),D=u.useCallback((i={},d=null)=>({id:x,...i,ref:g(d,_=>{_&&P(!0)})}),[x]),O=u.useCallback((i={},d=null)=>({...i,ref:d,"data-focus":m(F),"data-disabled":m(o),"data-invalid":m(t),"data-readonly":m(r),id:i.id!==void 0?i.id:h,htmlFor:i.htmlFor!==void 0?i.htmlFor:n}),[n,o,F,t,r,h]),$=u.useCallback((i={},d=null)=>({id:f,...i,ref:g(d,_=>{_&&p(!0)}),"aria-live":"polite"}),[f]),L=u.useCallback((i={},d=null)=>({...i,...l,ref:d,role:"group","data-focus":m(F),"data-disabled":m(o),"data-invalid":m(t),"data-readonly":m(r)}),[l,o,F,t,r]),z=u.useCallback((i={},d=null)=>({...i,ref:d,role:"presentation","aria-hidden":!0,children:i.children||"*"}),[]);return{isRequired:!!a,isInvalid:!!t,isReadOnly:!!r,isDisabled:!!o,isFocused:!!F,onFocus:()=>R(!0),onBlur:()=>R(!1),hasFeedbackText:v,setHasFeedbackText:p,hasHelpText:S,setHasHelpText:P,id:n,labelId:h,feedbackId:f,helpTextId:x,htmlProps:l,getHelpTextProps:D,getErrorMessageProps:$,getRootProps:L,getLabelProps:O,getRequiredIndicatorProps:z}}const X=b(function(e,a){const t=N("Form",e),o=j(e),{getRootProps:r,htmlProps:l,...c}=Q(o),n=C("chakra-form-control",e.className);return y.jsx(G,{value:c,children:y.jsx(A,{value:t,children:y.jsx(I.div,{...r({},a),className:n,__css:t.container})})})});X.displayName="FormControl";const Y=b(function(e,a){const t=w(),o=W(),r=C("chakra-form__helper-text",e.className);return y.jsx(I.div,{...t==null?void 0:t.getHelpTextProps(e,a),__css:o.helperText,className:r})});Y.displayName="FormHelperText";function J(s){const{isDisabled:e,isInvalid:a,isReadOnly:t,isRequired:o,...r}=K(s);return{...r,disabled:e,readOnly:t,required:o,"aria-invalid":k(a),"aria-required":k(o),"aria-readonly":k(t)}}function K(s){const e=w(),{id:a,disabled:t,readOnly:o,required:r,isRequired:l,isInvalid:c,isReadOnly:n,isDisabled:h,onFocus:f,onBlur:x,...v}=s,p=s["aria-describedby"]?[s["aria-describedby"]]:[];return e!=null&&e.hasFeedbackText&&(e!=null&&e.isInvalid)&&p.push(e.feedbackId),e!=null&&e.hasHelpText&&p.push(e.helpTextId),{...v,"aria-describedby":p.join(" ")||void 0,id:a??(e==null?void 0:e.id),isDisabled:t??h??(e==null?void 0:e.isDisabled),isReadOnly:o??n??(e==null?void 0:e.isReadOnly),isRequired:r??l??(e==null?void 0:e.isRequired),isInvalid:c??(e==null?void 0:e.isInvalid),onFocus:M(e==null?void 0:e.onFocus,f),onBlur:M(e==null?void 0:e.onBlur,x)}}const H=b(function(e,a){const{htmlSize:t,...o}=e,r=N("Input",o),l=j(o),c=J(l),n=C("chakra-input",e.className);return y.jsx(I.input,{size:t,...c,__css:r.field,ref:a,className:n})});H.displayName="Input";H.id="Input";const U=b((s,e)=>{const{className:a,...t}=s,o=C("chakra-modal__footer",a),r=E(),l=B({display:"flex",alignItems:"center",justifyContent:"flex-end",...r.footer});return y.jsx(I.footer,{ref:e,...t,__css:l,className:o})});U.displayName="ModalFooter";var V,Z,ee;async function ne(s){let e=te(s);return e.length==0&&(e=se(s)),e}function te(s){if(/^[-]?(\d+(\.\d+)?),\s*[-]?(\d+(\.\d+)?)$/.test(s)){const[e,a]=s.split(",").map(t=>parseFloat(t.trim()));return[{lat:e,lon:a,display_name:`${e},${a}`,key:"coordinates"}]}else return[]}async function se(s){let e="https://nominatim.openstreetmap.org/search?format=json&addressdetails=1&q=".concat(s).concat("+Germany"),a=await T(e);return a||(e="https://nominatim.openstreetmap.org/search?format=json&addressdetails=1&q=".concat(s.split(" ").join("+")),a=await T(e)),a.map(t=>({lat:t.lat,lon:t.lon,key:t.place_id,display_name:oe(t.address)}))}function oe(s){return(s.road||"")+" "+(s.house_number||"")+", "+(s.postcode||"")+" "+(s.city||"")}async function T(s){try{const e=await fetch(s);if(!e.ok)throw new Error(`Request failed with status ${e.status}`);return await e.json()}catch(e){return console.error("Error:",e),[]}}function ie(s,e){Z=[s,e];const a=e*Math.PI/180,t=Math.pow(2,15),o=t*((s+180)/360),r=t*(1-Math.log(Math.tan(a)+1/Math.cos(a))/Math.PI)/2;return V=[o,r],ee=[1222.992452*o-2003750834e-2,2003750834e-2-1222.992452*r],[o,r]}function le(s,e,a){const t=4007501668e-2,o=t/Math.pow(2,a),r=o*s-t/2,l=r+o,c=t/2-o*e,n=c-o;return[r,c,l,n]}export{X as F,H as I,U as M,w as a,W as b,Z as c,ee as d,V as e,ie as p,ne as r,K as u,le as x}; +import{y as q,f as b,D as N,x as j,l as C,j as y,c as I,d as u,v as g,q as m,F as k,s as M,Q as B}from"./index-cA1eFW7V.js";import{j as E}from"./Footer-Cn5RvAyN.js";const[A,W]=q({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[G,w]=q({strict:!1,name:"FormControlContext"});function Q(s){const{id:e,isRequired:a,isInvalid:t,isDisabled:o,isReadOnly:r,...l}=s,c=u.useId(),n=e||`field-${c}`,h=`${n}-label`,f=`${n}-feedback`,x=`${n}-helptext`,[v,p]=u.useState(!1),[S,P]=u.useState(!1),[F,R]=u.useState(!1),D=u.useCallback((i={},d=null)=>({id:x,...i,ref:g(d,_=>{_&&P(!0)})}),[x]),O=u.useCallback((i={},d=null)=>({...i,ref:d,"data-focus":m(F),"data-disabled":m(o),"data-invalid":m(t),"data-readonly":m(r),id:i.id!==void 0?i.id:h,htmlFor:i.htmlFor!==void 0?i.htmlFor:n}),[n,o,F,t,r,h]),$=u.useCallback((i={},d=null)=>({id:f,...i,ref:g(d,_=>{_&&p(!0)}),"aria-live":"polite"}),[f]),L=u.useCallback((i={},d=null)=>({...i,...l,ref:d,role:"group","data-focus":m(F),"data-disabled":m(o),"data-invalid":m(t),"data-readonly":m(r)}),[l,o,F,t,r]),z=u.useCallback((i={},d=null)=>({...i,ref:d,role:"presentation","aria-hidden":!0,children:i.children||"*"}),[]);return{isRequired:!!a,isInvalid:!!t,isReadOnly:!!r,isDisabled:!!o,isFocused:!!F,onFocus:()=>R(!0),onBlur:()=>R(!1),hasFeedbackText:v,setHasFeedbackText:p,hasHelpText:S,setHasHelpText:P,id:n,labelId:h,feedbackId:f,helpTextId:x,htmlProps:l,getHelpTextProps:D,getErrorMessageProps:$,getRootProps:L,getLabelProps:O,getRequiredIndicatorProps:z}}const X=b(function(e,a){const t=N("Form",e),o=j(e),{getRootProps:r,htmlProps:l,...c}=Q(o),n=C("chakra-form-control",e.className);return y.jsx(G,{value:c,children:y.jsx(A,{value:t,children:y.jsx(I.div,{...r({},a),className:n,__css:t.container})})})});X.displayName="FormControl";const Y=b(function(e,a){const t=w(),o=W(),r=C("chakra-form__helper-text",e.className);return y.jsx(I.div,{...t==null?void 0:t.getHelpTextProps(e,a),__css:o.helperText,className:r})});Y.displayName="FormHelperText";function J(s){const{isDisabled:e,isInvalid:a,isReadOnly:t,isRequired:o,...r}=K(s);return{...r,disabled:e,readOnly:t,required:o,"aria-invalid":k(a),"aria-required":k(o),"aria-readonly":k(t)}}function K(s){const e=w(),{id:a,disabled:t,readOnly:o,required:r,isRequired:l,isInvalid:c,isReadOnly:n,isDisabled:h,onFocus:f,onBlur:x,...v}=s,p=s["aria-describedby"]?[s["aria-describedby"]]:[];return e!=null&&e.hasFeedbackText&&(e!=null&&e.isInvalid)&&p.push(e.feedbackId),e!=null&&e.hasHelpText&&p.push(e.helpTextId),{...v,"aria-describedby":p.join(" ")||void 0,id:a??(e==null?void 0:e.id),isDisabled:t??h??(e==null?void 0:e.isDisabled),isReadOnly:o??n??(e==null?void 0:e.isReadOnly),isRequired:r??l??(e==null?void 0:e.isRequired),isInvalid:c??(e==null?void 0:e.isInvalid),onFocus:M(e==null?void 0:e.onFocus,f),onBlur:M(e==null?void 0:e.onBlur,x)}}const H=b(function(e,a){const{htmlSize:t,...o}=e,r=N("Input",o),l=j(o),c=J(l),n=C("chakra-input",e.className);return y.jsx(I.input,{size:t,...c,__css:r.field,ref:a,className:n})});H.displayName="Input";H.id="Input";const U=b((s,e)=>{const{className:a,...t}=s,o=C("chakra-modal__footer",a),r=E(),l=B({display:"flex",alignItems:"center",justifyContent:"flex-end",...r.footer});return y.jsx(I.footer,{ref:e,...t,__css:l,className:o})});U.displayName="ModalFooter";var V,Z,ee;async function ne(s){let e=te(s);return e.length==0&&(e=se(s)),e}function te(s){if(/^[-]?(\d+(\.\d+)?),\s*[-]?(\d+(\.\d+)?)$/.test(s)){const[e,a]=s.split(",").map(t=>parseFloat(t.trim()));return[{lat:e,lon:a,display_name:`${e},${a}`,key:"coordinates"}]}else return[]}async function se(s){let e="https://nominatim.openstreetmap.org/search?format=json&addressdetails=1&q=".concat(s).concat("+Germany"),a=await T(e);return a||(e="https://nominatim.openstreetmap.org/search?format=json&addressdetails=1&q=".concat(s.split(" ").join("+")),a=await T(e)),a.map(t=>({lat:t.lat,lon:t.lon,key:t.place_id,display_name:oe(t.address)}))}function oe(s){return(s.road||"")+" "+(s.house_number||"")+", "+(s.postcode||"")+" "+(s.city||"")}async function T(s){try{const e=await fetch(s);if(!e.ok)throw new Error(`Request failed with status ${e.status}`);return await e.json()}catch(e){return console.error("Error:",e),[]}}function ie(s,e){Z=[s,e];const a=e*Math.PI/180,t=Math.pow(2,15),o=t*((s+180)/360),r=t*(1-Math.log(Math.tan(a)+1/Math.cos(a))/Math.PI)/2;return V=[o,r],ee=[1222.992452*o-2003750834e-2,2003750834e-2-1222.992452*r],[o,r]}function le(s,e,a){const t=4007501668e-2,o=t/Math.pow(2,a),r=o*s-t/2,l=r+o,c=t/2-o*e,n=c-o;return[r,c,l,n]}export{X as F,H as I,U as M,w as a,W as b,Z as c,ee as d,V as e,ie as p,ne as r,K as u,le as x}; diff --git a/assets/maplibre-gl-Bok8Fwzh.js b/assets/maplibre-gl-DcBeTzQR.js similarity index 99% rename from assets/maplibre-gl-Bok8Fwzh.js rename to assets/maplibre-gl-DcBeTzQR.js index a8155f2..4567ccc 100644 --- a/assets/maplibre-gl-Bok8Fwzh.js +++ b/assets/maplibre-gl-DcBeTzQR.js @@ -1,4 +1,4 @@ -import{H as zp,a5 as Ep}from"./index-Ba81FydE.js";function Dp(Ta,Fl){for(var Fr=0;Frki[Or]})}}}return Object.freeze(Object.defineProperty(Ta,Symbol.toStringTag,{value:"Module"}))}var Bu={exports:{}};/** +import{H as zp,a5 as Ep}from"./index-cA1eFW7V.js";function Dp(Ta,Fl){for(var Fr=0;Frki[Or]})}}}return Object.freeze(Object.defineProperty(Ta,Symbol.toStringTag,{value:"Module"}))}var Bu={exports:{}};/** * MapLibre GL JS * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt */(function(Ta,Fl){(function(Fr,ki){Ta.exports=ki()})(Ep,function(){var Fr={},ki={};function Or(L,p,zi){if(ki[L]=zi,L==="index"){var Xi="var sharedModule = {}; ("+ki.shared+")(sharedModule); ("+ki.worker+")(sharedModule);",Gt={};return ki.shared(Gt),ki.index(Fr,Gt),typeof window<"u"&&Fr.setWorkerUrl(window.URL.createObjectURL(new Blob([Xi],{type:"text/javascript"}))),Fr}}Or("shared",["exports"],function(L){function p(i,t,r,s){return new(r||(r=Promise))(function(l,u){function d(x){try{_(s.next(x))}catch(v){u(v)}}function f(x){try{_(s.throw(x))}catch(v){u(v)}}function _(x){var v;x.done?l(x.value):(v=x.value,v instanceof r?v:new r(function(w){w(v)})).then(d,f)}_((s=s.apply(i,t||[])).next())})}function zi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}typeof SuppressedError=="function"&&SuppressedError;var Xi=Gt;function Gt(i,t){this.x=i,this.y=t}Gt.prototype={clone:function(){return new Gt(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,t){return this.clone()._rotateAround(i,t)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var t=i.x-this.x,r=i.y-this.y;return t*t+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,t){return Math.atan2(this.x*t-this.y*i,this.x*i+this.y*t)},_matMult:function(i){var t=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=t,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var t=Math.cos(i),r=Math.sin(i),s=r*this.x+t*this.y;return this.x=t*this.x-r*this.y,this.y=s,this},_rotateAround:function(i,t){var r=Math.cos(i),s=Math.sin(i),l=t.y+s*(this.x-t.x)+r*(this.y-t.y);return this.x=t.x+r*(this.x-t.x)-s*(this.y-t.y),this.y=l,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Gt.convert=function(i){return i instanceof Gt?i:Array.isArray(i)?new Gt(i[0],i[1]):i};var me=zi(Xi),se=Vr;function Vr(i,t,r,s){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(s-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=t,this.p2x=r,this.p2y=s}Vr.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,t){if(t===void 0&&(t=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,s=0;s<8;s++){var l=this.sampleCurveX(r)-i;if(Math.abs(l)l?d=r:f=r,r=.5*(f-d)+d;return r},solve:function(i,t){return this.sampleCurveY(this.solveCurveX(i,t))}};var br=zi(se);let Wi,wr;function hr(){return Wi==null&&(Wi=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Wi}function Hn(){if(wr==null&&(wr=!1,hr())){const t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let s=0;s<5*5;s++){const l=4*s;t.fillStyle=`rgb(${l},${l+1},${l+2})`,t.fillRect(s%5,Math.floor(s/5),1,1)}const r=t.getImageData(0,0,5,5).data;for(let s=0;s<5*5*4;s++)if(s%4!=3&&r[s]!==s){wr=!0;break}}}return wr||!1}function hi(i,t,r,s){const l=new br(i,t,r,s);return u=>l.solve(u)}const Ia=hi(.25,.1,.25,1);function Ei(i,t,r){return Math.min(r,Math.max(t,i))}function Ki(i,t,r){const s=r-t,l=((i-t)%s+s)%s+t;return l===t?r:l}function vi(i,...t){for(const r of t)for(const s in r)i[s]=r[s];return i}let Ps=1;function Ji(i,t,r){const s={};for(const l in i)s[l]=t.call(this,i[l],l,i);return s}function Xn(i,t,r){const s={};for(const l in i)t.call(this,i[l],l,i)&&(s[l]=i[l]);return s}function st(i){return Array.isArray(i)?i.map(st):typeof i=="object"&&i?Ji(i,st):i}const As={};function Ft(i){As[i]||(typeof console<"u"&&console.warn(i),As[i]=!0)}function Ht(i,t,r){return(r.y-i.y)*(t.x-i.x)>(t.y-i.y)*(r.x-i.x)}function ur(i){return typeof WorkerGlobalScope<"u"&&i!==void 0&&i instanceof WorkerGlobalScope}let ln=null;function Yi(i){return typeof ImageBitmap<"u"&&i instanceof ImageBitmap}const Ms="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Nr(i,t,r,s,l){return p(this,void 0,void 0,function*(){if(typeof VideoFrame>"u")throw new Error("VideoFrame not supported");const u=new VideoFrame(i,{timestamp:0});try{const d=u==null?void 0:u.format;if(!d||!d.startsWith("BGR")&&!d.startsWith("RGB"))throw new Error(`Unrecognized format ${d}`);const f=d.startsWith("BGR"),_=new Uint8ClampedArray(s*l*4);if(yield u.copyTo(_,function(x,v,w,I,M){const k=4*Math.max(-v,0),z=(Math.max(0,w)-w)*I*4+k,F=4*I,j=Math.max(0,v),Q=Math.max(0,w);return{rect:{x:j,y:Q,width:Math.min(x.width,v+I)-j,height:Math.min(x.height,w+M)-Q},layout:[{offset:z,stride:F}]}}(i,t,r,s,l)),f)for(let x=0;x<_.length;x+=4){const v=_[x];_[x]=_[x+2],_[x+2]=v}return _}finally{u.close()}})}let dr,ei;const Di="AbortError";function cn(){return new Error(Di)}const Tr={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function Qi(i){return Tr.REGISTERED_PROTOCOLS[i.substring(0,i.indexOf("://"))]}const hn="global-dispatcher";class ui extends Error{constructor(t,r,s,l){super(`AJAXError: ${r} (${t}): ${s}`),this.status=t,this.statusText=r,this.url=s,this.body=l}}const Li=()=>ur(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,jr=function(i,t){if(/:\/\//.test(i.url)&&!/^https?:|^file:/.test(i.url)){const s=Qi(i.url);if(s)return s(i,t);if(ur(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:i,targetMapId:hn},t)}if(!(/^file:/.test(r=i.url)||/^file:/.test(Li())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(s,l){return p(this,void 0,void 0,function*(){const u=new Request(s.url,{method:s.method||"GET",body:s.body,credentials:s.credentials,headers:s.headers,cache:s.cache,referrer:Li(),signal:l.signal});s.type!=="json"||u.headers.has("Accept")||u.headers.set("Accept","application/json");const d=yield fetch(u);if(!d.ok){const x=yield d.blob();throw new ui(d.status,d.statusText,s.url,x)}let f;f=s.type==="arrayBuffer"||s.type==="image"?d.arrayBuffer():s.type==="json"?d.json():d.text();const _=yield f;if(l.signal.aborted)throw cn();return{data:_,cacheControl:d.headers.get("Cache-Control"),expires:d.headers.get("Expires")}})}(i,t);if(ur(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:i,mustQueue:!0,targetMapId:hn},t)}var r;return function(s,l){return new Promise((u,d)=>{var f;const _=new XMLHttpRequest;_.open(s.method||"GET",s.url,!0),s.type!=="arrayBuffer"&&s.type!=="image"||(_.responseType="arraybuffer");for(const x in s.headers)_.setRequestHeader(x,s.headers[x]);s.type==="json"&&(_.responseType="text",!((f=s.headers)===null||f===void 0)&&f.Accept||_.setRequestHeader("Accept","application/json")),_.withCredentials=s.credentials==="include",_.onerror=()=>{d(new Error(_.statusText))},_.onload=()=>{if(!l.signal.aborted)if((_.status>=200&&_.status<300||_.status===0)&&_.response!==null){let x=_.response;if(s.type==="json")try{x=JSON.parse(_.response)}catch(v){return void d(v)}u({data:x,cacheControl:_.getResponseHeader("Cache-Control"),expires:_.getResponseHeader("Expires")})}else{const x=new Blob([_.response],{type:_.getResponseHeader("Content-Type")});d(new ui(_.status,_.statusText,s.url,x))}},l.signal.addEventListener("abort",()=>{_.abort(),d(cn())}),_.send(s.body)})}(i,t)};function Ur(i){if(!i||i.indexOf("://")<=0||i.indexOf("data:image/")===0||i.indexOf("blob:")===0)return!0;const t=new URL(i),r=window.location;return t.protocol===r.protocol&&t.host===r.host}function Wn(i,t,r){r[i]&&r[i].indexOf(t)!==-1||(r[i]=r[i]||[],r[i].push(t))}function pr(i,t,r){if(r&&r[i]){const s=r[i].indexOf(t);s!==-1&&r[i].splice(s,1)}}class Sr{constructor(t,r={}){vi(this,r),this.type=t}}class Ir extends Sr{constructor(t,r={}){super("error",vi({error:t},r))}}class un{on(t,r){return this._listeners=this._listeners||{},Wn(t,r,this._listeners),this}off(t,r){return pr(t,r,this._listeners),pr(t,r,this._oneTimeListeners),this}once(t,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},Wn(t,r,this._oneTimeListeners),this):new Promise(s=>this.once(t,s))}fire(t,r){typeof t=="string"&&(t=new Sr(t,r||{}));const s=t.type;if(this.listens(s)){t.target=this;const l=this._listeners&&this._listeners[s]?this._listeners[s].slice():[];for(const f of l)f.call(this,t);const u=this._oneTimeListeners&&this._oneTimeListeners[s]?this._oneTimeListeners[s].slice():[];for(const f of u)pr(s,f,this._oneTimeListeners),f.call(this,t);const d=this._eventedParent;d&&(vi(t,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),d.fire(t))}else t instanceof Ir&&console.error(t.error);return this}listens(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}setEventedParent(t,r){return this._eventedParent=t,this._eventedParentData=r,this}}var ie={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const $r=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Kn(i,t){const r={};for(const s in i)s!=="ref"&&(r[s]=i[s]);return $r.forEach(s=>{s in t&&(r[s]=t[s])}),r}function et(i,t){if(Array.isArray(i)){if(!Array.isArray(t)||i.length!==t.length)return!1;for(let r=0;r`:i.itemType.kind==="value"?"array":`array<${t}>`}return i.kind}const D=[Ar,_e,$e,Be,ti,mr,Ri,A(Ne),Mr,rr,N];function O(i,t){if(t.kind==="error")return null;if(i.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!O(i.itemType,t.itemType))&&(typeof i.N!="number"||i.N===t.N))return null}else{if(i.kind===t.kind)return null;if(i.kind==="value"){for(const r of D)if(!O(r,t))return null}}return`Expected ${P(i)} but found ${P(t)} instead.`}function H(i,t){return t.some(r=>r.kind===i.kind)}function W(i,t){return t.some(r=>r==="null"?i===null:r==="array"?Array.isArray(i):r==="object"?i&&!Array.isArray(i)&&typeof i=="object":r===typeof i)}function Y(i,t){return i.kind==="array"&&t.kind==="array"?i.itemType.kind===t.itemType.kind&&typeof i.N=="number":i.kind===t.kind}const q=.96422,ne=.82521,le=4/29,te=6/29,de=3*te*te,Ee=te*te*te,De=Math.PI/180,Ke=180/Math.PI;function je(i){return(i%=360)<0&&(i+=360),i}function Je([i,t,r,s]){let l,u;const d=Pt((.2225045*(i=Ge(i))+.7168786*(t=Ge(t))+.0606169*(r=Ge(r)))/1);i===t&&t===r?l=u=d:(l=Pt((.4360747*i+.3850649*t+.1430804*r)/q),u=Pt((.0139322*i+.0971045*t+.7141733*r)/ne));const f=116*d-16;return[f<0?0:f,500*(l-d),200*(d-u),s]}function Ge(i){return i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function Pt(i){return i>Ee?Math.pow(i,1/3):i/de+le}function xt([i,t,r,s]){let l=(i+16)/116,u=isNaN(t)?l:l+t/500,d=isNaN(r)?l:l-r/200;return l=1*rt(l),u=q*rt(u),d=ne*rt(d),[qe(3.1338561*u-1.6168667*l-.4906146*d),qe(-.9787684*u+1.9161415*l+.033454*d),qe(.0719453*u-.2289914*l+1.4052427*d),s]}function qe(i){return(i=i<=.00304?12.92*i:1.055*Math.pow(i,1/2.4)-.055)<0?0:i>1?1:i}function rt(i){return i>te?i*i*i:de*(i-le)}function gt(i){return parseInt(i.padEnd(2,i),16)/255}function kt(i,t){return Lt(t?i/100:i,0,1)}function Lt(i,t,r){return Math.min(Math.max(t,i),r)}function Wt(i){return!i.some(Number.isNaN)}const pn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class nt{constructor(t,r,s,l=1,u=!0){this.r=t,this.g=r,this.b=s,this.a=l,u||(this.r*=l,this.g*=l,this.b*=l,l||this.overwriteGetter("rgb",[t,r,s,l]))}static parse(t){if(t instanceof nt)return t;if(typeof t!="string")return;const r=function(s){if((s=s.toLowerCase().trim())==="transparent")return[0,0,0,0];const l=pn[s];if(l){const[d,f,_]=l;return[d/255,f/255,_/255,1]}if(s.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(s)){const d=s.length<6?1:2;let f=1;return[gt(s.slice(f,f+=d)),gt(s.slice(f,f+=d)),gt(s.slice(f,f+=d)),gt(s.slice(f,f+d)||"ff")]}if(s.startsWith("rgb")){const d=s.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(d){const[f,_,x,v,w,I,M,k,z,F,j,Q]=d,G=[v||" ",M||" ",F].join("");if(G===" "||G===" /"||G===",,"||G===",,,"){const J=[x,I,z].join(""),re=J==="%%%"?100:J===""?255:0;if(re){const ce=[Lt(+_/re,0,1),Lt(+w/re,0,1),Lt(+k/re,0,1),j?kt(+j,Q):1];if(Wt(ce))return ce}}return}}const u=s.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(u){const[d,f,_,x,v,w,I,M,k]=u,z=[_||" ",v||" ",I].join("");if(z===" "||z===" /"||z===",,"||z===",,,"){const F=[+f,Lt(+x,0,100),Lt(+w,0,100),M?kt(+M,k):1];if(Wt(F))return function([j,Q,G,J]){function re(ce){const we=(ce+j/30)%12,Le=Q*Math.min(G,1-G);return G-Le*Math.max(-1,Math.min(we-3,9-we,1))}return j=je(j),Q/=100,G/=100,[re(0),re(8),re(4),J]}(F)}}}(t);return r?new nt(...r,!1):void 0}get rgb(){const{r:t,g:r,b:s,a:l}=this,u=l||1/0;return this.overwriteGetter("rgb",[t/u,r/u,s/u,l])}get hcl(){return this.overwriteGetter("hcl",function(t){const[r,s,l,u]=Je(t),d=Math.sqrt(s*s+l*l);return[Math.round(1e4*d)?je(Math.atan2(l,s)*Ke):NaN,d,r,u]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Je(this.rgb))}overwriteGetter(t,r){return Object.defineProperty(this,t,{value:r}),r}toString(){const[t,r,s,l]=this.rgb;return`rgba(${[t,r,s].map(u=>Math.round(255*u)).join(",")},${l})`}}nt.black=new nt(0,0,0,1),nt.white=new nt(1,1,1,1),nt.transparent=new nt(0,0,0,0),nt.red=new nt(1,0,0,1);class Pa{constructor(t,r,s){this.sensitivity=t?r?"variant":"case":r?"accent":"base",this.locale=s,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,r){return this.collator.compare(t,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Aa{constructor(t,r,s,l,u){this.text=t,this.image=r,this.scale=s,this.fontStack=l,this.textColor=u}}class di{constructor(t){this.sections=t}static fromString(t){return new di([new Aa(t,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof di?t:di.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}}class pi{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof pi)return t;if(typeof t=="number")return new pi([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(const r of t)if(typeof r!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new pi(t)}}toString(){return JSON.stringify(this.values)}}const Ol=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class wi{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof wi)return t;if(Array.isArray(t)&&!(t.length<1)&&t.length%2==0){for(let r=0;r=0&&i<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof r=="number"&&r>=0&&r<=255?s===void 0||typeof s=="number"&&s>=0&&s<=1?null:`Invalid rgba value [${[i,t,r,s].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof s=="number"?[i,t,r,s]:[i,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function qr(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof nt||i instanceof Pa||i instanceof di||i instanceof pi||i instanceof wi||i instanceof fi)return!0;if(Array.isArray(i)){for(const t of i)if(!qr(t))return!1;return!0}if(typeof i=="object"){for(const t in i)if(!qr(i[t]))return!1;return!0}return!1}function At(i){if(i===null)return Ar;if(typeof i=="string")return $e;if(typeof i=="boolean")return Be;if(typeof i=="number")return _e;if(i instanceof nt)return ti;if(i instanceof Pa)return ir;if(i instanceof di)return mr;if(i instanceof pi)return Mr;if(i instanceof wi)return N;if(i instanceof fi)return rr;if(Array.isArray(i)){const t=i.length;let r;for(const s of i){const l=At(s);if(r){if(r===l)continue;r=Ne;break}r=l}return A(r||Ne,t)}return Ri}function es(i){const t=typeof i;return i===null?"":t==="string"||t==="number"||t==="boolean"?String(i):i instanceof nt||i instanceof di||i instanceof pi||i instanceof wi||i instanceof fi?i.toString():JSON.stringify(i)}class Bi{constructor(t,r){this.type=t,this.value=r}static parse(t,r){if(t.length!==2)return r.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!qr(t[1]))return r.error("invalid value");const s=t[1];let l=At(s);const u=r.expectedType;return l.kind!=="array"||l.N!==0||!u||u.kind!=="array"||typeof u.N=="number"&&u.N!==0||(l=u),new Bi(l,s)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class St{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}}const Cs={string:$e,number:_e,boolean:Be,object:Ri};class Fi{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let s,l=1;const u=t[0];if(u==="array"){let f,_;if(t.length>2){const x=t[1];if(typeof x!="string"||!(x in Cs)||x==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);f=Cs[x],l++}else f=Ne;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);_=t[2],l++}s=A(f,_)}else{if(!Cs[u])throw new Error(`Types doesn't contain name = ${u}`);s=Cs[u]}const d=[];for(;lt.outputDefined())}}const Ma={"to-boolean":Be,"to-color":ti,"to-number":_e,"to-string":$e};class Oi{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");const s=t[0];if(!Ma[s])throw new Error(`Can't parse ${s} as it is not part of the known types`);if((s==="to-boolean"||s==="to-string")&&t.length!==2)return r.error("Expected one argument.");const l=Ma[s],u=[];for(let d=1;d4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:fn(r[0],r[1],r[2],r[3]),!s))return new nt(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new St(s||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"padding":{let r;for(const s of this.args){r=s.evaluate(t);const l=pi.parse(r);if(l)return l}throw new St(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"variableAnchorOffsetCollection":{let r;for(const s of this.args){r=s.evaluate(t);const l=wi.parse(r);if(l)return l}throw new St(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"number":{let r=null;for(const s of this.args){if(r=s.evaluate(t),r===null)return 0;const l=Number(r);if(!isNaN(l))return l}throw new St(`Could not convert ${JSON.stringify(r)} to number.`)}case"formatted":return di.fromString(es(this.args[0].evaluate(t)));case"resolvedImage":return fi.fromString(es(this.args[0].evaluate(t)));default:return es(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}}const Vl=["Unknown","Point","LineString","Polygon"];class ks{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Vl[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let r=this._parseColorCache[t];return r||(r=this._parseColorCache[t]=nt.parse(t)),r}}class Zr{constructor(t,r,s=[],l,u=new tr,d=[]){this.registry=t,this.path=s,this.key=s.map(f=>`[${f}]`).join(""),this.scope=u,this.errors=d,this.expectedType=l,this._isConstant=r}parse(t,r,s,l,u={}){return r?this.concat(r,s,l)._parse(t,u):this._parse(t,u)}_parse(t,r){function s(l,u,d){return d==="assert"?new Fi(u,[l]):d==="coerce"?new Oi(u,[l]):l}if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"||(t=["literal",t]),Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const l=t[0];if(typeof l!="string")return this.error(`Expression name must be a string, but found ${typeof l} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const u=this.registry[l];if(u){let d=u.parse(t,this);if(!d)return null;if(this.expectedType){const f=this.expectedType,_=d.type;if(f.kind!=="string"&&f.kind!=="number"&&f.kind!=="boolean"&&f.kind!=="object"&&f.kind!=="array"||_.kind!=="value")if(f.kind!=="color"&&f.kind!=="formatted"&&f.kind!=="resolvedImage"||_.kind!=="value"&&_.kind!=="string")if(f.kind!=="padding"||_.kind!=="value"&&_.kind!=="number"&&_.kind!=="array")if(f.kind!=="variableAnchorOffsetCollection"||_.kind!=="value"&&_.kind!=="array"){if(this.checkSubtype(f,_))return null}else d=s(d,f,r.typeAnnotation||"coerce");else d=s(d,f,r.typeAnnotation||"coerce");else d=s(d,f,r.typeAnnotation||"coerce");else d=s(d,f,r.typeAnnotation||"assert")}if(!(d instanceof Bi)&&d.type.kind!=="resolvedImage"&&this._isConstant(d)){const f=new ks;try{d=new Bi(d.type,d.evaluate(f))}catch(_){return this.error(_.message),null}}return d}return this.error(`Unknown expression "${l}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(t===void 0?"'undefined' value invalid. Use null instead.":typeof t=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,r,s){const l=typeof t=="number"?this.path.concat(t):this.path,u=s?this.scope.concat(s):this.scope;return new Zr(this.registry,this._isConstant,l,r||null,u,this.errors)}error(t,...r){const s=`${this.key}${r.map(l=>`[${l}]`).join("")}`;this.errors.push(new Xt(s,t))}checkSubtype(t,r){const s=O(t,r);return s&&this.error(s),s}}class Cr{constructor(t,r){this.type=r.type,this.bindings=[].concat(t),this.result=r}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const r of this.bindings)t(r[1]);t(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const s=[];for(let u=1;u=s.length)throw new St(`Array index out of bounds: ${r} > ${s.length-1}.`);if(r!==Math.floor(r))throw new St(`Array index must be an integer, but found ${r} instead.`);return s[r]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}}class ka{constructor(t,r){this.type=Be,this.needle=t,this.haystack=r}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const s=r.parse(t[1],1,Ne),l=r.parse(t[2],2,Ne);return s&&l?H(s.type,[Be,$e,_e,Ar,Ne])?new ka(s,l):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${P(s.type)} instead`):null}evaluate(t){const r=this.needle.evaluate(t),s=this.haystack.evaluate(t);if(!s)return!1;if(!W(r,["boolean","string","number","null"]))throw new St(`Expected first argument to be of type boolean, string, number or null, but found ${P(At(r))} instead.`);if(!W(s,["string","array"]))throw new St(`Expected second argument to be of type array or string, but found ${P(At(s))} instead.`);return s.indexOf(r)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}}class mn{constructor(t,r,s){this.type=_e,this.needle=t,this.haystack=r,this.fromIndex=s}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const s=r.parse(t[1],1,Ne),l=r.parse(t[2],2,Ne);if(!s||!l)return null;if(!H(s.type,[Be,$e,_e,Ar,Ne]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${P(s.type)} instead`);if(t.length===4){const u=r.parse(t[3],3,_e);return u?new mn(s,l,u):null}return new mn(s,l)}evaluate(t){const r=this.needle.evaluate(t),s=this.haystack.evaluate(t);if(!W(r,["boolean","string","number","null"]))throw new St(`Expected first argument to be of type boolean, string, number or null, but found ${P(At(r))} instead.`);let l;if(this.fromIndex&&(l=this.fromIndex.evaluate(t)),W(s,["string"])){const u=s.indexOf(r,l);return u===-1?-1:[...s.slice(0,u)].length}if(W(s,["array"]))return s.indexOf(r,l);throw new St(`Expected second argument to be of type array or string, but found ${P(At(s))} instead.`)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}}class za{constructor(t,r,s,l,u,d){this.inputType=t,this.type=r,this.input=s,this.cases=l,this.outputs=u,this.otherwise=d}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let s,l;r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);const u={},d=[];for(let x=2;xNumber.MAX_SAFE_INTEGER)return I.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof k=="number"&&Math.floor(k)!==k)return I.error("Numeric branch labels must be integer values.");if(s){if(I.checkSubtype(s,At(k)))return null}else s=At(k);if(u[String(k)]!==void 0)return I.error("Branch labels must be unique.");u[String(k)]=d.length}const M=r.parse(w,x,l);if(!M)return null;l=l||M.type,d.push(M)}const f=r.parse(t[1],1,Ne);if(!f)return null;const _=r.parse(t[t.length-1],t.length-1,l);return _?f.type.kind!=="value"&&r.concat(1).checkSubtype(s,f.type)?null:new za(s,l,f,u,d,_):null}evaluate(t){const r=this.input.evaluate(t);return(At(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}}class zs{constructor(t,r,s){this.type=t,this.branches=r,this.otherwise=s}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let s;r.expectedType&&r.expectedType.kind!=="value"&&(s=r.expectedType);const l=[];for(let d=1;dr.outputDefined())&&this.otherwise.outputDefined()}}class ts{constructor(t,r,s,l){this.type=t,this.input=r,this.beginIndex=s,this.endIndex=l}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const s=r.parse(t[1],1,Ne),l=r.parse(t[2],2,_e);if(!s||!l)return null;if(!H(s.type,[A(Ne),$e,Ne]))return r.error(`Expected first argument to be of type array or string, but found ${P(s.type)} instead`);if(t.length===4){const u=r.parse(t[3],3,_e);return u?new ts(s.type,s,l,u):null}return new ts(s.type,s,l)}evaluate(t){const r=this.input.evaluate(t),s=this.beginIndex.evaluate(t);let l;if(this.endIndex&&(l=this.endIndex.evaluate(t)),W(r,["string"]))return[...r].slice(s,l).join("");if(W(r,["array"]))return r.slice(s,l);throw new St(`Expected first argument to be of type array or string, but found ${P(At(r))} instead.`)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}}function Es(i,t){const r=i.length-1;let s,l,u=0,d=r,f=0;for(;u<=d;)if(f=Math.floor((u+d)/2),s=i[f],l=i[f+1],s<=t){if(f===r||tt))throw new St("Input is not a number.");d=f-1}return 0}class _n{constructor(t,r,s){this.type=t,this.input=r,this.labels=[],this.outputs=[];for(const[l,u]of s)this.labels.push(l),this.outputs.push(u)}static parse(t,r){if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");const s=r.parse(t[1],1,_e);if(!s)return null;const l=[];let u=null;r.expectedType&&r.expectedType.kind!=="value"&&(u=r.expectedType);for(let d=1;d=f)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',x);const w=r.parse(_,v,u);if(!w)return null;u=u||w.type,l.push([f,w])}return new _n(u,s,l)}evaluate(t){const r=this.labels,s=this.outputs;if(r.length===1)return s[0].evaluate(t);const l=this.input.evaluate(t);if(l<=r[0])return s[0].evaluate(t);const u=r.length;return l>=r[u-1]?s[u-1].evaluate(t):s[Es(r,l)].evaluate(t)}eachChild(t){t(this.input);for(const r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}}function Ro(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Nl=Bo;function Bo(i,t,r,s){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(s-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=t,this.p2x=r,this.p2y=s}Bo.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,t){if(t===void 0&&(t=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,s=0;s<8;s++){var l=this.sampleCurveX(r)-i;if(Math.abs(l)l?d=r:f=r,r=.5*(f-d)+d;return r},solve:function(i,t){return this.sampleCurveY(this.solveCurveX(i,t))}};var jl=Ro(Nl);function Gr(i,t,r){return i+r*(t-i)}function is(i,t,r){return i.map((s,l)=>Gr(s,t[l],r))}const ii={number:Gr,color:function(i,t,r,s="rgb"){switch(s){case"rgb":{const[l,u,d,f]=is(i.rgb,t.rgb,r);return new nt(l,u,d,f,!1)}case"hcl":{const[l,u,d,f]=i.hcl,[_,x,v,w]=t.hcl;let I,M;if(isNaN(l)||isNaN(_))isNaN(l)?isNaN(_)?I=NaN:(I=_,d!==1&&d!==0||(M=x)):(I=l,v!==1&&v!==0||(M=u));else{let Q=_-l;_>l&&Q>180?Q-=360:_180&&(Q+=360),I=l+r*Q}const[k,z,F,j]=function([Q,G,J,re]){return Q=isNaN(Q)?0:Q*De,xt([J,Math.cos(Q)*G,Math.sin(Q)*G,re])}([I,M??Gr(u,x,r),Gr(d,v,r),Gr(f,w,r)]);return new nt(k,z,F,j,!1)}case"lab":{const[l,u,d,f]=xt(is(i.lab,t.lab,r));return new nt(l,u,d,f,!1)}}},array:is,padding:function(i,t,r){return new pi(is(i.values,t.values,r))},variableAnchorOffsetCollection:function(i,t,r){const s=i.values,l=t.values;if(s.length!==l.length)throw new St(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${t.toString()}`);const u=[];for(let d=0;dtypeof v!="number"||v<0||v>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);l={name:"cubic-bezier",controlPoints:x}}}if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(u=r.parse(u,2,_e),!u)return null;const f=[];let _=null;s==="interpolate-hcl"||s==="interpolate-lab"?_=ti:r.expectedType&&r.expectedType.kind!=="value"&&(_=r.expectedType);for(let x=0;x=v)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',I);const k=r.parse(w,M,_);if(!k)return null;_=_||k.type,f.push([v,k])}return Y(_,_e)||Y(_,ti)||Y(_,Mr)||Y(_,N)||Y(_,A(_e))?new ri(_,s,l,u,f):r.error(`Type ${P(_)} is not interpolatable.`)}evaluate(t){const r=this.labels,s=this.outputs;if(r.length===1)return s[0].evaluate(t);const l=this.input.evaluate(t);if(l<=r[0])return s[0].evaluate(t);const u=r.length;if(l>=r[u-1])return s[u-1].evaluate(t);const d=Es(r,l),f=ri.interpolationFactor(this.interpolation,l,r[d],r[d+1]),_=s[d].evaluate(t),x=s[d+1].evaluate(t);switch(this.operator){case"interpolate":return ii[this.type.kind](_,x,f);case"interpolate-hcl":return ii.color(_,x,f,"hcl");case"interpolate-lab":return ii.color(_,x,f,"lab")}}eachChild(t){t(this.input);for(const r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}}function Ds(i,t,r,s){const l=s-r,u=i-r;return l===0?0:t===1?u/l:(Math.pow(t,u)-1)/(Math.pow(t,l)-1)}class Ls{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expectected at least one argument.");let s=null;const l=r.expectedType;l&&l.kind!=="value"&&(s=l);const u=[];for(const f of t.slice(1)){const _=r.parse(f,1+u.length,s,void 0,{typeAnnotation:"omit"});if(!_)return null;s=s||_.type,u.push(_)}if(!s)throw new Error("No output type");const d=l&&u.some(f=>O(l,f.type));return new Ls(d?Ne:s,u)}evaluate(t){let r,s=null,l=0;for(const u of this.args)if(l++,s=u.evaluate(t),s&&s instanceof fi&&!s.available&&(r||(r=s.name),s=null,l===this.args.length&&(s=r)),s!==null)break;return s}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}}function Rs(i,t){return i==="=="||i==="!="?t.kind==="boolean"||t.kind==="string"||t.kind==="number"||t.kind==="null"||t.kind==="value":t.kind==="string"||t.kind==="number"||t.kind==="value"}function Fo(i,t,r,s){return s.compare(t,r)===0}function gn(i,t,r){const s=i!=="=="&&i!=="!=";return class Fu{constructor(u,d,f){this.type=Be,this.lhs=u,this.rhs=d,this.collator=f,this.hasUntypedArgument=u.type.kind==="value"||d.type.kind==="value"}static parse(u,d){if(u.length!==3&&u.length!==4)return d.error("Expected two or three arguments.");const f=u[0];let _=d.parse(u[1],1,Ne);if(!_)return null;if(!Rs(f,_.type))return d.concat(1).error(`"${f}" comparisons are not supported for type '${P(_.type)}'.`);let x=d.parse(u[2],2,Ne);if(!x)return null;if(!Rs(f,x.type))return d.concat(2).error(`"${f}" comparisons are not supported for type '${P(x.type)}'.`);if(_.type.kind!==x.type.kind&&_.type.kind!=="value"&&x.type.kind!=="value")return d.error(`Cannot compare types '${P(_.type)}' and '${P(x.type)}'.`);s&&(_.type.kind==="value"&&x.type.kind!=="value"?_=new Fi(x.type,[_]):_.type.kind!=="value"&&x.type.kind==="value"&&(x=new Fi(_.type,[x])));let v=null;if(u.length===4){if(_.type.kind!=="string"&&x.type.kind!=="string"&&_.type.kind!=="value"&&x.type.kind!=="value")return d.error("Cannot use collator to compare non-string types.");if(v=d.parse(u[3],3,ir),!v)return null}return new Fu(_,x,v)}evaluate(u){const d=this.lhs.evaluate(u),f=this.rhs.evaluate(u);if(s&&this.hasUntypedArgument){const _=At(d),x=At(f);if(_.kind!==x.kind||_.kind!=="string"&&_.kind!=="number")throw new St(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${_.kind}, ${x.kind}) instead.`)}if(this.collator&&!s&&this.hasUntypedArgument){const _=At(d),x=At(f);if(_.kind!=="string"||x.kind!=="string")return t(u,d,f)}return this.collator?r(u,d,f,this.collator.evaluate(u)):t(u,d,f)}eachChild(u){u(this.lhs),u(this.rhs),this.collator&&u(this.collator)}outputDefined(){return!0}}}const Ul=gn("==",function(i,t,r){return t===r},Fo),Oo=gn("!=",function(i,t,r){return t!==r},function(i,t,r,s){return!Fo(0,t,r,s)}),Vo=gn("<",function(i,t,r){return t",function(i,t,r){return t>r},function(i,t,r,s){return s.compare(t,r)>0}),ql=gn("<=",function(i,t,r){return t<=r},function(i,t,r,s){return s.compare(t,r)<=0}),No=gn(">=",function(i,t,r){return t>=r},function(i,t,r,s){return s.compare(t,r)>=0});class rs{constructor(t,r,s){this.type=ir,this.locale=s,this.caseSensitive=t,this.diacriticSensitive=r}static parse(t,r){if(t.length!==2)return r.error("Expected one argument.");const s=t[1];if(typeof s!="object"||Array.isArray(s))return r.error("Collator options argument must be an object.");const l=r.parse(s["case-sensitive"]!==void 0&&s["case-sensitive"],1,Be);if(!l)return null;const u=r.parse(s["diacritic-sensitive"]!==void 0&&s["diacritic-sensitive"],1,Be);if(!u)return null;let d=null;return s.locale&&(d=r.parse(s.locale,1,$e),!d)?null:new rs(l,u,d)}evaluate(t){return new Pa(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}}class Ea{constructor(t,r,s,l,u){this.type=$e,this.number=t,this.locale=r,this.currency=s,this.minFractionDigits=l,this.maxFractionDigits=u}static parse(t,r){if(t.length!==3)return r.error("Expected two arguments.");const s=r.parse(t[1],1,_e);if(!s)return null;const l=t[2];if(typeof l!="object"||Array.isArray(l))return r.error("NumberFormat options argument must be an object.");let u=null;if(l.locale&&(u=r.parse(l.locale,1,$e),!u))return null;let d=null;if(l.currency&&(d=r.parse(l.currency,1,$e),!d))return null;let f=null;if(l["min-fraction-digits"]&&(f=r.parse(l["min-fraction-digits"],1,_e),!f))return null;let _=null;return l["max-fraction-digits"]&&(_=r.parse(l["max-fraction-digits"],1,_e),!_)?null:new Ea(s,u,d,f,_)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}}class Bs{constructor(t){this.type=mr,this.sections=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");const s=t[1];if(!Array.isArray(s)&&typeof s=="object")return r.error("First argument must be an image or text section.");const l=[];let u=!1;for(let d=1;d<=t.length-1;++d){const f=t[d];if(u&&typeof f=="object"&&!Array.isArray(f)){u=!1;let _=null;if(f["font-scale"]&&(_=r.parse(f["font-scale"],1,_e),!_))return null;let x=null;if(f["text-font"]&&(x=r.parse(f["text-font"],1,A($e)),!x))return null;let v=null;if(f["text-color"]&&(v=r.parse(f["text-color"],1,ti),!v))return null;const w=l[l.length-1];w.scale=_,w.font=x,w.textColor=v}else{const _=r.parse(t[d],1,Ne);if(!_)return null;const x=_.type.kind;if(x!=="string"&&x!=="value"&&x!=="null"&&x!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");u=!0,l.push({content:_,scale:null,font:null,textColor:null})}}return new Bs(l)}evaluate(t){return new di(this.sections.map(r=>{const s=r.content.evaluate(t);return At(s)===rr?new Aa("",s,null,null,null):new Aa(es(s),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(","):null,r.textColor?r.textColor.evaluate(t):null)}))}eachChild(t){for(const r of this.sections)t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor)}outputDefined(){return!1}}class Da{constructor(t){this.type=rr,this.input=t}static parse(t,r){if(t.length!==2)return r.error("Expected two arguments.");const s=r.parse(t[1],1,$e);return s?new Da(s):r.error("No image name provided.")}evaluate(t){const r=this.input.evaluate(t),s=fi.fromString(r);return s&&t.availableImages&&(s.available=t.availableImages.indexOf(r)>-1),s}eachChild(t){t(this.input)}outputDefined(){return!1}}class La{constructor(t){this.type=_e,this.input=t}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);const s=r.parse(t[1],1);return s?s.type.kind!=="array"&&s.type.kind!=="string"&&s.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${P(s.type)} instead.`):new La(s):null}evaluate(t){const r=this.input.evaluate(t);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new St(`Expected value to be of type string or array, but found ${P(At(r))} instead.`)}eachChild(t){t(this.input)}outputDefined(){return!1}}const nr=8192;function Zl(i,t){const r=(180+i[0])/360,s=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,l=Math.pow(2,t.z);return[Math.round(r*l*nr),Math.round(s*l*nr)]}function Ra(i,t){const r=Math.pow(2,t.z);return[(l=(i[0]/nr+t.x)/r,360*l-180),(s=(i[1]/nr+t.y)/r,360/Math.PI*Math.atan(Math.exp((180-360*s)*Math.PI/180))-90)];var s,l}function Hr(i,t){i[0]=Math.min(i[0],t[0]),i[1]=Math.min(i[1],t[1]),i[2]=Math.max(i[2],t[0]),i[3]=Math.max(i[3],t[1])}function kr(i,t){return!(i[0]<=t[0]||i[2]>=t[2]||i[1]<=t[1]||i[3]>=t[3])}function it(i,t,r){const s=i[0]-t[0],l=i[1]-t[1],u=i[0]-r[0],d=i[1]-r[1];return s*d-u*l==0&&s*u<=0&&l*d<=0}function Fs(i,t,r,s){return(l=[s[0]-r[0],s[1]-r[1]])[0]*(u=[t[0]-i[0],t[1]-i[1]])[1]-l[1]*u[0]!=0&&!(!Uo(i,t,r,s)||!Uo(r,s,i,t));var l,u}function Gl(i,t,r){for(const s of r)for(let l=0;l(l=i)[1]!=(d=f[_+1])[1]>l[1]&&l[0]<(d[0]-u[0])*(l[1]-u[1])/(d[1]-u[1])+u[0]&&(s=!s)}var l,u,d;return s}function Hl(i,t){for(const r of t)if(yn(i,r))return!0;return!1}function jo(i,t){for(const r of i)if(!yn(r,t))return!1;for(let r=0;r0&&f<0||d<0&&f>0}function Ba(i,t,r){const s=[];for(let l=0;lr[2]){const l=.5*s;let u=i[0]-r[0]>l?-s:r[0]-i[0]>l?s:0;u===0&&(u=i[0]-r[2]>l?-s:r[2]-i[0]>l?s:0),i[0]+=u}Hr(t,i)}function Zo(i,t,r,s){const l=Math.pow(2,s.z)*nr,u=[s.x*nr,s.y*nr],d=[];for(const f of i)for(const _ of f){const x=[_.x+u[0],_.y+u[1]];qo(x,t,r,l),d.push(x)}return d}function Go(i,t,r,s){const l=Math.pow(2,s.z)*nr,u=[s.x*nr,s.y*nr],d=[];for(const _ of i){const x=[];for(const v of _){const w=[v.x+u[0],v.y+u[1]];Hr(t,w),x.push(w)}d.push(x)}if(t[2]-t[0]<=l/2){(f=t)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const _ of d)for(const x of _)qo(x,t,r,l)}var f;return d}class Xr{constructor(t,r){this.type=Be,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(qr(t[1])){const s=t[1];if(s.type==="FeatureCollection"){const l=[];for(const u of s.features){const{type:d,coordinates:f}=u.geometry;d==="Polygon"&&l.push(f),d==="MultiPolygon"&&l.push(...f)}if(l.length)return new Xr(s,{type:"MultiPolygon",coordinates:l})}else if(s.type==="Feature"){const l=s.geometry.type;if(l==="Polygon"||l==="MultiPolygon")return new Xr(s,s.geometry)}else if(s.type==="Polygon"||s.type==="MultiPolygon")return new Xr(s,s)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return function(r,s){const l=[1/0,1/0,-1/0,-1/0],u=[1/0,1/0,-1/0,-1/0],d=r.canonicalID();if(s.type==="Polygon"){const f=Ba(s.coordinates,u,d),_=Zo(r.geometry(),l,u,d);if(!kr(l,u))return!1;for(const x of _)if(!yn(x,f))return!1}if(s.type==="MultiPolygon"){const f=$o(s.coordinates,u,d),_=Zo(r.geometry(),l,u,d);if(!kr(l,u))return!1;for(const x of _)if(!Hl(x,f))return!1}return!0}(t,this.geometries);if(t.geometryType()==="LineString")return function(r,s){const l=[1/0,1/0,-1/0,-1/0],u=[1/0,1/0,-1/0,-1/0],d=r.canonicalID();if(s.type==="Polygon"){const f=Ba(s.coordinates,u,d),_=Go(r.geometry(),l,u,d);if(!kr(l,u))return!1;for(const x of _)if(!jo(x,f))return!1}if(s.type==="MultiPolygon"){const f=$o(s.coordinates,u,d),_=Go(r.geometry(),l,u,d);if(!kr(l,u))return!1;for(const x of _)if(!Xl(x,f))return!1}return!0}(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Ho=class{constructor(i=[],t=(r,s)=>rs?1:0){if(this.data=i,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(i){this.data.push(i),this._up(this.length++)}pop(){if(this.length===0)return;const i=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),i}peek(){return this.data[0]}_up(i){const{data:t,compare:r}=this,s=t[i];for(;i>0;){const l=i-1>>1,u=t[l];if(r(s,u)>=0)break;t[i]=u,i=l}t[i]=s}_down(i){const{data:t,compare:r}=this,s=this.length>>1,l=t[i];for(;i=0)break;t[i]=t[u],i=u}t[i]=l}};function Wl(i,t,r,s,l){Xo(i,t,r,s||i.length-1,l||Kl)}function Xo(i,t,r,s,l){for(;s>r;){if(s-r>600){var u=s-r+1,d=t-r+1,f=Math.log(u),_=.5*Math.exp(2*f/3),x=.5*Math.sqrt(f*_*(u-_)/u)*(d-u/2<0?-1:1);Xo(i,t,Math.max(r,Math.floor(t-d*_/u+x)),Math.min(s,Math.floor(t+(u-d)*_/u+x)),l)}var v=i[t],w=r,I=s;for(ns(i,r,t),l(i[s],v)>0&&ns(i,r,s);w0;)I--}l(i[r],v)===0?ns(i,r,I):ns(i,++I,s),I<=t&&(r=I+1),t<=I&&(s=I-1)}}function ns(i,t,r){var s=i[t];i[t]=i[r],i[r]=s}function Kl(i,t){return it?1:0}function Os(i,t){if(i.length<=1)return[i];const r=[];let s,l;for(const u of i){const d=Yl(u);d!==0&&(u.area=Math.abs(d),l===void 0&&(l=d<0),l===d<0?(s&&r.push(s),s=[u]):s.push(u))}if(s&&r.push(s),t>1)for(let u=0;u1?(x=t[_+1][0],v=t[_+1][1]):M>0&&(x+=w/this.kx*M,v+=I/this.ky*M)),w=this.wrap(r[0]-x)*this.kx,I=(r[1]-v)*this.ky;const k=w*w+I*I;k180;)t-=360;return t}}function Yo(i,t){return t[0]-i[0]}function Vs(i){return i[1]-i[0]+1}function _r(i,t){return i[1]>=i[0]&&i[1]i[1])return[null,null];const r=Vs(i);if(t){if(r===2)return[i,null];const l=Math.floor(r/2);return[[i[0],i[0]+l],[i[0]+l,i[1]]]}if(r===1)return[i,null];const s=Math.floor(r/2)-1;return[[i[0],i[0]+s],[i[0]+s+1,i[1]]]}function Va(i,t){if(!_r(t,i.length))return[1/0,1/0,-1/0,-1/0];const r=[1/0,1/0,-1/0,-1/0];for(let s=t[0];s<=t[1];++s)Hr(r,i[s]);return r}function Na(i){const t=[1/0,1/0,-1/0,-1/0];for(const r of i)for(const s of r)Hr(t,s);return t}function Ns(i){return i[0]!==-1/0&&i[1]!==-1/0&&i[2]!==1/0&&i[3]!==1/0}function ja(i,t,r){if(!Ns(i)||!Ns(t))return NaN;let s=0,l=0;return i[2]t[2]&&(s=i[0]-t[2]),i[1]>t[3]&&(l=i[1]-t[3]),i[3]=s)return s;if(kr(l,u)){if(js(i,t))return 0}else if(js(t,i))return 0;let d=1/0;for(const f of i)for(let _=0,x=f.length,v=x-1;_0;){const _=d.pop();if(_[0]>=u)continue;const x=_[1],v=t?50:100;if(Vs(x)<=v){if(!_r(x,i.length))return NaN;if(t){const w=Ze(i,x,r,s);if(isNaN(w)||w===0)return w;u=Math.min(u,w)}else for(let w=x[0];w<=x[1];++w){const I=ec(i[w],r,s);if(u=Math.min(u,I),u===0)return 0}}else{const w=Oa(x,t);at(d,u,s,i,f,w[0]),at(d,u,s,i,f,w[1])}}return u}function as(i,t,r,s,l,u=1/0){let d=Math.min(u,l.distance(i[0],r[0]));if(d===0)return d;const f=new Ho([[0,[0,i.length-1],[0,r.length-1]]],Yo);for(;f.length>0;){const _=f.pop();if(_[0]>=d)continue;const x=_[1],v=_[2],w=t?50:100,I=s?50:100;if(Vs(x)<=w&&Vs(v)<=I){if(!_r(x,i.length)&&_r(v,r.length))return NaN;let M;if(t&&s)M=Ql(i,x,r,v,l),d=Math.min(d,M);else if(t&&!s){const k=i.slice(x[0],x[1]+1);for(let z=v[0];z<=v[1];++z)if(M=Wr(r[z],k,l),d=Math.min(d,M),d===0)return d}else if(!t&&s){const k=r.slice(v[0],v[1]+1);for(let z=x[0];z<=x[1];++z)if(M=Wr(i[z],k,l),d=Math.min(d,M),d===0)return d}else M=bt(i,x,r,v,l),d=Math.min(d,M)}else{const M=Oa(x,t),k=Oa(v,s);Kr(f,d,l,i,r,M[0],k[0]),Kr(f,d,l,i,r,M[0],k[1]),Kr(f,d,l,i,r,M[1],k[0]),Kr(f,d,l,i,r,M[1],k[1])}}return d}function $a(i){return i.type==="MultiPolygon"?i.coordinates.map(t=>({type:"Polygon",coordinates:t})):i.type==="MultiLineString"?i.coordinates.map(t=>({type:"LineString",coordinates:t})):i.type==="MultiPoint"?i.coordinates.map(t=>({type:"Point",coordinates:t})):[i]}class Jr{constructor(t,r){this.type=_e,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(qr(t[1])){const s=t[1];if(s.type==="FeatureCollection")return new Jr(s,s.features.map(l=>$a(l.geometry)).flat());if(s.type==="Feature")return new Jr(s,$a(s.geometry));if("type"in s&&"coordinates"in s)return new Jr(s,$a(s))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return function(r,s){const l=r.geometry(),u=l.flat().map(_=>Ra([_.x,_.y],r.canonical));if(l.length===0)return NaN;const d=new Fa(u[0][1]);let f=1/0;for(const _ of s){switch(_.type){case"Point":f=Math.min(f,as(u,!1,[_.coordinates],!1,d,f));break;case"LineString":f=Math.min(f,as(u,!1,_.coordinates,!0,d,f));break;case"Polygon":f=Math.min(f,ss(u,!1,_.coordinates,d,f))}if(f===0)return f}return f}(t,this.geometries);if(t.geometryType()==="LineString")return function(r,s){const l=r.geometry(),u=l.flat().map(_=>Ra([_.x,_.y],r.canonical));if(l.length===0)return NaN;const d=new Fa(u[0][1]);let f=1/0;for(const _ of s){switch(_.type){case"Point":f=Math.min(f,as(u,!0,[_.coordinates],!1,d,f));break;case"LineString":f=Math.min(f,as(u,!0,_.coordinates,!0,d,f));break;case"Polygon":f=Math.min(f,ss(u,!0,_.coordinates,d,f))}if(f===0)return f}return f}(t,this.geometries);if(t.geometryType()==="Polygon")return function(r,s){const l=r.geometry();if(l.length===0||l[0].length===0)return NaN;const u=Os(l,0).map(_=>_.map(x=>x.map(v=>Ra([v.x,v.y],r.canonical)))),d=new Fa(u[0][0][0][1]);let f=1/0;for(const _ of s)for(const x of u){switch(_.type){case"Point":f=Math.min(f,ss([_.coordinates],!1,x,d,f));break;case"LineString":f=Math.min(f,ss(_.coordinates,!0,x,d,f));break;case"Polygon":f=Math.min(f,ht(x,_.coordinates,d,f))}if(f===0)return f}return f}(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}const xn={"==":Ul,"!=":Oo,">":$l,"<":Vo,">=":No,"<=":ql,array:Fi,at:Ca,boolean:Fi,case:zs,coalesce:Ls,collator:rs,format:Bs,image:Da,in:ka,"index-of":mn,interpolate:ri,"interpolate-hcl":ri,"interpolate-lab":ri,length:La,let:Cr,literal:Bi,match:za,number:Fi,"number-format":Ea,object:Fi,slice:ts,step:_n,string:Fi,"to-boolean":Oi,"to-color":Oi,"to-number":Oi,"to-string":Oi,var:tt,within:Xr,distance:Jr};class Ti{constructor(t,r,s,l){this.name=t,this.type=r,this._evaluate=s,this.args=l}evaluate(t){return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,r){const s=t[0],l=Ti.definitions[s];if(!l)return r.error(`Unknown expression "${s}". If you wanted a literal array, use ["literal", [...]].`,0);const u=Array.isArray(l)?l[0]:l.type,d=Array.isArray(l)?[[l[1],l[2]]]:l.overloads,f=d.filter(([x])=>!Array.isArray(x)||x.length===t.length-1);let _=null;for(const[x,v]of f){_=new Zr(r.registry,os,r.path,null,r.scope);const w=[];let I=!1;for(let M=1;M{return I=w,Array.isArray(I)?`(${I.map(P).join(", ")})`:`(${P(I.type)}...)`;var I}).join(" | "),v=[];for(let w=1;w{r=t?r&&os(s):r&&s instanceof Bi}),!!r&&ls(i)&&cs(i,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function ls(i){if(i instanceof Ti&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof Xr||i instanceof Jr)return!1;let t=!0;return i.eachChild(r=>{t&&!ls(r)&&(t=!1)}),t}function vn(i){if(i instanceof Ti&&i.name==="feature-state")return!1;let t=!0;return i.eachChild(r=>{t&&!vn(r)&&(t=!1)}),t}function cs(i,t){if(i instanceof Ti&&t.indexOf(i.name)>=0)return!1;let r=!0;return i.eachChild(s=>{r&&!cs(s,t)&&(r=!1)}),r}function Us(i){return{result:"success",value:i}}function bn(i){return{result:"error",value:i}}function wn(i){return i["property-type"]==="data-driven"||i["property-type"]==="cross-faded-data-driven"}function Qo(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function Ha(i){return!!i.expression&&i.expression.interpolated}function Ye(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}function $s(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function tc(i){return i}function el(i,t){const r=t.type==="color",s=i.stops&&typeof i.stops[0][0]=="object",l=s||!(s||i.property!==void 0),u=i.type||(Ha(t)?"exponential":"interval");if(r||t.type==="padding"){const v=r?nt.parse:pi.parse;(i=er({},i)).stops&&(i.stops=i.stops.map(w=>[w[0],v(w[1])])),i.default=v(i.default?i.default:t.default)}if(i.colorSpace&&(d=i.colorSpace)!=="rgb"&&d!=="hcl"&&d!=="lab")throw new Error(`Unknown color space: "${i.colorSpace}"`);var d;let f,_,x;if(u==="exponential")f=il;else if(u==="interval")f=qs;else if(u==="categorical"){f=tl,_=Object.create(null);for(const v of i.stops)_[v[0]]=v[1];x=typeof i.stops[0][0]}else{if(u!=="identity")throw new Error(`Unknown function type "${u}"`);f=rl}if(s){const v={},w=[];for(let k=0;kk[0]),evaluate:({zoom:k},z)=>il({stops:I,base:i.base},t,k).evaluate(k,z)}}if(l){const v=u==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:v,interpolationFactor:ri.interpolationFactor.bind(void 0,v),zoomStops:i.stops.map(w=>w[0]),evaluate:({zoom:w})=>f(i,t,w,_,x)}}return{kind:"source",evaluate(v,w){const I=w&&w.properties?w.properties[i.property]:void 0;return I===void 0?Tn(i.default,t.default):f(i,t,I,_,x)}}}function Tn(i,t,r){return i!==void 0?i:t!==void 0?t:r!==void 0?r:void 0}function tl(i,t,r,s,l){return Tn(typeof r===l?s[r]:void 0,i.default,t.default)}function qs(i,t,r){if(Ye(r)!=="number")return Tn(i.default,t.default);const s=i.stops.length;if(s===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[s-1][0])return i.stops[s-1][1];const l=Es(i.stops.map(u=>u[0]),r);return i.stops[l][1]}function il(i,t,r){const s=i.base!==void 0?i.base:1;if(Ye(r)!=="number")return Tn(i.default,t.default);const l=i.stops.length;if(l===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[l-1][0])return i.stops[l-1][1];const u=Es(i.stops.map(v=>v[0]),r),d=function(v,w,I,M){const k=M-I,z=v-I;return k===0?0:w===1?z/k:(Math.pow(w,z)-1)/(Math.pow(w,k)-1)}(r,s,i.stops[u][0],i.stops[u+1][0]),f=i.stops[u][1],_=i.stops[u+1][1],x=ii[t.type]||tc;return typeof f.evaluate=="function"?{evaluate(...v){const w=f.evaluate.apply(void 0,v),I=_.evaluate.apply(void 0,v);if(w!==void 0&&I!==void 0)return x(w,I,d,i.colorSpace)}}:x(f,_,d,i.colorSpace)}function rl(i,t,r){switch(t.type){case"color":r=nt.parse(r);break;case"formatted":r=di.fromString(r.toString());break;case"resolvedImage":r=fi.fromString(r.toString());break;case"padding":r=pi.parse(r);break;default:Ye(r)===t.type||t.type==="enum"&&t.values[r]||(r=void 0)}return Tn(r,i.default,t.default)}Ti.register(xn,{error:[{kind:"error"},[$e],(i,[t])=>{throw new St(t.evaluate(i))}],typeof:[$e,[Ne],(i,[t])=>P(At(t.evaluate(i)))],"to-rgba":[A(_e,4),[ti],(i,[t])=>{const[r,s,l,u]=t.evaluate(i).rgb;return[255*r,255*s,255*l,u]}],rgb:[ti,[_e,_e,_e],qa],rgba:[ti,[_e,_e,_e,_e],qa],has:{type:Be,overloads:[[[$e],(i,[t])=>Za(t.evaluate(i),i.properties())],[[$e,Ri],(i,[t,r])=>Za(t.evaluate(i),r.evaluate(i))]]},get:{type:Ne,overloads:[[[$e],(i,[t])=>Ga(t.evaluate(i),i.properties())],[[$e,Ri],(i,[t,r])=>Ga(t.evaluate(i),r.evaluate(i))]]},"feature-state":[Ne,[$e],(i,[t])=>Ga(t.evaluate(i),i.featureState||{})],properties:[Ri,[],i=>i.properties()],"geometry-type":[$e,[],i=>i.geometryType()],id:[Ne,[],i=>i.id()],zoom:[_e,[],i=>i.globals.zoom],"heatmap-density":[_e,[],i=>i.globals.heatmapDensity||0],"line-progress":[_e,[],i=>i.globals.lineProgress||0],accumulated:[Ne,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[_e,Yr(_e),(i,t)=>{let r=0;for(const s of t)r+=s.evaluate(i);return r}],"*":[_e,Yr(_e),(i,t)=>{let r=1;for(const s of t)r*=s.evaluate(i);return r}],"-":{type:_e,overloads:[[[_e,_e],(i,[t,r])=>t.evaluate(i)-r.evaluate(i)],[[_e],(i,[t])=>-t.evaluate(i)]]},"/":[_e,[_e,_e],(i,[t,r])=>t.evaluate(i)/r.evaluate(i)],"%":[_e,[_e,_e],(i,[t,r])=>t.evaluate(i)%r.evaluate(i)],ln2:[_e,[],()=>Math.LN2],pi:[_e,[],()=>Math.PI],e:[_e,[],()=>Math.E],"^":[_e,[_e,_e],(i,[t,r])=>Math.pow(t.evaluate(i),r.evaluate(i))],sqrt:[_e,[_e],(i,[t])=>Math.sqrt(t.evaluate(i))],log10:[_e,[_e],(i,[t])=>Math.log(t.evaluate(i))/Math.LN10],ln:[_e,[_e],(i,[t])=>Math.log(t.evaluate(i))],log2:[_e,[_e],(i,[t])=>Math.log(t.evaluate(i))/Math.LN2],sin:[_e,[_e],(i,[t])=>Math.sin(t.evaluate(i))],cos:[_e,[_e],(i,[t])=>Math.cos(t.evaluate(i))],tan:[_e,[_e],(i,[t])=>Math.tan(t.evaluate(i))],asin:[_e,[_e],(i,[t])=>Math.asin(t.evaluate(i))],acos:[_e,[_e],(i,[t])=>Math.acos(t.evaluate(i))],atan:[_e,[_e],(i,[t])=>Math.atan(t.evaluate(i))],min:[_e,Yr(_e),(i,t)=>Math.min(...t.map(r=>r.evaluate(i)))],max:[_e,Yr(_e),(i,t)=>Math.max(...t.map(r=>r.evaluate(i)))],abs:[_e,[_e],(i,[t])=>Math.abs(t.evaluate(i))],round:[_e,[_e],(i,[t])=>{const r=t.evaluate(i);return r<0?-Math.round(-r):Math.round(r)}],floor:[_e,[_e],(i,[t])=>Math.floor(t.evaluate(i))],ceil:[_e,[_e],(i,[t])=>Math.ceil(t.evaluate(i))],"filter-==":[Be,[$e,Ne],(i,[t,r])=>i.properties()[t.value]===r.value],"filter-id-==":[Be,[Ne],(i,[t])=>i.id()===t.value],"filter-type-==":[Be,[$e],(i,[t])=>i.geometryType()===t.value],"filter-<":[Be,[$e,Ne],(i,[t,r])=>{const s=i.properties()[t.value],l=r.value;return typeof s==typeof l&&s{const r=i.id(),s=t.value;return typeof r==typeof s&&r":[Be,[$e,Ne],(i,[t,r])=>{const s=i.properties()[t.value],l=r.value;return typeof s==typeof l&&s>l}],"filter-id->":[Be,[Ne],(i,[t])=>{const r=i.id(),s=t.value;return typeof r==typeof s&&r>s}],"filter-<=":[Be,[$e,Ne],(i,[t,r])=>{const s=i.properties()[t.value],l=r.value;return typeof s==typeof l&&s<=l}],"filter-id-<=":[Be,[Ne],(i,[t])=>{const r=i.id(),s=t.value;return typeof r==typeof s&&r<=s}],"filter->=":[Be,[$e,Ne],(i,[t,r])=>{const s=i.properties()[t.value],l=r.value;return typeof s==typeof l&&s>=l}],"filter-id->=":[Be,[Ne],(i,[t])=>{const r=i.id(),s=t.value;return typeof r==typeof s&&r>=s}],"filter-has":[Be,[Ne],(i,[t])=>t.value in i.properties()],"filter-has-id":[Be,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Be,[A($e)],(i,[t])=>t.value.indexOf(i.geometryType())>=0],"filter-id-in":[Be,[A(Ne)],(i,[t])=>t.value.indexOf(i.id())>=0],"filter-in-small":[Be,[$e,A(Ne)],(i,[t,r])=>r.value.indexOf(i.properties()[t.value])>=0],"filter-in-large":[Be,[$e,A(Ne)],(i,[t,r])=>function(s,l,u,d){for(;u<=d;){const f=u+d>>1;if(l[f]===s)return!0;l[f]>s?d=f-1:u=f+1}return!1}(i.properties()[t.value],r.value,0,r.value.length-1)],all:{type:Be,overloads:[[[Be,Be],(i,[t,r])=>t.evaluate(i)&&r.evaluate(i)],[Yr(Be),(i,t)=>{for(const r of t)if(!r.evaluate(i))return!1;return!0}]]},any:{type:Be,overloads:[[[Be,Be],(i,[t,r])=>t.evaluate(i)||r.evaluate(i)],[Yr(Be),(i,t)=>{for(const r of t)if(r.evaluate(i))return!0;return!1}]]},"!":[Be,[Be],(i,[t])=>!t.evaluate(i)],"is-supported-script":[Be,[$e],(i,[t])=>{const r=i.globals&&i.globals.isSupportedScript;return!r||r(t.evaluate(i))}],upcase:[$e,[$e],(i,[t])=>t.evaluate(i).toUpperCase()],downcase:[$e,[$e],(i,[t])=>t.evaluate(i).toLowerCase()],concat:[$e,Yr(Ne),(i,t)=>t.map(r=>es(r.evaluate(i))).join("")],"resolved-locale":[$e,[ir],(i,[t])=>t.evaluate(i).resolvedLocale()]});class Zs{constructor(t,r){var s;this.expression=t,this._warningHistory={},this._evaluator=new ks,this._defaultValue=r?(s=r).type==="color"&&$s(s.default)?new nt(0,0,0,0):s.type==="color"?nt.parse(s.default)||null:s.type==="padding"?pi.parse(s.default)||null:s.type==="variableAnchorOffsetCollection"?wi.parse(s.default)||null:s.default===void 0?null:s.default:null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(t,r,s,l,u,d){return this._evaluator.globals=t,this._evaluator.feature=r,this._evaluator.featureState=s,this._evaluator.canonical=l,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d,this.expression.evaluate(this._evaluator)}evaluate(t,r,s,l,u,d){this._evaluator.globals=t,this._evaluator.feature=r||null,this._evaluator.featureState=s||null,this._evaluator.canonical=l,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d||null;try{const f=this.expression.evaluate(this._evaluator);if(f==null||typeof f=="number"&&f!=f)return this._defaultValue;if(this._enumValues&&!(f in this._enumValues))throw new St(`Expected value to be one of ${Object.keys(this._enumValues).map(_=>JSON.stringify(_)).join(", ")}, but found ${JSON.stringify(f)} instead.`);return f}catch(f){return this._warningHistory[f.message]||(this._warningHistory[f.message]=!0,typeof console<"u"&&console.warn(f.message)),this._defaultValue}}}function Gs(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in xn}function Sn(i,t){const r=new Zr(xn,os,[],t?function(l){const u={color:ti,string:$e,number:_e,enum:$e,boolean:Be,formatted:mr,padding:Mr,resolvedImage:rr,variableAnchorOffsetCollection:N};return l.type==="array"?A(u[l.value]||Ne,l.length):u[l.type]}(t):void 0),s=r.parse(i,void 0,void 0,void 0,t&&t.type==="string"?{typeAnnotation:"coerce"}:void 0);return s?Us(new Zs(s,t)):bn(r.errors)}class In{constructor(t,r){this.kind=t,this._styleExpression=r,this.isStateDependent=t!=="constant"&&!vn(r.expression)}evaluateWithoutErrorHandling(t,r,s,l,u,d){return this._styleExpression.evaluateWithoutErrorHandling(t,r,s,l,u,d)}evaluate(t,r,s,l,u,d){return this._styleExpression.evaluate(t,r,s,l,u,d)}}class Pn{constructor(t,r,s,l){this.kind=t,this.zoomStops=s,this._styleExpression=r,this.isStateDependent=t!=="camera"&&!vn(r.expression),this.interpolationType=l}evaluateWithoutErrorHandling(t,r,s,l,u,d){return this._styleExpression.evaluateWithoutErrorHandling(t,r,s,l,u,d)}evaluate(t,r,s,l,u,d){return this._styleExpression.evaluate(t,r,s,l,u,d)}interpolationFactor(t,r,s){return this.interpolationType?ri.interpolationFactor(this.interpolationType,t,r,s):0}}function Xa(i,t){const r=Sn(i,t);if(r.result==="error")return r;const s=r.value.expression,l=ls(s);if(!l&&!wn(t))return bn([new Xt("","data expressions not supported")]);const u=cs(s,["zoom"]);if(!u&&!Qo(t))return bn([new Xt("","zoom expressions not supported")]);const d=hs(s);return d||u?d instanceof Xt?bn([d]):d instanceof ri&&!Ha(t)?bn([new Xt("",'"interpolate" expressions cannot be used with this property')]):Us(d?new Pn(l?"camera":"composite",r.value,d.labels,d instanceof ri?d.interpolation:void 0):new In(l?"constant":"source",r.value)):bn([new Xt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class An{constructor(t,r){this._parameters=t,this._specification=r,er(this,el(this._parameters,this._specification))}static deserialize(t){return new An(t._parameters,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification}}}function hs(i){let t=null;if(i instanceof Cr)t=hs(i.result);else if(i instanceof Ls){for(const r of i.args)if(t=hs(r),t)break}else(i instanceof _n||i instanceof ri)&&i.input instanceof Ti&&i.input.name==="zoom"&&(t=i);return t instanceof Xt||i.eachChild(r=>{const s=hs(r);s instanceof Xt?t=s:!t&&s?t=new Xt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&s&&t!==s&&(t=new Xt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function Hs(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const t of i.slice(1))if(!Hs(t)&&typeof t!="boolean")return!1;return!0;default:return!0}}const Xs={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Wa(i){if(i==null)return{filter:()=>!0,needGeometry:!1};Hs(i)||(i=Ws(i));const t=Sn(i,Xs);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return{filter:(r,s,l)=>t.value.evaluate(r,s,{},l),needGeometry:nl(i)}}function ic(i,t){return it?1:0}function nl(i){if(!Array.isArray(i))return!1;if(i[0]==="within"||i[0]==="distance")return!0;for(let t=1;t"||t==="<="||t===">="?Ka(i[1],i[2],t):t==="any"?(r=i.slice(1),["any"].concat(r.map(Ws))):t==="all"?["all"].concat(i.slice(1).map(Ws)):t==="none"?["all"].concat(i.slice(1).map(Ws).map(Ot)):t==="in"?us(i[1],i.slice(2)):t==="!in"?Ot(us(i[1],i.slice(2))):t==="has"?ds(i[1]):t!=="!has"||Ot(ds(i[1]));var r}function Ka(i,t,r){switch(i){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,i,t]}}function us(i,t){if(t.length===0)return!1;switch(i){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(r=>typeof r!=typeof t[0])?["filter-in-large",i,["literal",t.sort(ic)]]:["filter-in-small",i,["literal",t]]}}function ds(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function Ot(i){return["!",i]}function Qr(i){const t=typeof i;if(t==="number"||t==="boolean"||t==="string"||i==null)return JSON.stringify(i);if(Array.isArray(i)){let l="[";for(const u of i)l+=`${Qr(u)},`;return`${l}]`}const r=Object.keys(i).sort();let s="{";for(let l=0;ls.maximum?[new ue(t,r,`${r} is greater than the maximum value ${s.maximum}`)]:[]}function Ks(i){const t=i.valueSpec,r=wt(i.value.type);let s,l,u,d={};const f=r!=="categorical"&&i.value.property===void 0,_=!f,x=Ye(i.value.stops)==="array"&&Ye(i.value.stops[0])==="array"&&Ye(i.value.stops[0][0])==="object",v=mi({key:i.key,value:i.value,valueSpec:i.styleSpec.function,validateSpec:i.validateSpec,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(M){if(r==="identity")return[new ue(M.key,M.value,'identity function may not have a "stops" property')];let k=[];const z=M.value;return k=k.concat(ps({key:M.key,value:z,valueSpec:M.valueSpec,validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec,arrayElementValidator:w})),Ye(z)==="array"&&z.length===0&&k.push(new ue(M.key,z,"array must have at least one stop")),k},default:function(M){return M.validateSpec({key:M.key,value:M.value,valueSpec:t,validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec})}}});return r==="identity"&&f&&v.push(new ue(i.key,i.value,'missing required property "property"')),r==="identity"||i.value.stops||v.push(new ue(i.key,i.value,'missing required property "stops"')),r==="exponential"&&i.valueSpec.expression&&!Ha(i.valueSpec)&&v.push(new ue(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(_&&!wn(i.valueSpec)?v.push(new ue(i.key,i.value,"property functions not supported")):f&&!Qo(i.valueSpec)&&v.push(new ue(i.key,i.value,"zoom functions not supported"))),r!=="categorical"&&!x||i.value.property!==void 0||v.push(new ue(i.key,i.value,'"property" property is required')),v;function w(M){let k=[];const z=M.value,F=M.key;if(Ye(z)!=="array")return[new ue(F,z,`array expected, ${Ye(z)} found`)];if(z.length!==2)return[new ue(F,z,`array length 2 expected, length ${z.length} found`)];if(x){if(Ye(z[0])!=="object")return[new ue(F,z,`object expected, ${Ye(z[0])} found`)];if(z[0].zoom===void 0)return[new ue(F,z,"object stop key must have zoom")];if(z[0].value===void 0)return[new ue(F,z,"object stop key must have value")];if(u&&u>wt(z[0].zoom))return[new ue(F,z[0].zoom,"stop zoom values must appear in ascending order")];wt(z[0].zoom)!==u&&(u=wt(z[0].zoom),l=void 0,d={}),k=k.concat(mi({key:`${F}[0]`,value:z[0],valueSpec:{zoom:{}},validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec,objectElementValidators:{zoom:Ja,value:I}}))}else k=k.concat(I({key:`${F}[0]`,value:z[0],valueSpec:{},validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec},z));return Gs(Vi(z[1]))?k.concat([new ue(`${F}[1]`,z[1],"expressions are not allowed in function stops.")]):k.concat(M.validateSpec({key:`${F}[1]`,value:z[1],valueSpec:t,validateSpec:M.validateSpec,style:M.style,styleSpec:M.styleSpec}))}function I(M,k){const z=Ye(M.value),F=wt(M.value),j=M.value!==null?M.value:k;if(s){if(z!==s)return[new ue(M.key,j,`${z} stop domain type must match previous stop domain type ${s}`)]}else s=z;if(z!=="number"&&z!=="string"&&z!=="boolean")return[new ue(M.key,j,"stop domain value must be a number, string, or boolean")];if(z!=="number"&&r!=="categorical"){let Q=`number expected, ${z} found`;return wn(t)&&r===void 0&&(Q+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ue(M.key,j,Q)]}return r!=="categorical"||z!=="number"||isFinite(F)&&Math.floor(F)===F?r!=="categorical"&&z==="number"&&l!==void 0&&Fnew ue(`${i.key}${s.key}`,i.value,s.message));const r=t.value.expression||t.value._styleExpression.expression;if(i.expressionContext==="property"&&i.propertyKey==="text-font"&&!r.outputDefined())return[new ue(i.key,i.value,`Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];if(i.expressionContext==="property"&&i.propertyType==="layout"&&!vn(r))return[new ue(i.key,i.value,'"feature-state" data expressions are not supported with layout properties.')];if(i.expressionContext==="filter"&&!vn(r))return[new ue(i.key,i.value,'"feature-state" data expressions are not supported with filters.')];if(i.expressionContext&&i.expressionContext.indexOf("cluster")===0){if(!cs(r,["zoom","feature-state"]))return[new ue(i.key,i.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(i.expressionContext==="cluster-initial"&&!ls(r))return[new ue(i.key,i.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function gr(i){const t=i.key,r=i.value,s=i.valueSpec,l=[];return Array.isArray(s.values)?s.values.indexOf(wt(r))===-1&&l.push(new ue(t,r,`expected one of [${s.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(s.values).indexOf(wt(r))===-1&&l.push(new ue(t,r,`expected one of [${Object.keys(s.values).join(", ")}], ${JSON.stringify(r)} found`)),l}function Ya(i){return Hs(Vi(i.value))?Mn(er({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Js(i)}function Js(i){const t=i.value,r=i.key;if(Ye(t)!=="array")return[new ue(r,t,`array expected, ${Ye(t)} found`)];const s=i.styleSpec;let l,u=[];if(t.length<1)return[new ue(r,t,"filter array must have at least 1 element")];switch(u=u.concat(gr({key:`${r}[0]`,value:t[0],valueSpec:s.filter_operator,style:i.style,styleSpec:i.styleSpec})),wt(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&wt(t[1])==="$type"&&u.push(new ue(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&u.push(new ue(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(l=Ye(t[1]),l!=="string"&&u.push(new ue(`${r}[1]`,t[1],`string expected, ${l} found`)));for(let d=2;dr===null?null:t(r)):D(e)?Object.keys(e).reduce((r,s)=>(r[s]=t(e[s]),r),{}):e!=null?t(e):null}const p=e=>c.jsx(b.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});p.displayName="StackItem";function M(e){const{spacing:t,direction:r}=e,s={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":A(r,d=>s[d])}}const O=I((e,t)=>{const{isInline:r,direction:s,align:d,justify:_,spacing:a="0.5rem",wrap:j,children:f,divider:l,className:g,shouldWrapChildren:m,...S}=e,u=r?"row":s??"column",x=o.useMemo(()=>M({spacing:a,direction:u}),[a,u]),i=!!l,y=!m&&!i,w=o.useMemo(()=>{const h=R(f);return y?h:h.map((n,v)=>{const k=typeof n.key<"u"?n.key:v,N=v+1===h.length,W=m?c.jsx(p,{children:n},k):n;if(!i)return W;const L=o.cloneElement(l,{__css:x}),B=N?null:L;return c.jsxs(o.Fragment,{children:[W,B]},k)})},[l,x,i,y,m,f]),C=E("chakra-stack",g);return c.jsx(b.div,{ref:t,display:"flex",alignItems:d,justifyContent:_,flexDirection:u,flexWrap:j,gap:i?void 0:a,className:C,...S,children:w})});O.displayName="Stack";export{O as S,A as m}; +import{W as D,j as c,c as b,f as I,d as o,l as E}from"./index-cA1eFW7V.js";import{m as R}from"./Footer-Cn5RvAyN.js";function A(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):D(e)?Object.keys(e).reduce((r,s)=>(r[s]=t(e[s]),r),{}):e!=null?t(e):null}const p=e=>c.jsx(b.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});p.displayName="StackItem";function M(e){const{spacing:t,direction:r}=e,s={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":A(r,d=>s[d])}}const O=I((e,t)=>{const{isInline:r,direction:s,align:d,justify:_,spacing:a="0.5rem",wrap:j,children:f,divider:l,className:g,shouldWrapChildren:m,...S}=e,u=r?"row":s??"column",x=o.useMemo(()=>M({spacing:a,direction:u}),[a,u]),i=!!l,y=!m&&!i,w=o.useMemo(()=>{const h=R(f);return y?h:h.map((n,v)=>{const k=typeof n.key<"u"?n.key:v,N=v+1===h.length,W=m?c.jsx(p,{children:n},k):n;if(!i)return W;const L=o.cloneElement(l,{__css:x}),B=N?null:L;return c.jsxs(o.Fragment,{children:[W,B]},k)})},[l,x,i,y,m,f]),C=E("chakra-stack",g);return c.jsx(b.div,{ref:t,display:"flex",alignItems:d,justifyContent:_,flexDirection:u,flexWrap:j,gap:i?void 0:a,className:C,...S,children:w})});O.displayName="Stack";export{O as S,A as m}; diff --git a/index.html b/index.html index 52d9e40..01dd086 100644 --- a/index.html +++ b/index.html @@ -38,7 +38,7 @@ content="/images/favicon/browserconfig.xml" /> - +