PageSourceSearch

https://www.truworx.co.uk/assets/index-CJsdPNqw.js

js truworx.co.uk collected 2026-09-30 06:38:51 UTC 683,746 bytes, 362 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CVAssistant-DEr583p6.js","assets/input-6HDAZ3VH.js","assets/label-4ReTXD7P.js","assets/textarea-DMsQyhXv.js","assets/card-Dw44dnhl.js","assets/tabs-B5E4vaKu.js","assets/cv-builder-hero-WOElgdvO.js","assets/StickyCTA-B1KFocXz.js","assets/EnrollmentModal-C-9kBwhE.js","assets/dialog-CXUrAkHw.js","assets/select-BIWU_ehh.js","assets/index-BdQq_4o_.js","assets/index-3yhWZ5di.js","assets/chevron-up-CQbWMB49.js","assets/schemas-edxvtPoG.js","assets/progress-DN4BVM8O.js","assets/chevron-left-DzENlkse.js","assets/user--j_il92c.js","assets/download-CuHIM3OL.js","assets/loader-circle-jLJENuxj.js","assets/JobSearch-GOM0Faxj.js","assets/checkbox-br4BDOoX.js","assets/bell-DCAz4Sg9.js","assets/badge-B68nzD17.js","assets/AnimatedCounter-B4I8aY1I.js","assets/external-link-wdhcDu5f.js","assets/SavedJobs-BcnUIXjG.js","assets/trash-2-BYJJeFAb.js","assets/TAOnline-D-qCG7LS.js","assets/TAOnlineLL-CZNdV0zM.js","assets/BookingConfirmationScreen-y8ynq0CJ.js","assets/lock-BQdGLDW9.js","assets/calendar-CbU7vBBJ.js","assets/calendar-check-BXqj6srT.js","assets/copy-cx5JPr6g.js","assets/mail-BC9ivzZp.js","assets/message-circle-BlgWfrnz.js","assets/share-2-CasJMXMd.js","assets/callSlots-B16RAU9W.js","assets/ensureCallConfirmation-sO-OS7B_.js","assets/fundedPostcode-DZ-vUhYk.js","assets/hero-ta-classroom-real-C3NtFlXY.js","assets/hero-ta-classroom-v3-IV5gmWGZ.js","assets/TrustLogos-DizqmgO9.js","assets/ncfe-logo-rRFn3pgY.js","assets/jobcentre-plus-official-BhZqlNtc.js","assets/WarmSplitHero-CvTReqZp.js","assets/pound-sterling-KdQpXsqU.js","assets/GuaranteeBadge-B7IlwDzI.js","assets/eye-Dra64_MK.js","assets/circle-check-big-Ce0DWUeA.js","assets/sharedCourses-D7KdwUU7.js","assets/brain-DcWJ8cM7.js","assets/usePageAnalytics-CsNnH1Ka.js","assets/usePartialFormCapture-COuVV0cp.js","assets/FAQSection-vWNPe_oT.js","assets/accordion-CBpCmZBy.js","assets/index-Dt573yb2.js","assets/canonicalFAQ-BmofBVRj.js","assets/calendar-plus-CTpH6Juo.js","assets/book-open-BX2bf0Jb.js","assets/TAOnlineL3-DbTn1ykz.js","assets/QuickFAQStrip-DthNzNq0.js","assets/Reveal-7d4R2wlt.js","assets/learner-avatars-trio-D_KhF9Ac.js","assets/liverpool-cohort-classroom-YjpKINR1.js","assets/sun-C-zrCJCC.js","assets/L3TALondon-Cb95VzL1.js","assets/LoanFundedFAQ-D5gQsp0a.js","assets/LoanInfoSection-j2uinMsK.js","assets/StickyMobileCTA-CAzzaAEB.js","assets/CountdownTimer-Cc5UUNWS.js","assets/timer-BgunaA6O.js","assets/phone-CSRAejs_.js","assets/LoanFundingSection-D2dKMnxn.js","assets/wallet-BUGvkM4W.js","assets/key-D4d_5iS2.js","assets/calendar-DkRy1d1a.js","assets/school-nC9KL78V.js","assets/handshake-CZ3QAqvR.js","assets/file-check-CvfQCNpp.js","assets/user-check-CiI0BK43.js","assets/L3PTLondon-Bo0hbrdp.js","assets/dumbbell-BFpSjflS.js","assets/clipboard-list-TGGylsY1.js","assets/L3EYELondon-SDh7qNiL.js","assets/baby-C-qvdzYE.js","assets/LondonCourses-uiq-RdD8.js","assets/TAConfirm-BZ6FtGPj.js","assets/hero-background-BYrVMPNr.js","assets/CourseConfirmForm-CjYds9tM.js","assets/circle-play-CTdxcACK.js","assets/globe-DwRLLu3_.js","assets/TAConfirmL3-DAVHBd8L.js","assets/L3TALondonConfirm-PNY3cG-g.js","assets/JFCTAConfirmForm-D1Hhd1aL.js","assets/radio-group-AbQELZ6l.js","assets/jfcAppointments-C07OUWxN.js","assets/L3TALondonSuccess-Wit07oZf.js","assets/EarlyYearsLondonConfirm-CiVC2WUX.js","assets/TAConfirmCYPMH-BpBMNCu7.js","assets/CYPMHConfirm-eWBSNXjV.js","assets/Contact-CLrFF8WK.js","assets/WorkWithUs-JtVRZ7nw.js","assets/hero-classroom-Byfw7YFi.js","assets/megaphone-Du1FD-8Q.js","assets/clipboard-check-Mav3hBcr.js","assets/chart-column-tWjEnBgb.js","assets/PSCoursePage-DkqnR-hk.js","assets/circle-x-CWeITl_O.js","assets/psLeads-DRFYB_Kc.js","assets/courses-hero-IPeqiypt.js","assets/route-4t4jIuXA.js","assets/NotFound-DdSHP7HS.js","assets/house-BlR_MkKc.js","assets/arrow-left-CUlcOyzi.js","assets/Auth-rgef7pLY.js","assets/truworx-logo-header-C-GW-2vv.js","assets/PasswordStrengthMeter-6BrcDhfe.js","assets/circle-alert-zk8CEwVG.js","assets/LearnerRegister-BrZ0u0lp.js","assets/MyDashboard-CjjuhJxw.js","assets/send-B_rtk7-v.js","assets/upload-C1ru0E8q.js","assets/MockInterview-BJRf8CFV.js","assets/RealtimeRTC-DXvl-tp-.js","assets/triangle-alert-CLzMWf9F.js","assets/AdminUpload-xFTz5wqj.js","assets/xlsx-DG2X6oDA.js","assets/CohortSelector-Cj39zpP4.js","assets/plus-DeEOh7tW.js","assets/evidencePortalLookup-BTM31MPI.js","assets/evidenceLabels-D5GdFh7R.js","assets/layout-dashboard-Bu43iEgV.js","assets/file-spreadsheet-Clyy2NDA.js","assets/SubmitEvidence-BLMHkELB.js","assets/AdminEvidenceSubmissions-BAzHXJIX.js","assets/refresh-cw-B1XwVrXL.js","assets/AdminPSApplications-CXolCVyE.js","assets/AdminPSLeads-DJP56Cix.js","assets/AutomationHub-DeuS5tcx.js","assets/target-D8BU1qwB.js","assets/AdminAuth-CKUogNwp.js","assets/AdminDashboard-BWbpEodf.js","assets/sidebar-CG1NvhE1.js","assets/use-mobile-DT0Is8JZ.js","assets/settings-BEARrBoQ.js","assets/log-out-i6wbg-Iy.js","assets/phone-call-1cRqt1uI.js","assets/user-plus-fLFVQAYx.js","assets/scroll-area-CxdVdMtS.js","assets/key-round-D0UHKqUk.js","assets/message-square-CNwvwycx.js","assets/collapsible-QWNZUPum.js","assets/AspireAttendanceReport-rJBRBJRO.js","assets/BulkActionsPanel-ehf-3TXT.js","assets/save-B2ZM46X1.js","assets/alert-DFc7F23R.js","assets/table-CLjPY3n9.js","assets/alert-dialog-BCaGMPf8.js","assets/avatar-B_S8idRw.js","assets/switch-8NfNkCbF.js","assets/calendar--B_H_8iT.js","assets/WhatsAppMessagesCard-CYlU4rpc.js","assets/zap-4TRo6QYv.js","assets/filter-C5fynih2.js","assets/arrow-down-DCZzQqto.js","assets/SchoolOutreachCampaignManager-DlwmNx7Z.js","assets/eye-off-DTi4qv0p.js","assets/volume-2-CZMgdrPL.js","assets/smartphone-BEBDxV_B.js","assets/pencil-BHypqn1P.js","assets/AdminRegister-Bu58aiA4.js","assets/AdminOverview-g9mikZI2.js","assets/AdminCourseSignups-C-El-O9l.js","assets/AdminCallBookings-FQwQD_JT.js","assets/AdminDuplicates-NK0Sdbo2.js","assets/AdminCustomContent-BgP06IT4.js","assets/LearnerHub-DE-OF44f.js","assets/OAuthConsent-D5
1BNNcKO.js","assets/KeithDashboard-CCNcYvjv.js","assets/WaitingForLevel-CPLpJ_O2.js","assets/Unsubscribe-BeToGd0z.js","assets/CancelMyPlace-ChFfpYE4.js","assets/CourseFeedback-BeqNJwG2.js","assets/CRMCampaigns-vjxTjLV5.js","assets/mouse-pointer-BlnfDBCR.js","assets/CreateCRMCampaign-Cz9FMOWV.js","assets/EditCRMCampaign-5GNjP85n.js","assets/CRMCampaignDetail-LM6OGjmi.js","assets/pause-TulAAvlR.js","assets/AddCohortLearners-DGhxJ3N6.js","assets/InstallApp-Dd0WDxqR.js","assets/WhatsAppMessages-D6kjRQSH.js","assets/MobileWhatsAppInbox-C-oeLdgK.js","assets/WhatsAppMonitoring-C3Ew20e0.js","assets/WhatsAppSettings-E4x2Il74.js","assets/FAQ-q4HWpdZ1.js","assets/L2CYPMH-Cov54E-0.js","assets/RiskReversalStrip-B8lcuVZd.js","assets/SimpleSignupForm-CtiGk_KS.js","assets/ExitIntentWhatsApp-BdMSw-HY.js","assets/InfoMeetingExplainer-BP1xe6VA.js","assets/MentalHealthCourses-CXd7PENp.js","assets/L2CYPMHliv-DOMoJqHa.js","assets/SingleCourseLanding-CvEKWpQp.js","assets/hero-classroom-moment-CuI32EAV.js","assets/TACYPMLL-ClCGXETK.js","assets/L2MHliv-QQvgydi6.js","assets/BehaviourThatChallengesCourse-tpG6GhVX.js","assets/L2TAOnline-BcjUgrtL.js","assets/TAOnlineCopy-BkB72BJC.js","assets/TARomford-WDT1yK7Q.js","assets/TAOnlineWD-NEmMB7Pa.js","assets/TAOnlineWDMatched-Cw2LzwXq.js","assets/TAOnlineSVL-D-RBBcTg.js","assets/hero-ta-classroom-real-BrpmXQi1.js","assets/employer-hero-Dq4tqe_M.js","assets/hero-dbs-guide-C1b6uMC6.js","assets/TALiverpoolAds-DWHW51Pb.js","assets/BookACall-BXNHfSXo.js","assets/ExitIntentPopupAuto-DM2c0WJB.js","assets/FunnelTrustHeader-DY0Nr_ph.js","assets/BookACallTA-CpYLSbE1.js","assets/RegionalTargeting-C_rUFuUi.js","assets/DWPPartners-BhIgf2uT.js","assets/printer-Chzq3enR.js","assets/badge-check-97IpiUax.js","assets/DWPPartnerPortal-DyFk12L4.js","assets/SchoolPartners-BuuiRp6G.js","assets/GrassrootsMarketing-a2YS8KP1.js","assets/AdminCourseManager-eRIht6Bm.js","assets/EarlyYears-Ct4YHJCh.js","assets/EligibilityGatedSignup-d5xIJ9Z2.js","assets/EarlyYearsLondon-LE49125W.js","assets/SchoolApprenticeships-Cqe_10mo.js","assets/PersonalTraining-DXSgLt-U.js","assets/JFCSubmissions-CAosRVhS.js","assets/sticky-note-BL9WcqZx.js","assets/credit-card-DaGgYtxd.js","assets/JFCSubmissions-CeO4aDQI.css","assets/JFCAuth-7DPZa16w.js","assets/L2CYPMHSHJ-BJYhe1nI.js","assets/EarlyYearsApprenticeships-BYNFUOIp.js","assets/ey-apprenticeship-hero-BZUB2YaW.js","assets/smile-CuyCOeCL.js","assets/SNEAuth-BRi1Wu_m.js","assets/SNEPortal-BgteQ8iQ.js","assets/LLCourses-D0lERLJN.js","assets/LLCoursesLP-C0m_7CB7.js","assets/DfeProviderFinder-C_2bnrt9.js","assets/rocket-CiiU9r3H.js","assets/OurCourses-BA6rrbma.js","assets/FundedCourses-CQ1E_rPw.js","assets/useFundedCourses-9vHetVR7.js","assets/FundedCoursesCategory-aRWUwMmw.js","assets/Posters-CP96Pe_5.js","assets/PartnerPortal-CFVt4Yjx.js","assets/LincolnshireCoursesAd-BhN-QWcY.js","assets/CourseCancellation-DIa4kA7g.js","assets/Employers-BlVBjrxU.js","assets/calculator-Q7Ed2HQh.js","assets/EmployersEnquire-By5Rh2hl.js","assets/user-search-C4pa03Le.js","assets/EmployersThankYou-DcZJGi0y.js","assets/layers-sAy2j8xH.js","assets/Apprenticeships-Gq-ympqQ.js","assets/apprenticeshipStandards-V6XrC4_c.js","assets/ApprenticeshipsForEmployers-B9IrRuuH.js","assets/ApprenticeshipsForLearners-DmR-Lvhd.js","assets/ApprenticeshipStandard-D222RTbV.js","assets/ApprenticeshipsThankYou-DpKZt0_v.js","assets/CareerQuiz-uA-mYf1U.js","assets/DBSGuide-DgoKRWYl.js","assets/PlacementFinder-B1sVdjJV.js","assets/SuccessStories-YqbNrwlK.js","assets/MessageSequenceBuilder-DCSOv-vj.js","assets/TAOnlineLLConfirmed-DkT4o2Nm.js","assets/TAOnlineWL-DAThFoN4.js","assets/TACatchup-LlH12KV-.js","assets/TestimonialsSection-CYSgddel.js","assets/TACatchupL3-DUgnIfev.js","assets/TACatchupCYPMH-dIy07cCE.js","assets/TACatchupWD-yuxS1lJ_.js"])))=>i.map(i=>d[i]);
2var Xp=e=>{throw TypeError(e)};var dc=(e,t,r)=>t.has(e)||Xp("Cannot "+r);var S=(e,t,r)=>(dc(e,t,"read from private field"),r?r.call(e):t.get(e)),Y=(e,t,r)=>t.has(e)?Xp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),z=(e,t,r,n)=>(dc(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ae=(e,t,r)=>(dc(e,t,"access private method"),r);var Ta=(e,t,r,n)=>({set _(s){z(e,t,s,r)},get _(){return S(e,t,n)}});function ey(e,t){for(var r=0;r<t.length;r++){const n=t[r];
vendor: 4,816 bytes, lines 2-10
2if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Z4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var ry={exports:{}},Eu={},ny={exports:{}},ie={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var ua=Symbol.for("react.element"),iE=Symbol.for("react.portal"),aE=Symbol.for("react.fragment"),lE=Symbol.for("react.strict_mode"),uE=Symbol.for("react.profiler"),cE=Symbol.for("react.provider"),dE=Symbol.for("react.context"),hE=Symbol.for("react.forward_ref"),fE=Symbol.for("react.suspense"),pE=Symbol.for("react.memo"),mE=Symbol.for("react.lazy"),Zp=Symbol.iterator;function gE(e){return e===null||typeof e!="object"?null:(e=Zp&&e[Zp]||e["@@iterator"],typeof e=="function"?e:null)}var sy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oy=Object.assign,iy={};function Do(e,t,r){this.props=e,this.context=t,this.refs=iy,this.updater=r||sy}Do.prototype.isReactComponent={};Do.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Do.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ay(){}ay.prototype=Do.prototype;function nf(e,t,r){this.props=e,this.context=t,this.refs=iy,this.updater=r||sy}var sf=nf.prototype=new ay;sf.constructor=nf;oy(sf,Do.prototype);sf.isPureReactComponent=!0;var em=Array.isArray,ly=Object.prototype.hasOwnProperty,of={current:null},uy={key:!0,ref:!0,__self:!0,__source:!0};function cy(e,t,r){var n,s={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)ly.call(t,n)&&!uy.hasOwnProperty(n)&&(s[n]=t[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:ua,type:e,key:o,ref:i,props:s,_owner:of.current}}function vE(e,t){return{$$typeof:ua,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function af(e){return typeof e=="object"&&e!==null&&e.$$typeof===ua}function yE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var tm=/\/+/g;function hc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yE(""+e.key):t.toString(36)}function fl(e,t,r,n,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ua:case iE:i=!0}}if(i)return i=e,s=s(i),e=n===""?"."+hc(i,0):n,em(s)?(r="",e!=null&&(r=e.replace(tm,"$&/")+"/"),fl(s,t,r,"",function(c){return c})):s!=null&&(af(s)&&(s=vE(s,r+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(tm,"$&/")+"/")+e)),t.push(s)),1;if(i=0,n=n===""?".":n+":",em(e))for(var a=0;a<e.length;a++){o=e[a];var l=n+hc(o,a);i+=fl(o,t,r,l,s)}else if(l=gE(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;
vendor: 4,159 bytes, lines 10-18
10)o=o.value,l=n+hc(o,a++),i+=fl(o,t,r,l,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Pa(e,t,r){if(e==null)return e;var n=[],s=0;return fl(e,n,"","",function(o){return t.call(r,o,s++)}),n}function wE(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ot={current:null},pl={transition:null},xE={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:pl,ReactCurrentOwner:of};function dy(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:Pa,forEach:function(e,t,r){Pa(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Pa(e,function(){t++}),t},toArray:function(e){return Pa(e,function(t){return t})||[]},only:function(e){if(!af(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=Do;ie.Fragment=aE;ie.Profiler=uE;ie.PureComponent=nf;ie.StrictMode=lE;ie.Suspense=fE;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xE;ie.act=dy;ie.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=oy({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=of.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ly.call(t,l)&&!uy.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:ua,type:e.type,key:s,ref:o,props:n,_owner:i}};ie.createContext=function(e){return e={$$typeof:dE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:cE,_context:e},e.Consumer=e};ie.createElement=cy;ie.createFactory=function(e){var t=cy.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:hE,render:e}};ie.isValidElement=af;ie.lazy=function(e){return{$$typeof:mE,_payload:{_status:-1,_result:e},_init:wE}};ie.memo=function(e,t){return{$$typeof:pE,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=pl.transition;pl.transition={};try{e()}finally{pl.transition=t}};ie.unstable_act=dy;ie.useCallback=function(e,t){return ot.current.useCallback(e,t)};ie.useContext=function(e){return ot.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return ot.current.useDeferredValue(e)};ie.useEffect=function(e,t){return ot.current.useEffect(e,t)};ie.useId=function(){return ot.current.useId()};ie.useImperativeHandle=function(e,t,r){return ot.current.useImperativeHandle(e,t,r)};ie.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return ot.current.useMemo(e,t)};ie.useReducer=function(e,t,r){return ot.current.useReducer(e,t,r)};ie.useRef=function(e){return ot.current.useRef(e)};ie.useState=function(e){return ot.current.useState(e)};ie.useSyncExternalStore=function(e,t,r){return ot.current.useSyncExternalStore(e,t,r)};ie.useTransition=function(){return ot.current.useTransition()};ie.version="18.3.1";ny.exports=ie;var p=ny.exports;const M=ty(p),lf=ey({__proto__:null,default:M},[p]);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var bE=p,_E=Symbol.for("react.element"),EE=Symbol.for("react.fragment"),SE=Object.prototype.hasOwnProperty,kE=bE.__SECRET_INT
vendor: 11,415 bytes, lines 18-35
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jE={key:!0,ref:!0,__self:!0,__source:!0};function hy(e,t,r){var n,s={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)SE.call(t,n)&&!jE.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:_E,type:e,key:o,ref:i,props:s,_owner:kE.current}}Eu.Fragment=EE;Eu.jsx=hy;Eu.jsxs=hy;ry.exports=Eu;var u=ry.exports,fy={exports:{}},Ct={},py={exports:{}},my={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(e){function t(R,T){var L=R.length;R.push(T);e:for(;0<L;){var G=L-1>>>1,B=R[G];if(0<s(B,T))R[G]=T,R[L]=B,L=G;else break e}}function r(R){return R.length===0?null:R[0]}function n(R){if(R.length===0)return null;var T=R[0],L=R.pop();if(L!==T){R[0]=L;e:for(var G=0,B=R.length,Z=B>>>1;G<Z;){var ne=2*(G+1)-1,_e=R[ne],Te=ne+1,oe=R[Te];if(0>s(_e,L))Te<B&&0>s(oe,_e)?(R[G]=oe,R[Te]=L,G=Te):(R[G]=_e,R[ne]=L,G=ne);else if(Te<B&&0>s(oe,L))R[G]=oe,R[Te]=L,G=Te;else break e}}return T}function s(R,T){var L=R.sortIndex-T.sortIndex;return L!==0?L:R.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],d=1,h=null,m=3,f=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var T=r(c);T!==null;){if(T.callback===null)n(c);else if(T.startTime<=R)n(c),T.sortIndex=T.expirationTime,t(l,T);else break;T=r(c)}}function _(R){if(v=!1,y(R),!b)if(r(l)!==null)b=!0,H(E);else{var T=r(c);T!==null&&J(_,T.startTime-R)}}function E(R,T){b=!1,v&&(v=!1,w(P),P=-1),f=!0;var L=m;try{for(y(T),h=r(l);h!==null&&(!(h.expirationTime>T)||R&&!U());){var G=h.callback;if(typeof G=="function"){h.callback=null,m=h.priorityLevel;var B=G(h.expirationTime<=T);T=e.unstable_now(),typeof B=="function"?h.callback=B:h===r(l)&&n(l),y(T)}else n(l);h=r(l)}if(h!==null)var Z=!0;else{var ne=r(c);ne!==null&&J(_,ne.startTime-T),Z=!1}return Z}finally{h=null,m=L,f=!1}}var k=!1,j=null,P=-1,A=5,N=-1;function U(){return!(e.unstable_now()-N<A)}function D(){if(j!==null){var R=e.unstable_now();N=R;var T=!0;try{T=j(!0,R)}finally{T?K():(k=!1,j=null)}}else k=!1}var K;if(typeof g=="function")K=function(){g(D)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,re=$.port2;$.port1.onmessage=D,K=function(){re.postMessage(null)}}else K=function(){x(D,0)};function H(R){j=R,k||(k=!0,K())}function J(R,T){P=x(function(){R(e.unstable_now())},T)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){b||f||(b=!0,H(E))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(R){switch(m){case 1:case 2:case 3:var T=3;break;default:T=m}var L=m;m=T;try{return R()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,T){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var L=m;m=R;try{return T()}finally{m=L}},e.unstable_scheduleCallback=function(R,T,L){var G=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?G+L:G):L=G,R){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=L+B,R={id:d++,callback:T,priorityLevel:R,startTime:L,expirationTime:B,sortIndex:-1},L>G?(R.sortIndex=L,t(c,R),r(l)===null&&R===r(c)&&(v?(w(P),P=-1):v=!0,J(_,L-G))):(R.sortIndex=B,t(l,R),b||f||(b=!0,H(E))),R},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(R){var T=m;return function(){var L=m;m=T;try{return R.apply(this,arguments)}finally{m=L}}}})(my);py.exports=my;var CE=py.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var TE=p,St=CE;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var gy=new Set,Ti={};function ws(e,t){Eo(e,t),Eo(e+"Capture",t)}function Eo(e,t){for(Ti[e]=t,e=0;e<t.length;e++)gy.add(t[e])}var Ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vd=Object.prototype.hasOwnProperty,PE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rm={},nm={};function RE(e){return vd.call(nm,e)?!0:vd.call(rm,e)?!1:PE.test(e)?nm[e]=!0:(rm[e]=!0,!1)}function OE(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NE(e,t,r,n){if(t===null||typeof t>"u"||OE(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,r,n,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new it(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ke[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var uf=/[\-:]([a-z])/g;function cf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uf,cf);Ke[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uf,cf);Ke[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uf,cf);Ke[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function df(e,t,r,n){var s=Ke.hasOwnProperty(t)?Ke[t]:null;(s!==null?s.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(NE(t,r,s,n)&&(r=null),n||s===null?RE(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,n=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Ur=TE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ra=Symbol.for("react.element"),zs=Symbol.for("react.portal"),Us=Symbol.for("react.fragment"),hf=Symbol.for("react.strict_mode"),yd=Symbol.for("react.profiler"),vy=Symbol.for("react.provider"),yy=Symbol.for("react.context"),ff=Symbol.for("react.forward_ref"),wd=Symbol.for("react.suspense"),xd=Symbol.for("react.suspense_list"),pf=Symbol.for("react.memo"),rn=Symbol.for("react.lazy"),wy=Symbol.for("react.offscreen"),sm=Symbol.iterator;function Ko(e){return e===null||typeof e!="object"?null:(e=sm&&e[sm]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Object.assign,fc;function li(e){if(fc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);fc=t&&t[1]||""}return`
35`+fc+e}var pc=!1;function mc(e,t){if(!e||pc)return"";pc=!0;var r=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(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}
vendor: 3,826 bytes, lines 35-38
35catch(c){if(c&&n&&typeof c.stack=="string"){for(var s=c.stack.split(`
36`),o=n.stack.split(`
37`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=`
38`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{pc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?li(e):""}function AE(e){switch(e.tag){case 5:return li(e.type);case 16:return li("Lazy");case 13:return li("Suspense");case 19:return li("SuspenseList");case 0:case 2:case 15:return e=mc(e.type,!1),e;case 11:return e=mc(e.type.render,!1),e;case 1:return e=mc(e.type,!0),e;default:return""}}function bd(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 Us:return"Fragment";case zs:return"Portal";case yd:return"Profiler";case hf:return"StrictMode";case wd:return"Suspense";case xd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yy:return(e.displayName||"Context")+".Consumer";case vy:return(e._context.displayName||"Context")+".Provider";case ff:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pf:return t=e.displayName||null,t!==null?t:bd(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return bd(e(t))}catch{}}return null}function IE(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 bd(t);case 8:return t===hf?"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 Pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DE(e){var t=xy(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oa(e){e._valueTracker||(e._valueTracker=DE(e))}function by(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=xy(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Il(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 _d(e,t){var r=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function om(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 4,651 bytes, line 38
38function _y(e,t){t=t.checked,t!=null&&df(e,"checked",t,!1)}function Ed(e,t){_y(e,t);var r=Pn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Sd(e,t.type,r):t.hasOwnProperty("defaultValue")&&Sd(e,t.type,Pn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function im(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Sd(e,t,r){(t!=="number"||Il(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ui=Array.isArray;function Zs(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Pn(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,n&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function kd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function am(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(I(92));if(ui(r)){if(1<r.length)throw Error(I(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Pn(r)}}function Ey(e,t){var r=Pn(t.value),n=Pn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function lm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Sy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Sy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Na,ky=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Na=Na||document.createElement("div"),Na.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pi(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var mi={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},ME=["Webkit","ms","Moz","O"];Object.keys(mi).forEach(function(e){ME.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mi[t]=mi[e]})});function jy(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||mi.hasOwnProperty(e)&&mi[e]?(""+t).trim():t+"px"}function Cy(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=jy(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var LE=Ce({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 Cd(e,t){if(t){if(LE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Td(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
38ing";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 Pd=null;function mf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rd=null,eo=null,to=null;function um(e){if(e=ha(e)){if(typeof Rd!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Tu(t),Rd(e.stateNode,e.type,t))}}function Ty(e){eo?to?to.push(e):to=[e]:eo=e}function Py(){if(eo){var e=eo,t=to;if(to=eo=null,um(e),t)for(e=0;e<t.length;e++)um(t[e])}}function Ry(e,t){return e(t)}function Oy(){}var gc=!1;function Ny(e,t,r){if(gc)return e(t,r);gc=!0;try{return Ry(e,t,r)}finally{gc=!1,(eo!==null||to!==null)&&(Oy(),Py())}}function Ri(e,t){var r=e.stateNode;if(r===null)return null;var n=Tu(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(I(231,t,typeof r));return r}var Od=!1;if(Ar)try{var Go={};Object.defineProperty(Go,"passive",{get:function(){Od=!0}}),window.addEventListener("test",Go,Go),window.removeEventListener("test",Go,Go)}catch{Od=!1}function $E(e,t,r,n,s,o,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var gi=!1,Dl=null,Ml=!1,Nd=null,FE={onError:function(e){gi=!0,Dl=e}};function zE(e,t,r,n,s,o,i,a,l){gi=!1,Dl=null,$E.apply(FE,arguments)}function UE(e,t,r,n,s,o,i,a,l){if(zE.apply(this,arguments),gi){if(gi){var c=Dl;gi=!1,Dl=null}else throw Error(I(198));Ml||(Ml=!0,Nd=c)}}function xs(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Ay(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cm(e){if(xs(e)!==e)throw Error(I(188))}function BE(e){var t=e.alternate;if(!t){if(t=xs(e),t===null)throw Error(I(188));return t!==e?null:e}for(var r=e,n=t;;){var s=r.return;if(s===null)break;var o=s.alternate;if(o===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===r)return cm(s),e;if(o===n)return cm(s),t;o=o.sibling}throw Error(I(188))}if(r.return!==n.return)r=s,n=o;else{for(var i=!1,a=s.child;a;){if(a===r){i=!0,r=s,n=o;break}if(a===n){i=!0,n=s,r=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===r){i=!0,r=o,n=s;break}if(a===n){i=!0,n=o,r=s;break}a=a.sibling}if(!i)throw Error(I(189))}}if(r.alternate!==n)throw Error(I(190))}if(r.tag!==3)throw Error(I(188));return r.stateNode.current===r?e:t}function Iy(e){return e=BE(e),e!==null?Dy(e):null}function Dy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Dy(e);if(t!==null)return t;e=e.sibling}return null}var My=St.unstable_scheduleCallback,dm=St.unstable_cancelCallback,VE=St.unstable_shouldYield,WE=St.unstable_requestPaint,Ne=St.unstable_now,HE=St.unstable_getCurrentPriorityLevel,gf=St.unstable_ImmediatePriority,Ly=St.unstable_UserBlockingPriority,Ll=St.unstable_NormalPriority,qE=St.unstable_LowPriority,$y=St.unstable_IdlePriority,Su=null,gr=null;function KE(e){if(gr&&typeof gr.onCommitFiberRoot=="function")try{gr.onCommitFiberRoot(Su,e,void 0,(e.current.flags&128)===128)}catch{}}var er=Math.clz32?Math.clz32:QE,GE=Math.log,YE=Math.LN2;function QE(e){return e>>>=0,e===0?32:31-(GE(e)/YE|0)|0}var Aa=64,Ia=4194304;function ci(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 $l(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var a=i&~s;a!==0?n=ci(a):(o&=i,o!==0&&(n=ci(o)))}else i=r&~s,i!==0?n=ci(i):o!==0&&(n=ci(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-er(t),s=1<<r,n|=e[r],t&=~s;return n}function JE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function XE(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-er(o),a=1<<i,l=s[i];l===-1?(!(a&r)||a&n)&&(s[i]=JE(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Ad(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Fy(){var e=Aa;return Aa<<=1,!(Aa&4194240)&&(Aa=64),e}function vc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 2,789 bytes, line 38
38function ca(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=r}function ZE(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var s=31-er(r),o=1<<s;t[s]=0,n[s]=-1,e[s]=-1,r&=~o}}function vf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-er(r),s=1<<n;s&t|e[n]&t&&(e[n]|=t),r&=~s}}var he=0;function zy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Uy,yf,By,Vy,Wy,Id=!1,Da=[],wn=null,xn=null,bn=null,Oi=new Map,Ni=new Map,sn=[],eS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function hm(e,t){switch(e){case"focusin":case"focusout":wn=null;break;case"dragenter":case"dragleave":xn=null;break;case"mouseover":case"mouseout":bn=null;break;case"pointerover":case"pointerout":Oi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(t.pointerId)}}function Yo(e,t,r,n,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[s]},t!==null&&(t=ha(t),t!==null&&yf(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function tS(e,t,r,n,s){switch(t){case"focusin":return wn=Yo(wn,e,t,r,n,s),!0;case"dragenter":return xn=Yo(xn,e,t,r,n,s),!0;case"mouseover":return bn=Yo(bn,e,t,r,n,s),!0;case"pointerover":var o=s.pointerId;return Oi.set(o,Yo(Oi.get(o)||null,e,t,r,n,s)),!0;case"gotpointercapture":return o=s.pointerId,Ni.set(o,Yo(Ni.get(o)||null,e,t,r,n,s)),!0}return!1}function Hy(e){var t=Yn(e.target);if(t!==null){var r=xs(t);if(r!==null){if(t=r.tag,t===13){if(t=Ay(r),t!==null){e.blockedOn=t,Wy(e.priority,function(){By(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ml(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Dd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Pd=n,r.target.dispatchEvent(n),Pd=null}else return t=ha(r),t!==null&&yf(t),e.blockedOn=r,!1;t.shift()}return!0}function fm(e,t,r){ml(e)&&r.delete(t)}function rS(){Id=!1,wn!==null&&ml(wn)&&(wn=null),xn!==null&&ml(xn)&&(xn=null),bn!==null&&ml(bn)&&(bn=null),Oi.forEach(fm),Ni.forEach(fm)}function Qo(e,t){e.blockedOn===t&&(e.blockedOn=null,Id||(Id=!0,St.unstable_scheduleCallback(St.unstable_NormalPriority,rS
vendor: 10,273 bytes, line 38
38)))}function Ai(e){function t(s){return Qo(s,e)}if(0<Da.length){Qo(Da[0],e);for(var r=1;r<Da.length;r++){var n=Da[r];n.blockedOn===e&&(n.blockedOn=null)}}for(wn!==null&&Qo(wn,e),xn!==null&&Qo(xn,e),bn!==null&&Qo(bn,e),Oi.forEach(t),Ni.forEach(t),r=0;r<sn.length;r++)n=sn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<sn.length&&(r=sn[0],r.blockedOn===null);)Hy(r),r.blockedOn===null&&sn.shift()}var ro=Ur.ReactCurrentBatchConfig,Fl=!0;function nS(e,t,r,n){var s=he,o=ro.transition;ro.transition=null;try{he=1,wf(e,t,r,n)}finally{he=s,ro.transition=o}}function sS(e,t,r,n){var s=he,o=ro.transition;ro.transition=null;try{he=4,wf(e,t,r,n)}finally{he=s,ro.transition=o}}function wf(e,t,r,n){if(Fl){var s=Dd(e,t,r,n);if(s===null)Cc(e,t,n,zl,r),hm(e,n);else if(tS(s,e,t,r,n))n.stopPropagation();else if(hm(e,n),t&4&&-1<eS.indexOf(e)){for(;s!==null;){var o=ha(s);if(o!==null&&Uy(o),o=Dd(e,t,r,n),o===null&&Cc(e,t,n,zl,r),o===s)break;s=o}s!==null&&n.stopPropagation()}else Cc(e,t,n,null,r)}}var zl=null;function Dd(e,t,r,n){if(zl=null,e=mf(n),e=Yn(e),e!==null)if(t=xs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Ay(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zl=e,null}function qy(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(HE()){case gf:return 1;case Ly:return 4;case Ll:case qE:return 16;case $y:return 536870912;default:return 16}default:return 16}}var gn=null,xf=null,gl=null;function Ky(){if(gl)return gl;var e,t=xf,r=t.length,n,s="value"in gn?gn.value:gn.textContent,o=s.length;for(e=0;e<r&&t[e]===s[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===s[o-n];n++);return gl=s.slice(e,1<n?1-n:void 0)}function vl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ma(){return!0}function pm(){return!1}function Tt(e){function t(r,n,s,o,i){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ma:pm,this.isPropagationStopped=pm,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ma)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ma)},persist:function(){},isPersistent:Ma}),t}var Mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bf=Tt(Mo),da=Ce({},Mo,{view:0,detail:0}),oS=Tt(da),yc,wc,Jo,ku=Ce({},da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_f,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jo&&(Jo&&e.type==="mousemove"?(yc=e.screenX-Jo.screenX,wc=e.screenY-Jo.screenY):wc=yc=0,Jo=e),yc)},movementY:function(e){return"movementY"in e?e.movementY:wc}}),mm=Tt(ku),iS=Ce({},ku,{dataTransfer:0}),aS=Tt(iS),lS=Ce({},da,{relatedTarget:0}),xc=Tt(lS),uS=Ce({},Mo,{animationName:0,elapsedTime:0,pseudoElement:0}),cS=Tt(uS),dS=Ce({},Mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hS=Tt(dS),fS=Ce({},Mo,{data:0}),gm=Tt(fS),pS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gS[e])?!!t[e]:!1}function _f(){return vS}var yS=Ce({},da,{key:function(e){if(e.key){var t=pS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_f,charCode:function(e){return e.type==="keypress"?vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wS=Tt(yS),xS=Ce({},ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vm=Tt(xS),bS=Ce({},da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_f}),_S=Tt(bS),ES=Ce({},Mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),SS=Tt(ES),kS=Ce({},ku,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jS=Tt(kS),CS=[9,13,27,32],Ef=Ar&&"CompositionEvent"in window,vi=null;Ar&&"documentMode"in document&&(vi=document.documentMode);var TS=Ar&&"TextEvent"in window&&!vi,Gy=Ar&&(!Ef||vi&&8<vi&&11>=vi),ym=" ",wm=!1;function Yy(e,t){switch(e){case"keyup":return CS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bs=!1;function PS(e,t){switch(e){case"compositionend":return Qy(t);case"keypress":return t.which!==32?null:(wm=!0,ym);case"textInput":return e=t.data,e===ym&&wm?null:e;default:return null}}function RS(e,t){if(Bs)return e==="compositionend"||!Ef&&Yy(e,t)?(e=Ky(),gl=xf=gn=null,Bs=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Gy&&t.locale!=="ko"?null:t.data;default:return null}}var OS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OS[e.type]:t==="textarea"}function Jy(e,t,r,n){Ty(n),t=Ul(t,"onChange"),0<t.length&&(r=new bf("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var yi=null,Ii=null;function NS(e){l0(e,0)}function ju(e){var t=Hs(e);if(by(t))return e}function AS(e,t){if(e==="change")return t}var Xy=!1;if(Ar){var bc;if(Ar){var _c="oninput"in document;if(!_c){var bm=document.createElement("div");bm.setAttribute("oninput","return;"),_c=typeof bm.oninput=="function"}bc=_c}else bc=!1;Xy=bc&&(!document.documentMode||9<document.documentMode)}function _m(){yi&&(yi.detachEvent("onpropertychange",Zy),Ii=yi=null)}function Zy(e){if(e.propertyName==="value"&&ju(Ii)){var t=[];Jy(t,Ii,e,mf(e)),Ny(NS,t)}}function IS(e,t,r){e==="focusin"?(_m(),yi=t,Ii=r,yi.attachEvent("onpropertychange",Zy)):e==="focusout"&&_m()}function DS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ju(Ii)}function MS(e,t){if(e==="click")return ju(t)}function LS(e,t){if(e==="input"||e==="change")return ju(t)}function $S(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rr=typeof Object.is=="function"?Object.is:$S;function Di(e,t){if(rr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!vd.call(t,s)||!rr(e[s],t[s]))return!1}return!0}function Em(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sm(e,t){var r=Em(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Em(r)}}function e0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?e0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function t0(){for(var e=window,t=Il();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Il(e.document)}return t}function Sf(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")}
vendor: 4,576 bytes, line 38
38function FS(e){var t=t0(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&e0(r.ownerDocument.documentElement,r)){if(n!==null&&Sf(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,o=Math.min(n.start,s);n=n.end===void 0?o:Math.min(n.end,s),!e.extend&&o>n&&(s=n,n=o,o=s),s=Sm(r,o);var i=Sm(r,n);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zS=Ar&&"documentMode"in document&&11>=document.documentMode,Vs=null,Md=null,wi=null,Ld=!1;function km(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ld||Vs==null||Vs!==Il(n)||(n=Vs,"selectionStart"in n&&Sf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),wi&&Di(wi,n)||(wi=n,n=Ul(Md,"onSelect"),0<n.length&&(t=new bf("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Vs)))}function La(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ws={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionend:La("Transition","TransitionEnd")},Ec={},r0={};Ar&&(r0=document.createElement("div").style,"AnimationEvent"in window||(delete Ws.animationend.animation,delete Ws.animationiteration.animation,delete Ws.animationstart.animation),"TransitionEvent"in window||delete Ws.transitionend.transition);function Cu(e){if(Ec[e])return Ec[e];if(!Ws[e])return e;var t=Ws[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in r0)return Ec[e]=t[r];return e}var n0=Cu("animationend"),s0=Cu("animationiteration"),o0=Cu("animationstart"),i0=Cu("transitionend"),a0=new Map,jm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function An(e,t){a0.set(e,t),ws(t,[e])}for(var Sc=0;Sc<jm.length;Sc++){var kc=jm[Sc],US=kc.toLowerCase(),BS=kc[0].toUpperCase()+kc.slice(1);An(US,"on"+BS)}An(n0,"onAnimationEnd");An(s0,"onAnimationIteration");An(o0,"onAnimationStart");An("dblclick","onDoubleClick");An("focusin","onFocus");An("focusout","onBlur");An(i0,"onTransitionEnd");Eo("onMouseEnter",["mouseout","mouseover"]);Eo("onMouseLeave",["mouseout","mouseover"]);Eo("onPointerEnter",["pointerout","pointerover"]);Eo("onPointerLeave",["pointerout","pointerover"]);ws("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ws("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ws("onBeforeInput",["compositionend","keypress","textInput","paste"]);ws("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ws("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ws("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),VS=new Set("cancel close invalid load scroll toggle".split(" ").concat(di));function Cm(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,UE(n,t,void 0,e),e.currentTarget=null}
vendor: 5,300 bytes, line 38
38function l0(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],s=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var a=n[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;Cm(s,a,c),o=l}else for(i=0;i<n.length;i++){if(a=n[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;Cm(s,a,c),o=l}}}if(Ml)throw e=Nd,Ml=!1,Nd=null,e}function ye(e,t){var r=t[Bd];r===void 0&&(r=t[Bd]=new Set);var n=e+"__bubble";r.has(n)||(u0(t,e,2,!1),r.add(n))}function jc(e,t,r){var n=0;t&&(n|=4),u0(r,e,n,t)}var $a="_reactListening"+Math.random().toString(36).slice(2);function Mi(e){if(!e[$a]){e[$a]=!0,gy.forEach(function(r){r!=="selectionchange"&&(VS.has(r)||jc(r,!1,e),jc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$a]||(t[$a]=!0,jc("selectionchange",!1,t))}}function u0(e,t,r,n){switch(qy(t)){case 1:var s=nS;break;case 4:s=sS;break;default:s=wf}r=s.bind(null,t,r,e),s=void 0,!Od||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),n?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function Cc(e,t,r,n,s){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var a=n.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=n.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=Yn(a),i===null)return;if(l=i.tag,l===5||l===6){n=o=i;continue e}a=a.parentNode}}n=n.return}Ny(function(){var c=o,d=mf(r),h=[];e:{var m=a0.get(e);if(m!==void 0){var f=bf,b=e;switch(e){case"keypress":if(vl(r)===0)break e;case"keydown":case"keyup":f=wS;break;case"focusin":b="focus",f=xc;break;case"focusout":b="blur",f=xc;break;case"beforeblur":case"afterblur":f=xc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=aS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=_S;break;case n0:case s0:case o0:f=cS;break;case i0:f=SS;break;case"scroll":f=oS;break;case"wheel":f=jS;break;case"copy":case"cut":case"paste":f=hS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=vm}var v=(t&4)!==0,x=!v&&e==="scroll",w=v?m!==null?m+"Capture":null:m;v=[];for(var g=c,y;g!==null;){y=g;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,w!==null&&(_=Ri(g,w),_!=null&&v.push(Li(g,_,y)))),x)break;g=g.return}0<v.length&&(m=new f(m,b,null,r,d),h.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&r!==Pd&&(b=r.relatedTarget||r.fromElement)&&(Yn(b)||b[Ir]))break e;if((f||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,f?(b=r.relatedTarget||r.toElement,f=c,b=b?Yn(b):null,b!==null&&(x=xs(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(f=null,b=c),f!==b)){if(v=mm,_="onMouseLeave",w="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=vm,_="onPointerLeave",w="onPointerEnter",g="pointer"),x=f==null?m:Hs(f),y=b==null?m:Hs(b),m=new v(_,g+"leave",f,r,d),m.target=x,m.relatedTarget=y,_=null,Yn(d)===c&&(v=new v(w,g+"enter",b,r,d),v.target=y,v.relatedTarget=x,_=v),x=_,f&&b)t:{for(v=f,w=b,g=0,y=v;y;y=Ts(y))g++;for(y=0,_=w;_;_=Ts(_))y++;for(;0<g-y;)v=Ts(v),g--;for(;0<y-g;)w=Ts(w),y--;for(;g--;){if(v===w||w!==null&&v===w.alternate)break t;v=Ts(v),w=Ts(w)}v=null}else v=null;f!==null&&Tm(h,m,f,v,!1),b!==null&&x!==null&&Tm(h,x,b,v,!0)}}e:{if(m=c?Hs(c):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var E=AS;else if(xm(m))if(Xy)E=LS;else{E=DS;var k=IS}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=MS);if(E&&(E=E(e,c))){Jy(h,E,r,d);break e}k&&k(e,m,c),e==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&Sd(m,"number",m.value)}switch(k=c?Hs(c):window,e){case"focusin":(xm(k)||k.contentEditable==="true")&&(Vs=k,Md=c,wi=null);break;case"focusout":wi=Md=Vs=null;break;case"mousedown":Ld=!0;break;case"contextmenu":case"mouseup":case"dragend":Ld=!1,km(h,r,d);break;case"selectionchange":if(zS)break;case"keydown":case"keyup":km(h,r,d)}var j;if(Ef)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Bs?Yy(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(Gy&&r.locale!=="ko"&&(Bs||P!=="onCompositionStart"?P==="onCompositionEnd"&&Bs&&(j=Ky()):(gn=d,xf="value"in gn?gn.value:gn.textContent,Bs=!0)),k=Ul(c,P),0<k.length&&(P=new gm(P,e,null,r,d),h.push({event:P,listeners:k}),j?P.data=j:(j=Qy(r),j!==null&&(P.data=j)))),(j=TS?PS(e,r):RS(e,r))&&(c=Ul(c,"onBeforeInput"),0<c.length&&(d=new gm("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:c}),d.data=j))}l0(h,t)}
vendor: 6,160 bytes, lines 38-39
38)}function Li(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ul(e,t){for(var r=t+"Capture",n=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Ri(e,r),o!=null&&n.unshift(Li(e,o,s)),o=Ri(e,t),o!=null&&n.push(Li(e,o,s))),e=e.return}return n}function Ts(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Tm(e,t,r,n,s){for(var o=t._reactName,i=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,s?(l=Ri(r,o),l!=null&&i.unshift(Li(r,l,a))):s||(l=Ri(r,o),l!=null&&i.push(Li(r,l,a)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var WS=/\r\n?/g,HS=/\u0000|\uFFFD/g;function Pm(e){return(typeof e=="string"?e:""+e).replace(WS,`
39`).replace(HS,"")}function Fa(e,t,r){if(t=Pm(t),Pm(e)!==t&&r)throw Error(I(425))}function Bl(){}var $d=null,Fd=null;function zd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ud=typeof setTimeout=="function"?setTimeout:void 0,qS=typeof clearTimeout=="function"?clearTimeout:void 0,Rm=typeof Promise=="function"?Promise:void 0,KS=typeof queueMicrotask=="function"?queueMicrotask:typeof Rm<"u"?function(e){return Rm.resolve(null).then(e).catch(GS)}:Ud;function GS(e){setTimeout(function(){throw e})}function Tc(e,t){var r=t,n=0;do{var s=r.nextSibling;if(e.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){e.removeChild(s),Ai(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Ai(t)}function _n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Lo=Math.random().toString(36).slice(2),pr="__reactFiber$"+Lo,$i="__reactProps$"+Lo,Ir="__reactContainer$"+Lo,Bd="__reactEvents$"+Lo,YS="__reactListeners$"+Lo,QS="__reactHandles$"+Lo;function Yn(e){var t=e[pr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ir]||r[pr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Om(e);e!==null;){if(r=e[pr])return r;e=Om(e)}return t}e=r,r=e.parentNode}return null}function ha(e){return e=e[pr]||e[Ir],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Tu(e){return e[$i]||null}var Vd=[],qs=-1;function In(e){return{current:e}}function we(e){0>qs||(e.current=Vd[qs],Vd[qs]=null,qs--)}function ge(e,t){qs++,Vd[qs]=e.current,e.current=t}var Rn={},Ze=In(Rn),ft=In(!1),ds=Rn;function So(e,t){var r=e.type.contextTypes;if(!r)return Rn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in r)s[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function pt(e){return e=e.childContextTypes,e!=null}function Vl(){we(ft),we(Ze)}function Nm(e,t,r){if(Ze.current!==Rn)throw Error(I(168));ge(Ze,t),ge(ft,r)}function c0(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(I(108,IE(e)||"Unknown",s));return Ce({},r,n)}function Wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rn,ds=Ze.current,ge(Ze,e),ge(ft,ft.current),!0}function Am(e,t,r){var n=e.stateNode;if(!n)throw Error(I(169));r?(e=c0(e,t,ds),n.__reactInternalMemoizedMergedChildContext=e,we(ft),we(Ze),ge(Ze,e)):we(ft),ge(ft,r)}var Tr=null,Pu=!1,Pc=!1;function d0(e){Tr===null?Tr=[e]:Tr.push(e)}function JS(e){Pu=!0,d0(e)}function Dn(){if(!Pc&&Tr!==null){Pc=!0;var e=0,t=he;try{var r=Tr;for(he=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Tr=null,Pu=!1}catch(s){throw Tr!==null&&(Tr=Tr.slice(e+1)),My(gf,Dn),s}finally{he=t,Pc=!1}}return null}var Ks=[],Gs=0,Hl=null,ql=0,Nt=[],At=0,hs=null,Rr=1,Or="";function Vn(e,t){Ks[Gs++]=ql,Ks[Gs++]=Hl,Hl=e,ql=t}function h0(e,t,r){Nt[At++]=Rr,Nt[At++]=Or,Nt[At++]=hs,hs=e;var n=Rr;e=Or;var s=32-er(n)-1;n&=~(1<<s),r+=1;var o=32-er(t)+s;if(30<o){var i=s-s%5;o=(n&(1<<i)-1).toString(32),n>>=i,s-=i,Rr=1<<32-er(t)+s|r<<s|n,Or=o+e}else Rr=1<<o|r<<s|n,Or=e}function kf(e){e.return!==null&&(Vn(e,1),h0(e,1,0))}function jf(e){for(;e===Hl;)Hl=Ks[--Gs],Ks[Gs]=null,ql=Ks[--Gs],Ks[Gs]=null;for(;e===hs;)hs=Nt[--At],Nt[At]=null,Or=Nt[--At],Nt[At]=null,Rr=Nt[--At],Nt[At]=null}var _t=null,bt=null,be=!1,Zt=null;function f0(e,t){var r=Dt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Im(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_t=e,bt=_n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_t=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=hs!==null?{id:Rr,overflow:Or}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Dt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,_t=e,bt=null,!0):!1;default:return!1}}function Wd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Hd(e){if(be){var t=bt;if(t){var r=t;if(!Im(e,t)){if(Wd(e))throw Error(I(418));t=_n(r.nextSibling);var n=_t;t&&Im(e,t)?f0(n,r):(e.flags=e.flags&-4097|2,be=!1,_t=e)}}else{if(Wd(e))throw Error(I(418));e.flags=e.flags&-4097|2,be=!1,_t=e}}}function Dm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_t=e}function za(e){if(e!==_t)return!1;if(!be)return Dm(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zd(e.type,e.memoizedProps)),t&&(t=bt)){if(Wd(e))throw p0(),Error(I(418));for(;t;)f0(e,t),t=_n(t.nextSibling)}if(Dm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 13,296 bytes, line 39
39);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){bt=_n(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=_t?_n(e.stateNode.nextSibling):null;return!0}function p0(){for(var e=bt;e;)e=_n(e.nextSibling)}function ko(){bt=_t=null,be=!1}function Cf(e){Zt===null?Zt=[e]:Zt.push(e)}var XS=Ur.ReactCurrentBatchConfig;function Xo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(I(309));var n=r.stateNode}if(!n)throw Error(I(147,e));var s=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(I(284));if(!r._owner)throw Error(I(290,e))}return e}function Ua(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mm(e){var t=e._init;return t(e._payload)}function m0(e){function t(w,g){if(e){var y=w.deletions;y===null?(w.deletions=[g],w.flags|=16):y.push(g)}}function r(w,g){if(!e)return null;for(;g!==null;)t(w,g),g=g.sibling;return null}function n(w,g){for(w=new Map;g!==null;)g.key!==null?w.set(g.key,g):w.set(g.index,g),g=g.sibling;return w}function s(w,g){return w=jn(w,g),w.index=0,w.sibling=null,w}function o(w,g,y){return w.index=y,e?(y=w.alternate,y!==null?(y=y.index,y<g?(w.flags|=2,g):y):(w.flags|=2,g)):(w.flags|=1048576,g)}function i(w){return e&&w.alternate===null&&(w.flags|=2),w}function a(w,g,y,_){return g===null||g.tag!==6?(g=Mc(y,w.mode,_),g.return=w,g):(g=s(g,y),g.return=w,g)}function l(w,g,y,_){var E=y.type;return E===Us?d(w,g,y.props.children,_,y.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rn&&Mm(E)===g.type)?(_=s(g,y.props),_.ref=Xo(w,g,y),_.return=w,_):(_=Sl(y.type,y.key,y.props,null,w.mode,_),_.ref=Xo(w,g,y),_.return=w,_)}function c(w,g,y,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Lc(y,w.mode,_),g.return=w,g):(g=s(g,y.children||[]),g.return=w,g)}function d(w,g,y,_,E){return g===null||g.tag!==7?(g=us(y,w.mode,_,E),g.return=w,g):(g=s(g,y),g.return=w,g)}function h(w,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Mc(""+g,w.mode,y),g.return=w,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ra:return y=Sl(g.type,g.key,g.props,null,w.mode,y),y.ref=Xo(w,null,g),y.return=w,y;case zs:return g=Lc(g,w.mode,y),g.return=w,g;case rn:var _=g._init;return h(w,_(g._payload),y)}if(ui(g)||Ko(g))return g=us(g,w.mode,y,null),g.return=w,g;Ua(w,g)}return null}function m(w,g,y,_){var E=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:a(w,g,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ra:return y.key===E?l(w,g,y,_):null;case zs:return y.key===E?c(w,g,y,_):null;case rn:return E=y._init,m(w,g,E(y._payload),_)}if(ui(y)||Ko(y))return E!==null?null:d(w,g,y,_,null);Ua(w,y)}return null}function f(w,g,y,_,E){if(typeof _=="string"&&_!==""||typeof _=="number")return w=w.get(y)||null,a(g,w,""+_,E);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ra:return w=w.get(_.key===null?y:_.key)||null,l(g,w,_,E);case zs:return w=w.get(_.key===null?y:_.key)||null,c(g,w,_,E);case rn:var k=_._init;return f(w,g,y,k(_._payload),E)}if(ui(_)||Ko(_))return w=w.get(y)||null,d(g,w,_,E,null);Ua(g,_)}return null}function b(w,g,y,_){for(var E=null,k=null,j=g,P=g=0,A=null;j!==null&&P<y.length;P++){j.index>P?(A=j,j=null):A=j.sibling;var N=m(w,j,y[P],_);if(N===null){j===null&&(j=A);break}e&&j&&N.alternate===null&&t(w,j),g=o(N,g,P),k===null?E=N:k.sibling=N,k=N,j=A}if(P===y.length)return r(w,j),be&&Vn(w,P),E;if(j===null){for(;P<y.length;P++)j=h(w,y[P],_),j!==null&&(g=o(j,g,P),k===null?E=j:k.sibling=j,k=j);return be&&Vn(w,P),E}for(j=n(w,j);P<y.length;P++)A=f(j,w,P,y[P],_),A!==null&&(e&&A.alternate!==null&&j.delete(A.key===null?P:A.key),g=o(A,g,P),k===null?E=A:k.sibling=A,k=A);return e&&j.forEach(function(U){return t(w,U)}),be&&Vn(w,P),E}function v(w,g,y,_){var E=Ko(y);if(typeof E!="function")throw Error(I(150));if(y=E.call(y),y==null)throw Error(I(151));for(var k=E=null,j=g,P=g=0,A=null,N=y.next();j!==null&&!N.done;P++,N=y.next()){j.index>P?(A=j,j=null):A=j.sibling;var U=m(w,j,N.value,_);if(U===null){j===null&&(j=A);break}e&&j&&U.alternate===null&&t(w,j),g=o(U,g,P),k===null?E=U:k.sibling=U,k=U,j=A}if(N.done)return r(w,j),be&&Vn(w,P),E;if(j===null){for(;!N.done;P++,N=y.next())N=h(w,N.value,_),N!==null&&(g=o(N,g,P),k===null?E=N:k.sibling=N,k=N);return be&&Vn(w,P),E}for(j=n(w,j);!N.done;P++,N=y.next())N=f(j,w,P,N.value,_),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?P:N.key),g=o(N,g,P),k===null?E=N:k.sibling=N,k=N);return e&&j.forEach(function(D){return t(w,D)}),be&&Vn(w,P),E}function x(w,g,y,_){if(typeof y=="object"&&y!==null&&y.type===Us&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ra:e:{for(var E=y.key,k=g;k!==null;){if(k.key===E){if(E=y.type,E===Us){if(k.tag===7){r(w,k.sibling),g=s(k,y.props.children),g.return=w,w=g;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rn&&Mm(E)===k.type){r(w,k.sibling),g=s(k,y.props),g.ref=Xo(w,k,y),g.return=w,w=g;break e}r(w,k);break}else t(w,k);k=k.sibling}y.type===Us?(g=us(y.props.children,w.mode,_,y.key),g.return=w,w=g):(_=Sl(y.type,y.key,y.props,null,w.mode,_),_.ref=Xo(w,g,y),_.return=w,w=_)}return i(w);case zs:e:{for(k=y.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(w,g.sibling),g=s(g,y.children||[]),g.return=w,w=g;break e}else{r(w,g);break}else t(w,g);g=g.sibling}g=Lc(y,w.mode,_),g.return=w,w=g}return i(w);case rn:return k=y._init,x(w,g,k(y._payload),_)}if(ui(y))return b(w,g,y,_);if(Ko(y))return v(w,g,y,_);Ua(w,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(w,g.sibling),g=s(g,y),g.return=w,w=g):(r(w,g),g=Mc(y,w.mode,_),g.return=w,w=g),i(w)):r(w,g)}return x}var jo=m0(!0),g0=m0(!1),Kl=In(null),Gl=null,Ys=null,Tf=null;function Pf(){Tf=Ys=Gl=null}function Rf(e){var t=Kl.current;we(Kl),e._currentValue=t}function qd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function no(e,t){Gl=e,Tf=Ys=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(Tf!==e)if(e={context:e,memoizedValue:t,next:null},Ys===null){if(Gl===null)throw Error(I(308));Ys=e,Gl.dependencies={lanes:0,firstContext:e}}else Ys=Ys.next=e;return t}var Qn=null;function Of(e){Qn===null?Qn=[e]:Qn.push(e)}function v0(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,Of(t)):(r.next=s.next,s.next=r),t.interleaved=r,Dr(e,n)}function Dr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var nn=!1;function Nf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function y0(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 Nr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function En(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ue&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,Dr(e,r)}return s=n.interleaved,s===null?(t.next=t,Of(n)):(t.next=s.next,s.next=t),n.interleaved=t,Dr(e,r)}function yl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,vf(e,r)}}function Lm(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?s=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?s=o=t:o=o.next=t}else s=o=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Yl(e,t,r,n){var s=e.updateQueue;nn=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?o=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(o!==null){var h=s.baseState;i=0,d=c=l=null,a=o;do{var m=a.lane,f=a.eventTime;if((n&m)===m){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,v=a;switch(m=t,f=r,v.tag){case 1:if(b=v.payload,typeof b=="function"){h=b.call(f,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,m=typeof b=="function"?b.call(f,h,m):b,m==null)break e;h=Ce({},h,m);break e;case 2:nn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=s.effects,m===null?s.effects=[a]:m.push(a))}else f={eventTime:f,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=f,l=h):d=d.next=f,i|=m;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;m=a,a=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(d===null&&(l=h),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);ps|=i,e.lanes=i,e.memoizedState=h}}function $m(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(I(191,s));s.call(n)}}}var fa={},vr=In(fa),Fi=In(fa),zi=In(fa);function Jn(e){if(e===fa)throw Error(I(174));return e}function Af(e,t){switch(ge(zi,t),ge(Fi,e),ge(vr,fa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jd(t,e)}we(vr),ge(vr,t)}function Co(){we(vr),we(Fi),we(zi)}function w0(e){Jn(zi.current);var t=Jn(vr.current),r=jd(t,e.type);t!==r&&(ge(Fi,e),ge(vr,r))}function If(e){Fi.current===e&&(we(vr),we(Fi))}var Se=In(0);function Ql(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rc=[];function Df(){for(var e=0;e<Rc.length;e++)Rc[e]._workInProgressVersionPrimary=null;Rc.length=0}var wl=Ur.ReactCurrentDispatcher,Oc=Ur.ReactCurrentBatchConfig,fs=0,ke=null,Le=null,Be=null,Jl=!1,xi=!1,Ui=0,ZS=0;function Ge(){throw Error(I(321))}function Mf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!rr(e[r],t[r]))return!1;return!0}function Lf(e,t,r,n,s,o){if(fs=o,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wl.current=e===null||e.memoizedState===null?nk:sk,e=r(n,s),xi){o=0;do{if(xi=!1,Ui=0,25<=o)throw Error(I(301));o+=1,Be=Le=null,t.updateQueue=null,wl.current=ok,e=r(n,s)}while(xi)}if(wl.current=Xl,t=Le!==null&&Le.next!==null,fs=0,Be=Le=ke=null,Jl=!1,t)throw Error(I(300));return e}function $f(){var e=Ui!==0;return Ui=0,e}function ur(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ke.memoizedState=Be=e:Be=Be.next=e,Be}function Ft(){if(Le===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=Be===null?ke.memoizedState:Be.next;if(t!==null)Be=t,Le=e;else{if(e===null)throw Error(I(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Be===null?ke.memoizedState=Be=e:Be=Be.next=e}return Be}function Bi(e,t){return typeof t=="function"?t(e):t}function Nc(e){var t=Ft(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=Le,s=n.baseQueue,o=r.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}n.baseQueue=s=o,r.pending=null}if(s!==null){o=s.next,n=n.baseState;var a=i=null,l=null,c=o;do{var d=c.lane;if((fs&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,i=n):l=l.next=h,ke.lanes|=d,ps|=d}c=c.next}while(c!==null&&c!==o);l===null?i=n:l.next=a,rr(n,t.memoizedState)||(ht=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){s=e;do o=s.lane,ke.lanes|=o,ps|=o,s=s.next;while(s!==e)}else s===null&&(r.lanes=0);
vendor: 4,900 bytes, line 39
39return[t.memoizedState,r.dispatch]}function Ac(e){var t=Ft(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=r.dispatch,s=r.pending,o=t.memoizedState;if(s!==null){r.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);rr(o,t.memoizedState)||(ht=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function x0(){}function b0(e,t){var r=ke,n=Ft(),s=t(),o=!rr(n.memoizedState,s);if(o&&(n.memoizedState=s,ht=!0),n=n.queue,Ff(S0.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Be!==null&&Be.memoizedState.tag&1){if(r.flags|=2048,Vi(9,E0.bind(null,r,n,s,t),void 0,null),Ve===null)throw Error(I(349));fs&30||_0(r,t,s)}return s}function _0(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function E0(e,t,r,n){t.value=r,t.getSnapshot=n,k0(t)&&j0(e)}function S0(e,t,r){return r(function(){k0(t)&&j0(e)})}function k0(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!rr(e,r)}catch{return!0}}function j0(e){var t=Dr(e,1);t!==null&&tr(t,e,1,-1)}function Fm(e){var t=ur();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:e},t.queue=e,e=e.dispatch=rk.bind(null,ke,e),[t.memoizedState,e]}function Vi(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function C0(){return Ft().memoizedState}function xl(e,t,r,n){var s=ur();ke.flags|=e,s.memoizedState=Vi(1|t,r,void 0,n===void 0?null:n)}function Ru(e,t,r,n){var s=Ft();n=n===void 0?null:n;var o=void 0;if(Le!==null){var i=Le.memoizedState;if(o=i.destroy,n!==null&&Mf(n,i.deps)){s.memoizedState=Vi(t,r,o,n);return}}ke.flags|=e,s.memoizedState=Vi(1|t,r,o,n)}function zm(e,t){return xl(8390656,8,e,t)}function Ff(e,t){return Ru(2048,8,e,t)}function T0(e,t){return Ru(4,2,e,t)}function P0(e,t){return Ru(4,4,e,t)}function R0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function O0(e,t,r){return r=r!=null?r.concat([e]):null,Ru(4,4,R0.bind(null,t,e),r)}function zf(){}function N0(e,t){var r=Ft();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Mf(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function A0(e,t){var r=Ft();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Mf(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function I0(e,t,r){return fs&21?(rr(r,t)||(r=Fy(),ke.lanes|=r,ps|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=r)}function ek(e,t){var r=he;he=r!==0&&4>r?r:4,e(!0);var n=Oc.transition;Oc.transition={};try{e(!1),t()}finally{he=r,Oc.transition=n}}function D0(){return Ft().memoizedState}function tk(e,t,r){var n=kn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},M0(e))L0(t,r);else if(r=v0(e,t,r,n),r!==null){var s=st();tr(r,e,n,s),$0(r,t,n)}}function rk(e,t,r){var n=kn(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(M0(e))L0(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,r);if(s.hasEagerState=!0,s.eagerState=a,rr(a,i)){var l=t.interleaved;l===null?(s.next=s,Of(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=v0(e,t,s,n),r!==null&&(s=st(),tr(r,e,n,s),$0(r,t,n))}}function M0(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function L0(e,t){xi=Jl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $0(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,vf(e,r)}}var Xl={readContext:$t,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},nk={readContext:$t,useCallback:function(e,t){return ur().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:zm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,xl(4194308,4,R0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return xl(4194308,4,e,t)},useInsertionEffect:function(e,t){return xl(4,2,e,t)},useMemo:function(e,t){var r=ur();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ur();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=tk.bind(null,ke,e),[n.memoizedState,e]}
vendor: 5,922 bytes, lines 39-41
39,useRef:function(e){var t=ur();return e={current:e},t.memoizedState=e},useState:Fm,useDebugValue:zf,useDeferredValue:function(e){return ur().memoizedState=e},useTransition:function(){var e=Fm(!1),t=e[0];return e=ek.bind(null,e[1]),ur().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ke,s=ur();if(be){if(r===void 0)throw Error(I(407));r=r()}else{if(r=t(),Ve===null)throw Error(I(349));fs&30||_0(n,t,r)}s.memoizedState=r;var o={value:r,getSnapshot:t};return s.queue=o,zm(S0.bind(null,n,o,e),[e]),n.flags|=2048,Vi(9,E0.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=ur(),t=Ve.identifierPrefix;if(be){var r=Or,n=Rr;r=(n&~(1<<32-er(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ui++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=ZS++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sk={readContext:$t,useCallback:N0,useContext:$t,useEffect:Ff,useImperativeHandle:O0,useInsertionEffect:T0,useLayoutEffect:P0,useMemo:A0,useReducer:Nc,useRef:C0,useState:function(){return Nc(Bi)},useDebugValue:zf,useDeferredValue:function(e){var t=Ft();return I0(t,Le.memoizedState,e)},useTransition:function(){var e=Nc(Bi)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:x0,useSyncExternalStore:b0,useId:D0,unstable_isNewReconciler:!1},ok={readContext:$t,useCallback:N0,useContext:$t,useEffect:Ff,useImperativeHandle:O0,useInsertionEffect:T0,useLayoutEffect:P0,useMemo:A0,useReducer:Ac,useRef:C0,useState:function(){return Ac(Bi)},useDebugValue:zf,useDeferredValue:function(e){var t=Ft();return Le===null?t.memoizedState=e:I0(t,Le.memoizedState,e)},useTransition:function(){var e=Ac(Bi)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:x0,useSyncExternalStore:b0,useId:D0,unstable_isNewReconciler:!1};function Kt(e,t){if(e&&e.defaultProps){t=Ce({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Kd(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ce({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ou={isMounted:function(e){return(e=e._reactInternals)?xs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=st(),s=kn(e),o=Nr(n,s);o.payload=t,r!=null&&(o.callback=r),t=En(e,o,s),t!==null&&(tr(t,e,s,n),yl(t,e,s))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=st(),s=kn(e),o=Nr(n,s);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=En(e,o,s),t!==null&&(tr(t,e,s,n),yl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=st(),n=kn(e),s=Nr(r,n);s.tag=2,t!=null&&(s.callback=t),t=En(e,s,n),t!==null&&(tr(t,e,n,r),yl(t,e,n))}};function Um(e,t,r,n,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!Di(r,n)||!Di(s,o):!0}function F0(e,t,r){var n=!1,s=Rn,o=t.contextType;return typeof o=="object"&&o!==null?o=$t(o):(s=pt(t)?ds:Ze.current,n=t.contextTypes,o=(n=n!=null)?So(e,s):Rn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ou,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function Bm(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Ou.enqueueReplaceState(t,t.state,null)}function Gd(e,t,r,n){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs={},Nf(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=$t(o):(o=pt(t)?ds:Ze.current,s.context=So(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Kd(e,t,o,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Ou.enqueueReplaceState(s,s.state,null),Yl(e,r,s,n),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function To(e,t){try{var r="",n=t;do r+=AE(n),n=n.return;while(n);var s=r}catch(o){s=`
40Error generating stack: `+o.message+`
41`+o.stack}return{value:e,source:t,stack:s,digest:null}}function Ic(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Yd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var ik=typeof WeakMap=="function"?WeakMap:Map;function z0(e,t,r){r=Nr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){eu||(eu=!0,oh=n),Yd(e,t)},r}function U0(e,t,r){r=Nr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){Yd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Yd(e,t),typeof n!="function"&&(Sn===null?Sn=new Set([this]):Sn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function Vm(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new ik;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=xk.bind(null,e,t,r),t.then(e,e))}function Wm(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 Hm(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Nr(-1,1),t.tag=2,En(r,t,1))),r.lanes|=1),e)}var ak=Ur.ReactCurrentOwner,ht=!1;function rt(e,t,r,n){t.child=e===null?g0(t,null,r,n):jo(t,e.child,r,n)}function qm(e,t,r,n,s){r=r.render;var o=t.ref;
vendor: 6,220 bytes, line 41
41return no(t,s),n=Lf(e,t,r,n,o,s),r=$f(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Mr(e,t,s)):(be&&r&&kf(t),t.flags|=1,rt(e,t,n,s),t.child)}function Km(e,t,r,n,s){if(e===null){var o=r.type;return typeof o=="function"&&!Gf(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,B0(e,t,o,n,s)):(e=Sl(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:Di,r(i,n)&&e.ref===t.ref)return Mr(e,t,s)}return t.flags|=1,e=jn(o,n),e.ref=t.ref,e.return=t,t.child=e}function B0(e,t,r,n,s){if(e!==null){var o=e.memoizedProps;if(Di(o,n)&&e.ref===t.ref)if(ht=!1,t.pendingProps=n=o,(e.lanes&s)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,Mr(e,t,s)}return Qd(e,t,r,n,s)}function V0(e,t,r){var n=t.pendingProps,s=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Js,vt),vt|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Js,vt),vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ge(Js,vt),vt|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ge(Js,vt),vt|=n;return rt(e,t,s,r),t.child}function W0(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Qd(e,t,r,n,s){var o=pt(r)?ds:Ze.current;return o=So(t,o),no(t,s),r=Lf(e,t,r,n,o,s),n=$f(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Mr(e,t,s)):(be&&n&&kf(t),t.flags|=1,rt(e,t,r,s),t.child)}function Gm(e,t,r,n,s){if(pt(r)){var o=!0;Wl(t)}else o=!1;if(no(t,s),t.stateNode===null)bl(e,t),F0(t,r,n),Gd(t,r,n,s),n=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=r.contextType;typeof c=="object"&&c!==null?c=$t(c):(c=pt(r)?ds:Ze.current,c=So(t,c));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==n||l!==c)&&Bm(t,i,n,c),nn=!1;var m=t.memoizedState;i.state=m,Yl(t,n,i,s),l=t.memoizedState,a!==n||m!==l||ft.current||nn?(typeof d=="function"&&(Kd(t,r,d,n),l=t.memoizedState),(a=nn||Um(t,r,a,n,m,l,c))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,y0(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Kt(t.type,a),i.props=c,h=t.pendingProps,m=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=$t(l):(l=pt(r)?ds:Ze.current,l=So(t,l));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==h||m!==l)&&Bm(t,i,n,l),nn=!1,m=t.memoizedState,i.state=m,Yl(t,n,i,s);var b=t.memoizedState;a!==h||m!==b||ft.current||nn?(typeof f=="function"&&(Kd(t,r,f,n),b=t.memoizedState),(c=nn||Um(t,r,c,n,m,b,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,b,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,b,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=b),i.props=n,i.state=b,i.context=l,n=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),n=!1)}return Jd(e,t,r,n,o,s)}function Jd(e,t,r,n,s,o){W0(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return s&&Am(t,r,!1),Mr(e,t,o);n=t.stateNode,ak.current=t;var a=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=jo(t,e.child,null,o),t.child=jo(t,null,a,o)):rt(e,t,a,o),t.memoizedState=n.state,s&&Am(t,r,!0),t.child}function H0(e){var t=e.stateNode;t.pendingContext?Nm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Nm(e,t.context,!1),Af(e,t.containerInfo)}function Ym(e,t,r,n,s){return ko(),Cf(s),t.flags|=256,rt(e,t,r,n),t.child}var Xd={dehydrated:null,treeContext:null,retryLane:0};function Zd(e){return{baseLanes:e,cachePool:null,transitions:null}}function q0(e,t,r){var n=t.pendingProps,s=Se.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ge(Se,s&1),e===null)return Hd(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):(i=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Iu(i,n,0,null),e=us(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Zd(r),t.memoizedState=Xd,e):Uf(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return lk(e,t,i,n,a,s,r);if(o){o=n.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(i&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=jn(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=jn(a,o):(o=us(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?Zd(r):{base
vendor: 7,075 bytes, line 41
41Lanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=Xd,n}return o=e.child,e=o.sibling,n=jn(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Uf(e,t){return t=Iu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ba(e,t,r,n){return n!==null&&Cf(n),jo(t,e.child,null,r),e=Uf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lk(e,t,r,n,s,o,i){if(r)return t.flags&256?(t.flags&=-257,n=Ic(Error(I(422))),Ba(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,s=t.mode,n=Iu({mode:"visible",children:n.children},s,0,null),o=us(o,s,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&jo(t,e.child,null,i),t.child.memoizedState=Zd(i),t.memoizedState=Xd,o);if(!(t.mode&1))return Ba(e,t,i,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(I(419)),n=Ic(o,n,void 0),Ba(e,t,i,n)}if(a=(i&e.childLanes)!==0,ht||a){if(n=Ve,n!==null){switch(i&-i){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Dr(e,s),tr(n,e,s,-1))}return Kf(),n=Ic(Error(I(421))),Ba(e,t,i,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=bk.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,bt=_n(s.nextSibling),_t=t,be=!0,Zt=null,e!==null&&(Nt[At++]=Rr,Nt[At++]=Or,Nt[At++]=hs,Rr=e.id,Or=e.overflow,hs=t),t=Uf(t,n.children),t.flags|=4096,t)}function Qm(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),qd(e.return,t,r)}function Dc(e,t,r,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=s)}function K0(e,t,r){var n=t.pendingProps,s=n.revealOrder,o=n.tail;if(rt(e,t,n.children,r),n=Se.current,n&2)n=n&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&&Qm(e,r,t);else if(e.tag===19)Qm(e,r,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}n&=1}if(ge(Se,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Ql(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),Dc(t,!1,s,r,o);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ql(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}Dc(t,!0,r,null,o);break;case"together":Dc(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 Mr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ps|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,r=jn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=jn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function uk(e,t,r){switch(t.tag){case 3:H0(t),ko();break;case 5:w0(t);break;case 1:pt(t.type)&&Wl(t);break;case 4:Af(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;ge(Kl,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ge(Se,Se.current&1),t.flags|=128,null):r&t.child.childLanes?q0(e,t,r):(ge(Se,Se.current&1),e=Mr(e,t,r),e!==null?e.sibling:null);ge(Se,Se.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return K0(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ge(Se,Se.current),n)break;return null;case 22:case 23:return t.lanes=0,V0(e,t,r)}return Mr(e,t,r)}var G0,eh,Y0,Q0;G0=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};eh=function(){};Y0=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,Jn(vr.current);var o=null;switch(r){case"input":s=_d(e,s),n=_d(e,n),o=[];break;case"select":s=Ce({},s,{value:void 0}),n=Ce({},n,{value:void 0}),o=[];break;case"textarea":s=kd(e,s),n=kd(e,n),o=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Bl)}Cd(r,n);var i;r=null;for(c in s)if(!n.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(i in a)a.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ti.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var l=n[c];if(a=s!=null?s[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ti.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ye("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}r&&(o=o||[]).push("style",r);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Q0=function(e,t,r,n){r!==n&&(t.flags|=4)};function Zo(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function ck(e,t,r){var n=t.pendingProps;switch(jf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return pt(t.type)&&Vl(),Ye(t),null;
vendor: 32,833 bytes, line 41
41case 3:return n=t.stateNode,Co(),we(ft),we(Ze),Df(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(za(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zt!==null&&(lh(Zt),Zt=null))),eh(e,t),Ye(t),null;case 5:If(t);var s=Jn(zi.current);if(r=t.type,e!==null&&t.stateNode!=null)Y0(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(I(166));return Ye(t),null}if(e=Jn(vr.current),za(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[pr]=t,n[$i]=o,e=(t.mode&1)!==0,r){case"dialog":ye("cancel",n),ye("close",n);break;case"iframe":case"object":case"embed":ye("load",n);break;case"video":case"audio":for(s=0;s<di.length;s++)ye(di[s],n);break;case"source":ye("error",n);break;case"img":case"image":case"link":ye("error",n),ye("load",n);break;case"details":ye("toggle",n);break;case"input":om(n,o),ye("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},ye("invalid",n);break;case"textarea":am(n,o),ye("invalid",n)}Cd(r,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Fa(n.textContent,a,e),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Fa(n.textContent,a,e),s=["children",""+a]):Ti.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&ye("scroll",n)}switch(r){case"input":Oa(n),im(n,o,!0);break;case"textarea":Oa(n),lm(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Bl)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Sy(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[pr]=t,e[$i]=n,G0(e,t,!1,!1),t.stateNode=e;e:{switch(i=Td(r,n),r){case"dialog":ye("cancel",e),ye("close",e),s=n;break;case"iframe":case"object":case"embed":ye("load",e),s=n;break;case"video":case"audio":for(s=0;s<di.length;s++)ye(di[s],e);s=n;break;case"source":ye("error",e),s=n;break;case"img":case"image":case"link":ye("error",e),ye("load",e),s=n;break;case"details":ye("toggle",e),s=n;break;case"input":om(e,n),s=_d(e,n),ye("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=Ce({},n,{value:void 0}),ye("invalid",e);break;case"textarea":am(e,n),s=kd(e,n),ye("invalid",e);break;default:s=n}Cd(r,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Cy(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ky(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Pi(e,l):typeof l=="number"&&Pi(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ti.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ye("scroll",e):l!=null&&df(e,o,l,i))}switch(r){case"input":Oa(e),im(e,n,!1);break;case"textarea":Oa(e),lm(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Pn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Zs(e,!!n.multiple,o,!1):n.defaultValue!=null&&Zs(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Bl)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ye(t),null;case 6:if(e&&t.stateNode!=null)Q0(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(I(166));if(r=Jn(zi.current),Jn(vr.current),za(t)){if(n=t.stateNode,r=t.memoizedProps,n[pr]=t,(o=n.nodeValue!==r)&&(e=_t,e!==null))switch(e.tag){case 3:Fa(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fa(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[pr]=t,t.stateNode=n}return Ye(t),null;case 13:if(we(Se),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&bt!==null&&t.mode&1&&!(t.flags&128))p0(),ko(),t.flags|=98560,o=!1;else if(o=za(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(I(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(I(317));o[pr]=t}else ko(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),o=!1}else Zt!==null&&(lh(Zt),Zt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Se.current&1?Fe===0&&(Fe=3):Kf())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return Co(),eh(e,t),e===null&&Mi(t.stateNode.containerInfo),Ye(t),null;case 10:return Rf(t.type._context),Ye(t),null;case 17:return pt(t.type)&&Vl(),Ye(t),null;case 19:if(we(Se),o=t.memoizedState,o===null)return Ye(t),null;if(n=(t.flags&128)!==0,i=o.rendering,i===null)if(n)Zo(o,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Ql(e),i!==null){for(t.flags|=128,Zo(o,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ge(Se,Se.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ne()>Po&&(t.flags|=128,n=!0,Zo(o,!1),t.lanes=4194304)}else{if(!n)if(e=Ql(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Zo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!be)return Ye(t),null}else 2*Ne()-o.renderingStartTime>Po&&r!==1073741824&&(t.flags|=128,n=!0,Zo(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ne(),t.sibling=null,r=Se.current,ge(Se,n?r&1|2:r&1),t):(Ye(t),null);case 22:case 23:return qf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?vt&1073741824&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function dk(e,t){switch(jf(t),t.tag){case 1:return pt(t.type)&&Vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(),we(ft),we(Ze),Df(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return If(t),null;case 13:if(we(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));ko()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Se),null;case 4:return Co(),null;case 10:return Rf(t.type._context),null;case 22:case 23:return qf(),null;case 24:return null;default:return null}}var Va=!1,Xe=!1,hk=typeof WeakSet=="function"?WeakSet:Set,F=null;function Qs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Re(e,t,n)}else r.current=null}function th(e,t,r){try{r()}catch(n){Re(e,t,n)}}var Jm=!1;function fk(e,t){if($d=Fl,e=t0(),Sf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,a=-1,l=-1,c=0,d=0,h=e,m=null;t:for(;;){for(var f;h!==r||s!==0&&h.nodeType!==3||(a=i+s),h!==o||n!==0&&h.nodeType!==3||(l=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===r&&++c===s&&(a=i),m===o&&++d===n&&(l=i),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Fd={focusedElem:e,selectionRange:r},Fl=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,w=t.stateNode,g=w.getSnapshotBeforeUpdate(t.elementType===t.type?v:Kt(t.type,v),x);w.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(_){Re(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return b=Jm,Jm=!1,b}function bi(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&th(t,r,o)}s=s.next}while(s!==n)}}function Nu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function rh(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function J0(e){var t=e.alternate;t!==null&&(e.alternate=null,J0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pr],delete t[$i],delete t[Bd],delete t[YS],delete t[QS])),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 X0(e){return e.tag===5||e.tag===3||e.tag===4}function Xm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||X0(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 nh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Bl));else if(n!==4&&(e=e.child,e!==null))for(nh(e,t,r),e=e.sibling;e!==null;)nh(e,t,r),e=e.sibling}function sh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(sh(e,t,r),e=e.sibling;e!==null;)sh(e,t,r),e=e.sibling}var We=null,Jt=!1;function Yr(e,t,r){for(r=r.child;r!==null;)Z0(e,t,r),r=r.sibling}function Z0(e,t,r){if(gr&&typeof gr.onCommitFiberUnmount=="function")try{gr.onCommitFiberUnmount(Su,r)}catch{}switch(r.tag){case 5:Xe||Qs(r,t);case 6:var n=We,s=Jt;We=null,Yr(e,t,r),We=n,Jt=s,We!==null&&(Jt?(e=We,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):We.removeChild(r.stateNode));break;case 18:We!==null&&(Jt?(e=We,r=r.stateNode,e.nodeType===8?Tc(e.parentNode,r):e.nodeType===1&&Tc(e,r),Ai(e)):Tc(We,r.stateNode));break;case 4:n=We,s=Jt,We=r.stateNode.containerInfo,Jt=!0,Yr(e,t,r),We=n,Jt=s;break;case 0:case 11:case 14:case 15:if(!Xe&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&th(r,t,i),s=s.next}while(s!==n)}Yr(e,t,r);break;case 1:if(!Xe&&(Qs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Re(r,t,a)}Yr(e,t,r);break;case 21:Yr(e,t,r);break;case 22:r.mode&1?(Xe=(n=Xe)||r.memoizedState!==null,Yr(e,t,r),Xe=n):Yr(e,t,r);break;default:Yr(e,t,r)}}function Zm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new hk),t.forEach(function(n){var s=_k.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function Vt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:We=a.stateNode,Jt=!1;break e;case 3:We=a.stateNode.containerInfo,Jt=!0;break e;case 4:We=a.stateNode.containerInfo,Jt=!0;break e}a=a.return}if(We===null)throw Error(I(160));Z0(o,i,s),We=null,Jt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Re(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ew(t,e),t=t.sibling}function ew(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Vt(t,e),ar(e),n&4){try{bi(3,e,e.return),Nu(3,e)}catch(v){Re(e,e.return,v)}try{bi(5,e,e.return)}catch(v){Re(e,e.return,v)}}break;case 1:Vt(t,e),ar(e),n&512&&r!==null&&Qs(r,r.return);break;case 5:if(Vt(t,e),ar(e),n&512&&r!==null&&Qs(r,r.return),e.flags&32){var s=e.stateNode;try{Pi(s,"")}catch(v){Re(e,e.return,v)}}if(n&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=r!==null?r.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&_y(s,o),Td(a,i);var c=Td(a,o);for(i=0;i<l.length;i+=2){var d=l[i],h=l[i+1];d==="style"?Cy(s,h):d==="dangerouslySetInnerHTML"?ky(s,h):d==="children"?Pi(s,h):df(s,d,h,c)}switch(a){case"input":Ed(s,o);break;case"textarea":Ey(s,o);break;case"select":var m=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?Zs(s,!!o.multiple,f,!1):m!==!!o.multiple&&(o.defaultValue!=null?Zs(s,!!o.multiple,o.defaultValue,!0):Zs(s,!!o.multiple,o.multiple?[]:"",!1))}s[$i]=o}catch(v){Re(e,e.return,v)}}break;case 6:if(Vt(t,e),ar(e),n&4){if(e.stateNode===null)throw Error(I(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(v){Re(e,e.return,v)}}break;case 3:if(Vt(t,e),ar(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ai(t.containerInfo)}catch(v){Re(e,e.return,v)}break;case 4:Vt(t,e),ar(e);break;case 13:Vt(t,e),ar(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Wf=Ne())),n&4&&Zm(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Xe=(c=Xe)||d,Vt(t,e),Xe=c):Vt(t,e),ar(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(h=F=d;F!==null;){switch(m=F,f=m.child,m.tag){case 0:case 11:case 14:case 15:bi(4,m,m.return);break;case 1:Qs(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){n=m,r=m.return;try{t=n,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(v){Re(n,r,v)}}break;case 5:Qs(m,m.return);break;case 22:if(m.memoizedState!==null){tg(h);continue}}f!==null?(f.return=m,F=f):tg(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=jy("display",i))}catch(v){Re(e,e.return,v)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(v){Re(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Vt(t,e),ar(e),n&4&&Zm(e);break;case 21:break;default:Vt(t,e),ar(e)}}function ar(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(X0(r)){var n=r;break e}r=r.return}throw Error(I(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Pi(s,""),n.flags&=-33);var o=Xm(e);sh(e,o,s);break;case 3:case 4:var i=n.stateNode.containerInfo,a=Xm(e);nh(e,a,i);break;default:throw Error(I(161))}}catch(l){Re(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pk(e,t,r){F=e,tw(e)}function tw(e,t,r){for(var n=(e.mode&1)!==0;F!==null;){var s=F,o=s.child;if(s.tag===22&&n){var i=s.memoizedState!==null||Va;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Xe;a=Va;var c=Xe;if(Va=i,(Xe=l)&&!c)for(F=s;F!==null;)i=F,l=i.child,i.tag===22&&i.memoizedState!==null?rg(s):l!==null?(l.return=i,F=l):rg(s);for(;o!==null;)F=o,tw(o),o=o.sibling;F=s,Va=a,Xe=c}eg(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,F=o):eg(e)}}function eg(e){for(;F!==null;){var t=F;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||Nu(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Xe)if(r===null)n.componentDidMount();else{var s=t.elementType===t.type?r.memoizedProps:Kt(t.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&$m(t,o,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}$m(t,i,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Ai(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}Xe||t.flags&512&&rh(t)}catch(m){Re(t,t.return,m)}}if(t===e){F=null;break}if(r=t.sibling,r!==null){r.return=t.return,F=r;break}F=t.return}}function tg(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var r=t.sibling;if(r!==null){r.return=t.return,F=r;break}F=t.return}}function rg(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Nu(4,t)}catch(l){Re(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var s=t.return;try{n.componentDidMount()}catch(l){Re(t,s,l)}}var o=t.return;try{rh(t)}catch(l){Re(t,o,l)}break;case 5:var i=t.return;try{rh(t)}catch(l){Re(t,i,l)}}}catch(l){Re(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var mk=Math.ceil,Zl=Ur.ReactCurrentDispatcher,Bf=Ur.ReactCurrentOwner,Mt=Ur.ReactCurrentBatchConfig,ue=0,Ve=null,De=null,qe=0,vt=0,Js=In(0),Fe=0,Wi=null,ps=0,Au=0,Vf=0,_i=null,dt=null,Wf=0,Po=1/0,jr=null,eu=!1,oh=null,Sn=null,Wa=!1,vn=null,tu=0,Ei=0,ih=null,_l=-1,El=0;function st(){return ue&6?Ne():_l!==-1?_l:_l=Ne()}function kn(e){return e.mode&1?ue&2&&qe!==0?qe&-qe:XS.transition!==null?(El===0&&(El=Fy()),El):(e=he,e!==0||(e=window.event,e=e===void 0?16:qy(e.type)),e):1}function tr(e,t,r,n){if(50<Ei)throw Ei=0,ih=null,Error(I(185));ca(e,r,n),(!(ue&2)||e!==Ve)&&(e===Ve&&(!(ue&2)&&(Au|=r),Fe===4&&on(e,qe)),mt(e,n),r===1&&ue===0&&!(t.mode&1)&&(Po=Ne()+500,Pu&&Dn()))}function mt(e,t){var r=e.callbackNode;XE(e,t);var n=$l(e,e===Ve?qe:0);if(n===0)r!==null&&dm(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&dm(r),t===1)e.tag===0?JS(ng.bind(null,e)):d0(ng.bind(null,e)),KS(function(){!(ue&6)&&Dn()}),r=null;else{switch(zy(n)){case 1:r=gf;break;case 4:r=Ly;break;case 16:r=Ll;break;case 536870912:r=$y;break;default:r=Ll}r=uw(r,rw.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function rw(e,t){if(_l=-1,El=0,ue&6)throw Error(I(327));var r=e.callbackNode;if(so()&&e.callbackNode!==r)return null;var n=$l(e,e===Ve?qe:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=ru(e,n);else{t=n;var s=ue;ue|=2;var o=sw();(Ve!==e||qe!==t)&&(jr=null,Po=Ne()+500,ls(e,t));do try{yk();break}catch(a){nw(e,a)}while(!0);Pf(),Zl.current=o,ue=s,De!==null?t=0:(Ve=null,qe=0,t=Fe)}if(t!==0){if(t===2&&(s=Ad(e),s!==0&&(n=s,t=ah(e,s))),t===1)throw r=Wi,ls(e,0),on(e,n),mt(e,Ne()),r;if(t===6)on(e,n);else{if(s=e.current.alternate,!(n&30)&&!gk(s)&&(t=ru(e,n),t===2&&(o=Ad(e),o!==0&&(n=o,t=ah(e,o))),t===1))throw r=Wi,ls(e,0),on(e,n),mt(e,Ne()),r;switch(e.finishedWork=s,e.finishedLanes=n,t){case 0:case 1:throw Error(I(345));case 2:Wn(e,dt,jr);break;case 3:if(on(e,n),(n&130023424)===n&&(t=Wf+500-Ne(),10<t)){if($l(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){st(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Ud(Wn.bind(null,e,dt,jr),t);break}Wn(e,dt,jr);break;case 4:if(on(e,n),(n&4194240)===n)break;for(t=e.eventTimes,s=-1;0<n;){var i=31-er(n);o=1<<i,i=t[i],i>s&&(s=i),n&=~o}if(n=s,n=Ne()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*mk(n/1960))-n,10<n){e.timeoutHandle=Ud(Wn.bind(null,e,dt,jr),n);break}Wn(e,dt,jr);break;case 5:Wn(e,dt,jr);break;default:throw Error(I(329))}}}return mt(e,Ne()),e.callbackNode===r?rw.bind(null,e):null}function ah(e,t){var r=_i;return e.current.memoizedState.isDehydrated&&(ls(e,t).flags|=256),e=ru(e,t),e!==2&&(t=dt,dt=r,t!==null&&lh(t)),e}function lh(e){dt===null?dt=e:dt.push.apply(dt,e)}function gk(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],o=s.getSnapshot;s=s.value;try{if(!rr(o(),s))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function on(e,t){for(t&=~Vf,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-er(t),n=1<<r;e[r]=-1,t&=~n}}function ng(e){if(ue&6)throw Error(I(327));so();var t=$l(e,0);if(!(t&1))return mt(e,Ne()),null;var r=ru(e,t);if(e.tag!==0&&r===2){var n=Ad(e);n!==0&&(t=n,r=ah(e,n))}if(r===1)throw r=Wi,ls(e,0),on(e,t),mt(e,Ne()),r;if(r===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wn(e,dt,jr),mt(e,Ne()),null}function Hf(e,t){var r=ue;ue|=1;try{return e(t)}finally{ue=r,ue===0&&(Po=Ne()+500,Pu&&Dn())}}function ms(e){vn!==null&&vn.tag===0&&!(ue&6)&&so();var t=ue;ue|=1;var r=Mt.transition,n=he;try{if(Mt.transition=null,he=1,e)return e()}finally{he=n,Mt.transition=r,ue=t,!(ue&6)&&Dn()}}function qf(){vt=Js.current,we(Js)}function ls(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,qS(r)),De!==null)for(r=De.return;r!==null;){var n=r;switch(jf(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Vl();break;case 3:Co(),we(ft),we(Ze),Df();break;case 5:If(n);break;case 4:Co();break;case 13:we(Se);break;case 19:we(Se);break;case 10:Rf(n.type._context);break;case 22:case 23:qf()}r=r.return}if(Ve=e,De=e=jn(e.current,null),qe=vt=t,Fe=0,Wi=null,Vf=Au=ps=0,dt=_i=null,Qn!==null){for(t=0;t<Qn.length;t++)if(r=Qn[t],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,o=r.pending;if(o!==null){var i=o.next;o.next=s,n.next=i}r.pending=n}Qn=null}return e}function nw(e,t){do{var r=De;try{if(Pf(),wl.current=Xl,Jl){for(var n=ke.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}Jl=!1}if(fs=0,Be=Le=ke=null,xi=!1,Ui=0,Bf.current=null,r===null||r.return===null){Fe=1,Wi=t,De=null;break}e:{var o=e,i=r.return,a=r,l=t;if(t=qe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Wm(i);if(f!==null){f.flags&=-257,Hm(f,i,a,o,t),f.mode&1&&Vm(o,c,t),t=f,l=c;var b=t.updateQueue;if(b===null){var v=new Set;v.add(l),t.updateQueue=v}else b.add(l);break e}else{if(!(t&1)){Vm(o,c,t),Kf();break e}l=Error(I(426))}}else if(be&&a.mode&1){var x=Wm(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Hm(x,i,a,o,t),Cf(To(l,a));break e}}o=l=To(l,a),Fe!==4&&(Fe=2),_i===null?_i=[o]:_i.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var w=z0(o,l,t);Lm(o,w);break e;case 1:a=l;var g=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Sn===null||!Sn.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=U0(o,a,t);Lm(o,_);break e}}o=o.return}while(o!==null)}iw(r)}catch(E){t=E,De===r&&r!==null&&(De=r=r.return);continue}break}while(!0)}function sw(){var e=Zl.current;return Zl.current=Xl,e===null?Xl:e}function Kf(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Ve===null||!(ps&268435455)&&!(Au&268435455)||on(Ve,qe)}function ru(e,t){var r=ue;ue|=2;var n=sw();(Ve!==e||qe!==t)&&(jr=null,ls(e,t));do try{vk();break}catch(s){nw(e,s)}while(!0);if(Pf(),ue=r,Zl.current=n,De!==null)throw Error(I(261));return Ve=null,qe=0,Fe}function vk(){for(;De!==null;)ow(De)}function yk(){for(;De!==null&&!VE();)ow(De)}function ow(e){var t=lw(e.alternate,e,vt);e.memoizedProps=e.pendingProps,t===null?iw(e):De=t,Bf.current=null}function iw(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=dk(r,t),r!==null){r.flags&=32767,De=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,De=null;return}}else if(r=ck(r,t,vt),r!==null){De=r;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Fe===0&&(Fe=5)}function Wn(e,t,r){var n=he,s=Mt.transition;try{Mt.transition=null,he=1,wk(e,t,r,n)}finally{Mt.transition=s,he=n}return null}function wk(e,t,r,n){do so();while(vn!==null);if(ue&6)throw Error(I(327));r=e.finishedWork;var s=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(ZE(e,o),e===Ve&&(De=Ve=null,qe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Wa||(Wa=!0,uw(Ll,function(){return so(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Mt.transition,Mt.transition=null;var i=he;he=1;var a=ue;ue|=4,Bf.current=null,fk(e,r),ew(r,e),FS(Fd),Fl=!!$d,Fd=$d=null,e.current=r,pk(r),WE(),ue=a,he=i,Mt.transition=o}else e.current=r;if(Wa&&(Wa=!1,vn=e,tu=s),o=e.pendingLanes,o===0&&(Sn=null),KE(r.stateNode),mt(e,Ne()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)s=t[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(eu)throw eu=!1,e=oh,oh=null,e;return tu&1&&e.tag!==0&&so(),o=e.pendingLanes,o&1?e===ih?Ei++:(Ei=0,ih=e):Ei=0,Dn(),null}function so(){if(vn!==null){var e=zy(tu),t=Mt.transition,r=he;try{if(Mt.transition=null,he=16>e?16:e,vn===null)var n=!1;else{if(e=vn,vn=null,tu=0,ue&6)throw Error(I(331));var s=ue;for(ue|=4,F=e.current;F!==null;){var o=F,i=o.child;if(F.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(F=c;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:bi(8,d,o)}var h=d.child;if(h!==null)h.return=d,F=h;else for(;F!==null;){d=F;var m=d.sibling,f=d.return;if(J0(d),d===c){F=null;break}if(m!==null){m.return=f,F=m;break}F=f}}}var b=o.alternate;if(b!==null){var v=b.child;if(v!==null){b.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}F=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,F=i;else e:for(;F!==null;){if(o=F,o.flags&2048)switch(o.tag){case 0:case 11:case 15:bi(9,o,o.return)}var w=o.sibling;if(w!==null){w.return=o.return,F=w;break e}F=o.return}}var g=e.current;for(F=g;F!==null;){i=F;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,F=y;else e:for(i=g;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Nu(9,a)}}catch(E){Re(a,a.return,E)}if(a===i){F=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,F=_;break e}F=a.return}}if(ue=s,Dn(),gr&&typeof gr.onPostCommitFiberRoot=="function")try{gr.onPostCommitFiberRoot(Su,e)}catch{}n=!0}return n}finally{he=r,Mt.transition=t}}return!1}function sg(e,t,r){t=To(r,t),t=z0(e,t,1),e=En(e,t,1),t=st(),e!==null&&(ca(e,1,t),mt(e,t))}function Re(e,t,r){if(e.tag===3)sg(e,e,r);else for(;t!==null;){if(t.tag===3){sg(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Sn===null||!Sn.has(n))){e=To(r,e),e=U0(t,e,1),t=En(t,e,1),e=st(),t!==null&&(ca(t,1,e),mt(t,e));break}}t=t.return}}function xk(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=st(),e.pingedLanes|=e.suspendedLanes&r,Ve===e&&(qe&r)===r&&(Fe===4||Fe===3&&(qe&130023424)===qe&&500>Ne()-Wf?ls(e,0):Vf|=r),mt(e,t)}function aw(e,t){t===0&&(e.mode&1?(t=Ia,Ia<<=1,!(Ia&130023424)&&(Ia=4194304)):t=1);var r=st();e=Dr(e,t),e!==null&&(ca(e,t,r),mt(e,r))}function bk(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),aw(e,r)}function _k(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(I(314))}n!==null&&n.delete(t),aw(e,r)}var lw;lw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ht=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ht=!1,uk(e,t,r);ht=!!(e.flags&131072)}else ht=!1,be&&t.flags&1048576&&h0(t,ql,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;bl(e,t),e=t.pendingProps;var s=So(t,Ze.current);no(t,r),s=Lf(null,t,n,e,s,r);var o=$f();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pt(n)?(o=!0,Wl(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Nf(t),s.updater=Ou,t.stateNode=s,s._reactInternals=t,Gd(t,n,e,r),t=Jd(null,t,n,!0,o,r)):(t.tag=0,be&&o&&kf(t),rt(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=Sk(n),e=Kt(n,e),s){case 0:t=Qd(null,t,n,e,r);break e;case 1:t=Gm(null,t,n,e,r);break e;case 11:t=qm(null,t,n,e,r);break e;case 14:t=Km(null,t,n,Kt(n.type,e),r);break e}throw Error(I(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Kt(n,s),Qd(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Kt(n,s),Gm(e,t,n,s,r);case 3:e:{if(H0(t),e===null)throw Error(I(387));n=t.pendingProps,o=t.memoizedState,s=o.element,y0(e,t),Yl(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=To(Error(I(423)),t),t=Ym(e,t,n,r,s);break e}else if(n!==s){s=To(Error(I(424)),t),t=Ym(e,t,n,r,s);break e}else for(bt=_n(t.stateNode.containerInfo.firstChild),_t=t,be=!0,Zt=null,r=g0(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ko(),n===s){t=Mr(e,t,r);break e}rt(e,t,n,r)}t=t.child}return t;case 5:return w0(t),e===null&&Hd(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,zd(n,s)?i=null:o!==null&&zd(n,o)&&(t.flags|=32),W0(e,t),rt(e,t,i,r),t.child;case 6:return e===null&&Hd(t),null;case 13:return q0(e,t,r);case 4:return Af(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=jo(t,null,n,r):rt(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Kt(n,s),qm(e,t,n,s,r);case 7:return rt(e,t,t.pendingProps,r),t.child;case 8:return rt(e,t,t.pendingProps.children,r),t.child;case 12:return rt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,ge(Kl,n._currentValue),n._currentValue=i,o!==null)if(rr(o.value,i)){if(o.children===s.children&&!ft.current){t=Mr(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Nr(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),qd(o.return,r,t),a.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(I(341));i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),qd(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}rt(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,no(t,r),s=$t(s),n=n(s),t.flags|=1,rt(e,t,n,r),t.child;case 14:return n=t.type,s=Kt(n,t.pendingProps),s=Kt(n.type,s),Km(e,t,n,s,r);case 15:return B0(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:Kt(n,s),bl(e,t),t.tag=1,pt(n)?(e=!0,Wl(t)):e=!1,no(t,r),F0(t,n,s),Gd(t,n,s,r),Jd(null,t,n,!0,e,r);case 19:return K0(e,t,r);case 22:return V0(e,t,r)}throw Error(I(156,t.tag))};function uw(e,t){return My(e,t)}function Ek(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 10,480 bytes, line 41
41ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,r,n){return new Ek(e,t,r,n)}function Gf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sk(e){if(typeof e=="function")return Gf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ff)return 11;if(e===pf)return 14}return 2}function jn(e,t){var r=e.alternate;return r===null?(r=Dt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Sl(e,t,r,n,s,o){var i=2;if(n=e,typeof e=="function")Gf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Us:return us(r.children,s,o,t);case hf:i=8,s|=8;break;case yd:return e=Dt(12,r,t,s|2),e.elementType=yd,e.lanes=o,e;case wd:return e=Dt(13,r,t,s),e.elementType=wd,e.lanes=o,e;case xd:return e=Dt(19,r,t,s),e.elementType=xd,e.lanes=o,e;case wy:return Iu(r,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vy:i=10;break e;case yy:i=9;break e;case ff:i=11;break e;case pf:i=14;break e;case rn:i=16,n=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=Dt(i,r,t,s),t.elementType=e,t.type=n,t.lanes=o,t}function us(e,t,r,n){return e=Dt(7,e,n,t),e.lanes=r,e}function Iu(e,t,r,n){return e=Dt(22,e,n,t),e.elementType=wy,e.lanes=r,e.stateNode={isHidden:!1},e}function Mc(e,t,r){return e=Dt(6,e,null,t),e.lanes=r,e}function Lc(e,t,r){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kk(e,t,r,n,s){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=vc(0),this.expirationTimes=vc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Yf(e,t,r,n,s,o,i,a,l){return e=new kk(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Dt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nf(o),e}function jk(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function cw(e){if(!e)return Rn;e=e._reactInternals;e:{if(xs(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var r=e.type;if(pt(r))return c0(e,r,t)}return t}function dw(e,t,r,n,s,o,i,a,l){return e=Yf(r,n,!0,e,s,o,i,a,l),e.context=cw(null),r=e.current,n=st(),s=kn(r),o=Nr(n,s),o.callback=t??null,En(r,o,s),e.current.lanes=s,ca(e,s,n),mt(e,n),e}function Du(e,t,r,n){var s=t.current,o=st(),i=kn(s);return r=cw(r),t.context===null?t.context=r:t.pendingContext=r,t=Nr(o,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=En(s,t,i),e!==null&&(tr(e,s,i,o),yl(e,s,i)),i}function nu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function og(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Qf(e,t){og(e,t),(e=e.alternate)&&og(e,t)}function Ck(){return null}var hw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Jf(e){this._internalRoot=e}Mu.prototype.render=Jf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));Du(e,t,null,null)};Mu.prototype.unmount=Jf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ms(function(){Du(null,e,null,null)}),t[Ir]=null}};function Mu(e){this._internalRoot=e}Mu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vy();e={blockedOn:null,target:e,priority:t};for(var r=0;r<sn.length&&t!==0&&t<sn[r].priority;r++);sn.splice(r,0,e),r===0&&Hy(e)}};function Xf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ig(){}function Tk(e,t,r,n,s){if(s){if(typeof n=="function"){var o=n;n=function(){var c=nu(i);o.call(c)}}var i=dw(t,n,e,0,null,!1,!1,"",ig);return e._reactRootContainer=i,e[Ir]=i.current,Mi(e.nodeType===8?e.parentNode:e),ms(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var c=nu(l);a.call(c)}}var l=Yf(e,0,!1,null,null,!1,!1,"",ig);return e._reactRootContainer=l,e[Ir]=l.current,Mi(e.nodeType===8?e.parentNode:e),ms(function(){Du(t,l,r,n)}),l}function $u(e,t,r,n,s){var o=r._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=nu(i);a.call(l)}}Du(t,i,e,s)}else i=Tk(r,t,e,s,n);return nu(i)}Uy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ci(t.pendingLanes);r!==0&&(vf(t,r|1),mt(t,Ne()),!(ue&6)&&(Po=Ne()+500,Dn()))}break;case 13:ms(function(){var n=Dr(e,1);if(n!==null){var s=st();tr(n,e,1,s)}}),Qf(e,1)}};yf=function(e){if(e.tag===13){var t=Dr(e,134217728);if(t!==null){var r=st();tr(t,e,134217728,r)}Qf(e,134217728)}};By=function(e){if(e.tag===13){var t=kn(e),r=Dr(e,t);if(r!==null){var n=st();tr(r,e,t,n)}Qf(e,t)}};Vy=function(){return he};Wy=function(e,t){var r=he;try{return he=e,t()}finally{he=r}};Rd=function(e,t,r){switch(t){case"input":if(Ed(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var s=Tu(n);if(!s)throw Error(I(90));by(n),Ed(n,s)}}}break;case"textarea":Ey(e,r);break;case"select":t=r.value,t!=null&&Zs(e,!!r.multiple,t,!1)}};Ry=Hf;Oy=ms;var Pk={usingClientEntryPoint:!1,Events:[ha,Hs,Tu,Ty,Py,Hf]},ei={findFiberByHostInstance:Yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Rk={bundleType:ei.bundleType,version:ei.version,rendererPackageName:ei.rendererPackageName,rendererConfig:ei.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ur.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Iy(e),e===null?null:e.stateNode},findFiberByHostInstance:ei.findFiberByHostInstance||Ck,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ha=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ha.isDisabled&&Ha.supportsFiber)try{Su=Ha.inject(Rk),gr=Ha}catch{}}Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pk;Ct.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xf(t))throw Error(I(200));return jk(e,t,null,r)};Ct.createRoot=function(e,t){if(!Xf(e))throw Error(I(299));var r=!1,n="",s=hw;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Yf(e,1,!1,null,null,r,!1,n,s),e[Ir]=t.current,Mi(e.nodeType===8?e.parentNode:e),new Jf(t)};Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=Iy(t),e=e===null?null:e.stateNode,e};Ct.flushSync=function(e){return ms(e)};Ct.hydrate=function(e,t,r){if(!Lu(t))throw Error(I(200));return $u(null,e,t,!0,r)};Ct.hydrateRoot=function(e,t,r){if(!Xf(e))throw Error(I(405));var n=r!=null&&r.hydratedSources||null,s=!1,o="",i=hw;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=dw(t,null,e,1,r??null,s,!1,o,i),e[Ir]=t.current,Mi(e),n)for(e=0;e<n.length;e++)r=n[e],s=r._getVersion,s=s(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,s]:t.mutableSourceEagerHydrationData.push(r,s);return new Mu(t)};Ct.render=function(e,t,r){if(!Lu(t))throw Error(I(200));return $u(null,e,t,!1,r)};Ct.unmountComponentAtNode=function(e){if(!Lu(e))throw Error(I(40));return e._reactRootContainer?(ms(function(){$u(null,null,e,!1,function(){e._reactRootContainer=null,e[Ir]=null})}),!0):!1};Ct.unstable_batchedUpdates=Hf;Ct.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Lu(r))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return $u(e,t,r,!1,n)};Ct.version="18.3.1-next-f1338f8080-20240426";function fw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fw)}catch(e){console.error(e)}}fw(),fy.exports=Ct;var pa=fy.exports;const pw=ty(pa);var mw,ag=pa;mw=ag.createRoot,ag.hydrateRoot;const Ok="modulepreload",Nk=function(e){return"/"+e},lg={},O=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(r.map(l=>{if(l=Nk(l),l in lg)return;lg[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");
41if(h.rel=c?"stylesheet":Ok,c||(h.as="script"),h.crossOrigin="",h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((m,f)=>{h.addEventListener("load",m),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},Ak=1,Ik=1e6;let $c=0;function Dk(){return $c=($c+1)%Number.MAX_SAFE_INTEGER,$c.toString()}const Fc=new Map,ug=e=>{if(Fc.has(e))return;const t=setTimeout(()=>{Fc.delete(e),Si({type:"REMOVE_TOAST",toastId:e})},Ik);Fc.set(e,t)},Mk=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ak)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?ug(r):e.toasts.forEach(n=>{ug(n.id)}),{...e,toasts:e.toasts.map(n=>
41n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},kl=[];let jl={toasts:[]};function Si(e){jl=Mk(jl,e),kl.forEach(t=>{t(jl)})}function Lk({...e}){const t=Dk(),r=s=>Si({type:"UPDATE_TOAST",toast:{...s,id:t}}),n=()=>Si({type:"DISMISS_TOAST",toastId:t});return Si({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||n()}}}),{id:t,dismiss:n,update:r}}function $k(){const[e,t]=p.useState(jl);return p.useEffect(()=>(kl.push(t),()=>{const r=kl.indexOf(t);r>-1&&kl.splice(r,1)}),[e]),{...e,toast:Lk,dismiss:r=>Si({type:"DISMISS_TOAST",toastId:r})}}function q(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function cg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fu(...e){return t=>{let r=!1;const n=e.map(s=>{const o=cg(s,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let s=0;s<n.length;s++){const o=n[s];typeof o=="function"?o():cg(e[s],null)}}}}function Ae(...e){return p.useCallback(Fu(...e),e)}function Fk(e,t){const r=p.createContext(t),n=o=>{const{children:i,...a}=o,l=p.useMemo(()=>a,Object.values(a));return u.jsx(r.Provider,{value:l,children:i})};n.displayName=e+"Provider";function s(o){const i=p.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[n,s]}function Mn(e,t=[]){let r=[];function n(o,i){const a=p.createContext(i),l=r.length;r=[...r,i];const c=h=>{var w;const{scope:m,children:f,...b}=h,v=((w=m==null?void 0:m[e])==null?void 0:w[l])||a,x=p.useMemo(()=>b,Object.values(b));return u.jsx(v.Provider,{value:x,children:f})};c.displayName=o+"Provider";function d(h,m){var v;const f=((v=m==null?void 0:m[e])==null?void 0:v[l])||a,b=p.useContext(f);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[c,d]}const s=()=>{const o=r.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[n,zk(s,...t)]}function zk(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=n.reduce((a,{useScope:l,scopeName:c})=>{const h=l(o)[`__scope${c}`];return{...a,...h}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ro(e){const t=Bk(e),r=p.forwardRef((n,s)=>{const{children:o,...i}=n,a=p.Children.toArray(o),l=a.find(Wk);if(l){const c=l.props.children,d=a.map(h=>h===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return u.jsx(t,{...i,ref:s,children:p.isValidElement(c)?p.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:s,children:o})});return r.displayName=`${e}.Slot`,r}var Uk=Ro("Slot");function Bk(e){const t=p.forwardRef((r,n)=>{const{children:s,...o}=r;if(p.isValidElement(s)){const i=qk(s),a=Hk(o,s.props);return s.type!==p.Fragment&&(a.ref=n?Fu(n,i):i),p.cloneElement(s,a)}return p.Children.count(s)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gw=Symbol("radix.slottable");function Vk(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=gw,t}function Wk(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gw}function Hk(e,t){const r={...t};for(const n in t){const s=e[n],o=t[n];/^on[A-Z]/.test(n)?s&&o?r[n]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...o}:n==="className"&&(r[n]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}function qk(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Zf(e){const t=e+"CollectionProvider",[r,n]=Mn(t),[s,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:w}=v,g=M.useRef(null),y=M.useRef(new Map).current;return u.jsx(s,{scope:x,itemMap:y,collectionRef:g,children:w})};i.displayName=t;const a=e+"CollectionSlot",l=Ro(a),c=M.forwardRef((v,x)=>{const{scope:w,children:g}=v,y=o(a,w),_=Ae(x,y.collectionRef);return u.jsx(l,{ref:_,children:g})});c.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",m=Ro(d),f=M.forwardRef((v,x)=>{const{scope:w,children:g,...y}=v,_=M.useRef(null),E=Ae(x,_),k=o(d,w);return M.useEffect(()=>(k.itemMap.set(_,{ref:_,...y}),()=>void k.itemMap.delete(_))),u.jsx(m,{[h]:"",ref:E,children:g})});f.displayName=d;function b(v){const x=o(e+"CollectionConsumer",v);return M.useCallback(()=>{const g=x.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((k,j)=>y.indexOf(k.ref.current)-y.indexOf(j.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:c,ItemSlot:f},b,n]}var Kk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=Kk.reduce((e,t)=>
vendor: 8,605 bytes, line 41
41{const r=Ro(`Primitive.${t}`),n=p.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ep(e,t){e&&pa.flushSync(()=>e.dispatchEvent(t))}function kt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Gk(e,t=globalThis==null?void 0:globalThis.document){const r=kt(e);p.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Yk="DismissableLayer",uh="dismissableLayer.update",Qk="dismissableLayer.pointerDownOutside",Jk="dismissableLayer.focusOutside",dg,vw=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ma=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,c=p.useContext(vw),[d,h]=p.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=p.useState({}),b=Ae(t,j=>h(j)),v=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(x),g=d?v.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,_=g>=w,E=Zk(j=>{const P=j.target,A=[...c.branches].some(N=>N.contains(P));!_||A||(s==null||s(j),i==null||i(j),j.defaultPrevented||a==null||a())},m),k=ej(j=>{const P=j.target;[...c.branches].some(N=>N.contains(P))||(o==null||o(j),i==null||i(j),j.defaultPrevented||a==null||a())},m);return Gk(j=>{g===c.layers.size-1&&(n==null||n(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},m),p.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(dg=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),hg(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=dg)}},[d,m,r,c]),p.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),hg())},[d,c]),p.useEffect(()=>{const j=()=>f({});return document.addEventListener(uh,j),()=>document.removeEventListener(uh,j)},[]),u.jsx(pe.div,{...l,ref:b,style:{pointerEvents:y?_?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,k.onFocusCapture),onBlurCapture:q(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,E.onPointerDownCapture)})});ma.displayName=Yk;var Xk="DismissableLayerBranch",yw=p.forwardRef((e,t)=>{const r=p.useContext(vw),n=p.useRef(null),s=Ae(t,n);return p.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),u.jsx(pe.div,{...e,ref:s})});yw.displayName=Xk;function Zk(e,t=globalThis==null?void 0:globalThis.document){const r=kt(e),n=p.useRef(!1),s=p.useRef(()=>{});return p.useEffect(()=>{const o=a=>{if(a.target&&!n.current){let l=function(){ww(Qk,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function ej(e,t=globalThis==null?void 0:globalThis.document){const r=kt(e),n=p.useRef(!1);return p.useEffect(()=>{const s=o=>{o.target&&!n.current&&ww(Jk,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hg(){const e=new CustomEvent(uh);document.dispatchEvent(e)}function ww(e,t,r,{discrete:n}){const s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?ep(s,o):s.dispatchEvent(o)}var tj=ma,rj=yw,Lr=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},nj="Portal",zu=p.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[s,o]=p.useState(!1);Lr(()=>o(!0),[]);const i=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?pw.createPortal(u.jsx(pe.div,{...n,ref:t}),i):null});zu.displayName=nj;function sj(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var xr=e=>{const{present:t,children:r}=e,n=oj(t),s=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),o=Ae(n.ref,ij(s));return typeof r=="function"||n.isPresent?p.cloneElement(s,{ref:o}):null};xr.displayName="Presence";function oj(e){const[t,r]=p.useState(),n=p.useRef(null),s=p.useRef(e),o=p.useRef("none"),i=e?"mounted":"unmounted",[a,l]=sj(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=qa(n.current);o.current=a==="mounted"?c:"none"},[a]),Lr(()=>{const c=n.current,d=s.current;if(d!==e){const m=o.current,f=qa(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&m!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Lr(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=f=>{const v=qa(n.current).includes(f.animationName);if(f.target===t&&v&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=f=>{f.target===t&&(o.current=qa(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function qa(e){return(e==null?void 0:e.animationName)||"none"}function ij(e){var n,s;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var aj=lf[" useInsertionEffect ".trim().toString()]||Lr;function ga({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,o,i]=lj({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:s;{const d=p.useRef(e!==void 0);p.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const c=p.useCallback(d=>{var h;if(a){const m=uj(d)?d(e):d;m!==e&&((h=i.current)==null||h.call(i,m))}else o(d)},[a,e,o,i]);return[l,c]}function lj({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),s=p.useRef(r),o=p.useRef(t);return aj(()=>{o.current=t},[t]),p.useEffect(()=>{var i;s.current!==r&&((i=o.current)==null||i.call(o,r),s.current=r)},[r,s]),[r,n,o]}function uj(e){return typeof e=="function"}var cj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),dj="VisuallyHidden",Uu=p.forwardRef((e,t)=>u.jsx(pe.span,{...e,ref:t,style:{...cj,...e.style}}));Uu.displayName=dj;var hj=Uu,tp="ToastProvider",[rp,fj,pj]=Zf("Toast"),[xw,e$]=Mn("Toast",[pj]),[mj,Bu]=xw(tp),bw=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=p.useState(null),[c,d]=p.useState(0),h=p.useRef(!1),m=p.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${tp}\`. Expected non-empty \`string\`.`),u.jsx(rp.Provider,{scope:t,children:u.jsx(mj,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:p.useCallback(()=>d(f=>f+1),[]),onToastRemove:p.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:m,children:i})})};bw.displayName=tp;var _w="ToastViewport",gj=["F8"],ch="toast.viewportPause",dh="toast.viewportResume",Ew=p.forwardRef((e,t)=>
41{const{__scopeToast:r,hotkey:n=gj,label:s="Notifications ({hotkey})",...o}=e,i=Bu(_w,r),a=fj(r),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),h=p.useRef(null),m=Ae(t,h,i.onViewportChange),f=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;p.useEffect(()=>{const x=w=>{var y;n.length!==0&&n.every(_=>w[_]||w.code===_)&&((y=h.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),p.useEffect(()=>{const x=l.current,w=h.current;if(b&&x&&w){const g=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(ch);w.dispatchEvent(k),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(dh);w.dispatchEvent(k),i.isClosePausedRef.current=!1}},_=k=>{!x.contains(k.relatedTarget)&&y()},E=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",g),x.addEventListener("focusout",_),x.addEventListener("pointermove",g),x.addEventListener("pointerleave",E),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",g),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",g),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[b,i.isClosePausedRef]);const v=p.useCallback(({tabbingDirection:x})=>{const g=a().map(y=>{const _=y.ref.current,E=[_,...Pj(_)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?g.reverse():g).flat()},[a]);return p.useEffect(()=>{const x=h.current;if(x){const w=g=>{var E,k,j;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const P=document.activeElement,A=g.shiftKey;if(g.target===x&&A){(E=c.current)==null||E.focus();return}const D=v({tabbingDirection:A?"backwards":"forwards"}),K=D.findIndex($=>$===P);zc(D.slice(K+1))?g.preventDefault():A?(k=c.current)==null||k.focus():(j=d.current)==null||j.focus()}};return x.addEventListener("keydown",w),()=>x.removeEventListener("keydown",w)}},[a,v]),u.jsxs(rj,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&u.jsx(hh,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});zc(x)}}),u.jsx(rp.Slot,{scope:r,children:u.jsx(pe.ol,{tabIndex:-1,...o,ref:m})}),b&&u.jsx(hh,{ref:d,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});zc(x)}})]})});Ew.displayName=_w;var Sw="ToastFocusProxy",hh=p.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=e,o=Bu(Sw,r);return u.jsx(Uu,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=o.viewport)!=null&&c.contains(a))&&n()}})});hh.displayName=Sw;var va="Toast",vj="toast.swipeStart",yj="toast.swipeMove",wj="toast.swipeCancel",xj="toast.swipeEnd",kw=p.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:o,...i}=e,[a,l]=ga({prop:n,defaultProp:s??!0,onChange:o,caller:va});return u.jsx(xr,{present:r||a,children:u.jsx(Ej,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:kt(e.onPause),onResume:kt(e.onResume),onSwipeStart:q(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:q(e.onSwipeMove,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:q(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:q(e.onSwipeEnd,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});kw.displayName=va;var[bj,_j]=xw(va,{onClose(){}}),Ej=p.forwardRef((e,t)=>
41{const{__scopeToast:r,type:n="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:m,onSwipeEnd:f,...b}=e,v=Bu(va,r),[x,w]=p.useState(null),g=Ae(t,$=>w($)),y=p.useRef(null),_=p.useRef(null),E=s||v.duration,k=p.useRef(0),j=p.useRef(E),P=p.useRef(0),{onToastAdd:A,onToastRemove:N}=v,U=kt(()=>{var re;(x==null?void 0:x.contains(document.activeElement))&&((re=v.viewport)==null||re.focus()),i()}),D=p.useCallback($=>{!$||$===1/0||(window.clearTimeout(P.current),k.current=new Date().getTime(),P.current=window.setTimeout(U,$))},[U]);p.useEffect(()=>{const $=v.viewport;if($){const re=()=>{D(j.current),c==null||c()},H=()=>{const J=new Date().getTime()-k.current;j.current=j.current-J,window.clearTimeout(P.current),l==null||l()};return $.addEventListener(ch,H),$.addEventListener(dh,re),()=>{$.removeEventListener(ch,H),$.removeEventListener(dh,re)}}},[v.viewport,E,l,c,D]),p.useEffect(()=>{o&&!v.isClosePausedRef.current&&D(E)},[o,E,v.isClosePausedRef,D]),p.useEffect(()=>(A(),()=>N()),[A,N]);const K=p.useMemo(()=>x?Nw(x):null,[x]);return v.viewport?u.jsxs(u.Fragment,{children:[K&&u.jsx(Sj,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),u.jsx(bj,{scope:r,onClose:U,children:pa.createPortal(u.jsx(rp.ItemSlot,{scope:r,children:u.jsx(tj,{asChild:!0,onEscapeKeyDown:q(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||U(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(pe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection,...b,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:q(e.onKeyDown,$=>{$.key==="Escape"&&(a==null||a($.nativeEvent),$.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:q(e.onPointerDown,$=>{$.button===0&&(y.current={x:$.clientX,y:$.clientY})}),onPointerMove:q(e.onPointerMove,$=>{if(!y.current)return;const re=$.clientX-y.current.x,H=$.clientY-y.current.y,J=!!_.current,R=["left","right"].includes(v.swipeDirection),T=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,L=R?T(0,re):0,G=R?0:T(0,H),B=$.pointerType==="touch"?10:2,Z={x:L,y:G},ne={originalEvent:$,delta:Z};J?(_.current=Z,Ka(yj,h,ne,{discrete:!1})):fg(Z,v.swipeDirection,B)?(_.current=Z,Ka(vj,d,ne,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(re)>B||Math.abs(H)>B)&&(y.current=null)}),onPointerUp:q(e.onPointerUp,$=>{const re=_.current,H=$.target;if(H.hasPointerCapture($.pointerId)&&H.releasePointerCapture($.pointerId),_.current=null,y.current=null,re){const J=$.currentTarget,R={originalEvent:$,delta:re};fg(re,v.swipeDirection,v.swipeThreshold)?Ka(xj,f,R,{discrete:!0}):Ka(wj,m,R,{discrete:!0}),J.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),Sj=e=>{const{__scopeToast:t,children:r,...n}=e,s=Bu(va,t),[o,i]=p.useState(!1),[a,l]=p.useState(!1);return Cj(()=>i(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(zu,{asChild:!0,children:u.jsx(Uu,{...n,children:o&&u.jsxs(u.Fragment,{children:[s.label," ",r]})})})},kj="ToastTitle",jw=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(pe.div,{...n,ref:t})});jw.displayName=kj;var jj="ToastDescription",Cw=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(pe.div,{...n,ref:t})});Cw.displayName=jj;var Tw="ToastAction",Pw=p.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(Ow,{altText:r,asChild:!0,children:u.jsx(np,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Tw}\`. Expected non-empty \`string\`.`),null)});Pw.displayName=Tw;var Rw="ToastClose",np=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,s=_j(Rw,r);return u.jsx(Ow,{asChild:!0,children:u.jsx(pe.button,{type:"button",...n,ref:t,onClick:q(e.onClick,s.onClose)})})});np.displayName=Rw;var Ow=p.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...s}=e;return u.jsx(pe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:t})});function Nw(e){const t=[];
vendor: 5,737 bytes, lines 41-86
41return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),Tj(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Nw(n))}}),t}function Ka(e,t,r,{discrete:n}){const s=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?ep(s,o):s.dispatchEvent(o)}var fg=(e,t,r=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),o=n>s;return t==="left"||t==="right"?o&&n>r:!o&&s>r};function Cj(e=()=>{}){const t=kt(e);Lr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function Tj(e){return e.nodeType===e.ELEMENT_NODE}function Pj(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function zc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var Rj=bw,Aw=Ew,Iw=kw,Dw=jw,Mw=Cw,Lw=Pw,$w=np;function Fw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Fw(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function zw(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Fw(e))&&(n&&(n+=" "),n+=t);return n}const pg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mg=zw,sp=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return mg(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(c=>{const d=r==null?void 0:r[c],h=o==null?void 0:o[c];if(d===null)return null;const m=pg(d)||pg(h);return s[c][m]}),a=r&&Object.entries(r).reduce((c,d)=>{let[h,m]=d;return m===void 0||(c[h]=m),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:h,className:m,...f}=d;return Object.entries(f).every(b=>{let[v,x]=b;return Array.isArray(x)?x.includes({...o,...a}[v]):{...o,...a}[v]===x})?[...c,h,m]:c},[]);return mg(e,i,l,r==null?void 0:r.class,r==null?void 0:r.className)};/**
42 * @license lucide-react v0.462.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const Oj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uw=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
47 * @license lucide-react v0.462.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */var Nj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
52 * @license lucide-react v0.462.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const Aj=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:o,iconNode:i,...a},l)=>p.createElement("svg",{ref:l,...Nj,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Uw("lucide",s),...a},[...i.map(([c,d])=>p.createElement(c,d)),...Array.isArray(o)?o:[o]]));/**
57 * @license lucide-react v0.462.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const se=(e,t)=>{const r=p.forwardRef(({className:n,...s},o)=>p.createElement(Aj,{ref:o,iconNode:t,className:Uw(`lucide-${Oj(e)}`,n),...s}));return r.displayName=`${e}`,r};/**
62 * @license lucide-react v0.462.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const cr=se("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
67 * @license lucide-react v0.462.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */const su=se("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
72 * @license lucide-react v0.462.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const Bw=se("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
77 * @license lucide-react v0.462.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const Ij=se("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
82 * @license lucide-react v0.462.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const fh=se("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
86],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
87 * @license lucide-react v0.462.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const Dj=se("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
92 * @license lucide-react v0.462.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const Mj=se("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
97 * @license lucide-react v0.462.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const Lj=se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
102 * @license lucide-react v0.462.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const Cl=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
107 * @license lucide-react v0.462.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const Vw=se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
112 * @license lucide-react v0.462.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const $j=se("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
117 * @license lucide-react v0.462.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const Ww=se("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
122 * @license lucide-react v0.462.0 - ISC
123 *
124 * This source code is licensed under the ISC license.
125 * See the LICENSE file in the root directory of this source tree.
126 */const Fj=se("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
127 * @license lucide-react v0.462.0 - ISC
128 *
129 * This source code is licensed under the ISC license.
130 * See the LICENSE file in the root directory of this source tree.
131 */const zj=se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
132 * @license lucide-react v0.462.0 - ISC
133 *
134 * This source code is licensed under the ISC license.
135 * See the LICENSE file in the root directory of this source tree.
136 */const Uj=se("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
137 * @license lucide-react v0.462.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const Hw=se("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
142 * @license lucide-react v0.462.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */const op=se("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
147 * @license lucide-react v0.462.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const ip=se("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
152 * @license lucide-react v0.462.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const Bj=se("Hospital",[["path",{d:"M12 6v4",key:"16clxf"}],["path",{d:"M14 14h-4",key:"esezmu"}
156],["path",{d:"M14 18h-4",key:"16mqa2"}],["path",{d:"M14 8h-4",key:"z8ypaz"}],["path",{d:"M18 12h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2",key:"b1k337"}],["path",{d:"M18 22V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v18",key:"16g51d"}]]);/**
157 * @license lucide-react v0.462.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const Vj=se("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
162 * @license lucide-react v0.462.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const Wj=se("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/**
167 * @license lucide-react v0.462.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const ph=se("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
172 * @license lucide-react v0.462.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const Hj=se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
177 * @license lucide-react v0.462.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const qw=se("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
182 * @license lucide-react v0.462.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const qj=se("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
187 * @license lucide-react v0.462.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const Kj=se("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
192 * @license lucide-react v0.462.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const Gj=se("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
197 * @license lucide-react v0.462.0 - ISC
198 *
199 * This source code is licensed under the ISC license.
200 * See the LICENSE file in the root directory of this source tree.
201 */const Kw=se("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
202 * @license lucide-react v0.462.0 - ISC
203 *
204 * This source code is licensed under the ISC license.
205 * See the LICENSE file in the root directory of this source tree.
206 */const mh=se("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 9,637 bytes, lines 206-251
206y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
207 * @license lucide-react v0.462.0 - ISC
208 *
209 * This source code is licensed under the ISC license.
210 * See the LICENSE file in the root directory of this source tree.
211 */const Gw=se("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
212 * @license lucide-react v0.462.0 - ISC
213 *
214 * This source code is licensed under the ISC license.
215 * See the LICENSE file in the root directory of this source tree.
216 */const Yj=se("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
217 * @license lucide-react v0.462.0 - ISC
218 *
219 * This source code is licensed under the ISC license.
220 * See the LICENSE file in the root directory of this source tree.
221 */const Hi=se("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
222 * @license lucide-react v0.462.0 - ISC
223 *
224 * This source code is licensed under the ISC license.
225 * See the LICENSE file in the root directory of this source tree.
226 */const Uc=se("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
227 * @license lucide-react v0.462.0 - ISC
228 *
229 * This source code is licensed under the ISC license.
230 * See the LICENSE file in the root directory of this source tree.
231 */const Bc=se("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
232 * @license lucide-react v0.462.0 - ISC
233 *
234 * This source code is licensed under the ISC license.
235 * See the LICENSE file in the root directory of this source tree.
236 */const gh=se("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
237 * @license lucide-react v0.462.0 - ISC
238 *
239 * This source code is licensed under the ISC license.
240 * See the LICENSE file in the root directory of this source tree.
241 */const Vc=se("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
242 * @license lucide-react v0.462.0 - ISC
243 *
244 * This source code is licensed under the ISC license.
245 * See the LICENSE file in the root directory of this source tree.
246 */const Qj=se("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
247 * @license lucide-react v0.462.0 - ISC
248 *
249 * This source code is licensed under the ISC license.
250 * See the LICENSE file in the root directory of this source tree.
251 */const Yw=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ap="-",Jj=e=>{const t=Zj(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(ap);return a[0]===""&&a.length!==1&&a.shift(),Qw(a,t)||Xj(i)},getConflictingClassGroupIds:(i,a)=>{const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},Qw=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),s=n?Qw(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(ap);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},gg=/^\[(.+)\]$/,Xj=e=>{if(gg.test(e)){const t=gg.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Zj=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return tC(Object.entries(e.classGroups),r).forEach(([o,i])=>{vh(i,n,o,t)}),n},vh=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:vg(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(eC(s)){vh(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,i])=>{vh(i,vg(t,o),r,n)})})},vg=(e,t)=>{let r=e;return t.split(ap).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},eC=e=>e.isThemeGetter,tC=(e,t)=>t?e.map(([r,n])=>{const s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[r,s]}):e,rC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const s=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},Jw="!",nC=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let c=0,d=0,h;for(let x=0;x<a.length;x++){let w=a[x];if(c===0){if(w===s&&(n||a.slice(x,x+o)===t)){l.push(a.slice(d,x)),d=x+o;continue}if(w==="/"){h=x;continue}}w==="["?c++:w==="]"&&c--}const m=l.length===0?a:a.substring(d),f=m.startsWith(Jw),b=f?m.substring(1):m,v=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:v}};return r?a=>r({className:a,parseClassName:i}):i},sC=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},oC=e=>({cache:rC(e.cacheSize),parseClassName:nC(e),...Jj(e)}),iC=/\s+/,aC=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(iC);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:f}=r(c);let b=!!f,v=n(b?m.substring(0,f):m);if(!v){if(!b){a=c+(a.length>0?" "+a:a);continue}if(v=n(m),!v){a=c+(a.length>0?" "+a:a);continue}b=!1}const x=sC(d).join(":"),w=h?x+Jw:x,g=w+v;if(o.includes(g))continue;o.push(g);const y=s(v,b);for(let _=0;_<y.length;++_){const E=y[_];o.push(w+E)}a=c+(a.length>0?" "+a:a)}return a};function lC(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Xw(t))&&(n&&(n+=" "),n+=r);return n}const Xw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Xw(e[n]))&&(r&&(r+=" "),r+=t);return r};function uC(e,...t){let r,n,s,o=i;function i(l){const c=t.reduce((d,h)=>h(d),e());return r=oC(c),n=r.cache.get,s=r.cache.set,o=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=aC(l,r);return s(l,d),d}return function(){return o(lC.apply(null,arguments))}}const ve=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Zw=/^\[(?:([a-z-]+):)?(.+)\]$/i,cC=/^\d+\/\d+$/,dC=new Set(["px","full","screen"]),hC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,mC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>oo(e)||dC.has(e)||cC.test(e),Qr=e=>$o(e,"length",SC),oo=e=>!!e&&!Number.isNaN(Number(e)),Wc=e=>$o(e,"number",oo),ti=e=>!!e&&Number.isInteger(Number(e)),vC=e=>e.endsWith("%")&&oo(e.slice(0,-1)),ee=e=>Zw.test(e),Jr=e=>hC.test(e),yC=new Set(["length","size","percentage"]),wC=e=>$o(e,yC,ex),xC=e=>$o(e,"position",ex),bC=new Set(["image","url"]),_C=e=>$o(e,bC,jC),EC=e=>$o(e,"",kC),ri=()=>!0,$o=(e,t,r)=>{const n=Zw.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},SC=e=>fC.test(e)&&!pC.test(e),ex=()=>!1,kC=e=>mC.test(e),jC=e=>gC.test(e),CC=()=>{const e=ve("colors"),t=ve("spacing"),r=ve("blur"),n=ve("brightness"),s=ve("borderColor"),o=ve("borderRadius"),i=ve("borderSpacing"),a=ve("borderWidth"),l=ve("contrast"),c=ve("grayscale"),d=ve("hueRotate"),h=ve("invert"),m=ve("gap"),f=ve("gradientColorStops"),b=ve("gradientColorStopPositions"),v=ve("inset"),x=ve("margin"),w=ve("opacity"),g=ve("padding"),y=ve("saturate"),_=ve("scale"),E=ve("sepia"),k=ve("skew"),j=ve("space"),P=ve("translate"),A=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",ee,t],D=()=>[ee,t],K=()=>["",Sr,Qr],$=()=>["auto",oo,ee],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",ee],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[oo,ee];return{cacheSize:500,separator:":",theme:{colors:[ri],spacing:[Sr,Qr],blur:["none","",Jr,ee],brightness:G(),borderColor:[e],borderRadius:["n
251one","","full",Jr,ee],borderSpacing:D(),borderWidth:K(),contrast:G(),grayscale:T(),hueRotate:G(),invert:T(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[vC,Qr],inset:U(),margin:U(),opacity:G(),padding:D(),saturate:G(),scale:G(),sepia:T(),skew:G(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",ee]}],container:["container"],columns:[{columns:[Jr]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),ee]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ti,ee]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ee]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",ti,ee]}],"grid-cols":[{"grid-cols":[ri]}],"col-start-end":[{col:["auto",{span:["full",ti,ee]},ee]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ri]}],"row-start-end":[{row:["auto",{span:[ti,ee]},ee]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ee]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ee,t]}],"min-w":[{"min-w":[ee,t,"min","max","fit"]}],"max-w":[{"max-w":[ee,t,"none","full","min","max","fit","prose",{screen:[Jr]},Jr]}],h:[{h:[ee,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ee,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ee,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jr,Qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wc]}],"font-family":[{font:[ri]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ee]}],"line-clamp":[{"line-clamp":["none",oo,Wc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sr,ee]}],"list-image":[{"list-image":["none",ee]}],"list-style-type":[{list:["none","disc","decimal",ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sr,Qr]}],"underline-offset":[{"underline-offset":["auto",Sr,ee]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),xC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_C]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}
vendor: 5,180 bytes, line 251
251],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[Sr,ee]}],"outline-w":[{outline:[Sr,Qr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Sr,Qr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jr,EC]}],"shadow-color":[{shadow:[ri]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jr,ee]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[y]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ee]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",ee]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ti,ee]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ee]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
251],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sr,Qr,Wc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},TC=uC(CC);function Oe(...e){return TC(zw(e))}const PC=Rj,tx=p.forwardRef(({className:e,...t},r)=>u.jsx(Aw,{ref:r,className:Oe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));tx.displayName=Aw.displayName;const RC=sp("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),rx=p.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(Iw,{ref:n,className:Oe(RC({variant:t}),e),...r}));rx.displayName=Iw.displayName;const OC=p.forwardRef(({className:e,...t},r)=>u.jsx(Lw,{ref:r,className:Oe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));OC.displayName=Lw.displayName;const nx=p.forwardRef(({className:e,...t},r)=>u.jsx($w,{ref:r,className:Oe("absolute right-2 top-2 rounded-md p-1 text-foreground
251/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Yw,{className:"h-4 w-4"})}));nx.displayName=$w.displayName;const sx=p.forwardRef(({className:e,...t},r)=>u.jsx(Dw,{ref:r,className:Oe("text-sm font-semibold",e),...t}));sx.displayName=Dw.displayName;const ox=p.forwardRef(({className:e,...t},r)=>u.jsx(Mw,{ref:r,className:Oe("text-sm opacity-90",e),...t}));ox.displayName=Mw.displayName;function NC(){const{toasts:e}=$k();return u.jsxs(PC,{children:[e.map(function({id:t,title:r,description:n,action:s,...o}){return u.jsxs(rx,{...o,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(sx,{children:r}),n&&u.jsx(ox,{children:n})]}),s,u.jsx(nx,{})]},t)}),u.jsx(tx,{})]})}var yg=["light","dark"],AC="(prefers-color-scheme: dark)",IC=p.createContext(void 0),DC={setTheme:e=>{},themes:[]},MC=()=>{var e;return(e=p.useContext(IC))!=null?e:DC};p.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let c=o==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?yg.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(b,v=!1,x=!0)=>{let w=i?i[b]:b,g=v?b+"|| ''":`'${w}'`,y="";return s&&x&&!v&&yg.includes(b)&&(y+=`d.style.colorScheme = '${b}';
251`),r==="class"?v||w?y+=`c.add(${g})`:y+="null":w&&(y+=`d[s](n,${g})`),y},f=e?`!function(){${d}${m(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${AC}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}${c?"":"else{"+m(o,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}else{${m(o,!1,!1)};}${h}}catch(t){}}();`;return p.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var LC=e=>{switch(e){case"success":return zC;case"info":return BC;case"warning":return UC;case"error":return VC;default:return null}},$C=Array(12).fill(0),FC=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},$C.map((r,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),zC=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),UC=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),BC=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),VC=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),WC=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),HC=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},yh=1,qC=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:yh++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:r}),{...a,...e,id:s,dismissible:i,title:r}):a):this.addToast({title:r,...n,dismissible:i,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>
251this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),s=r!==void 0,o,i=n.then(async l=>{if(o=["resolve",l],M.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(GC(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:c,description:d})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:c,description:d})}}).catch(async l=>{if(o=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:c,description:d})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>i.then(()=>o[0]==="reject"?c(o[1]):l(o[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||yh++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ut=new qC,KC=(e,t)=>{let r=(t==null?void 0:t.id)||yh++;return ut.addToast({title:e,...t,id:r}),r},GC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",YC=KC,QC=()=>ut.toasts,JC=()=>ut.getActiveToasts(),t$=Object.assign(YC,{success:ut.success,info:ut.info,warning:ut.warning,error:ut.error,custom:ut.custom,message:ut.message,promise:ut.promise,dismiss:ut.dismiss,loading:ut.loading},{getHistory:QC,getToasts:JC});function XC(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}XC(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
251left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
251:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
251--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
252`);function Ga(e){return e.label!==void 0}var ZC=3,eT="32px",tT="16px",wg=4e3,rT=356,nT=14,sT=20,oT=200;function Wt(...e){return e.filter(Boolean).join(" ")}function iT(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var aT=e=>{var t,r,n,s,o,i,a,l,c,d,h;let{invert:m,toast:f,unstyled:b,interacting:v,setHeights:x,visibleToasts:w,heights:g,index:y,toasts:_,expanded:E,removeToast:k,defaultRichColors:j,closeButton:P,style:A,cancelButtonStyle:N,actionButtonStyle:U,className:D="",descriptionClassName:K="",duration:$,position:re,gap:H,loadingIcon:J,expandByDefault:R,classNames:T,icons:L,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:B}
252=e,[Z,ne]=M.useState(null),[_e,Te]=M.useState(null),[oe,Er]=M.useState(!1),[ze,ir]=M.useState(!1),[Wr,Es]=M.useState(!1),[Hr,ka]=M.useState(!1),[ac,ja]=M.useState(!1),[lc,Ho]=M.useState(0),[Ss,qp]=M.useState(0),qo=M.useRef(f.duration||$||wg),Kp=M.useRef(null),Fn=M.useRef(null),Q1=y===0,J1=y+1<=w,Pt=f.type,ks=f.dismissible!==!1,X1=f.className||"",Z1=f.descriptionClassName||"",Ca=M.useMemo(()=>g.findIndex(X=>X.toastId===f.id)||0,[g,f.id]),eE=M.useMemo(()=>{var X;return(X=f.closeButton)!=null?X:P},[f.closeButton,P]),Gp=M.useMemo(()=>f.duration||$||wg,[f.duration,$]),uc=M.useRef(0),js=M.useRef(0),Yp=M.useRef(0),Cs=M.useRef(null),[tE,rE]=re.split("-"),Qp=M.useMemo(()=>g.reduce((X,fe,xe)=>xe>=Ca?X:X+fe.height,0),[g,Ca]),Jp=HC(),nE=f.invert||m,cc=Pt==="loading";js.current=M.useMemo(()=>Ca*H+Qp,[Ca,Qp]),M.useEffect(()=>{qo.current=Gp},[Gp]),M.useEffect(()=>{Er(!0)},[]),M.useEffect(()=>{let X=Fn.current;if(X){let fe=X.getBoundingClientRect().height;return qp(fe),x(xe=>[{toastId:f.id,height:fe,position:f.position},...xe]),()=>x(xe=>xe.filter(zt=>zt.toastId!==f.id))}},[x,f.id]),M.useLayoutEffect(()=>{if(!oe)return;let X=Fn.current,fe=X.style.height;X.style.height="auto";let xe=X.getBoundingClientRect().height;X.style.height=fe,qp(xe),x(zt=>zt.find(Ut=>Ut.toastId===f.id)?zt.map(Ut=>Ut.toastId===f.id?{...Ut,height:xe}:Ut):[{toastId:f.id,height:xe,position:f.position},...zt])},[oe,f.title,f.description,x,f.id]);let qr=M.useCallback(()=>{ir(!0),Ho(js.current),x(X=>X.filter(fe=>fe.toastId!==f.id)),setTimeout(()=>{k(f)},oT)},[f,k,x,js]);M.useEffect(()=>{if(f.promise&&Pt==="loading"||f.duration===1/0||f.type==="loading")return;let X;return E||v||B&&Jp?(()=>{if(Yp.current<uc.current){let fe=new Date().getTime()-uc.current;qo.current=qo.current-fe}Yp.current=new Date().getTime()})():qo.current!==1/0&&(uc.current=new Date().getTime(),X=setTimeout(()=>{var fe;(fe=f.onAutoClose)==null||fe.call(f,f),qr()},qo.current)),()=>clearTimeout(X)},[E,v,f,Pt,B,Jp,qr]),M.useEffect(()=>{f.delete&&qr()},[qr,f.delete]);function sE(){var X,fe,xe;return L!=null&&L.loading?M.createElement("div",{className:Wt(T==null?void 0:T.loader,(X=f==null?void 0:f.classNames)==null?void 0:X.loader,"sonner-loader"),"data-visible":Pt==="loading"},L.loading):J?M.createElement("div",{className:Wt(T==null?void 0:T.loader,(fe=f==null?void 0:f.classNames)==null?void 0:fe.loader,"sonner-loader"),"data-visible":Pt==="loading"},J):M.createElement(FC,{className:Wt(T==null?void 0:T.loader,(xe=f==null?void 0:f.classNames)==null?void 0:xe.loader),visible:Pt==="loading"})}return M.createElement("li",{tabIndex:0,ref:Fn,className:Wt(D,X1,T==null?void 0:T.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[Pt],(r=f==null?void 0:f.classNames)==null?void 0:r[Pt]),"data-sonner-toast":"","data-rich-colors":(n=f.richColors)!=null?n:j,"data-styled":!(f.jsx||f.unstyled||b),"data-mounted":oe,"data-promise":!!f.promise,"data-swiped":ac,"data-removed":ze,"data-visible":J1,"data-y-position":tE,"data-x-position":rE,"data-index":y,"data-front":Q1,"data-swiping":Wr,"data-dismissible":ks,"data-type":Pt,"data-invert":nE,"data-swipe-out":Hr,"data-swipe-direction":_e,"data-expanded":!!(E||R&&oe),style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${ze?lc:js.current}px`,"--initial-height":R?"auto":`${Ss}px`,...A,...f.style},onDragEnd:()=>{Es(!1),ne(null),Cs.current=null},onPointerDown:X=>{cc||!ks||(Kp.current=new Date,Ho(js.current),X.target.setPointerCapture(X.pointerId),X.target.tagName!=="BUTTON"&&(Es(!0),Cs.current={x:X.clientX,y:X.clientY}))},onPointerUp:()=>{var X,fe,xe,zt;if(Hr||!ks)return;Cs.current=null;let Ut=Number(((X=Fn.current)==null?void 0:X.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Kr=Number(((fe=Fn.current)==null?void 0:fe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),zn=new Date().getTime()-((xe=Kp.current)==null?void 0:xe.getTime()),Bt=Z==="x"?Ut:Kr,Gr=Math.abs(Bt)/zn;if(Math.abs(Bt)>=sT||Gr>.11){Ho(js.current),(zt=f.onDismiss)==null||zt.call(f,f),Te(Z==="x"?Ut>0?"right":"left":Kr>0?"down":"up"),qr(),ka(!0),ja(!1);return}Es(!1),ne(null)},onPointerMove:X=>{var fe,xe,zt,Ut;if(!Cs.current||!ks||((fe=window.getSelection())==null?void 0:fe.toString().length)>0)return;
252let Kr=X.clientY-Cs.current.y,zn=X.clientX-Cs.current.x,Bt=(xe=e.swipeDirections)!=null?xe:iT(re);!Z&&(Math.abs(zn)>1||Math.abs(Kr)>1)&&ne(Math.abs(zn)>Math.abs(Kr)?"x":"y");let Gr={x:0,y:0};Z==="y"?(Bt.includes("top")||Bt.includes("bottom"))&&(Bt.includes("top")&&Kr<0||Bt.includes("bottom")&&Kr>0)&&(Gr.y=Kr):Z==="x"&&(Bt.includes("left")||Bt.includes("right"))&&(Bt.includes("left")&&zn<0||Bt.includes("right")&&zn>0)&&(Gr.x=zn),(Math.abs(Gr.x)>0||Math.abs(Gr.y)>0)&&ja(!0),(zt=Fn.current)==null||zt.style.setProperty("--swipe-amount-x",`${Gr.x}px`),(Ut=Fn.current)==null||Ut.style.setProperty("--swipe-amount-y",`${Gr.y}px`)}},eE&&!f.jsx?M.createElement("button",{"aria-label":G,"data-disabled":cc,"data-close-button":!0,onClick:cc||!ks?()=>{}:()=>{var X;qr(),(X=f.onDismiss)==null||X.call(f,f)},className:Wt(T==null?void 0:T.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(o=L==null?void 0:L.close)!=null?o:WC):null,f.jsx||p.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:M.createElement(M.Fragment,null,Pt||f.icon||f.promise?M.createElement("div",{"data-icon":"",className:Wt(T==null?void 0:T.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||sE():null,f.type!=="loading"?f.icon||(L==null?void 0:L[Pt])||LC(Pt):null):null,M.createElement("div",{"data-content":"",className:Wt(T==null?void 0:T.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},M.createElement("div",{"data-title":"",className:Wt(T==null?void 0:T.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?M.createElement("div",{"data-description":"",className:Wt(K,Z1,T==null?void 0:T.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),p.isValidElement(f.cancel)?f.cancel:f.cancel&&Ga(f.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||N,onClick:X=>{var fe,xe;Ga(f.cancel)&&ks&&((xe=(fe=f.cancel).onClick)==null||xe.call(fe,X),qr())},className:Wt(T==null?void 0:T.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,p.isValidElement(f.action)?f.action:f.action&&Ga(f.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||U,onClick:X=>{var fe,xe;Ga(f.action)&&((xe=(fe=f.action).onClick)==null||xe.call(fe,X),!X.defaultPrevented&&qr())},className:Wt(T==null?void 0:T.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function xg(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function lT(e,t){let r={};return[e,t].forEach((n,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?tT:eT;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${i}-${c}`]=a:r[`${i}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(a)}),r}var uT=p.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:h,duration:m,style:f,visibleToasts:b=ZC,toastOptions:v,dir:x=xg(),gap:w=nT,loadingIcon:g,icons:y,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:E}=e,[k,j]=M.useState([]),P=M.useMemo(()=>Array.from(new Set([n].concat(k.filter(B=>B.position).map(B=>B.position)))),[k,n]),[A,N]=M.useState([]),[U,D]=M.useState(!1),[K,$]=M.useState(!1),[re,H]=M.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),J=M.useRef(null),R=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=M.useRef(null),L=M.useRef(!1),G=M.useCallback(B=>{j(Z=>{var ne;return(ne=Z.find(_e=>_e.id===B.id))!=null&&ne.delete||ut.dismiss(B.id),Z.filter(({id:_e})=>_e!==B.id)})},[]);return M.useEffect(()=>ut.subscribe(B=>{if(B.dismiss){j(Z=>Z.map(ne=>ne.id===B.id?{...ne,delete:!0}:ne));return}setTimeout(()=>{pw.flushSync(()=>{j(Z=>{let ne=Z.findIndex(_e=>_e.id===B.id);return ne!==-1?[...Z.slice(0,ne),{...Z[ne],...B},...Z.slice(ne+1)]:[B,...Z]})})})}),[]),M.useEffect(()=>{if(d!=="system"){H(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Z})=>
vendor: 5,311 bytes, line 252
252{H(Z?"dark":"light")})}catch{B.addListener(({matches:ne})=>{try{H(ne?"dark":"light")}catch(_e){console.error(_e)}})}},[d]),M.useEffect(()=>{k.length<=1&&D(!1)},[k]),M.useEffect(()=>{let B=Z=>{var ne,_e;s.every(Te=>Z[Te]||Z.code===Te)&&(D(!0),(ne=J.current)==null||ne.focus()),Z.code==="Escape"&&(document.activeElement===J.current||(_e=J.current)!=null&&_e.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[s]),M.useEffect(()=>{if(J.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,L.current=!1)}},[J.current]),M.createElement("section",{ref:t,"aria-label":`${_} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((B,Z)=>{var ne;let[_e,Te]=B.split("-");return k.length?M.createElement("ol",{key:B,dir:x==="auto"?xg():x,tabIndex:-1,ref:J,className:a,"data-sonner-toaster":!0,"data-theme":re,"data-y-position":_e,"data-lifted":U&&k.length>1&&!o,"data-x-position":Te,style:{"--front-toast-height":`${((ne=A[0])==null?void 0:ne.height)||0}px`,"--width":`${rT}px`,"--gap":`${w}px`,...f,...lT(l,c)},onBlur:oe=>{L.current&&!oe.currentTarget.contains(oe.relatedTarget)&&(L.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||L.current||(L.current=!0,T.current=oe.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{K||D(!1)},onDragEnd:()=>D(!1),onPointerDown:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},k.filter(oe=>!oe.position&&Z===0||oe.position===B).map((oe,Er)=>{var ze,ir;return M.createElement(aT,{key:oe.id,icons:y,index:Er,toast:oe,defaultRichColors:h,duration:(ze=v==null?void 0:v.duration)!=null?ze:m,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:r,visibleToasts:b,closeButton:(ir=v==null?void 0:v.closeButton)!=null?ir:i,interacting:K,position:B,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:G,toasts:k.filter(Wr=>Wr.position==oe.position),heights:A.filter(Wr=>Wr.position==oe.position),setHeights:N,expandByDefault:o,gap:w,loadingIcon:g,expanded:U,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const cT=({...e})=>{const{theme:t="system"}=MC();return u.jsx(uT,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var dT=lf[" useId ".trim().toString()]||(()=>{}),hT=0;function cs(e){const[t,r]=p.useState(dT());return Lr(()=>{e||r(n=>n??String(hT++))},[e]),e||(t?`radix-${t}`:"")}const fT=["top","right","bottom","left"],On=Math.min,yt=Math.max,ou=Math.round,Ya=Math.floor,yr=e=>({x:e,y:e}),pT={left:"right",right:"left",bottom:"top",top:"bottom"},mT={start:"end",end:"start"};function wh(e,t,r){return yt(e,On(t,r))}function $r(e,t){return typeof e=="function"?e(t):e}function Fr(e){return e.split("-")[0]}function Fo(e){return e.split("-")[1]}function lp(e){return e==="x"?"y":"x"}function up(e){return e==="y"?"height":"width"}const gT=new Set(["top","bottom"]);function mr(e){return gT.has(Fr(e))?"y":"x"}function cp(e){return lp(mr(e))}function vT(e,t,r){r===void 0&&(r=!1);const n=Fo(e),s=cp(e),o=up(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=iu(i)),[i,iu(i)]}function yT(e){const t=iu(e);return[xh(e),t,xh(t)]}function xh(e){return e.replace(/start|end/g,t=>mT[t])}const bg=["left","right"],_g=["right","left"],wT=["top","bottom"],xT=["bottom","top"];function bT(e,t,r){switch(e){case"top":case"bottom":return r?t?_g:bg:t?bg:_g;case"left":case"right":return t?wT:xT;default:return[]}}function _T(e,t,r,n){const s=Fo(e);let o=bT(Fr(e),r==="start",n);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(xh)))),o}function iu(e){return e.replace(/left|right|bottom|top/g,t=>pT[t])}function ET(e){return{top:0,right:0,bottom:0,left:0,...e}}function ix(e){return typeof e!="number"?ET(e):{top:e,right:e,bottom:e,left:e}}function au(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Eg(e,t,r){let{reference:n,floating:s}=e;const o=mr(t),i=cp(t),a=up(i),l=Fr(t),c=o==="y",d=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2,m=n[a]/2-s[a]/2;let f;switch(l){case"top":f={x:d,y:n.y-s.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-s.width,y:h};break;default:f={x:n.x,y:n.y}}switch(Fo(t)){case"start":f[i]-=m*(r&&c?-1:1);break;case"end":f[i]+=m*(r&&c?-1:1);break}return f}const ST=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:o=[],platform:i}
vendor: 9,937 bytes, line 252
252=r,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=Eg(c,n,l),m=n,f={},b=0;for(let v=0;v<a.length;v++){const{name:x,fn:w}=a[v],{x:g,y,data:_,reset:E}=await w({x:d,y:h,initialPlacement:n,placement:m,strategy:s,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});d=g??d,h=y??h,f={...f,[x]:{...f[x],..._}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(c=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:d,y:h}=Eg(c,m,l)),v=-1)}return{x:d,y:h,placement:m,strategy:s,middlewareData:f}};async function qi(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:m=!1,padding:f=0}=$r(t,e),b=ix(f),x=a[m?h==="floating"?"reference":"floating":h],w=au(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),g=h==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},E=au(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(w.top-E.top+b.top)/_.y,bottom:(E.bottom-w.bottom+b.bottom)/_.y,left:(w.left-E.left+b.left)/_.x,right:(E.right-w.right+b.right)/_.x}}const kT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=$r(e,t)||{};if(c==null)return{};const h=ix(d),m={x:r,y:n},f=cp(s),b=up(f),v=await i.getDimensions(c),x=f==="y",w=x?"top":"left",g=x?"bottom":"right",y=x?"clientHeight":"clientWidth",_=o.reference[b]+o.reference[f]-m[f]-o.floating[b],E=m[f]-o.reference[f],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let j=k?k[y]:0;(!j||!await(i.isElement==null?void 0:i.isElement(k)))&&(j=a.floating[y]||o.floating[b]);const P=_/2-E/2,A=j/2-v[b]/2-1,N=On(h[w],A),U=On(h[g],A),D=N,K=j-v[b]-U,$=j/2-v[b]/2+P,re=wh(D,$,K),H=!l.arrow&&Fo(s)!=null&&$!==re&&o.reference[b]/2-($<D?N:U)-v[b]/2<0,J=H?$<D?$-D:$-K:0;return{[f]:m[f]+J,data:{[f]:re,centerOffset:$-re-J,...H&&{alignmentOffset:J}},reset:H}}}),jT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...x}=$r(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const w=Fr(s),g=mr(a),y=Fr(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=m||(y||!v?[iu(a)]:yT(a)),k=b!=="none";!m&&k&&E.push(..._T(a,v,b,_));const j=[a,...E],P=await qi(t,x),A=[];let N=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&A.push(P[w]),h){const $=vT(s,i,_);A.push(P[$[0]],P[$[1]])}if(N=[...N,{placement:s,overflows:A}],!A.every($=>$<=0)){var U,D;const $=(((U=o.flip)==null?void 0:U.index)||0)+1,re=j[$];if(re&&(!(h==="alignment"?g!==mr(re):!1)||N.every(R=>R.overflows[0]>0&&mr(R.placement)===g)))return{data:{index:$,overflows:N},reset:{placement:re}};let H=(D=N.filter(J=>J.overflows[0]<=0).sort((J,R)=>J.overflows[1]-R.overflows[1])[0])==null?void 0:D.placement;if(!H)switch(f){case"bestFit":{var K;const J=(K=N.filter(R=>{if(k){const T=mr(R.placement);return T===g||T==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:K[0];J&&(H=J);break}case"initialPlacement":H=a;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function Sg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kg(e){return fT.some(t=>e[t]>=0)}const CT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=$r(e,t);switch(n){case"referenceHidden":{const o=await qi(t,{...s,elementContext:"reference"}),i=Sg(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:kg(i)}}}case"escaped":{const o=await qi(t,{...s,altBoundary:!0}),i=Sg(o,r.floating);return{data:{escapedOffsets:i,escaped:kg(i)}}}default:return{}}}}},ax=new Set(["left","top"]);async function TT(e,t){const{placement:r,platform:n,elements:s}=e,o=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=Fr(r),a=Fo(r),l=mr(r)==="y",c=ax.has(i)?-1:1,d=o&&l?-1:1,h=$r(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof b=="number"&&(f=a==="end"?b*-1:b),l?{x:f*d,y:m*c}:{x:m*c,y:f*d}}const PT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await TT(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},RT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:x=>{let{x:w,y:g}=x;return{x:w,y:g}}},...l}=$r(e,t),c={x:r,y:n},d=await qi(t,l),h=mr(Fr(s)),m=lp(h);let f=c[m],b=c[h];if(o){const x=m==="y"?"top":"left",w=m==="y"?"bottom":"right",g=f+d[x],y=f-d[w];f=wh(g,f,y)}if(i){const x=h==="y"?"top":"left",w=h==="y"?"bottom":"right",g=b+d[x],y=b-d[w];b=wh(g,b,y)}const v=a.fn({...t,[m]:f,[h]:b});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:o,[h]:i}}}}}},OT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$r(e,t),d={x:r,y:n},h=mr(s),m=lp(h);let f=d[m],b=d[h];const v=$r(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=m==="y"?"height":"width",_=o.reference[m]-o.floating[y]+x.mainAxis,E=o.reference[m]+o.reference[y]-x.mainAxis;f<_?f=_:f>E&&(f=E)}if(c){var w,g;const y=m==="y"?"width":"height",_=ax.has(Fr(s)),E=o.reference[h]-o.floating[y]+(_&&((w=i.offset)==null?void 0:w[h])||0)+(_?0:x.crossAxis),k=o.reference[h]+o.reference[y]+(_?0:((g=i.offset)==null?void 0:g[h])||0)-(_?x.crossAxis:0);b<E?b=E:b>k&&(b=k)}return{[m]:f,[h]:b}}}},NT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...c}=$r(e,t),d=await qi(t,c),h=Fr(s),m=Fo(s),f=mr(s)==="y",{width:b,height:v}=o.floating;let x,w;h==="top"||h==="bottom"?(x=h,w=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=h,x=m==="end"?"top":"bottom");const g=v-d.top-d.bottom,y=b-d.left-d.right,_=On(v-d[x],g),E=On(b-d[w],y),k=!t.middlewareData.shift;let j=_,P=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(j=g),k&&!m){const N=yt(d.left,0),U=yt(d.right,0),D=yt(d.top,0),K=yt(d.bottom,0);f?P=b-2*(N!==0||U!==0?N+U:yt(d.left,d.right)):j=v-2*(D!==0||K!==0?D+K:yt(d.top,d.bottom))}await l({...t,availableWidth:P,availableHeight:j});const A=await i.getDimensions(a.floating);return b!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function Vu(){return typeof window<"u"}function zo(e){return lx(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function br(e){var t;return(t=(lx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lx(e){return Vu()?e instanceof Node||e instanceof Et(e).Node:!1}function nr(e){return Vu()?e instanceof Element||e instanceof Et(e).Element:!1}function wr(e){return Vu()?e instanceof HTMLElement||e instanceof Et(e).HTMLElement:!1}function jg(e){return!Vu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}const AT=new Set(["inline","contents"]);function ya(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=sr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!AT.has(s)}const IT=new Set(["table","td","th"]);function DT(e){return IT.has(zo(e))}const MT=[":popover-open",":modal"];function Wu(e){return MT.some(t=>{try{return e.matches(t)}catch{return!1}})}const LT=["transform","translate","scale","rotate","perspective"],$T=["transform","translate","scale","rotate","perspective","filter"],FT=["paint","layout","strict","content"];function dp(e){const t=hp(),r=nr(e)?sr(e):e;return LT.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||$T.some(n=>(r.willChange||"").includes(n))||FT.some(n=>(r.contain||"").includes(n))}function zT(e){let t=Nn(e);for(;wr(t)&&!Oo(t);){if(dp(t))return t;if(Wu(t))return null;t=Nn(t)}return null}function hp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const UT=new Set(["html","body","#document"]);function Oo(e){return UT.has(zo(e))}function sr(e){return Et(e).getComputedStyle(e)}function Hu(e){return nr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nn(e){if(zo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jg(e)&&e.host||br(e);return jg(t)?t.host:t}function ux(e){const t=Nn(e);return Oo(t)?e.ownerDocument?e.ownerDocument.body:e.body:wr(t)&&ya(t)?t:ux(t)}function Ki(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=ux(e),o=s===((n=e.ownerDocument)==null?void 0:n.body),i=Et(s);if(o){const a=bh(i);
vendor: 4,127 bytes, line 252
252return t.concat(i,i.visualViewport||[],ya(s)?s:[],a&&r?Ki(a):[])}return t.concat(s,Ki(s,[],r))}function bh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cx(e){const t=sr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=wr(e),o=s?e.offsetWidth:r,i=s?e.offsetHeight:n,a=ou(r)!==o||ou(n)!==i;return a&&(r=o,n=i),{width:r,height:n,$:a}}function fp(e){return nr(e)?e:e.contextElement}function io(e){const t=fp(e);if(!wr(t))return yr(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:o}=cx(t);let i=(o?ou(r.width):r.width)/n,a=(o?ou(r.height):r.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const BT=yr(0);function dx(e){const t=Et(e);return!hp()||!t.visualViewport?BT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VT(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Et(e)?!1:t}function gs(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),o=fp(e);let i=yr(1);t&&(n?nr(n)&&(i=io(n)):i=io(e));const a=VT(o,r,n)?dx(o):yr(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,d=s.width/i.x,h=s.height/i.y;if(o){const m=Et(o),f=n&&nr(n)?Et(n):n;let b=m,v=bh(b);for(;v&&n&&f!==b;){const x=io(v),w=v.getBoundingClientRect(),g=sr(v),y=w.left+(v.clientLeft+parseFloat(g.paddingLeft))*x.x,_=w.top+(v.clientTop+parseFloat(g.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,h*=x.y,l+=y,c+=_,b=Et(v),v=bh(b)}}return au({width:d,height:h,x:l,y:c})}function pp(e,t){const r=Hu(e).scrollLeft;return t?t.left+r:gs(br(e)).left+r}function hx(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(r?0:pp(e,n)),o=n.top+t.scrollTop;return{x:s,y:o}}function WT(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const o=s==="fixed",i=br(n),a=t?Wu(t.floating):!1;if(n===i||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=yr(1);const d=yr(0),h=wr(n);if((h||!h&&!o)&&((zo(n)!=="body"||ya(i))&&(l=Hu(n)),wr(n))){const f=gs(n);c=io(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const m=i&&!h&&!o?hx(i,l,!0):yr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+m.x,y:r.y*c.y-l.scrollTop*c.y+d.y+m.y}}function HT(e){return Array.from(e.getClientRects())}function qT(e){const t=br(e),r=Hu(e),n=e.ownerDocument.body,s=yt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=yt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+pp(e);const a=-r.scrollTop;return sr(n).direction==="rtl"&&(i+=yt(t.clientWidth,n.clientWidth)-s),{width:s,height:o,x:i,y:a}}function KT(e,t){const r=Et(e),n=br(e),s=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const c=hp();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const GT=new Set(["absolute","fixed"]);function YT(e,t){const r=gs(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,o=wr(e)?io(e):yr(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,c=n*o.y;return{width:i,height:a,x:l,y:c}}function Cg(e,t,r){let n;if(t==="viewport")n=KT(e,r);else if(t==="document")n=qT(br(e));else if(nr(t))n=YT(t,r);else{const s=dx(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return au(n)}function fx(e,t){const r=Nn(e);return r===t||!nr(r)||Oo(r)?!1:sr(r).position==="fixed"||fx(r,t)}function QT(e,t){const r=t.get(e);if(r)return r;let n=Ki(e,[],!1).filter(a=>nr(a)&&zo(a)!=="body"),s=null;const o=sr(e).position==="fixed";let i=o?Nn(e):e;for(;nr(i)&&!Oo(i);){const a=sr(i),l=dp(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&GT.has(s.position)||ya(i)&&!l&&fx(e,i))?n=n.filter(d=>d!==i):s=a,i=Nn(i)}return t.set(e,n),n}function JT(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?Wu(t)?[]:QT(t,this._c):[].concat(r),n],a=i[0],l=i.reduce((c,d)=>{const h=Cg(t,d,s);return c.top=yt(h.top,c.top),c.right=On(h.right,c.right),c.bottom=On(h.bottom,c.bottom),c.left=yt(h.left,c.left),c},Cg(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function XT(e){const{width:t,height:r}=cx(e);return{width:t,height:r}}
vendor: 9,794 bytes, line 252
252function ZT(e,t,r){const n=wr(t),s=br(t),o=r==="fixed",i=gs(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=yr(0);function c(){l.x=pp(s)}if(n||!n&&!o)if((zo(t)!=="body"||ya(s))&&(a=Hu(t)),n){const f=gs(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&c();o&&!n&&s&&c();const d=s&&!n&&!o?hx(s,a):yr(0),h=i.left+a.scrollLeft-l.x-d.x,m=i.top+a.scrollTop-l.y-d.y;return{x:h,y:m,width:i.width,height:i.height}}function Hc(e){return sr(e).position==="static"}function Tg(e,t){if(!wr(e)||sr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return br(e)===r&&(r=r.ownerDocument.body),r}function px(e,t){const r=Et(e);if(Wu(e))return r;if(!wr(e)){let s=Nn(e);for(;s&&!Oo(s);){if(nr(s)&&!Hc(s))return s;s=Nn(s)}return r}let n=Tg(e,t);for(;n&&DT(n)&&Hc(n);)n=Tg(n,t);return n&&Oo(n)&&Hc(n)&&!dp(n)?r:n||zT(e)||r}const eP=async function(e){const t=this.getOffsetParent||px,r=this.getDimensions,n=await r(e.floating);return{reference:ZT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function tP(e){return sr(e).direction==="rtl"}const rP={convertOffsetParentRelativeRectToViewportRelativeRect:WT,getDocumentElement:br,getClippingRect:JT,getOffsetParent:px,getElementRects:eP,getClientRects:HT,getDimensions:XT,getScale:io,isElement:nr,isRTL:tP};function mx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nP(e,t){let r=null,n;const s=br(e);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:h,width:m,height:f}=c;if(a||t(),!m||!f)return;const b=Ya(h),v=Ya(s.clientWidth-(d+m)),x=Ya(s.clientHeight-(h+f)),w=Ya(d),y={rootMargin:-b+"px "+-v+"px "+-x+"px "+-w+"px",threshold:yt(0,On(1,l))||1};let _=!0;function E(k){const j=k[0].intersectionRatio;if(j!==l){if(!_)return i();j?i(!1,j):n=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!mx(c,e.getBoundingClientRect())&&i(),_=!1}try{r=new IntersectionObserver(E,{...y,root:s.ownerDocument})}catch{r=new IntersectionObserver(E,y)}r.observe(e)}return i(!0),o}function sP(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=fp(e),d=s||o?[...c?Ki(c):[],...Ki(t)]:[];d.forEach(w=>{s&&w.addEventListener("scroll",r,{passive:!0}),o&&w.addEventListener("resize",r)});const h=c&&a?nP(c,r):null;let m=-1,f=null;i&&(f=new ResizeObserver(w=>{let[g]=w;g&&g.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),r()}),c&&!l&&f.observe(c),f.observe(t));let b,v=l?gs(e):null;l&&x();function x(){const w=gs(e);v&&!mx(v,w)&&r(),v=w,b=requestAnimationFrame(x)}return r(),()=>{var w;d.forEach(g=>{s&&g.removeEventListener("scroll",r),o&&g.removeEventListener("resize",r)}),h==null||h(),(w=f)==null||w.disconnect(),f=null,l&&cancelAnimationFrame(b)}}const oP=PT,iP=RT,aP=jT,lP=NT,uP=CT,Pg=kT,cP=OT,dP=(e,t,r)=>{const n=new Map,s={platform:rP,...r},o={...s.platform,_c:n};return ST(e,t,{...s,platform:o})};var hP=typeof document<"u",fP=function(){},Tl=hP?p.useLayoutEffect:fP;function lu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!lu(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){const o=s[n];if(!(o==="_owner"&&e.$$typeof)&&!lu(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function gx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rg(e,t){const r=gx(e);return Math.round(t*r)/r}function qc(e){const t=p.useRef(e);return Tl(()=>{t.current=e}),t}function pP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,h]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=p.useState(n);lu(m,n)||f(n);const[b,v]=p.useState(null),[x,w]=p.useState(null),g=p.useCallback(R=>{R!==k.current&&(k.current=R,v(R))},[]),y=p.useCallback(R=>{R!==j.current&&(j.current=R,w(R))},[]),_=o||b,E=i||x,k=p.useRef(null),j=p.useRef(null),P=p.useRef(d),A=l!=null,N=qc(l),U=qc(s),D=qc(c),K=p.useCallback(()=>{if(!k.current||!j.current)return;const R={placement:t,strategy:r,middleware:m};U.current&&(R.platform=U.current),dP(k.current,j.current,R).then(T=>{const L={...T,isPositioned:D.current!==!1};$.current&&!lu(P.current,L)&&(P.current=L,pa.flushSync(()=>{h(L)}))})},[m,t,r,U,D]);Tl(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,h(R=>({...R,isPositioned:!1})))},[c]);const $=p.useRef(!1);Tl(()=>($.current=!0,()=>{$.current=!1}),[]),Tl(()=>{if(_&&(k.current=_),E&&(j.current=E),_&&E){if(N.current)return N.current(_,E,K);K()}},[_,E,K,N,A]);const re=p.useMemo(()=>({reference:k,floating:j,setReference:g,setFloating:y}),[g,y]),H=p.useMemo(()=>({reference:_,floating:E}),[_,E]),J=p.useMemo(()=>{const R={position:r,left:0,top:0};if(!H.floating)return R;const T=Rg(H.floating,d.x),L=Rg(H.floating,d.y);return a?{...R,transform:"translate("+T+"px, "+L+"px)",...gx(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:T,top:L}},[r,a,H.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:K,refs:re,elements:H,floatingStyles:J}),[d,K,re,H,J])}const mP=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:s}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Pg({element:n.current,padding:s}).fn(r):{}:n?Pg({element:n,padding:s}).fn(r):{}}}},gP=(e,t)=>({...oP(e),options:[e,t]}),vP=(e,t)=>({...iP(e),options:[e,t]}),yP=(e,t)=>({...cP(e),options:[e,t]}),wP=(e,t)=>({...aP(e),options:[e,t]}),xP=(e,t)=>({...lP(e),options:[e,t]}),bP=(e,t)=>({...uP(e),options:[e,t]}),_P=(e,t)=>({...mP(e),options:[e,t]});var EP="Arrow",vx=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:s=5,...o}=e;return u.jsx(pe.svg,{...o,ref:t,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});vx.displayName=EP;var SP=vx;function kP(e){const[t,r]=p.useState(void 0);return Lr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var mp="Popper",[yx,qu]=Mn(mp),[jP,wx]=yx(mp),xx=e=>{const{__scopePopper:t,children:r}=e,[n,s]=p.useState(null);return u.jsx(jP,{scope:t,anchor:n,onAnchorChange:s,children:r})};xx.displayName=mp;var bx="PopperAnchor",_x=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...s}=e,o=wx(bx,r),i=p.useRef(null),a=Ae(t,i);return p.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:u.jsx(pe.div,{...s,ref:a})});_x.displayName=bx;var gp="PopperContent",[CP,TP]=yx(gp),Ex=p.forwardRef((e,t)=>{var oe,Er,ze,ir,Wr,Es;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",onPlaced:b,...v}=e,x=wx(gp,r),[w,g]=p.useState(null),y=Ae(t,Hr=>g(Hr)),[_,E]=p.useState(null),k=kP(_),j=(k==null?void 0:k.width)??0,P=(k==null?void 0:k.height)??0,A=n+(o!=="center"?"-"+o:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(c)?c:[c],D=U.length>0,K={padding:N,boundary:U.filter(RP),altBoundary:D},{refs:$,floatingStyles:re,placement:H,isPositioned:J,middlewareData:R}=pP({strategy:"fixed",placement:A,whileElementsMounted:(...Hr)=>sP(...Hr,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[gP({mainAxis:s+P,alignmentAxis:i}),l&&vP({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?yP():void 0,...K}),l&&wP({...K}),xP({...K,apply:({elements:Hr,rects:ka,availableWidth:ac,availableHeight:ja})=>{const{width:lc,height:Ho}=ka.reference,Ss=Hr.floating.style;Ss.setProperty("--radix-popper-available-width",`${ac}px`),Ss.setProperty("--radix-popper-available-height",`${ja}px`),Ss.setProperty("--radix-popper-anchor-width",`${lc}px`),Ss.setProperty("--radix-popper-anchor-height",`${Ho}px`)}}),_&&_P({element:_,padding:a}),OP({arrowWidth:j,arrowHeight:P}),m&&bP({strategy:"referenceHidden",...K})]}),[T,L]=jx(H),G=kt(b);Lr(()=>{J&&(G==null||G())},[J,G]);const B=(oe=R.arrow)==null?void 0:oe.x,Z=(Er=R.arrow)==null?void 0:Er.y,ne=((ze=R.arrow)==null?void 0:ze.centerOffset)!==0,[_e,Te]=p.useState();return Lr(()=>{w&&Te(window.getComputedStyle(w).zIndex)},[w]),u.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:J?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(ir=R.transformOrigin)==null?void 0:ir.x,(Wr=R.transformOrigin)==null?void 0:Wr.y].join(" "),...((Es=R.hide)==null?void 0:Es.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(CP,{scope:r,placedSide:T,onArrowChange:E,arrowX:B,arrowY:Z,shouldHideArrow:ne,children:u.jsx(pe.div,{"data-side":T,"data-align":L,...v,ref:y,style:{...v.style,animation:J?void 0:"none"}})})})});Ex.displayName=gp;var Sx="PopperArrow",PP={top:"bottom",right:"left",bottom:"top",left:"r
252ight"},kx=p.forwardRef(function(t,r){const{__scopePopper:n,...s}=t,o=TP(Sx,n),i=PP[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(SP,{...s,ref:r,style:{...s.style,display:"block"}})})});kx.displayName=Sx;function RP(e){return e!==null}var OP=e=>({name:"transformOrigin",options:e,fn(t){var x,w,g;const{placement:r,rects:n,middlewareData:s}=t,i=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=jx(r),h={start:"0%",center:"50%",end:"100%"}[d],m=(((w=s.arrow)==null?void 0:w.x)??0)+a/2,f=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let b="",v="";return c==="bottom"?(b=i?h:`${m}px`,v=`${-l}px`):c==="top"?(b=i?h:`${m}px`,v=`${n.floating.height+l}px`):c==="right"?(b=`${-l}px`,v=i?h:`${f}px`):c==="left"&&(b=`${n.floating.width+l}px`,v=i?h:`${f}px`),{data:{x:b,y:v}}}});function jx(e){const[t,r="center"]=e.split("-");return[t,r]}var Cx=xx,Tx=_x,Px=Ex,Rx=kx,[Ku,r$]=Mn("Tooltip",[qu]),Gu=qu(),Ox="TooltipProvider",NP=700,_h="tooltip.open",[AP,vp]=Ku(Ox),Nx=e=>{const{__scopeTooltip:t,delayDuration:r=NP,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:o}=e,i=p.useRef(!0),a=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(AP,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:p.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:o})};Nx.displayName=Ox;var Gi="Tooltip",[IP,Yu]=Ku(Gi),Ax=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:s,onOpenChange:o,disableHoverableContent:i,delayDuration:a}=e,l=vp(Gi,e.__scopeTooltip),c=Gu(t),[d,h]=p.useState(null),m=cs(),f=p.useRef(0),b=i??l.disableHoverableContent,v=a??l.delayDuration,x=p.useRef(!1),[w,g]=ga({prop:n,defaultProp:s??!1,onChange:j=>{j?(l.onOpen(),document.dispatchEvent(new CustomEvent(_h))):l.onClose(),o==null||o(j)},caller:Gi}),y=p.useMemo(()=>w?x.current?"delayed-open":"instant-open":"closed",[w]),_=p.useCallback(()=>{window.clearTimeout(f.current),f.current=0,x.current=!1,g(!0)},[g]),E=p.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g(!1)},[g]),k=p.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{x.current=!0,g(!0),f.current=0},v)},[v,g]);return p.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),u.jsx(Cx,{...c,children:u.jsx(IP,{scope:t,contentId:m,open:w,stateAttribute:y,trigger:d,onTriggerChange:h,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayedRef.current?k():_()},[l.isOpenDelayedRef,k,_]),onTriggerLeave:p.useCallback(()=>{b?E():(window.clearTimeout(f.current),f.current=0)},[E,b]),onOpen:_,onClose:E,disableHoverableContent:b,children:r})})};Ax.displayName=Gi;var Eh="TooltipTrigger",Ix=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Yu(Eh,r),o=vp(Eh,r),i=Gu(r),a=p.useRef(null),l=Ae(t,a,s.onTriggerChange),c=p.useRef(!1),d=p.useRef(!1),h=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(Tx,{asChild:!0,...i,children:u.jsx(pe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:q(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:q(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:q(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:q(e.onBlur,s.onClose),onClick:q(e.onClick,s.onClose)})})});Ix.displayName=Eh;var DP="TooltipPortal",[n$,MP]=Ku(DP,{forceMount:void 0}),No="TooltipContent",Dx=p.forwardRef((e,t)=>
vendor: 4,656 bytes, line 252
252{const r=MP(No,e.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...o}=e,i=Yu(No,e.__scopeTooltip);return u.jsx(xr,{present:n||i.open,children:i.disableHoverableContent?u.jsx(Mx,{side:s,...o,ref:t}):u.jsx(LP,{side:s,...o,ref:t})})}),LP=p.forwardRef((e,t)=>{const r=Yu(No,e.__scopeTooltip),n=vp(No,e.__scopeTooltip),s=p.useRef(null),o=Ae(t,s),[i,a]=p.useState(null),{trigger:l,onClose:c}=r,d=s.current,{onPointerInTransitChange:h}=n,m=p.useCallback(()=>{a(null),h(!1)},[h]),f=p.useCallback((b,v)=>{const x=b.currentTarget,w={x:b.clientX,y:b.clientY},g=BP(w,x.getBoundingClientRect()),y=VP(w,g),_=WP(v.getBoundingClientRect()),E=qP([...y,..._]);a(E),h(!0)},[h]);return p.useEffect(()=>()=>m(),[m]),p.useEffect(()=>{if(l&&d){const b=x=>f(x,d),v=x=>f(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",v)}}},[l,d,f,m]),p.useEffect(()=>{if(i){const b=v=>{const x=v.target,w={x:v.clientX,y:v.clientY},g=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!HP(w,i);g?m():y&&(m(),c())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,i,c,m]),u.jsx(Mx,{...e,ref:o})}),[$P,FP]=Ku(Gi,{isInside:!1}),zP=Vk("TooltipContent"),Mx=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=Yu(No,r),c=Gu(r),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(_h,d),()=>document.removeEventListener(_h,d)),[d]),p.useEffect(()=>{if(l.trigger){const h=m=>{const f=m.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),u.jsx(ma,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(Px,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(zP,{children:n}),u.jsx($P,{scope:r,isInside:!0,children:u.jsx(hj,{id:l.contentId,role:"tooltip",children:s||n})})]})})});Dx.displayName=No;var Lx="TooltipArrow",UP=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,s=Gu(r);return FP(Lx,r).isInside?null:u.jsx(Rx,{...s,...n,ref:t})});UP.displayName=Lx;function BP(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,s,o)){case o:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function VP(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function WP(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function HP(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o],l=t[i],c=a.x,d=a.y,h=l.x,m=l.y;d>n!=m>n&&r<(h-c)*(n-d)/(m-d)+c&&(s=!s)}return s}function qP(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),KP(t)}function KP(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var GP=Nx,YP=Ax,QP=Ix,$x=Dx;const JP=GP,s$=YP,o$=QP,XP=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx($x,{ref:n,sideOffset:t,className:Oe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
252de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));XP.displayName=$x.displayName;var wa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vs=typeof window>"u"||"Deno"in globalThis;function ct(){}function ZP(e,t){return typeof e=="function"?e(t):e}function Sh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Fx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Cn(e,t){return typeof e=="function"?e(t):e}function Ot(e,t){return typeof e=="function"?e(t):e}function Og(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(n){if(t.queryHash!==yp(i,t.options))return!1}else if(!Qi(t.queryKey,i))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function Ng(e,t){const{exact:r,status:n,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Yi(t.options.mutationKey)!==Yi(o))return!1}else if(!Qi(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function yp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Yi)(e)}function Yi(e){return JSON.stringify(e,(t,r)=>jh(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Qi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Qi(e[r],t[r])):!1}function zx(e,t){if(e===t)return e;const r=Ag(e)&&Ag(t);if(r||jh(e)&&jh(t)){const n=r?e:Object.keys(e),s=n.length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{},l=new Set(n);let c=0;for(let d=0;d<i;d++){const h=r?d:o[d];(!r&&l.has(h)||r)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,c++):(a[h]=zx(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&c++)}return s===i&&c===s?e:a}return t}function kh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Ag(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jh(e){if(!Ig(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Ig(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ig(e){return Object.prototype.toString.call(e)==="[object Object]"}function eR(e){return new Promise(t=>{setTimeout(t,e)})}function Ch(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?zx(e,t):t}function tR(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function rR(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var wp=Symbol();function Ux(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===wp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function nR(e,t){return typeof e=="function"?e(...t):!!e}var Zn,ln,co,Hv,sR=(Hv=class extends wa{constructor(){super();Y(this,Zn);Y(this,ln);Y(this,co);z(this,co,t=>{if(!vs&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,ln)||this.setEventListener(S(this,co))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,ln))==null||t.call(this),z(this,ln,void 0))}setEventListener(t){var r;z(this,co,t),(r=S(this,ln))==null||r.call(this),z(this,ln,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){S(this,Zn)!==t&&(z(this,Zn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof S(this,Zn)=="boolean"?S(this,Zn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Zn=new WeakMap,ln=new WeakMap,co=new WeakMap,Hv),xp=new sR,ho,un,fo,qv,oR=(qv=class extends wa{constructor(){super();Y(this,ho,!0);Y(this,un);Y(this,fo);z(this,fo,t=>{if(!vs&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n
vendor: 4,333 bytes, line 252
252)}}})}onSubscribe(){S(this,un)||this.setEventListener(S(this,fo))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,un))==null||t.call(this),z(this,un,void 0))}setEventListener(t){var r;z(this,fo,t),(r=S(this,un))==null||r.call(this),z(this,un,t(this.setOnline.bind(this)))}setOnline(t){S(this,ho)!==t&&(z(this,ho,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return S(this,ho)}},ho=new WeakMap,un=new WeakMap,fo=new WeakMap,qv),uu=new oR;function Th(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function iR(e){return Math.min(1e3*2**e,3e4)}function Bx(e){return(e??"online")==="online"?uu.isOnline():!0}var Vx=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kc(e){return e instanceof Vx}function Wx(e){let t=!1,r=0,n=!1,s;const o=Th(),i=v=>{var x;n||(m(new Vx(v)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>xp.isFocused()&&(e.networkMode==="always"||uu.isOnline())&&e.canRun(),d=()=>Bx(e.networkMode)&&e.canRun(),h=v=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,v),s==null||s(),o.resolve(v))},m=v=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,v),s==null||s(),o.reject(v))},f=()=>new Promise(v=>{var x;s=w=>{(n||c())&&v(w)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;s=void 0,n||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(n)return;let v;const x=r===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(w){v=Promise.reject(w)}Promise.resolve(v).then(h).catch(w=>{var k;if(n)return;const g=e.retry??(vs?0:3),y=e.retryDelay??iR,_=typeof y=="function"?y(r,w):y,E=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,w);if(t||!E){m(w);return}r++,(k=e.onFail)==null||k.call(e,r,w),eR(_).then(()=>c()?void 0:f()).then(()=>{t?m(w):b()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?b():f().then(b),o)}}var aR=e=>setTimeout(e,0);function lR(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=aR;const o=a=>{t?e.push(a):s(()=>{r(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var He=lR(),es,Kv,Hx=(Kv=class{constructor(){Y(this,es)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sh(this.gcTime)&&z(this,es,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vs?1/0:5*60*1e3))}clearGcTimeout(){S(this,es)&&(clearTimeout(S(this,es)),z(this,es,void 0))}},es=new WeakMap,Kv),po,ts,Rt,rs,Je,oa,ns,Yt,kr,Gv,uR=(Gv=class extends Hx{constructor(t){super();Y(this,Yt);Y(this,po);Y(this,ts);Y(this,Rt);Y(this,rs);Y(this,Je);Y(this,oa);Y(this,ns);z(this,ns,!1),z(this,oa,t.defaultOptions),this.setOptions(t.options),this.observers=[],z(this,rs,t.client),z(this,Rt,S(this,rs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,po,cR(this.options)),this.state=t.state??S(this,po),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,Je))==null?void 0:t.promise}setOptions(t){this.options={...S(this,oa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Rt).remove(this)}setData(t,r){const n=Ch(this.state.data,t,this.options);return ae(this,Yt,kr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ae(this,Yt,kr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=S(this,Je))==null?void 0:n.promise;return(s=S(this,Je))==null||s.cancel(t),r?r.then(ct).catch(ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,po))}isActive(){return this.observers.some(t=>Ot(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wp||this.state.dataUpdateCount+this.state.errorUpdate
252Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Cn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Fx(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=S(this,Je))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=S(this,Je))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,Rt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(S(this,Je)&&(S(this,ns)?S(this,Je).cancel({revert:!0}):S(this,Je).cancelRetry()),this.scheduleGc()),S(this,Rt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ae(this,Yt,kr).call(this,{type:"invalidate"})}fetch(t,r){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,Je))return S(this,Je).continueRetry(),S(this,Je).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(f=>f.options.queryFn);m&&this.setOptions(m.options)}const n=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(z(this,ns,!0),n.signal)})},o=()=>{const m=Ux(this.options,r),b=(()=>{const v={client:S(this,rs),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return z(this,ns,!1),this.options.persister?this.options.persister(m,b,this):m(b)},a=(()=>{const m={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,rs),state:this.state,fetchFn:o};return s(m),m})();(c=this.options.behavior)==null||c.onFetch(a,this),z(this,ts,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&ae(this,Yt,kr).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=m=>{var f,b,v,x;Kc(m)&&m.silent||ae(this,Yt,kr).call(this,{type:"error",error:m}),Kc(m)||((b=(f=S(this,Rt).config).onError)==null||b.call(f,m,this),(x=(v=S(this,Rt).config).onSettled)==null||x.call(v,this.state.data,m,this)),this.scheduleGc()};return z(this,Je,Wx({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:m=>{var f,b,v,x;if(m===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(w){l(w);return}(b=(f=S(this,Rt).config).onSuccess)==null||b.call(f,m,this),(x=(v=S(this,Rt).config).onSettled)==null||x.call(v,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,f)=>{ae(this,Yt,kr).call(this,{type:"failed",failureCount:m,error:f})},onPause:()=>{ae(this,Yt,kr).call(this,{type:"pause"})},onContinue:()=>{ae(this,Yt,kr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),S(this,Je).start()}},po=new WeakMap,ts=new WeakMap,Rt=new WeakMap,rs=new WeakMap,Je=new WeakMap,oa=new WeakMap,ns=new WeakMap,Yt=new WeakSet,kr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...qx(n.data,this.options),fetchMeta:t.meta??null};case"success":return z(this,ts,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Kc(s)&&s.revert&&S(this,ts)?{...S(this,ts),fetchStatus:"idle"}
vendor: 4,839 bytes, line 252
252:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),He.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),S(this,Rt).notify({query:this,type:"updated",action:t})})},Gv);function qx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var dr,Yv,dR=(Yv=class extends wa{constructor(t={}){super();Y(this,dr);this.config=t,z(this,dr,new Map)}build(t,r,n){const s=r.queryKey,o=r.queryHash??yp(s,r);let i=this.get(o);return i||(i=new uR({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){S(this,dr).has(t.queryHash)||(S(this,dr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=S(this,dr).get(t.queryHash);r&&(t.destroy(),r===t&&S(this,dr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){He.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,dr).get(t)}getAll(){return[...S(this,dr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Og(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Og(t,n)):r}notify(t){He.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){He.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},dr=new WeakMap,Yv),hr,et,ss,fr,en,Qv,hR=(Qv=class extends Hx{constructor(t){super();Y(this,fr);Y(this,hr);Y(this,et);Y(this,ss);this.mutationId=t.mutationId,z(this,et,t.mutationCache),z(this,hr,[]),this.state=t.state||fR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,hr).includes(t)||(S(this,hr).push(t),this.clearGcTimeout(),S(this,et).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,hr,S(this,hr).filter(r=>r!==t)),this.scheduleGc(),S(this,et).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,hr).length||(this.state.status==="pending"?this.scheduleGc():S(this,et).remove(this))}continue(){var t;return((t=S(this,ss))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,l,c,d,h,m,f,b,v,x,w,g,y,_,E,k,j,P;const r=()=>{ae(this,fr,en).call(this,{type:"continue"})};z(this,ss,Wx({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,N)=>{ae(this,fr,en).call(this,{type:"failed",failureCount:A,error:N})},onPause:()=>{ae(this,fr,en).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,et).canRun(this)}));const n=this.state.status==="pending",s=!S(this,ss).canStart();try{if(n)r();else{ae(this,fr,en).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(o=S(this,et).config).onMutate)==null?void 0:i.call(o,t,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));N!==this.state.context&&ae(this,fr,en).call(this,{type:"pending",context:N,variables:t,isPaused:s})}const A=await S(this,ss).start();return await((d=(c=S(this,et).config).onSuccess)==null?void 0:d.call(c,A,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,A,t,this.state.context)),await((b=(f=S(this,et).config).onSettled)==null?void 0:b.call(f,A,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,A,null,t,this.state.context)),ae(this,fr,en).call(this,{type:"success",data:A}),A}catch(A){try{throw await((g=(w=S(this,et).config).onError)==null?void 0:g.call(w,A,t,this.state.context,this)),await((_=(y=this.options).onError)==null?void 0:_.call(y,A,t,this.state.context)),await((k=(E=S(this,et).config).onSettled)==null?void 0:k.call(E,void 0,A,this.state.variables,this.state.context,this)),await((P=(j=this.options).onSettled)==null?void 0:P.call(j,void 0,A,t,this.state.context)),A}finally{ae(this,fr,en).call(this,{type:"error",error:A})}}finally{S(this,et).runNext(this)}}}
252,hr=new WeakMap,et=new WeakMap,ss=new WeakMap,fr=new WeakSet,en=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),He.batch(()=>{S(this,hr).forEach(n=>{n.onMutationUpdate(t)}),S(this,et).notify({mutation:this,type:"updated",action:t})})},Qv);function fR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pr,Qt,ia,Jv,pR=(Jv=class extends wa{constructor(t={}){super();Y(this,Pr);Y(this,Qt);Y(this,ia);this.config=t,z(this,Pr,new Set),z(this,Qt,new Map),z(this,ia,0)}build(t,r,n){const s=new hR({mutationCache:this,mutationId:++Ta(this,ia)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){S(this,Pr).add(t);const r=Qa(t);if(typeof r=="string"){const n=S(this,Qt).get(r);n?n.push(t):S(this,Qt).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(S(this,Pr).delete(t)){const r=Qa(t);if(typeof r=="string"){const n=S(this,Qt).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&S(this,Qt).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Qa(t);if(typeof r=="string"){const n=S(this,Qt).get(r),s=n==null?void 0:n.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=Qa(t);if(typeof r=="string"){const s=(n=S(this,Qt).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{S(this,Pr).forEach(t=>{this.notify({type:"removed",mutation:t})}),S(this,Pr).clear(),S(this,Qt).clear()})}getAll(){return Array.from(S(this,Pr))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Ng(r,n))}findAll(t={}){return this.getAll().filter(r=>Ng(t,r))}notify(t){He.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
252r.state.isPaused);return He.batch(()=>Promise.all(t.map(r=>r.continue().catch(ct))))}},Pr=new WeakMap,Qt=new WeakMap,ia=new WeakMap,Jv);function Qa(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Dg(e){return{onFetch:(t,r)=>{var d,h,m,f,b;const n=t.options,s=(m=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},w=Ux(t.options,t.fetchOptions),g=async(y,_,E)=>{if(v)return Promise.reject();if(_==null&&y.pages.length)return Promise.resolve(y);const j=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:_,direction:E?"backward":"forward",meta:t.options.meta};return x(U),U})(),P=await w(j),{maxPages:A}=t.options,N=E?rR:tR;return{pages:N(y.pages,P,A),pageParams:N(y.pageParams,_,A)}};if(s&&o.length){const y=s==="backward",_=y?mR:Mg,E={pages:o,pageParams:i},k=_(n,E);a=await g(E,k,y)}else{const y=e??o.length;do{const _=l===0?i[0]??n.initialPageParam:Mg(n,a);if(l>0&&_==null)break;a=await g(a,_),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function Mg(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function mR(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Pe,cn,dn,mo,go,hn,vo,yo,Xv,gR=(Xv=class{constructor(e={}){Y(this,Pe);Y(this,cn);Y(this,dn);Y(this,mo);Y(this,go);Y(this,hn);Y(this,vo);Y(this,yo);z(this,Pe,e.queryCache||new dR),z(this,cn,e.mutationCache||new pR),z(this,dn,e.defaultOptions||{}),z(this,mo,new Map),z(this,go,new Map),z(this,hn,0)}mount(){Ta(this,hn)._++,S(this,hn)===1&&(z(this,vo,xp.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,Pe).onFocus())})),z(this,yo,uu.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,Pe).onOnline())})))}unmount(){var e,t;Ta(this,hn)._--,S(this,hn)===0&&((e=S(this,vo))==null||e.call(this),z(this,vo,void 0),(t=S(this,yo))==null||t.call(this),z(this,yo,void 0))}isFetching(e){return S(this,Pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,cn).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=S(this,Pe).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=S(this,Pe).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Cn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return S(this,Pe).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=S(this,Pe).get(n.queryHash),o=s==null?void 0:s.state.data,i=ZP(t,o);if(i!==void 0)return S(this,Pe).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return He.batch(()=>S(this,Pe).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=S(this,Pe).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=S(this,Pe);He.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=S(this,Pe);return He.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=He.batch(()=>S(this,Pe).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(ct).catch(ct)}invalidateQueries(e,t={}){return He.batch(()=>(S(this,Pe).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=He.batch(()=>S(this,Pe).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(ct)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(ct)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=S(this,Pe).build(this,t);return r.isStaleByTime(Cn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ct).catch(ct)}fetchInfiniteQuery(e){return e.behavior=Dg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ct).catch(ct)}ensureInfiniteQueryData(e){return e.behavior=Dg(e.pages),this.ensureQueryData(e)}
vendor: 9,781 bytes, line 252
252resumePausedMutations(){return uu.isOnline()?S(this,cn).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Pe)}getMutationCache(){return S(this,cn)}getDefaultOptions(){return S(this,dn)}setDefaultOptions(e){z(this,dn,e)}setQueryDefaults(e,t){S(this,mo).set(Yi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,mo).values()],r={};return t.forEach(n=>{Qi(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){S(this,go).set(Yi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,go).values()],r={};return t.forEach(n=>{Qi(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,dn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===wp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,dn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,Pe).clear(),S(this,cn).clear()}},Pe=new WeakMap,cn=new WeakMap,dn=new WeakMap,mo=new WeakMap,go=new WeakMap,hn=new WeakMap,vo=new WeakMap,yo=new WeakMap,Xv),lt,le,aa,tt,os,wo,fn,pn,la,xo,bo,is,as,mn,_o,ce,hi,Ph,Rh,Oh,Nh,Ah,Ih,Dh,Kx,Zv,vR=(Zv=class extends wa{constructor(t,r){super();Y(this,ce);Y(this,lt);Y(this,le);Y(this,aa);Y(this,tt);Y(this,os);Y(this,wo);Y(this,fn);Y(this,pn);Y(this,la);Y(this,xo);Y(this,bo);Y(this,is);Y(this,as);Y(this,mn);Y(this,_o,new Set);this.options=r,z(this,lt,t),z(this,pn,null),z(this,fn,Th()),this.options.experimental_prefetchInRender||S(this,fn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,le).addObserver(this),Lg(S(this,le),this.options)?ae(this,ce,hi).call(this):this.updateResult(),ae(this,ce,Nh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mh(S(this,le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mh(S(this,le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ae(this,ce,Ah).call(this),ae(this,ce,Ih).call(this),S(this,le).removeObserver(this)}setOptions(t){const r=this.options,n=S(this,le);if(this.options=S(this,lt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ot(this.options.enabled,S(this,le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ae(this,ce,Dh).call(this),S(this,le).setOptions(this.options),r._defaulted&&!kh(this.options,r)&&S(this,lt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,le),observer:this});const s=this.hasListeners();s&&$g(S(this,le),n,this.options,r)&&ae(this,ce,hi).call(this),this.updateResult(),s&&(S(this,le)!==n||Ot(this.options.enabled,S(this,le))!==Ot(r.enabled,S(this,le))||Cn(this.options.staleTime,S(this,le))!==Cn(r.staleTime,S(this,le)))&&ae(this,ce,Ph).call(this);const o=ae(this,ce,Rh).call(this);s&&(S(this,le)!==n||Ot(this.options.enabled,S(this,le))!==Ot(r.enabled,S(this,le))||o!==S(this,mn))&&ae(this,ce,Oh).call(this,o)}getOptimisticResult(t){const r=S(this,lt).getQueryCache().build(S(this,lt),t),n=this.createResult(r,t);return wR(this,n)&&(z(this,tt,n),z(this,wo,this.options),z(this,os,S(this,le).state)),n}getCurrentResult(){return S(this,tt)}trackResult(t,r){return new Proxy(t,{get:(n,s)=>(this.trackProp(s),r==null||r(s),Reflect.get(n,s))})}trackProp(t){S(this,_o).add(t)}getCurrentQuery(){return S(this,le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=S(this,lt).defaultQueryOptions(t),n=S(this,lt).getQueryCache().build(S(this,lt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ae(this,ce,hi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,tt)))}createResult(t,r){var A;const n=S(this,le),s=this.options,o=S(this,tt),i=S(this,os),a=S(this,wo),c=t!==n?t.state:S(this,aa),{state:d}=t;let h={...d},m=!1,f;if(r._optimisticResults){const N=this.hasListeners(),U=!N&&Lg(t,r),D=N&&$g(t,n,r,s);(U||D)&&(h={...h,...qx(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:x}=h;f=h.data;let w=!1;if(r.placeholderData!==void 0&&f===void 0&&x==="pending"){let N;o!=null&&o.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?(N=o.data,w=!0):N=typeof r.placeholderData=="function"?r.placeholderData((A=S(this,bo))==null?void 0:A.state.data,S(this,bo)):r.placeholderData,N!==void 0&&(x="success",f=Ch(o==null?void 0:o.data,N,r),m=!0)}if(r.select&&f!==void 0&&!w)if(o&&f===(i==null?void 0:i.data)&&r.select===S(this,la))f=S(this,xo);else try{z(this,la,r.select),f=r.select(f),f=Ch(o==null?void 0:o.data,f,r),z(this,xo,f),z(this,pn,null)}catch(N){z(this,pn,N)}S(this,pn)&&(b=S(this,pn),f=S(this,xo),v=Date.now(),x="error");const g=h.fetchStatus==="fetching",y=x==="pending",_=x==="error",E=y&&g,k=f!==void 0,P={status:x,fetchStatus:h.fetchStatus,isPending:y,isSuccess:x==="success",isError:_,isInitialLoading:E,isLoading:E,data:f,dataUpdatedAt:h.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&!y,isLoadingError:_&&!k,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:_&&k,isStale:bp(t,r),refetch:this.refetch,promise:S(this,fn),isEnabled:Ot(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=K=>{P.status==="error"?K.reject(P.error):P.data!==void 0&&K.resolve(P.data)},U=()=>{const K=z(this,fn,P.promise=Th());N(K)},D=S(this,fn);switch(D.status){case"pending":t.queryHash===n.queryHash&&N(D);break;case"fulfilled":(P.status==="error"||P.data!==D.value)&&U();break;case"rejected":(P.status!=="error"||P.error!==D.reason)&&U();break}}return P}updateResult(){const t=S(this,tt),r=this.createResult(S(this,le),this.options);if(z(this,os,S(this,le).state),z(this,wo,this.options),S(this,os).data!==void 0&&z(this,bo,S(this,le)),kh(r,t))return;z(this,tt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!S(this,_o).size)return!0;const i=new Set(o??S(this,_o));return this.options.throwOnError&&i.add("error"),Object.keys(S(this,tt)).some(a=>{const l=a;return S(this,tt)[l]!==t[l]&&i.has(l)})};ae(this,ce,Kx).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ae(this,ce,Nh).call(this)}},lt=new WeakMap,le=new WeakMap,aa=new WeakMap,tt=new WeakMap,os=new WeakMap,wo=new WeakMap,fn=new WeakMap,pn=new WeakMap,la=new WeakMap,xo=new WeakMap,bo=new WeakMap,is=new WeakMap,as=new WeakMap,mn=new WeakMap,_o=new WeakMap,ce=new WeakSet,hi=function(t){ae(this,ce,Dh).call(this);let r=S(this,le).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ct)),r},Ph=function(){ae(this,ce,Ah).call(this);const t=Cn(this.options.staleTime,S(this,le));if(vs||S(this,tt).isStale||!Sh(t))return;const n=Fx(S(this,tt).dataUpdatedAt,t)+1;z(this,is,setTimeout(()=>{S(this,tt).isStale||this.updateResult()},n))},Rh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,le)):this.options.refetchInterval)??!1},Oh=function(t){ae(this,ce,Ih).call(this),z(this,mn,t),!(vs||Ot(this.options.enabled,S(this,le))===!1||!Sh(S(this,mn))||S(this,mn)===0)&&z(this,as,setInterval(()=>{(this.options.refetchIntervalInBackground||xp.isFocused())&&ae(this,ce,hi).call(this)},S(this,mn)))},Nh=function(){ae(this,ce,Ph).call(this),ae(this,ce,Oh).call(this,ae(this,ce,Rh).call(this))},Ah=function(){S(this,is)&&(clearTimeout(S(this,is)),z(this,is,void 0))},Ih=function(){S(this,as)&&(clearInterval(S(this,as)),z(this,as,void 0))},Dh=function(){const t=S(this,lt).getQueryCache().build(S(this,lt),this.options);if(t===S(this,le))return;const r=S(this,le);z(this,le,t),z(this,aa,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Kx=function(t){He.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(S(this,tt))}),S(this,lt).getQueryCache().notify({query:S(this,le),type:"observerResultsUpdated"})})},Zv);function yR(e,t){return Ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Lg(e,t){return yR(e,t)||e.state.data!==void 0&&Mh(e,t,t.refetchOnMount)}function Mh(e,t,r){if(Ot(t.enabled,e)!==!1&&Cn(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&bp(e,t)}return!1}function $g(e,t,r,n){return(e!==t||Ot(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&bp(e,r)}function bp(e,t){return Ot(t.enabled,e)!==!1&&e.isStaleByTime(Cn(t.staleTime,e))}function wR(e,t){return!kh(e.getCurrentResult(),t)}var Gx=p.createContext(void 0),xR=e=>{const t=p.useContext(Gx);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bR=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Gx.Provider,{value:e,children:t})),Yx=p.createContext(!1),_R=()=>p.useContext(Yx);Yx.Provider;function ER(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
252var SR=p.createContext(ER()),kR=()=>p.useContext(SR),jR=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},CR=e=>{p.useEffect(()=>{e.clearReset()},[e])},TR=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||nR(r,[e.error,n])),PR=e=>{if(e.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},RR=(e,t)=>e.isLoading&&e.isFetching&&!t,OR=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Fg=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function NR(e,t,r){var h,m,f,b,v;const n=_R(),s=kR(),o=xR(),i=o.defaultQueryOptions(e);(m=(h=o.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,i),i._optimisticResults=n?"isRestoring":"optimistic",PR(i),jR(i,s),CR(s);const a=!o.getQueryCache().get(i.queryHash),[l]=p.useState(()=>new t(o,i)),c=l.getOptimisticResult(i),d=!n&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(x=>{const w=d?l.subscribe(He.batchCalls(x)):ct;return l.updateResult(),w},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(i)},[i,l]),OR(i,c))throw Fg(i,l,s);if(TR({result:c,errorResetBoundary:s,throwOnError:i.throwOnError,query:o.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw c.error;if((b=(f=o.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||b.call(f,i,c),i.experimental_prefetchInRender&&!vs&&RR(c,n)){const x=a?Fg(i,l,s):(v=o.getQueryCache().get(i.queryHash))==null?void 0:v.promise;x==null||x.catch(ct).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?c:l.trackResult(c)}function AR(e,t){return NR(e,vR)}/**
253 * @remix-run/router v1.23.0
254 *
255 * Copyright (c) Remix Software Inc.
256 *
257 * This source code is licensed under the MIT license found in the
258 * LICENSE.md file in the root directory of this source tree.
259 *
260 * @license MIT
261 */function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(this,arguments)}var yn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(yn||(yn={}));const zg="popstate";function IR(e){e===void 0&&(e={});function t(n,s){let{pathname:o,search:i,hash:a}=n.location;return Lh("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:cu(s)}return MR(t,r,null,e)}function je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function DR(){return Math.random().toString(36).substr(2,8)}function Ug(e,t){return{usr:e.state,key:e.key,idx:t}}function Lh(e,t,r,n){return r===void 0&&(r=null),Ji({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Uo(t):t,{state:r,key:t&&t.key||n||DR()})}function cu(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Uo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function MR(e,t,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:o=!1}=n,i=s.history,a=yn.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(Ji({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function h(){a=yn.Pop;let x=d(),w=x==null?null:x-c;c=x,l&&l({action:a,location:v.location,delta:w})}function m(x,w){a=yn.Push;let g=Lh(v.location,x,w);c=d()+1;let y=Ug(g,c),_=v.createHref(g);try{i.pushState(y,"",_)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(_)}o&&l&&l({action:a,location:v.location,delta:1})}function f(x,w){a=yn.Replace;let g=Lh(v.location,x,w);c=d();let y=Ug(g,c),_=v.createHref(g);i.replaceState(y,"",_),o&&l&&l({action:a,location:v.location,delta:0})}function b(x){let w=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof x=="str
261ing"?x:cu(x);return g=g.replace(/ $/,"%20"),je(w,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,w)}let v={get action(){return a},get location(){return e(s,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(zg,h),l=x,()=>{s.removeEventListener(zg,h),l=null}},createHref(x){return t(s,x)},createURL:b,encodeLocation(x){let w=b(x);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:f,go(x){return i.go(x)}};return v}var Bg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Bg||(Bg={}));function LR(e,t,r){return r===void 0&&(r="/"),$R(e,t,r,!1)}function $R(e,t,r,n){let s=typeof t=="string"?Uo(t):t,o=Ao(s.pathname||"/",r);if(o==null)return null;let i=Jx(e);FR(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=QR(o);a=GR(i[l],c,n)}return a}function Jx(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(je(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Tn([n,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&(je(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Jx(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:qR(c,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of Xx(o.path))s(o,i,l)}),t}function Xx(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return s?[o,""]:[o];let i=Xx(n.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function FR(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:KR(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const zR=/^:[\w-]+$/,UR=3,BR=2,VR=1,WR=10,HR=-2,Vg=e=>e==="*";function qR(e,t){let r=e.split("/"),n=r.length;return r.some(Vg)&&(n+=HR),t&&(n+=BR),r.filter(s=>!Vg(s)).reduce((s,o)=>s+(zR.test(o)?UR:o===""?VR:WR),n)}function KR(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function GR(e,t,r){let{routesMeta:n}=e,s={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=du({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),m=l.route;if(!h&&c&&r&&!n[n.length-1].route.index&&(h=du({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 9,263 bytes, lines 261-270
261Object.assign(s,h.params),i.push({params:s,pathname:Tn([o,h.pathname]),pathnameBase:eO(Tn([o,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(o=Tn([o,h.pathnameBase]))}return i}function du(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=YR(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((c,d,h)=>{let{paramName:m,isOptional:f}=d;if(m==="*"){let v=a[h]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const b=a[h];return f&&!b?c[m]=void 0:c[m]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function YR(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Qx(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 n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function QR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qx(!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 Ao(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function JR(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?Uo(e):e;return{pathname:r?r.startsWith("/")?r:XR(r,t):t,search:tO(n),hash:rO(s)}}function XR(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Gc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ZR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _p(e,t){let r=ZR(e);return t?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Ep(e,t,r,n){n===void 0&&(n=!1);let s;typeof e=="string"?s=Uo(e):(s=Ji({},e),je(!s.pathname||!s.pathname.includes("?"),Gc("?","pathname","search",s)),je(!s.pathname||!s.pathname.includes("#"),Gc("#","pathname","hash",s)),je(!s.search||!s.search.includes("#"),Gc("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),h-=1;s.pathname=m.join("/")}a=h>=0?t[h]:"/"}let l=JR(s,a),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Tn=e=>e.join("/").replace(/\/\/+/g,"/"),eO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Zx=["post","put","patch","delete"];new Set(Zx);const sO=["get",...Zx];new Set(sO);/**
262 * React Router v6.30.1
263 *
264 * Copyright (c) Remix Software Inc.
265 *
266 * This source code is licensed under the MIT license found in the
267 * LICENSE.md file in the root directory of this source tree.
268 *
269 * @license MIT
270 */function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(this,arguments)}const Qu=p.createContext(null),eb=p.createContext(null),Br=p.createContext(null),Ju=p.createContext(null),Vr=p.createContext({outlet:null,matches:[],isDataRoute:!1}),tb=p.createContext(null);function oO(e,t){let{relative:r}=t===void 0?{}:t;Bo()||je(!1);let{basename:n,navigator:s}=p.useContext(Br),{hash:o,pathname:i,search:a}=Xu(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:Tn([n,i])),s.createHref({pathname:l,search:a,hash:o})}function Bo(){return p.useContext(Ju)!=null}function _r(){return Bo()||je(!1),p.useContext(Ju).location}function rb(e){p.useContext(Br).static||p.useLayoutEffect(e)}function xa(){let{isDataRoute:e}=p.useContext(Vr);return e?wO():iO()}function iO(){Bo()||je(!1);let e=p.useContext(Qu),{basename:t,future:r,navigator:n}=p.useContext(Br),{matches:s}=p.useContext(Vr),{pathname:o}=_r(),i=JSON.stringify(_p(s,r.v7_relativeSplatPath)),a=p.useRef(!1);return rb(()=>{a.current=!0}),p.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let h=Ep(c,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Tn([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,i,o,e])}function aO(){let{matches:e}=p.useContext(Vr),t=e[e.length-1];return t?t.params:{}}function Xu(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=p.useContext(Br),{matches:s}=p.useContext(Vr),{pathname:o}=_r(),i=JSON.stringify(_p(s,n.v7_relativeSplatPath));return p.useMemo(()=>Ep(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function lO(e,t){return uO(e,t)}function uO(e,t,r,n){Bo()||je(!1);let{navigator:s}=p.useContext(Br),{matches:o}=p.useContext(Vr),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=_r(),d;if(t){var h;let x=typeof t=="string"?Uo(t):t;l==="/"||(h=x.pathname)!=null&&h.startsWith(l)||je(!1),d=x}else d=c;let m=d.pathname||"/",f=m;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=LR(e,{pathname:f}),v=pO(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Tn([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Tn([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,r,n);return t&&v?p.createElement(Ju.Provider,{value:{location:Xi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:yn.Pop}},v):v}function cO(){let e=yO(),t=nO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:s},r):null,null)}const dO=p.createElement(cO,null);class hO extends p.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?p.createElement(Vr.Provider,{value:this.props.routeContext},p.createElement(tb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fO(e){let{routeContext:t,match:r,children:n}=e,s=p.useContext(Qu);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(Vr.Provider,{value:t},n)}function pO(e,t,r,n){var s;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=(s=r)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||je(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:m,errors:f}=r,b=h.route.loader&&m[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||b){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,h,m)=>{let f,b=!1,v=null,x=null;r&&(f=a&&h.route.id?a[h.route.id]:void 0,v=h.route.errorElement||dO,l&&(c<0&&m===0?(b=!0,x=null):c===m&&(b=!0,x=h.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,m+1)),g=()=>{let y;return f?y=v:b?y=x:h.route.Component?y=p.createElement(h.route.Component,null):h.route.element?y=h.route.element:y=d,p.createElement(fO,{match:h,routeC
270ontext:{outlet:d,matches:w,isDataRoute:r!=null},children:y})};return r&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?p.createElement(hO,{location:r.location,revalidation:r.revalidation,component:v,error:f,children:g(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):g()},null)}var nb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(nb||{}),hu=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}(hu||{});function mO(e){let t=p.useContext(Qu);return t||je(!1),t}function gO(e){let t=p.useContext(eb);return t||je(!1),t}function vO(e){let t=p.useContext(Vr);return t||je(!1),t}function sb(e){let t=vO(),r=t.matches[t.matches.length-1];return r.route.id||je(!1),r.route.id}function yO(){var e;let t=p.useContext(tb),r=gO(hu.UseRouteError),n=sb(hu.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function wO(){let{router:e}=mO(nb.UseNavigateStable),t=sb(hu.UseNavigateStable),r=p.useRef(!1);return rb(()=>{r.current=!0}),p.useCallback(function(s,o){o===void 0&&(o={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Xi({fromRouteId:t},o)))},[e,t])}function xO(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function te(e){let{to:t,replace:r,state:n,relative:s}=e;Bo()||je(!1);let{future:o,static:i}=p.useContext(Br),{matches:a}=p.useContext(Vr),{pathname:l}=_r(),c=xa(),d=Ep(t,_p(a,o.v7_relativeSplatPath),l,s==="path"),h=JSON.stringify(d);return p.useEffect(()=>c(JSON.parse(h),{replace:r,state:n,relative:s}),[c,h,s,r,n]),null}function C(e){je(!1)}function bO(e){let{basename:t="/",children:r=null,location:n,navigationType:s=yn.Pop,navigator:o,static:i=!1,future:a}=e;Bo()&&je(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:o,static:i,future:Xi({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof n=="string"&&(n=Uo(n));let{pathname:d="/",search:h="",hash:m="",state:f=null,key:b="default"}=n,v=p.useMemo(()=>{let x=Ao(d,l);return x==null?null:{location:{pathname:x,search:h,hash:m,state:f,key:b},navigationType:s}},[l,d,h,m,f,b,s]);return v==null?null:p.createElement(Br.Provider,{value:c},p.createElement(Ju.Provider,{children:r,value:v}))}function _O(e){let{children:t,location:r}=e;return lO($h(t),r)}new Promise(()=>{});function $h(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(n,s)=>{if(!p.isValidElement(n))return;let o=[...t,s];if(n.type===p.Fragment){r.push.apply(r,$h(n.props.children,o));return}n.type!==C&&je(!1),!n.props.index||!n.props.children||je(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=$h(n.props.children,o)),r.push(i)}),r}/**
271 * React Router DOM v6.30.1
272 *
273 * Copyright (c) Remix Software Inc.
274 *
275 * This source code is licensed under the MIT license found in the
276 * LICENSE.md file in the root directory of this source tree.
277 *
278 * @license MIT
279 */function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fu.apply(this,arguments)}function ob(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,o;for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function EO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SO(e,t){return e.button===0&&(!t||t==="_self")&&!EO(e)}function Fh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function kO(e,t){let r=Fh(e);return t&&t.forEach((n,s)=>
279{r.has(s)||t.getAll(s).forEach(o=>{r.append(s,o)})}),r}const jO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],CO=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],TO="6";try{window.__reactRouterVersion=TO}catch{}const PO=p.createContext({isTransitioning:!1}),RO="startTransition",Wg=lf[RO];function OO(e){let{basename:t,children:r,future:n,window:s}=e,o=p.useRef();o.current==null&&(o.current=IR({window:s,v5Compat:!0}));let i=o.current,[a,l]=p.useState({action:i.action,location:i.location}),{v7_startTransition:c}=n||{},d=p.useCallback(h=>{c&&Wg?Wg(()=>l(h)):l(h)},[l,c]);return p.useLayoutEffect(()=>i.listen(d),[i,d]),p.useEffect(()=>xO(n),[n]),p.createElement(bO,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:i,future:n})}const NO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$e=p.forwardRef(function(t,r){let{onClick:n,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:c,preventScrollReset:d,viewTransition:h}=t,m=ob(t,jO),{basename:f}=p.useContext(Br),b,v=!1;if(typeof c=="string"&&AO.test(c)&&(b=c,NO))try{let y=new URL(window.location.href),_=c.startsWith("//")?new URL(y.protocol+c):new URL(c),E=Ao(_.pathname,f);_.origin===y.origin&&E!=null?c=E+_.search+_.hash:v=!0}catch{}let x=oO(c,{relative:s}),w=MO(c,{replace:i,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:h});function g(y){n&&n(y),y.defaultPrevented||w(y)}return p.createElement("a",fu({},m,{href:b||x,onClick:v||o?n:g,ref:r,target:l}))}),IO=p.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:s=!1,className:o="",end:i=!1,style:a,to:l,viewTransition:c,children:d}=t,h=ob(t,CO),m=Xu(l,{relative:h.relative}),f=_r(),b=p.useContext(eb),{navigator:v,basename:x}=p.useContext(Br),w=b!=null&&LO(m)&&c===!0,g=v.encodeLocation?v.encodeLocation(m).pathname:m.pathname,y=f.pathname,_=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;s||(y=y.toLowerCase(),_=_?_.toLowerCase():null,g=g.toLowerCase()),_&&x&&(_=Ao(_,x)||_);const E=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let k=y===g||!i&&y.startsWith(g)&&y.charAt(E)==="/",j=_!=null&&(_===g||!i&&_.startsWith(g)&&_.charAt(g.length)==="/"),P={isActive:k,isPending:j,isTransitioning:w},A=k?n:void 0,N;typeof o=="function"?N=o(P):N=[o,k?"active":null,j?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let U=typeof a=="function"?a(P):a;return p.createElement($e,fu({},h,{"aria-current":A,className:N,ref:r,style:U,to:l,viewTransition:c}),typeof d=="function"?d(P):d)});var zh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zh||(zh={}));var Hg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hg||(Hg={}));function DO(e){let t=p.useContext(Qu);return t||je(!1),t}function MO(e,t){let{target:r,replace:n,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,l=xa(),c=_r(),d=Xu(e,{relative:i});return p.useCallback(h=>{if(SO(h,r)){h.preventDefault();let m=n!==void 0?n:cu(c)===cu(d);l(e,{replace:m,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[c,l,d,n,s,r,e,o,i,a])}function i$(e){let t=p.useRef(Fh(e)),r=p.useRef(!1),n=_r(),s=p.useMemo(()=>kO(n.search,r.current?null:t.current),[n.search]),o=xa(),i=p.useCallback((a,l)=>{const c=Fh(typeof a=="function"?a(s):a);r.current=!0,o("?"+c,l)},[o,s]);return[s,i]}function LO(e,t){t===void 0&&(t={});let r=p.useContext(PO);r==null&&je(!1);let{basename:n}=DO(zh.useViewTransitionState),s=Xu(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=Ao(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=Ao(r.nextLocation.pathname,n)||r.nextLocation.pathname;return du(s.pathname,i)!=null||du(s.pathname,o)!=null}const $O=sp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ao=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>{const i=n?Uk:"button";return u.jsx(i,{className:Oe($O({variant:t,size:r,className:e})),ref:o,...s})});ao.displayName="Button";var Yc="focusScope.autoFocusOnMount",Qc="focusScope.autoFocusOnUnmount",qg={bubbles:!1,cancelable:!0},FO="FocusScope",Sp=p.forwardRef((e,t)=>
279{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,l]=p.useState(null),c=kt(s),d=kt(o),h=p.useRef(null),m=Ae(t,v=>l(v)),f=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let v=function(y){if(f.paused||!a)return;const _=y.target;a.contains(_)?h.current=_:tn(h.current,{select:!0})},x=function(y){if(f.paused||!a)return;const _=y.relatedTarget;_!==null&&(a.contains(_)||tn(h.current,{select:!0}))},w=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&tn(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const g=new MutationObserver(w);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),g.disconnect()}}},[n,a,f.paused]),p.useEffect(()=>{if(a){Gg.add(f);const v=document.activeElement;if(!a.contains(v)){const w=new CustomEvent(Yc,qg);a.addEventListener(Yc,c),a.dispatchEvent(w),w.defaultPrevented||(zO(HO(ib(a)),{select:!0}),document.activeElement===v&&tn(a))}return()=>{a.removeEventListener(Yc,c),setTimeout(()=>{const w=new CustomEvent(Qc,qg);a.addEventListener(Qc,d),a.dispatchEvent(w),w.defaultPrevented||tn(v??document.body,{select:!0}),a.removeEventListener(Qc,d),Gg.remove(f)},0)}}},[a,c,d,f]);const b=p.useCallback(v=>{if(!r&&!n||f.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(x&&w){const g=v.currentTarget,[y,_]=UO(g);y&&_?!v.shiftKey&&w===_?(v.preventDefault(),r&&tn(y,{select:!0})):v.shiftKey&&w===y&&(v.preventDefault(),r&&tn(_,{select:!0})):w===g&&v.preventDefault()}},[r,n,f.paused]);return u.jsx(pe.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});Sp.displayName=FO;function zO(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(tn(n,{select:t}),document.activeElement!==r)return}function UO(e){const t=ib(e),r=Kg(t,e),n=Kg(t.reverse(),e);return[r,n]}function ib(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Kg(e,t){for(const r of e)if(!BO(r,{upTo:t}))return r}function BO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function VO(e){return e instanceof HTMLInputElement&&"select"in e}function tn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&VO(e)&&t&&e.select()}}var Gg=WO();function WO(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Yg(e,t),e.unshift(t)},remove(t){var r;e=Yg(e,t),(r=e[0])==null||r.resume()}}}function Yg(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function HO(e){return e.filter(t=>t.tagName!=="A")}var Jc=0;function ab(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qg()),document.body.insertAdjacentElement("beforeend",e[1]??Qg()),Jc++,()=>{Jc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jc--}},[])}function Qg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Uh=function(e,t){return Uh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Uh(e,t)};function lb(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Uh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var It=function(){return It=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},It.apply(this,arguments)};function Ln(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function ub(e,t,r,n){var s=arguments.length,o=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function cb(e,t){return function(r,n){t(r,n,e)}}function db(e,t,r,n,s,o){function i(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var a=n.kind,l=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),h,m=!1,f=r.length-1;f>=0;f--){var b={};for(var v in n)b[v]=v==="access"?{}:n[v];for(var v in n.access)b.access[v]=n.access[v];b.addInitializer=function(w){if(m)throw new TypeError("Cannot add initializer
vendor: 5,670 bytes, line 279
279s after decoration has completed");o.push(i(w||null))};var x=(0,r[f])(a==="accessor"?{get:d.get,set:d.set}:d[l],b);if(a==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(h=i(x.get))&&(d.get=h),(h=i(x.set))&&(d.set=h),(h=i(x.init))&&s.unshift(h)}else(h=i(x))&&(a==="field"?s.unshift(h):d[l]=h)}c&&Object.defineProperty(c,n.name,d),m=!0}function hb(e,t,r){for(var n=arguments.length>2,s=0;s<t.length;s++)r=n?t[s].call(e,r):t[s].call(e);return n?r:void 0}function fb(e){return typeof e=="symbol"?e:"".concat(e)}function pb(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function mb(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function V(e,t,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{c(n.next(d))}catch(h){i(h)}}function l(d){try{c(n.throw(d))}catch(h){i(h)}}function c(d){d.done?o(d.value):s(d.value).then(a,l)}c((n=n.apply(e,t||[])).next())})}function gb(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=a(0),i.throw=a(1),i.return=a(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(c){return function(d){return l([c,d])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(r=0)),r;)try{if(n=1,s&&(o=c[0]&2?s.return:c[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;switch(s=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,s=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(d){c=[6,d],s=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Zu=Object.create?function(e,t,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function vb(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Zu(t,e,r)}function pu(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function kp(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,o=[],i;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)o.push(s.value)}catch(a){i={error:a}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function yb(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(kp(arguments[t]));return e}function wb(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),s=0,t=0;t<r;t++)for(var o=arguments[t],i=0,a=o.length;i<a;i++,s++)n[s]=o[i];return n}function jp(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,o;n<s;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Io(e){return this instanceof Io?(this.v=e,this):new Io(e)}function xb(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),s[Symbol.asyncIterator]=function(){return this},s;function i(f){return function(b){return Promise.resolve(b).then(f,h)}}function a(f,b){n[f]&&(s[f]=function(v){return new Promise(function(x,w){o.push([f,v,x,w])>1||l(f,v)})},b&&(s[f]=b(s[f])))}function l(f,b){try{c(n[f](b))}catch(v){m(o[0][3],v)}}function c(f){f.value instanceof Io?Promise.resolve(f.value.v).then(d,h):m(o[0][2],f)}function d(f){l("next",f)}function h(f){l("throw",f)}function m(f,b){f(b),o.shift(),o.length&&l(o[0][0],o[0][1])}}function bb(e){var t,r;return t={},n("next"),n("throw",function(s){throw s}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(s,o){t[s]=e[s]?function(i){return(r=!r)?{value:Io(e[s](i)),done:!1}:o?o(i):i}:o}}function _b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof pu=="function"?pu(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(i){return new Promise(function(a,l){i=e[o](i),s(a,l,i.done,i.value)})}}function s(o,i,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},i)}}function Eb(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var qO=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Bh=function(e){return Bh=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Bh(e)};
vendor: 2,854 bytes, line 279
279function Sb(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Bh(e),n=0;n<r.length;n++)r[n]!=="default"&&Zu(t,e,r[n]);return qO(t,e),t}function kb(e){return e&&e.__esModule?e:{default:e}}function jb(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Cb(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r}function Tb(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Pb(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var KO=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function Rb(e){function t(o){e.error=e.hasError?new KO(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function s(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(s,function(i){return t(i),s()})}else n|=1}catch(i){t(i)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s()}function Ob(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,s,o,i){return n?t?".jsx":".js":s&&(!o||!i)?r:s+o+"."+i.toLowerCase()+"js"}):e}const GO={__extends:lb,__assign:It,__rest:Ln,__decorate:ub,__param:cb,__esDecorate:db,__runInitializers:hb,__propKey:fb,__setFunctionName:pb,__metadata:mb,__awaiter:V,__generator:gb,__createBinding:Zu,__exportStar:vb,__values:pu,__read:kp,__spread:yb,__spreadArrays:wb,__spreadArray:jp,__await:Io,__asyncGenerator:xb,__asyncDelegator:bb,__asyncValues:_b,__makeTemplateOb
vendor: 5,740 bytes, lines 279-294
279ject:Eb,__importStar:Sb,__importDefault:kb,__classPrivateFieldGet:jb,__classPrivateFieldSet:Cb,__classPrivateFieldIn:Tb,__addDisposableResource:Pb,__disposeResources:Rb,__rewriteRelativeImportExtension:Ob},YO=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Pb,get __assign(){return It},__asyncDelegator:bb,__asyncGenerator:xb,__asyncValues:_b,__await:Io,__awaiter:V,__classPrivateFieldGet:jb,__classPrivateFieldIn:Tb,__classPrivateFieldSet:Cb,__createBinding:Zu,__decorate:ub,__disposeResources:Rb,__esDecorate:db,__exportStar:vb,__extends:lb,__generator:gb,__importDefault:kb,__importStar:Sb,__makeTemplateObject:Eb,__metadata:mb,__param:cb,__propKey:fb,__read:kp,__rest:Ln,__rewriteRelativeImportExtension:Ob,__runInitializers:hb,__setFunctionName:pb,__spread:yb,__spreadArray:jp,__spreadArrays:wb,__values:pu,default:GO},Symbol.toStringTag,{value:"Module"}));var Pl="right-scroll-bar-position",Rl="width-before-scroll-bar",QO="with-scroll-bars-hidden",JO="--removed-body-scroll-bar-size";function Xc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function XO(e,t){var r=p.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=t,r.facade}var ZO=typeof window<"u"?p.useLayoutEffect:p.useEffect,Jg=new WeakMap;function e2(e,t){var r=XO(null,function(n){return e.forEach(function(s){return Xc(s,n)})});return ZO(function(){var n=Jg.get(r);if(n){var s=new Set(n),o=new Set(e),i=r.current;s.forEach(function(a){o.has(a)||Xc(a,null)}),o.forEach(function(a){s.has(a)||Xc(a,i)})}Jg.set(r,e)},[e]),r}function t2(e){return e}function r2(e,t){t===void 0&&(t=t2);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(a){return o(a)},filter:function(){return r}}},assignMedium:function(o){n=!0;var i=[];if(r.length){var a=r;r=[],a.forEach(o),i=r}var l=function(){var d=i;i=[],d.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),r}}}};return s}function n2(e){e===void 0&&(e={});var t=r2(null);return t.options=It({async:!0,ssr:!1},e),t}var Nb=function(e){var t=e.sideCar,r=Ln(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return p.createElement(n,It({},r))};Nb.isSideCarExport=!0;function s2(e,t){return e.useMedium(t),Nb}var Ab=n2(),Zc=function(){},ec=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:Zc,onWheelCapture:Zc,onTouchMoveCapture:Zc}),s=n[0],o=n[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,h=e.shards,m=e.sideCar,f=e.noRelative,b=e.noIsolation,v=e.inert,x=e.allowPinchZoom,w=e.as,g=w===void 0?"div":w,y=e.gapMode,_=Ln(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,k=e2([r,t]),j=It(It({},_),s);return p.createElement(p.Fragment,null,d&&p.createElement(E,{sideCar:Ab,removeScrollBar:c,shards:h,noRelative:f,noIsolation:b,inert:v,setCallbacks:o,allowPinchZoom:!!x,lockRef:r,gapMode:y}),i?p.cloneElement(p.Children.only(a),It(It({},j),{ref:k})):p.createElement(g,It({},j,{className:l,ref:k}),a))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ec.classNames={fullWidth:Rl,zeroRight:Pl};var o2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function i2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o2();return t&&e.setAttribute("nonce",t),e}function a2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function l2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var u2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=i2())&&(a2(t,r),l2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},c2=function(){var e=u2();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ib=function(){var e=c2(),t=function(r){var n=r.styles,s=r.dynamic;return e(n,s),null};return t},d2={left:0,top:0,right:0,gap:0},ed=function(e){return parseInt(e||"",10)||0},h2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[ed(r),ed(n),ed(s)]},f2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return d2;var t=h2(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},p2=Ib(),lo="data-scroll-locked",m2=function(e,t,r,n){var s=e.left,o=e.top,i=e.right,a=e.gap;return r===void 0&&(r="margin"),`
280  .`.concat(QO,` {
281   overflow: hidden `).concat(n,`;
282   padding-right: `).concat(a,"px ").concat(n,`;
283  }
284  body[`).concat(lo,`] {
285    overflow: hidden `).concat(n,`;
286    overscroll-behavior: contain;
287    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
288    padding-left: `.concat(s,`px;
289    padding-top: `).concat(o,`px;
290    padding-right: `).concat(i,`px;
291    margin-left:0;
292    margin-top:0;
293    margin-right: `).concat(a,"px ").concat(n,`;
294    `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";
294")].filter(Boolean).join(""),`
295  }
296  
297  .`).concat(Pl,` {
298    right: `).concat(a,"px ").concat(n,`;
299  }
300  
301  .`).concat(Rl,` {
302    margin-right: `).concat(a,"px ").concat(n,`;
303  }
304  
305  .`).concat(Pl," .").concat(Pl,` {
306    right: 0 `).concat(n,`;
307  }
308  
309  .`).concat(Rl," .").concat(Rl,` {
310    margin-right: 0 `).concat(n,`;
311  }
312  
313  body[`).concat(lo,`] {
314    `).concat(JO,": ").concat(a,`px;
315  }
316`)},Xg=function(){var e=parseInt(document.body.getAttribute(lo)||"0",10);return isFinite(e)?e:0},g2=function(){p.useEffect(function(){return document.body.setAttribute(lo,(Xg()+1).toString()),function(){var e=Xg()-1;e<=0?document.body.removeAttribute(lo):document.body.setAttribute(lo,e.toString())}},[])},v2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,s=n===void 0?"margin":n;g2();var o=p.useMemo(function(){return f2(s)},[s]);return p.createElement(p2,{styles:m2(o,!t,s,r?"":"!important")})},Vh=!1;if(typeof window<"u")try{var Ja=Object.defineProperty({},"passive",{get:function(){return Vh=!0,!0}});window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Vh=!1}var Ps=Vh?{passive:!1}:!1,y2=function(e){return e.tagName==="TEXTAREA"},Db=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!y2(e)&&r[t]==="visible")},w2=function(e){return Db(e,"overflowY")},x2=function(e){return Db(e,"overflowX")},Zg=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=Mb(e,n);if(s){var o=Lb(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},b2=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},_2=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Mb=function(e,t){return e==="v"?w2(t):x2(t)},Lb=function(e,t){return e==="v"?b2(t):_2(t)},E2=function(e,t){return e==="h"&&t==="rtl"?-1:1},S2=function(e,t,r,n,s){var o=E2(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,l=t.contains(a),c=!1,d=i>0,h=0,m=0;do{if(!a)break;var f=Lb(e,a),b=f[0],v=f[1],x=f[2],w=v-x-o*b;(b||w)&&Mb(e,a)&&(h+=w,m+=b);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(m)<1||!s))&&(c=!0),c},Xa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ev=function(e){return[e.deltaX,e.deltaY]},tv=function(e){return e&&"current"in e?e.current:e},k2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},j2=function(e){return`
317  .block-interactivity-`.concat(e,` {pointer-events: none;}
318  .allow-interactivity-`).concat(e,` {pointer-events: all;}
319`)},C2=0,Rs=[];function T2(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),s=p.useState(C2++)[0],o=p.useState(Ib)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var v=jp([e.lockRef.current],(e.shards||[]).map(tv),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var w=Xa(v),g=r.current,y="deltaX"in v?v.deltaX:g[0]-w[0],_="deltaY"in v?v.deltaY:g[1]-w[1],E,k=v.target,j=Math.abs(y)>Math.abs(_)?"h":"v";if("touches"in v&&j==="h"&&k.type==="range")return!1;var P=Zg(j,k);if(!P)return!0;if(P?E=j:(E=j==="v"?"h":"v",P=Zg(j,k)),!P)return!1;if(!n.current&&"changedTouches"in v&&(y||_)&&(n.current=E),!E)return!0;var A=n.current||E;return S2(A,x,v,A==="h"?y:_,!0)},[]),l=p.useCallback(function(v){var x=v;if(!(!Rs.length||Rs[Rs.length-1]!==o)){var w="deltaY"in x?ev(x):Xa(x),g=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&k2(E.delta,w)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}
vendor: 4,332 bytes, line 319
319if(!g){var y=(i.current.shards||[]).map(tv).filter(Boolean).filter(function(E){return E.contains(x.target)}),_=y.length>0?a(x,y[0]):!i.current.noIsolation;_&&x.cancelable&&x.preventDefault()}}},[]),c=p.useCallback(function(v,x,w,g){var y={name:v,delta:x,target:w,should:g,shadowParent:P2(w)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(_){return _!==y})},1)},[]),d=p.useCallback(function(v){r.current=Xa(v),n.current=void 0},[]),h=p.useCallback(function(v){c(v.type,ev(v),v.target,a(v,e.lockRef.current))},[]),m=p.useCallback(function(v){c(v.type,Xa(v),v.target,a(v,e.lockRef.current))},[]);p.useEffect(function(){return Rs.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Ps),document.addEventListener("touchmove",l,Ps),document.addEventListener("touchstart",d,Ps),function(){Rs=Rs.filter(function(v){return v!==o}),document.removeEventListener("wheel",l,Ps),document.removeEventListener("touchmove",l,Ps),document.removeEventListener("touchstart",d,Ps)}},[]);var f=e.removeScrollBar,b=e.inert;return p.createElement(p.Fragment,null,b?p.createElement(o,{styles:j2(s)}):null,f?p.createElement(v2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function P2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const R2=s2(Ab,T2);var Cp=p.forwardRef(function(e,t){return p.createElement(ec,It({},e,{ref:t,sideCar:R2}))});Cp.classNames=ec.classNames;var O2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Os=new WeakMap,Za=new WeakMap,el={},td=0,$b=function(e){return e&&(e.host||$b(e.parentNode))},N2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=$b(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},A2=function(e,t,r,n){var s=N2(t,Array.isArray(e)?e:[e]);el[r]||(el[r]=new WeakMap);var o=el[r],i=[],a=new Set,l=new Set(s),c=function(h){!h||a.has(h)||(a.add(h),c(h.parentNode))};s.forEach(c);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))d(m);else try{var f=m.getAttribute(n),b=f!==null&&f!=="false",v=(Os.get(m)||0)+1,x=(o.get(m)||0)+1;Os.set(m,v),o.set(m,x),i.push(m),v===1&&b&&Za.set(m,!0),x===1&&m.setAttribute(r,"true"),b||m.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",m,w)}})};return d(t),a.clear(),td++,function(){i.forEach(function(h){var m=Os.get(h)-1,f=o.get(h)-1;Os.set(h,m),o.set(h,f),m||(Za.has(h)||h.removeAttribute(n),Za.delete(h)),f||h.removeAttribute(r)}),td--,td||(Os=new WeakMap,Os=new WeakMap,Za=new WeakMap,el={})}},Fb=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=O2(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),A2(n,s,r,"aria-hidden")):function(){return null}},tc="Dialog",[zb,a$]=Mn(tc),[I2,or]=zb(tc),Ub=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=p.useRef(null),l=p.useRef(null),[c,d]=ga({prop:n,defaultProp:s??!1,onChange:o,caller:tc});return u.jsx(I2,{scope:t,triggerRef:a,contentRef:l,contentId:cs(),titleId:cs(),descriptionId:cs(),open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(h=>!h),[d]),modal:i,children:r})};Ub.displayName=tc;var Bb="DialogTrigger",Vb=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=or(Bb,r),o=Ae(t,s.triggerRef);return u.jsx(pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Rp(s.open),...n,ref:o,onClick:q(e.onClick,s.onOpenToggle)})});Vb.displayName=Bb;var Tp="DialogPortal",[D2,Wb]=zb(Tp,{forceMount:void 0}),Hb=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:s}=e,o=or(Tp,t);return u.jsx(D2,{scope:t,forceMount:r,children:p.Children.map(n,i=>u.jsx(xr,{present:r||o.open,children:u.jsx(zu,{asChild:!0,container:s,children:i})}))})};Hb.displayName=Tp;var mu="DialogOverlay",qb=p.forwardRef((e,t)=>{const r=Wb(mu,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=or(mu,e.__scopeDialog);return o.modal?u.jsx(xr,{present:n||o.open,children:u.jsx(L2,{...s,ref:t})}):null});qb.displayName=mu;var M2=Ro("DialogOverlay.RemoveScroll"),L2=p.forwardRef((e,t)=>
vendor: 3,984 bytes, lines 319-323
319{const{__scopeDialog:r,...n}=e,s=or(mu,r);return u.jsx(Cp,{as:M2,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(pe.div,{"data-state":Rp(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ys="DialogContent",Kb=p.forwardRef((e,t)=>{const r=Wb(ys,e.__scopeDialog),{forceMount:n=r.forceMount,...s}=e,o=or(ys,e.__scopeDialog);return u.jsx(xr,{present:n||o.open,children:o.modal?u.jsx($2,{...s,ref:t}):u.jsx(F2,{...s,ref:t})})});Kb.displayName=ys;var $2=p.forwardRef((e,t)=>{const r=or(ys,e.__scopeDialog),n=p.useRef(null),s=Ae(t,r.contentRef,n);return p.useEffect(()=>{const o=n.current;if(o)return Fb(o)},[]),u.jsx(Gb,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:q(e.onFocusOutside,o=>o.preventDefault())})}),F2=p.forwardRef((e,t)=>{const r=or(ys,e.__scopeDialog),n=p.useRef(!1),s=p.useRef(!1);return u.jsx(Gb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),o.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:o=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((c=r.triggerRef.current)==null?void 0:c.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Gb=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=or(ys,r),l=p.useRef(null),c=Ae(t,l);return ab(),u.jsxs(u.Fragment,{children:[u.jsx(Sp,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:o,children:u.jsx(ma,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Rp(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(z2,{titleId:a.titleId}),u.jsx(B2,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Pp="DialogTitle",Yb=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=or(Pp,r);return u.jsx(pe.h2,{id:s.titleId,...n,ref:t})});Yb.displayName=Pp;var Qb="DialogDescription",Jb=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=or(Qb,r);return u.jsx(pe.p,{id:s.descriptionId,...n,ref:t})});Jb.displayName=Qb;var Xb="DialogClose",Zb=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=or(Xb,r);return u.jsx(pe.button,{type:"button",...n,ref:t,onClick:q(e.onClick,()=>s.onOpenChange(!1))})});Zb.displayName=Xb;function Rp(e){return e?"open":"closed"}var e_="DialogTitleWarning",[l$,t_]=Fk(e_,{contentName:ys,titleName:Pp,docsSlug:"dialog"}),z2=({titleId:e})=>{const t=t_(e_),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
320
321If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
322
323For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},U2="DialogDescriptionWarning",B2=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${t_(U2).contentName}}.`;return p.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},V2=Ub,W2=Vb,H2=Hb,r_=qb,n_=Kb,s_=Yb,o_=Jb,q2=Zb;const K2=V2,G2=W2,Y2=H2,i_=p.forwardRef(({className:e,...t},r)=>u.jsx(r_,{className:Oe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));
323i_.displayName=r_.displayName;const Q2=sp("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),a_=p.forwardRef(({side:e="right",className:t,children:r,...n},s)=>u.jsxs(Y2,{children:[u.jsx(i_,{}),u.jsxs(n_,{ref:s,className:Oe(Q2({side:e}),t),...n,children:[r,u.jsxs(q2,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[u.jsx(Yw,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));a_.displayName=n_.displayName;const J2=({className:e,...t})=>u.jsx("div",{className:Oe("flex flex-col space-y-2 text-center sm:text-left",e),...t});J2.displayName="SheetHeader";const X2=p.forwardRef(({className:e,...t},r)=>u.jsx(s_,{ref:r,className:Oe("text-lg font-semibold text-foreground",e),...t}));X2.displayName=s_.displayName;const Z2=p.forwardRef(({className:e,...t},r)=>u.jsx(o_,{ref:r,className:Oe("text-sm text-muted-foreground",e),...t}));Z2.displayName=o_.displayName;const gu=p.forwardRef(({className:e,activeClassName:t,pendingClassName:r,to:n,...s},o)=>{const i=()=>{window.scrollTo({top:0,behavior:"instant"})};return u.jsx(IO,{ref:o,to:n,onClick:i,className:({isActive:a,isPending:l})=>Oe(e,a&&t,l&&r),...s})});gu.displayName="NavLink";const eN=({variant:e="dark"}={})=>{const t=_r(),r=xa(),n=t.pathname==="/",[s,o]=p.useState(!1),[i,a]=p.useState(!1),l=e==="light"?"md:hidden text-foreground hover:bg-foreground
323/5 transition-colors rounded-full border border-foreground/15 bg-transparent h-10 w-10":"md:hidden text-white hover:bg-white/10 transition-colors rounded-full border border-white/20 bg-transparent h-10 w-10",c=h=>{o(!1),n?setTimeout(()=>{var m;(m=document.getElementById(h))==null||m.scrollIntoView({behavior:"smooth"})},300):r(`/#${h}`)},d=[{to:"/our-courses",label:"Free Courses",desc:"Government-funded qualifications"},{to:"/london-courses",label:"London Courses",desc:"Level 3 Diplomas for Greater London"},{to:"/apprenticeships",label:"Apprenticeships",desc:"Earn while you learn"},{to:"/employers",label:"For Employers",desc:"Hire trained, vetted talent"},{to:"/work-with-us",label:"Partner With Us",desc:"Schools, councils & charities"}];return u.jsxs(K2,{open:s,onOpenChange:o,children:[u.jsx(G2,{asChild:!0,children:u.jsx(ao,{variant:"ghost",size:"icon",className:l,"aria-label":"Open navigation menu",children:u.jsx(Hj,{className:"h-[18px] w-[18px]",strokeWidth:1.75})})}),u.jsxs(a_,{side:"right",className:"w-[90vw] sm:w-[400px] p-0 border-0 bg-[hsl(210,42%,11%)] text-white overflow-hidden [&>button]:top-6 [&>button]:right-6 [&>button]:text-white/60 [&>button]:hover:text-white [&>button]:opacity-100",children:[u.jsxs("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",children:[u.jsx("div",{className:"absolute -top-40 -right-32 h-80 w-80 rounded-full bg-secondary/[0.08] blur-3xl"}),u.jsx("div",{className:"absolute bottom-0 -left-24 h-72 w-72 rounded-full bg-primary/[0.12] blur-3xl"})]}),u.jsxs("div",{className:"relative flex flex-col h-full",children:[u.jsxs("div",{className:"px-7 pt-8 pb-6",children:[u.jsxs("div",{className:"flex items-baseline gap-2",children:[u.jsx("span",{className:"text-[10px] font-medium tracking-[0.28em] text-secondary uppercase",children:"Truworx"}),u.jsx("span",{className:"h-px flex-1 bg-white/10 translate-y-[-2px]"})]}),u.jsxs("h2",{className:"mt-3 font-serif text-[28px] leading-tight tracking-tight text-white",children:["Your next",u.jsx("br",{}),"chapter starts here."]})]}),u.jsxs("nav",{className:"flex-1 overflow-y-auto px-3 pb-4",children:[u.jsx("div",{className:"px-4 pb-2 text-[10px] font-semibold tracking-[0.22em] text-white/35 uppercase",children:"Explore"}),u.jsx("div",{className:"flex flex-col",children:d.map(({to:h,label:m,desc:f},b)=>u.jsxs(gu,{to:h,onClick:()=>o(!1),className:"group relative flex items-center gap-4 px-4 py-4 border-t border-white/[0.06] first:border-t-0 hover:bg-white/[0.025] transition-colors",activeClassName:"bg-white/[0.04]",children:[u.jsx("span",{className:"font-serif text-[13px] text-white/30 tabular-nums w-5",children:String(b+1).padStart(2,"0")}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("div",{className:"text-[16px] font-medium text-white tracking-tight leading-tight",children:m}),u.jsx("div",{className:"text-[12px] text-white/45 mt-0.5",children:f})]}),u.jsx(su,{className:"h-4 w-4 text-white/30 group-hover:text-secondary group-hover:-translate-y-0.5 group-hover:translate-x-0.5 transition-all",strokeWidth:1.75})]},h))}),u.jsx("div",{className:"mt-6 px-4 pb-2 text-[10px] font-semibold tracking-[0.22em] text-white/35 uppercase",children:"Career Tools"}),u.jsxs("button",{onClick:()=>a(!i),className:"w-full flex items-center gap-3 px-4 py-3 text-left border-t border-white/[0.06] hover:bg-white/[0.025] transition-colors",children:[u.jsx(Qj,{className:"h-4 w-4 text-secondary",strokeWidth:1.75}),u.jsx("span",{className:"flex-1 text-[14px] font-medium text-white/85",children:"Free tools for learners"}),u.jsx(Cl,{className:`h-4 w-4 text-white/40 transition-transform duration-300 ${i?"rotate-180":""}`,strokeWidth:1.75})]}),i&&u.jsxs("div",{className:"grid grid-cols-2 gap-1.5 px-3 pt-3 pb-1 animate-in fade-in slide-in-from-top-1 duration-200",children:[[{to:"/cv-assistant",icon:Hw,label:"CV Builder"},{to:"/job-search",icon:Kw,label:"Job Search"},{to:"/career-quiz",icon:Hi,label:"Career Quiz"},{to:"/dbs-guide",icon:Gw,label:"DBS Guide"},{to:"/placement-finder",icon:ph,label:"Find Schools"},{to:"/success-stories",icon:ip,label:"Stories"}].map(({to:h,icon:m,label:f})=>u.jsxs($e,{to:h,onClick:()=>o(!1),className:"flex flex-col gap-1.5 p-3 rounded-lg bg-white/[0.03] hover:bg-white/[0.06] border border-white/[0.04] transition-colors",children:[u.jsx(m,{className:"h-3.5 w-3.5 text-secondary/80",strokeWidth:1.75}),u.jsx("span",{className:"text-[12px] font-medium text-white/80 leading-tight",children:f})]},h)),u.jsxs("div",{className:"flex flex-col gap-1.5 p-3 rounded-lg bg-white/[0.02] border border-white/[0.04] opacity-60",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(qw,{className:"h-3.5 w-3.5 text-white/40",strokeWidth:1.75}),u.jsx("span",{className:"text-[8px] font-semibold tracking-wider text-secondary/80 uppercase",children:"Soon"})]}),u.jsx("span",{className:"text-[12px] font-medium text-white/55 leading-tight",children:"Interview AI"})]})]}),u.jsx("div",{className:"mt-6 px-4 pb-2 text-[10px] font-semibold tracking-[0.22em] text-white/35 uppercase",children:"Support"}),u.jsxs("button",{onClick:()=>c("faqs"),className:"w-full flex items-center gap-3 px-4 py-3 text-left border-t border-white/[0.06] hover:bg-white/[0.025] transition-colors",children:[u.jsx(Ww,{className:"h-4 w-4 text-secondary",strokeWidth:1.75}),u.jsx("span",{className:"flex-1 text-[14px] font-medium text-white/85",children:"Frequently asked questions"}),u.jsx(Vw,{className:"h-4 w-4 text-white/30",strokeWidth:1.75})]})]}),u.jsx("div",{className:"relative border-t border-white/[0.08] bg-black/30 backdrop-blur-sm",children:u.jsxs("a",{href:"tel:02035144890",className:"flex items-center gap-4 px-7 py-5 group hover:bg-white/[0.02] transition-colors",children:[u.jsx("span",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-secondary text-primary group-hover:scale-105 transition-transform",children:u.jsx(qj,{
vendor: 17,925 bytes, line 323
323className:"h-4 w-4",strokeWidth:2})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("div",{className:"text-[10px] font-semibold tracking-[0.22em] text-white/45 uppercase",children:"Speak to an advisor"}),u.jsx("div",{className:"text-white text-[15px] font-medium tracking-tight mt-0.5",children:"020 3514 4890"})]}),u.jsx(su,{className:"h-4 w-4 text-white/40 group-hover:text-secondary transition-colors",strokeWidth:1.75})]})})]})]})]})};var tN=p.createContext(void 0);function l_(e){const t=p.useContext(tN);return e||t||"ltr"}var rd="rovingFocusGroup.onEntryFocus",rN={bubbles:!1,cancelable:!0},ba="RovingFocusGroup",[Wh,u_,nN]=Zf(ba),[sN,c_]=Mn(ba,[nN]),[oN,iN]=sN(ba),d_=p.forwardRef((e,t)=>u.jsx(Wh.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Wh.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(aN,{...e,ref:t})})}));d_.displayName=ba;var aN=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...h}=e,m=p.useRef(null),f=Ae(t,m),b=l_(o),[v,x]=ga({prop:i,defaultProp:a??null,onChange:l,caller:ba}),[w,g]=p.useState(!1),y=kt(c),_=u_(r),E=p.useRef(!1),[k,j]=p.useState(0);return p.useEffect(()=>{const P=m.current;if(P)return P.addEventListener(rd,y),()=>P.removeEventListener(rd,y)},[y]),u.jsx(oN,{scope:r,orientation:n,dir:b,loop:s,currentTabStopId:v,onItemFocus:p.useCallback(P=>x(P),[x]),onItemShiftTab:p.useCallback(()=>g(!0),[]),onFocusableItemAdd:p.useCallback(()=>j(P=>P+1),[]),onFocusableItemRemove:p.useCallback(()=>j(P=>P-1),[]),children:u.jsx(pe.div,{tabIndex:w||k===0?-1:0,"data-orientation":n,...h,ref:f,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{E.current=!0}),onFocus:q(e.onFocus,P=>{const A=!E.current;if(P.target===P.currentTarget&&A&&!w){const N=new CustomEvent(rd,rN);if(P.currentTarget.dispatchEvent(N),!N.defaultPrevented){const U=_().filter(H=>H.focusable),D=U.find(H=>H.active),K=U.find(H=>H.id===v),re=[D,K,...U].filter(Boolean).map(H=>H.ref.current);p_(re,d)}}E.current=!1}),onBlur:q(e.onBlur,()=>g(!1))})})}),h_="RovingFocusGroupItem",f_=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:o,children:i,...a}=e,l=cs(),c=o||l,d=iN(h_,r),h=d.currentTabStopId===c,m=u_(r),{onFocusableItemAdd:f,onFocusableItemRemove:b,currentTabStopId:v}=d;return p.useEffect(()=>{if(n)return f(),()=>b()},[n,f,b]),u.jsx(Wh.ItemSlot,{scope:r,id:c,focusable:n,active:s,children:u.jsx(pe.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:q(e.onMouseDown,x=>{n?d.onItemFocus(c):x.preventDefault()}),onFocus:q(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const w=cN(x,d.orientation,d.dir);if(w!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let y=m().filter(_=>_.focusable).map(_=>_.ref.current);if(w==="last")y.reverse();else if(w==="prev"||w==="next"){w==="prev"&&y.reverse();const _=y.indexOf(x.currentTarget);y=d.loop?dN(y,_+1):y.slice(_+1)}setTimeout(()=>p_(y))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:v!=null}):i})})});f_.displayName=h_;var lN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uN(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cN(e,t,r){const n=uN(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return lN[n]}function p_(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function dN(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var hN=d_,fN=f_,Hh=["Enter"," "],pN=["ArrowDown","PageUp","Home"],m_=["ArrowUp","PageDown","End"],mN=[...pN,...m_],gN={ltr:[...Hh,"ArrowRight"],rtl:[...Hh,"ArrowLeft"]},vN={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_a="Menu",[Zi,yN,wN]=Zf(_a),[bs,g_]=Mn(_a,[wN,qu,c_]),rc=qu(),v_=c_(),[xN,_s]=bs(_a),[bN,Ea]=bs(_a),y_=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:s,onOpenChange:o,modal:i=!0}=e,a=rc(t),[l,c]=p.useState(null),d=p.useRef(!1),h=kt(o),m=l_(s);return p.useEffect(()=>{const f=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),u.jsx(Cx,{...a,children:u.jsx(xN,{scope:t,open:r,onOpenChange:h,content:l,onContentChange:c,children:u.jsx(bN,{scope:t,onClose:p.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:m,modal:i,children:n})})})};y_.displayName=_a;var _N="MenuAnchor",Op=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,s=rc(r);return u.jsx(Tx,{...s,...n,ref:t})});Op.displayName=_N;var Np="MenuPortal",[EN,w_]=bs(Np,{forceMount:void 0}),x_=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:s}=e,o=_s(Np,t);return u.jsx(EN,{scope:t,forceMount:r,children:u.jsx(xr,{present:r||o.open,children:u.jsx(zu,{asChild:!0,container:s,children:n})})})};x_.displayName=Np;var Lt="MenuContent",[SN,Ap]=bs(Lt),b_=p.forwardRef((e,t)=>{const r=w_(Lt,e.__scopeMenu),{forceMount:n=r.forceMount,...s}=e,o=_s(Lt,e.__scopeMenu),i=Ea(Lt,e.__scopeMenu);return u.jsx(Zi.Provider,{scope:e.__scopeMenu,children:u.jsx(xr,{present:n||o.open,children:u.jsx(Zi.Slot,{scope:e.__scopeMenu,children:i.modal?u.jsx(kN,{...s,ref:t}):u.jsx(jN,{...s,ref:t})})})})}),kN=p.forwardRef((e,t)=>{const r=_s(Lt,e.__scopeMenu),n=p.useRef(null),s=Ae(t,n);return p.useEffect(()=>{const o=n.current;if(o)return Fb(o)},[]),u.jsx(Ip,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:q(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),jN=p.forwardRef((e,t)=>{const r=_s(Lt,e.__scopeMenu);return u.jsx(Ip,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),CN=Ro("MenuContent.ScrollLock"),Ip=p.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:m,onDismiss:f,disableOutsideScroll:b,...v}=e,x=_s(Lt,r),w=Ea(Lt,r),g=rc(r),y=v_(r),_=yN(r),[E,k]=p.useState(null),j=p.useRef(null),P=Ae(t,j,x.onContentChange),A=p.useRef(0),N=p.useRef(""),U=p.useRef(0),D=p.useRef(null),K=p.useRef("right"),$=p.useRef(0),re=b?Cp:p.Fragment,H=b?{as:CN,allowPinchZoom:!0}:void 0,J=T=>{var oe,Er;const L=N.current+T,G=_().filter(ze=>!ze.disabled),B=document.activeElement,Z=(oe=G.find(ze=>ze.ref.current===B))==null?void 0:oe.textValue,ne=G.map(ze=>ze.textValue),_e=FN(ne,L,Z),Te=(Er=G.find(ze=>ze.textValue===_e))==null?void 0:Er.ref.current;(function ze(ir){N.current=ir,window.clearTimeout(A.current),ir!==""&&(A.current=window.setTimeout(()=>ze(""),1e3))})(L),Te&&setTimeout(()=>Te.focus())};p.useEffect(()=>()=>window.clearTimeout(A.current),[]),ab();const R=p.useCallback(T=>{var G,B;return K.current===((G=D.current)==null?void 0:G.side)&&UN(T,(B=D.current)==null?void 0:B.area)},[]);return u.jsx(SN,{scope:r,searchRef:N,onItemEnter:p.useCallback(T=>{R(T)&&T.preventDefault()},[R]),onItemLeave:p.useCallback(T=>{var L;R(T)||((L=j.current)==null||L.focus(),k(null))},[R]),onTriggerLeave:p.useCallback(T=>{R(T)&&T.preventDefault()},[R]),pointerGraceTimerRef:U,onPointerGraceIntentChange:p.useCallback(T=>{D.current=T},[]),children:u.jsx(re,{...H,children:u.jsx(Sp,{asChild:!0,trapped:s,onMountAutoFocus:q(o,T=>{var L;T.preventDefault(),(L=j.current)==null||L.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:u.jsx(ma,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:m,onDismiss:f,children:u.jsx(hN,{asChild:!0,...y,dir:w.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:k,onEntryFocus:q(l,T=>{w.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Px,{role:"menu","aria-orientation":"vertical","data-state":L_(x.open),"data-radix-menu-content":"",dir:w.dir,...g,...v,ref:P,style:{outline:"none",...v.style},onKeyDown:q(v.onKeyDown,T=>{const G=T.target.closest("[data-radix-menu-content]")===T.currentTarget,B=T.ctrlKey||T.altKey||T.metaKey,Z=T.key.length===1;G&&(T.key==="Tab"&&T.preventDefault(),!B&&Z&&J(T.key));const ne=j.current;if(T.target!==ne||!mN.includes(T.key))return;T.preventDefault();const Te=_().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);m_.includes(T.key)&&Te.reverse(),LN(Te)}),onBlur:q(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(A.current),N.current="")}),onPointerMove:q(e.onPointerMove,ea(T=>{const L=T.target,G=$.current!==T.clientX;if(T.currentTarget.contains(L)&&G){const B=T.clientX>$.current?"right":"left";K.current=B,$.current=T.clientX}}))})})})})})})});b_.displayName=Lt;var TN="MenuGroup",Dp=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(pe.div,{role:"group",...n,ref:t})});Dp.displayName=TN;var PN="MenuLabel",__=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(pe.div,{...n,ref:t})});__.displayName=PN;var vu="MenuItem",rv="menu.itemSelect",nc=p.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...s}=e,o=p.useRef(null),i=Ea(vu,e.__scopeMenu),a=Ap(vu,e.__scopeMenu),l=Ae(t,o),c=p.useRef(!1),d=()=>{const h=o.current;if(!r&&h){const m=new CustomEvent(rv,{bubbles:!0,cancelable:!0});h.addEventListener(rv,f=>n==null?void 0:n(f),{once:!0}),ep(h,m),m.defaultPrevented?c.current=!1:i.onClose()}};return u.jsx(E_,{...s,ref:l,disabled:r,onClick:q(e.onClick,d),onPointerDown:h=>{var m;(m=e.onPointerDown)==null||m.call(e,h),c.current=!0},onPointerUp:q(e.onPointerUp,h=>{var m;c.current||(m=h.currentTarget)==null||m.click()}),onKeyDown:q(e.onKeyDown,h=>{const m=a.searchRef.current!=="";r||m&&h.key===" "||Hh.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});nc.displayName=vu;var E_=p.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:s,...o}=e,i=Ap(vu,r),a=v_(r),l=p.useRef(null),c=Ae(t,l),[d,h]=p.useState(!1),[m,f]=p.useState("");return p.useEffect(()=>{const b=l.current;b&&f((b.textContent??"").trim())},[o.children]),u.jsx(Zi.ItemSlot,{scope:r,disabled:n,textValue:s??m,children:u.jsx(fN,{asChild:!0,...a,focusable:!n,children:u.jsx(pe.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:c,onPointerMove:q(e.onPointerMove,ea(b=>{n?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(e.onPointerLeave,ea(b=>i.onItemLeave(b))),onFocus:q(e.onFocus,()=>h(!0)),onBlur:q(e.onBlur,()=>h(!1))})})})}),RN="MenuCheckboxItem",S_=p.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...s}=e;return u.jsx(P_,{scope:e.__scopeMenu,checked:r,children:u.jsx(nc,{role:"menuitemcheckbox","aria-checked":yu(r)?"mixed":r,...s,ref:t,"data-state":Lp(r),onSelect:q(s.onSelect,()=>n==null?void 0:n(yu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});S_.displayName=RN;var k_="MenuRadioGroup",[ON,NN]=bs(k_,{value:void 0,onValueChange:()=>{}}),j_=p.forwardRef((e,t)=>{const{value:r,onValueChange:n,...s}=e,o=kt(n);return u.jsx(ON,{scope:e.__scopeMenu,value:r,onValueChange:o,children:u.jsx(Dp,{...s,ref:t})})});j_.displayName=k_;var C_="MenuRadioItem",T_=p.forwardRef((e,t)=>{const{value:r,...n}=e,s=NN(C_,e.__scopeMenu),o=r===s.value;return u.jsx(P_,{scope:e.__scopeMenu,checked:o,children:u.jsx(nc,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":Lp(o),onSelect:q(n.onSelect,()=>{var i;return(i=s.onValueChange)==null?void 0:i.call(s,r)},{checkForDefaultPrevented:!1})})})});T_.displayName=C_;var Mp="MenuItemIndicator",[P_,AN]=bs(Mp,{checked:!1}),R_=p.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...s}=e,o=AN(Mp,r);return u.jsx(xr,{present:n||yu(o.checked)||o.checked===!0,children:u.jsx(pe.span,{...s,ref:t,"data-state":Lp(o.checked)})})});R_.displayName=Mp;var IN="MenuSeparator",O_=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return u.jsx(pe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});O_.displayName=IN;var DN="MenuArrow",N_=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,s=rc(r);return u.jsx(Rx,{...s,...n,ref:t})});N_.displayName=DN;var MN="MenuSub",[u$,A_]=bs(MN),fi="MenuSubTrigger",I_=p.forwardRef((e,t)=>{const r=_s(fi,e.__scopeMenu),n=Ea(fi,e.__scopeMenu),s=A_(fi,e.__scopeMenu),o=Ap(fi,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=o,c={__scopeMenu:e.__scopeMenu},d=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>d,[d]),p.useEffect(()=>{const h=a.current;return()=>{window.clearTimeout(h),l(null)}},[a,l]),u.jsx(Op,{asChild:!0,...c,children:u.jsx(E_,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":L_(r.open),...e,ref:Fu(t,s.onTriggerChange),onClick:h=>{var m;(m=e.onClick)==null||m.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:q(e.onPointerMove,ea(h=>{o.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:q(e.onPointerLeave,ea(h=>{var f,b;d();const m=(f=r.content)==null?void 0:f.getBoundingClientRect();if(m){const v=(b=r.content)==null?void 0:b.dataset.side,x=v==="right",w=x?-5:5,g=m[x?"left":"right"],y=m[x?"right":"left"];o.onPointerGraceIntentChange({area:[{x:h.clientX+w,y:h.clientY},{x:g,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:g,y:m.bottom}],side:v}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(h),h.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:q(e.onKeyDown,h=>{var f;const m=o.searchRef.current!=="";e.disabled||m&&h.key===" "||gN[n.dir].includes(h.key)&&(r.onOpenChange(!0),(f=r.content)==null||f.focus(),h.preventDefault())})})})});I_.displayName=fi;var D_="MenuSubContent",M_=p.forwardRef((e,t)=>{const r=w_(Lt,e.__scopeMenu),{forceMount:n=r.forceMount,...s}=e,o=_s(Lt,e.__scopeMenu),i=Ea(Lt,e.__scopeMenu),a=A_(D_,e.__scopeMenu),l=p.useRef(null),c=Ae(t,l);return u.jsx(Zi.Provider,{scope:e.__scopeMenu,children:u.jsx(xr,{present:n||o.open,children:u.jsx(Zi.Slot,{scope:e.__scopeMenu,children:u.jsx(Ip,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;i.isUsingKeyboardRef.current&&((h=l.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:q(e.onFocusOutside,d=>{d.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:q(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:q(e.onKeyDown,d=>{var f;const h=d.currentTarget.contains(d.target),m=vN[i.dir].includes(d.key);h&&m&&(o.onOpenChange(!1),(f=a.trigger)==null||f.focus(),d.preventDefault())})})})})})});M_.displayName=D_;function L_(e){return e?"open":"closed"}function yu(e){return e==="indeterminate"}function Lp(e){return yu(e)?"indeterminate":e?"checked":"unchecked"}function LN(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function $N(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function FN(e,t,r){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=$N(e,Math.max(o,0));s.length===1&&(i=i.filter(c=>c!==r));const l=i.find(c=>c.toLowerCase().startsWith(s.toLowerCase()));return l!==r?l:void 0}function zN(e,t){const{x:r,y:n}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o],l=t[i],c=a.x,d=a.y,h=l.x,m=l.y;d>n!=m>n&&r<(h-c)*(n-d)/(m-d)+c&&(s=!s)}return s}function UN(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return zN(r,t)}function ea(e){return t=>t.pointerType==="mouse"?e(t):void 0}var BN=y_,VN=Op,WN=x_,HN=b_,qN=Dp,KN=__,GN=nc,YN=S_,QN=j_,JN=T_,XN=R_,ZN=O_,eA=N_,tA=I_,rA=M_,sc="DropdownMenu",[nA,c$]=Mn(sc,[g_]),at=g_(),[sA,$_]=nA(sc),F_=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:s,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=at(t),c=p.useRef(null),[d,h]=ga({prop:s,defaultProp:o??!1,onChange:i,caller:sc});return u.jsx(sA,{scope:t,triggerId:cs(),triggerRef:c,contentId:cs(),open:d,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(m=>!m),[h]),modal:a,children:u.jsx(BN,{...l,open:d,onOpenChange:h,dir:n,modal:a,children:r})})};F_.displayName=sc;var z_="DropdownMenuTrigger",U_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...s}=e,o=$_(z_,r),i=at(r);return u.jsx(VN,{asChild:!0,...i,children:u.jsx(pe.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:Fu(t,o.triggerRef),onPointerDown:q(e.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:q(e.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});U_.displayName=z_;var oA="DropdownMenuPortal",B_=e=>{const{__scopeDropdownMenu:t,...r}=e,n=at(t);return u.jsx(WN,{...n,...r})};B_.displayName=oA;var V_="DropdownMenuContent",W_=p.forwardRef((e,t)=>
323{const{__scopeDropdownMenu:r,...n}=e,s=$_(V_,r),o=at(r),i=p.useRef(!1);return u.jsx(HN,{id:s.contentId,"aria-labelledby":s.triggerId,...o,...n,ref:t,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var l;i.current||(l=s.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:q(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;(!s.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});W_.displayName=V_;var iA="DropdownMenuGroup",aA=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(qN,{...s,...n,ref:t})});aA.displayName=iA;var lA="DropdownMenuLabel",H_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(KN,{...s,...n,ref:t})});H_.displayName=lA;var uA="DropdownMenuItem",q_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(GN,{...s,...n,ref:t})});q_.displayName=uA;var cA="DropdownMenuCheckboxItem",K_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(YN,{...s,...n,ref:t})});K_.displayName=cA;var dA="DropdownMenuRadioGroup",hA=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(QN,{...s,...n,ref:t})});hA.displayName=dA;var fA="DropdownMenuRadioItem",G_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(JN,{...s,...n,ref:t})});G_.displayName=fA;var pA="DropdownMenuItemIndicator",Y_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(XN,{...s,...n,ref:t})});Y_.displayName=pA;var mA="DropdownMenuSeparator",Q_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(ZN,{...s,...n,ref:t})});Q_.displayName=mA;var gA="DropdownMenuArrow",vA=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(eA,{...s,...n,ref:t})});vA.displayName=gA;var yA="DropdownMenuSubTrigger",J_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(tA,{...s,...n,ref:t})});J_.displayName=yA;var wA="DropdownMenuSubContent",X_=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,s=at(r);return u.jsx(rA,{...s,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});X_.displayName=wA;var xA=F_,bA=U_,_A=B_,Z_=W_,e1=H_,t1=q_,r1=K_,n1=G_,s1=Y_,o1=Q_,i1=J_,a1=X_;const nd=xA,sd=bA,EA=p.forwardRef(({className:e,inset:t,children:r,...n},s)=>u.jsxs(i1,{ref:s,className:Oe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[r,u.jsx(Vw,{className:"ml-auto h-4 w-4"})]}));EA.displayName=i1.displayName;const SA=p.forwardRef(({className:e,...t},r)=>u.jsx(a1,{ref:r,className:Oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));SA.displayName=a1.displayName;const Ol=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(_A,{children:u.jsx(Z_,{ref:n,sideOffset:t,className:Oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
323de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Ol.displayName=Z_.displayName;const gt=p.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(t1,{ref:n,className:Oe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r}));gt.displayName=t1.displayName;const kA=p.forwardRef(({className:e,children:t,checked:r,...n},s)=>u.jsxs(r1,{ref:s,className:Oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:r,...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(s1,{children:u.jsx(Lj,{className:"h-4 w-4"})})}),t]}));kA.displayName=r1.displayName;const jA=p.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(n1,{ref:n,className:Oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(s1,{children:u.jsx(Fj,{className:"h-2 w-2 fill-current"})})}),t]}));jA.displayName=n1.displayName;const CA=p.forwardRef(({className:e,inset:t,...r},n)=>u.jsx(e1,{ref:n,className:Oe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));CA.displayName=e1.displayName;const Nl=p.forwardRef(({className:e,...t},r)=>u.jsx(o1,{ref:r,className:Oe("-mx-1 my-1 h-px bg-muted",e),...t}));Nl.displayName=o1.displayName;const l1=()=>{const e=_r(),t=xa(),r=e.pathname==="/",n=s=>{var o;r?(o=document.getElementById(s))==null||o.scrollIntoView({behavior:"smooth"}):t(`/#${s}`)};return u.jsx("header",{className:"sticky top-0 left-0 right-0 z-50 bg-primary backdrop-blur-xl border-b border-primary/40 shadow-soft transition-all duration-300",children:u.jsxs("div",{className:"container mx-auto px-4 py-2.5 md:py-3 flex items-center justify-between",children:[u.jsx($e,{to:"/","aria-label":"Truworx",className:"flex items-center group",children:u.jsxs("span",{className:"font-black uppercase tracking-tight text-primary-foreground text-2xl md:text-3xl leading-none select-none",children:["Truw",u.jsxs("span",{className:"relative inline-block text-secondary",children:[u.jsxs("span",{"aria-hidden":!0,className:"absolute -top-[0.35em] left-1/2 -translate-x-1/2 flex gap-[0.12em]",children:[u.jsx("span",{className:"block h-[0.14em] w-[0.14em] rounded-full bg-secondary"}),u.jsx("span",{className:"block h-[0.14em] w-[0.14em] rounded-full bg-secondary"})]}),"o"]}),"rx"]})}),u.jsxs("nav",{className:"hidden lg:flex items-center gap-0.5",children:[u.jsxs(nd,{children:[u.jsxs(sd,{className:"text-[13px] font-semibold text-primary-foreground/80 hover:text-primary-foreground px-3 py-2 rounded-lg hover:bg-primary-foreground/10 transition-all flex items-center gap-1 outline-none",children:["Our Courses",u.jsx(Cl,{className:"h-3 w-3 opacity-60"})]}),u.jsxs(Ol,{className:"bg-background border-border min-w-[220px]",children:[u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>t("/our-courses"),children:[u.jsx(Hi,{className:"h-4 w-4 text-primary"})," Free Courses"]}),u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>t("/london-courses"),children:[u.jsx(ph,{className:"h-4 w-4 text-primary"})," London Courses"]})]})]}),u.jsx(gu,{to:"/apprenticeships",className:"text-[13px] font-semibold text-primary-foreground/80 hover:text-primary-foreground px-3 py-2 rounded-lg hover:bg-primary-foreground/10 transition-all",activeClassName:"text-primary-foreground bg-primary-foreground/10 font-bold",children:"Apprenticeships"}),u.jsx(gu,{to:"/employers",className:"text-[13px] font-semibold text-primary-foreground
323/80 hover:text-primary-foreground px-3 py-2 rounded-lg hover:bg-primary-foreground/10 transition-all",activeClassName:"text-primary-foreground bg-primary-foreground/10 font-bold",children:"Employers"}),u.jsxs(nd,{children:[u.jsxs(sd,{className:"text-[13px] font-semibold text-primary-foreground/80 hover:text-primary-foreground px-3 py-2 rounded-lg hover:bg-primary-foreground/10 transition-all flex items-center gap-1 outline-none",children:["Career Tools",u.jsx(Cl,{className:"h-3 w-3 opacity-60"})]}),u.jsxs(Ol,{className:"bg-background border-border min-w-[200px]",children:[u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>t("/cv-assistant"),children:[u.jsx(Hw,{className:"h-4 w-4 text-primary"})," CV Builder"]}),u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>t("/job-search"),children:[u.jsx(Kw,{className:"h-4 w-4 text-primary"})," Job Search"]}),u.jsx(Nl,{className:"bg-border"}),u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>t("/career-quiz"),children:[u.jsx(Hi,{className:"h-4 w-4 text-primary"})," Career Quiz"]}),u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>t("/dbs-guide"),children:[u.jsx(Gw,{className:"h-4 w-4 text-primary"})," DBS Check Guide"]}),u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>t("/placement-finder"),children:[u.jsx(ph,{className:"h-4 w-4 text-primary"})," Find Schools Near You"]}),u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>t("/success-stories"),children:[u.jsx(ip,{className:"h-4 w-4 text-primary"})," Success Stories"]}),u.jsx(Nl,{className:"bg-border"}),u.jsxs(gt,{className:"text-muted-foreground cursor-default gap-2.5 py-2",disabled:!0,children:[u.jsx(qw,{className:"h-4 w-4"})," Interview Practice",u.jsx("span",{className:"ml-auto text-[9px] font-bold bg-muted text-muted-foreground px-1.5 py-0.5 rounded",children:"Soon"})]})]})]}),u.jsxs(nd,{children:[u.jsxs(sd,{className:"text-[13px] font-semibold text-primary-foreground/80 hover:text-primary-foreground px-3 py-2 rounded-lg hover:bg-primary-foreground/10 transition-all flex items-center gap-1 outline-none",children:["About",u.jsx(Cl,{className:"h-3 w-3 opacity-60"})]}),u.jsxs(Ol,{className:"bg-background border-border min-w-[200px]",children:[u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>n("how-it-works"),children:[u.jsx(Uj,{className:"h-4 w-4 text-primary"})," How It Works"]}),u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>{t("/work-with-us")},children:[u.jsx(gh,{className:"h-4 w-4 text-primary"})," Partner With Us"]}),u.jsx(Nl,{className:"bg-border"}),u.jsxs(gt,{className:"text-foreground/90 hover:text-foreground focus:text-foreground focus:bg-muted cursor-pointer gap-2.5 py-2",onClick:()=>n("faqs"),children:[u.jsx(Ww,{className:"h-4 w-4 text-primary"})," FAQs"]})]})]})]}),u.jsx("div",{className:"hidden lg:flex items-center",children:u.jsx($e,{to:"/auth",children:u.jsx(ao,{className:"bg-secondary hover:bg-secondary/90 text-secondary-foreground font-bold text-[13px] border-0 rounded-full px-5 shadow-soft transition-all hover:scale-105",size:"sm",children:"Learner Login"})})}),u.jsx(eN,{})]})})},Ue=({children:e})=>u.jsxs("div",{className:"min-h-screen",children:[u.jsx(l1,{}),u.jsx("main",{children:e})]}),TA=()=>{const{pathname:e,hash:t}=_r();return p.useEffect(()=>{t?setTimeout(()=>{const r=document.getElementById(t.replace("#",""));r&&r.scrollIntoView({behavior:"smooth"})},100):window.scrollTo(0,0)},[e,t]),null},lr=(e,t,r,n)=>{let s=document.head.querySelector(e);s||(s=document.createElement("meta"),s.setAttribute(t,r),document.head.appendChild(s)),s.setAttribute("content",n)},PA=({title:e,description:t,canonical:r,ogImage:n,noindex:s})=>(p.useEffect(()=>{if(s)return lr('meta[name="robots"]',"name","robots","noindex, nofollow"),()=>{lr('meta[name="robots"]',"name","robots","index, follow")}},[s]),p.useEffect(()=>{document.title=e;const o=r||window.location.pathname,i=r!=null&&r.startsWith("http")?r:`https://www.truworx.co.uk${o}`,a=n||"https://www.truworx.co.uk/og-image.jpg";lr('meta[name="description"]',"name","description",t),lr('meta[property="og:title"]',"property","og:title",e),lr('meta[property="og:description"]',"property","og:description",t),lr('meta[property="og:url"]',"property","og:url",i),lr('meta[property="og:image"]',"property","og:image",a),lr('meta[name="twitter:title"]',"name","twitter:title",e),lr('meta[name="twitter:description"]',"name","twitter:description",t),lr('meta[name="twitter:image"]',"name","twitter:image",a);
323let l=document.querySelector('link[rel="canonical"]');l||(l=document.createElement("link"),l.rel="canonical",document.head.appendChild(l)),l.href=i},[e,t,r,n]),null),RA=({data:e})=>(p.useEffect(()=>{var n;const t=document.createElement("script");t.type="application/ld+json",t.textContent=JSON.stringify(e),t.id=`jsonld-${((n=e["@type"])==null?void 0:n.toLowerCase())||"generic"}`;const r=document.getElementById(t.id);return r&&r.remove(),document.head.appendChild(t),()=>{t.remove()}},[e]),null),OA={"@context":"https://schema.org","@type":"EducationalOrganization",name:"Truworx",url:"https://truworx-nextgen.lovable.app",logo:"https://truworx-nextgen.lovable.app/truworx-logo.png",description:"Free government-funded online courses with guaranteed job interviews. Teaching Assistant, SEN, Autism & Mental Health qualifications.",address:{"@type":"PostalAddress",addressCountry:"GB"},sameAs:[]},d$=({name:e,description:t,url:r,level:n})=>({"@context":"https://schema.org","@type":"Course",name:e,description:t,url:`https://truworx-nextgen.lovable.app${r}`,provider:{"@type":"EducationalOrganization",name:"Truworx",url:"https://truworx-nextgen.lovable.app"},educationalLevel:n,isAccessibleForFree:!0,deliveryMode:"online",offers:{"@type":"Offer",price:"0",priceCurrency:"GBP",availability:"https://schema.org/InStock"}}),h$=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}),f$=[{question:"Is the Teaching Assistant course really free?",answer:"Yes, it's 100% government-funded through the Adult Education Budget. There are no hidden fees or costs."},{question:"Do I need any experience to enrol?",answer:"No prior experience is needed. We train you from scratch with full tutor support throughout the course."},{question:"How long does the course take?",answer:"The course runs for 6 weeks, with live online lessons for around 3.5 hours per day, Monday to Friday."},{question:"Is it really 100% online?",answer:"Yes, all lessons are delivered live on Zoom. You can study from home with just a laptop or tablet and an internet connection."},{question:"What qualification will I get?",answer:"You'll earn two NCFE Level 2 qualifications — nationally recognised certificates that are valued by schools across the UK."},{question:"Do I really get a guaranteed job interview?",answer:"Yes. On completion of the course, we connect you with hiring schools in your area for a guaranteed job interview."},{question:"Am I eligible for the free course?",answer:"You're eligible if you're aged 19+, are unemployed or earning under £25,000, and don't already hold a Level 3+ qualification in the same subject."}],NA=()=>{const e=[{name:"Education",icon:op},{name:"Construction",icon:Dj},{name:"Healthcare",icon:Bj},{name:"Security",icon:mh},{name:"Retail",icon:Yj}];return u.jsx("section",{className:"py-16 bg-muted/30 border-y",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center mb-8",children:[u.jsx("h3",{className:"text-2xl font-bold mb-2",children:"We Recruit Learners Into These Industries"}),u.jsx("p",{className:"text-muted-foreground",children:"Training and placing people in growing sectors across the UK"})]}),u.jsx("div",{className:"grid grid-cols-3 md:grid-cols-5 gap-8 items-center justify-items-center max-w-4xl mx-auto",children:e.map((t,r)=>{const n=t.icon;return u.jsxs("div",{className:"flex flex-col items-center gap-2 opacity-70 hover:opacity-100 transition-opacity",children:[u.jsx("div",{className:"w-16 h-16 rounded-lg bg-background border flex items-center justify-center",children:u.jsx(n,{className:"h-8 w-8 text-primary"})}),u.jsx("span",{className:"text-xs font-medium text-center",children:t.name})]},r)})})]})})},AA=()=>u.jsx("footer",{className:"py-8 pb-24 md:pb-8 bg-header text-header-foreground
323/70 border-t border-header/20",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4 text-sm",children:[u.jsxs("div",{className:"flex flex-wrap justify-center gap-6",children:[u.jsx($e,{to:"/our-courses",className:"hover:text-header-foreground transition-colors",children:"Free Courses"}),u.jsx($e,{to:"/apprenticeships",className:"hover:text-header-foreground transition-colors",children:"Apprenticeships"}),u.jsx($e,{to:"/employers",className:"hover:text-header-foreground transition-colors",children:"Employers"}),u.jsx($e,{to:"/contact",className:"hover:text-header-foreground transition-colors",children:"Contact"}),u.jsx($e,{to:"/faq",className:"hover:text-header-foreground transition-colors",children:"FAQs"})]}),u.jsxs("div",{className:"text-header-foreground/40 text-xs text-center md:text-right space-y-1",children:[u.jsxs("p",{children:["© ",new Date().getFullYear()," Truworx Ltd."]}),u.jsx("p",{children:"Truworx Ltd, registered in England and Wales, company no. 12520108."}),u.jsx("p",{children:"Registered office: Office 1, 1 Coldbath Square, London, EC1R 5HL."})]})]})})}),IA=({variant:e="light",className:t=""})=>{const r=e==="dark",n=r?"text-primary-foreground/80":"text-muted-foreground",s="border-border",o=r?"bg-primary":"bg-card",i=[{icon:Bw,label:"NCFE Accredited"},{icon:Vj,label:"ESFA Funded"},{icon:fh,label:"DWP Approved"},{icon:Ij,label:"Job Centre Plus Partner"}];return u.jsx("div",{className:`w-full border-y ${s} ${o} ${t}`,children:u.jsx("div",{className:"container mx-auto px-5 py-4 max-w-6xl",children:u.jsx("ul",{className:`flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-[10px] sm:text-[11px] font-bold ${n}`,children:i.map(({icon:a,label:l})=>u.jsxs("li",{className:"inline-flex items-center gap-2",children:[u.jsx(a,{className:"h-3.5 w-3.5 text-secondary","aria-hidden":!0}),u.jsx("span",{children:l})]},l))})})})},DA={courseStartDate:"Monday 28th September 2026",courseStartDateISO:"2026-09-28",courseEndDate:"Monday 9th November 2026",courseEndDateISO:"2026-11-09",courseDuration:"6 weeks",halfTermStart:"",halfTermEnd:"",halfTermNote:"",applicationDeadline:"Tuesday 22nd September 2026",applicationDeadlineISO:"2026-09-22T12:30:00",isLastCohortOfYear:!1,lastChanceNote:"",infoMeetingDate:"Tuesday 22nd September",infoMeetingDateISO:"2026-09-22"},MA={taOnlineLL:{pageUrl:"/taonline",courseName:"Level 2 Teaching Assistant Course",courseId:"AEA1700",infoMeetingDate:"Fri 2nd Oct",infoMeetingDateFull:"Friday 2nd October",infoMeetingDateISO:"2026-10-02",infoMeetingTime:"10:00 AM",infoMeetingTimeISO:"10:00:00",infoMeetingDateTimeISO:"2026-10-02T10:00:00",courseStartDate:"Monday 19th October 2026",courseStartDateISO:"2026-10-19",courseEndDate:"Friday 27th November 2026",courseEndDateISO:"2026-11-27"},taOnlineWD:{pageUrl:"/taonlinewd",courseName:"Level 2 Teaching Assistant — Online",deliveryLabel:"Live online every weekday · One onsite day a week in Watford",courseId:"AEA1701",infoMeetingDate:"Wed 30th Sept",infoMeetingDateFull:"Wednesday 30th September",infoMeetingDateISO:"2026-09-30",infoMeetingTime:"10:00 AM",infoMeetingTimeISO:"10:00:00",infoMeetingDateTimeISO:"2026-09-30T10:00:00",courseStartDate:"Monday 5th October 2026",courseStartDateISO:"2026-10-05",courseEndDate:"Monday 16th November 2026",courseEndDateISO:"2026-11-16"},taOnlineL3:{pageUrl:"/taonlinel3",courseName:"Free Online L3 SEN Teaching Assistant Course",courseId:"AEA1702",infoMeetingDate:"Fri 2nd Oct",infoMeetingDateFull:"Friday 2nd October",infoMeetingDateISO:"2026-10-02",infoMeetingTime:"10:00 AM",infoMeetingTimeISO:"10:00:00",infoMeetingDateTimeISO:"2026-10-02T10:00:00",courseStartDate:"Monday 19th October 2026",courseStartDateISO:"2026-10-19",courseEndDate:"Friday 27th November 2026",courseEndDateISO:"2026-11-27"},l2cypmhOnline:{pageUrl:"/tacypmhll",courseName:"Free Level 2 Children's Autism & Mental Health",courseId:"AEA1692",infoMeetingDate:"Tue 22nd Sept",infoMeetingDateFull:"Tuesday 22nd September",infoMeetingDateISO:"2026-09-22",infoMeetingTime:"12:00 PM",infoMeetingTimeISO:"12:00:00",infoMeetingDateTimeISO:"2026-09-22T12:00:00",courseStartDate:"Monday 28th September 2026",courseStartDateISO:"2026-09-28",courseEndDate:"Monday 9th November 2026",courseEndDateISO:"2026-11-09"}},LA={level3Sen:{time:"10:00 AM",timeISO:"10:00:00",fullDateISO:"2026-09-22T10:00:00"},level3PersonalTraining:{time:"10:30 AM",timeISO:"10:30:00",fullDateISO:"2026-09-22T10:30:00"},earlyYears:{time:"11:00 AM",timeISO:"11:00:00",fullDateISO:"2026-09-22T11:00:00"},level2SchoolSupport:{time:"11:30 AM",timeISO:"11:30:00",fullDateISO:"2026-09-22T11:30:00"},level2SHJ:{time:"12:00 PM",timeISO:"12:00:00",fullDateISO:"2026-09-22T12:00:00"},cypmh:{time:"12:30 PM",timeISO:"12:30:00",fullDateISO:"2026-09-22T12:30:00"}},p$={meetingId:"864 1557 3084",passcode:"1234",link:"https://us06web.zoom.us/j/86415573084?pwd=rofRUCkqQnuwacb4ewiphrbCmWcK2U.1"},m$={taOnlineLL:{meetingId:"604 467 0738",passcode:"1234",link:"https://us04web.zoom.us/j/6044670738?pwd=bF1aC8abWpGrimhznPaMWLk4ZCUo8w.1&omn=78417463019"},taCypmhLL:{meetingId:"781 7420 1249",passcode:"1234",link:"https://us04web.zoom.us/j/78174201249?pwd=RvbYovMIVgaB7OqeylTuFDtDoi3ITX.1"},taOnlineL3:{meetingId:"788 2124 2508",passcode:"1234",link:"https://us04web.zoom.us/j/78821242508?pwd=m3reLXK99bqVcK38mqOHvBISiFetc3.1"}};function g$(e){return new Date(LA[e].fullDateISO).getTime()}const u1=6048e5,$A=864e5,c1=6e4,d1=36e5,nv=Symbol.for("constructDateFrom");function zr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&nv in e?e[nv](t):e instanceof Date?new e.constructor(t):new Date(t)}function jt(e,t){return zr(t||e,e)}let FA={};function oc(){return FA}function ta(e,t){var a,l,c,d;const r=oc(),n=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=jt(e,t==null?void 0:t.in),o=s.getDay(),i=(o<n?7:0)+o-n;return s.setDate(s.getDate()-i),s.setHours(0,0,0,0),s}function wu(e,t){return ta(e,{...t,weekStartsOn:1}
vendor: 4,097 bytes, line 323
323)}function h1(e,t){const r=jt(e,t==null?void 0:t.in),n=r.getFullYear(),s=zr(r,0);s.setFullYear(n+1,0,4),s.setHours(0,0,0,0);const o=wu(s),i=zr(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=wu(i);return r.getTime()>=o.getTime()?n+1:r.getTime()>=a.getTime()?n:n-1}function sv(e){const t=jt(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function zA(e,...t){const r=zr.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function ov(e,t){const r=jt(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function UA(e,t,r){const[n,s]=zA(r==null?void 0:r.in,e,t),o=ov(n),i=ov(s),a=+o-sv(o),l=+i-sv(i);return Math.round((a-l)/$A)}function BA(e,t){const r=h1(e,t),n=zr(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),wu(n)}function VA(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function WA(e){return!(!VA(e)&&typeof e!="number"||isNaN(+jt(e)))}function HA(e,t){const r=jt(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const qA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},KA=(e,t,r)=>{let n;const s=qA[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function od(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const GA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},YA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QA={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JA={date:od({formats:GA,defaultWidth:"full"}),time:od({formats:YA,defaultWidth:"full"}),dateTime:od({formats:QA,defaultWidth:"full"})},XA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZA=(e,t,r,n)=>XA[e];function ni(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let s;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;s=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[a]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const eI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},nI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
323ay","Saturday"]},sI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},iI=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},aI={ordinalNumber:iI,era:ni({values:eI,defaultWidth:"wide"}),quarter:ni({values:tI,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ni({values:rI,defaultWidth:"wide"}),day:ni({values:nI,defaultWidth:"wide"}),dayPeriod:ni({values:sI,defaultWidth:"wide",formattingValues:oI,defaultFormattingWidth:"wide"})};function si(e){return(t,r={})=>{const n=r.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const i=o[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?uI(a,h=>h.test(i)):lI(a,h=>h.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const d=t.slice(i.length);return{value:c,rest:d}}}function lI(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function uI(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function cI(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const s=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;const a=t.slice(s.length);return{value:i,rest:a}}}const dI=/^(\d+)(th|st|nd|rd)?/i,hI=/\d+/i,fI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},pI={any:[/^b/i,/^(a|c)/i]},mI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gI={any:[/1/i,/2/i,/3/i,/4/i]},vI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},yI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},bI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},_I={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},EI={ordinalNumber:cI({matchPattern:dI,parsePattern:hI,valueCallback:e=>parseInt(e,10)}),era:si({matchPatterns:fI,defaultMatchWidth:"wide",parsePatterns:pI,defaultParseWidth:"any"}),quarter:si({matchPatterns:mI,defaultMatchWidth:"wide",parsePatterns:gI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:si({matchPatterns:vI,defaultMatchWidth:"wide",parsePatterns:yI,defaultParseWidth:"any"}),day:si({matchPatterns:wI,defaultMatchWidth:"wide",parsePatterns:xI,defaultParseWidth:"any"}),dayPeriod:si({matchPatterns:bI,defaultMatchWidth:"any",parsePatterns:_I,defaultParseWidth:"any"})},SI={code:"en-US",formatDistance:KA,formatLong:JA,formatRelative:ZA,localize:aI,match:EI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kI(e,t){const r=jt(e,t==null?void 0:t.in);return UA(r,HA(r))+1}function jI(e,t){const r=jt(e,t==null?void 0:t.in),n=+wu(r)-+BA(r);return Math.round(n/u1)+1}function f1(e,t){var d,h,m,f;const r=jt(e,t==null?void 0:t.in),n=r.getFullYear(),s=oc(),o=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((f=(m=s.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,i=zr((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);const a=ta(i,t),l=zr((t==null?void 0:t.in)||e,0);l.setFullYear(n,0,o),l.setHours(0,0,0,0);const c=ta(l,t);return+r>=+a?n+1:+r>=+c?n:n-1}function CI(e,t){var a,l,c,d;const r=oc(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=f1(e,t),o=zr((t==null?void 0:t.in)||e,0);return o.setFullYear(s,0,n),o.setHours(0,0,0,0),ta(o,t)}function TI(e,t){const r=jt(e,t==null?void 0:t.in),n=+ta(r,t)-+CI(r,t);return Math.round(n/u1)+1}function de(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Xr={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return de(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):de(r+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return de(s,t.length)}},Ns={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},iv={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return Xr.y(e,t)},Y:function(e,t,r,n){const s=f1(e,n),o=s>0?s:1-s;if(t==="YY"){const i=o%100;return de(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):de(o,t.length)},R:function(e,t){const r=h1(e);return de(r,t.length)},u:function(e,t){const r=e.getFullYear();return de(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return de(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return de(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Xr.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return de(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const s=TI(e,n);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):de(s,t.length)},I:function(e,t,r){const n=jI(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):de(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Xr.d(e,t)},D:function(e,t,r){const n=kI(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):de(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return de(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return de(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),s=n===0?7:n;switch(t){case"i":return String(s);case"ii":return de(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let s;switch(n===12?s=Ns.noon:n===0?s=Ns.midnight:s=n/12>
vendor: 7,970 bytes, line 323
323=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let s;switch(n>=17?s=Ns.evening:n>=12?s=Ns.afternoon:n>=4?s=Ns.morning:s=Ns.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Xr.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Xr.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):de(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):de(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Xr.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Xr.s(e,t)},S:function(e,t){return Xr.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return lv(n);case"XXXX":case"XX":return Hn(n);case"XXXXX":case"XXX":default:return Hn(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return lv(n);case"xxxx":case"xx":return Hn(n);case"xxxxx":case"xxx":default:return Hn(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+av(n,":");case"OOOO":default:return"GMT"+Hn(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+av(n,":");case"zzzz":default:return"GMT"+Hn(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return de(n,t.length)},T:function(e,t,r){return de(+e,t.length)}};function av(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.trunc(n/60),o=n%60;return o===0?r+String(s):r+String(s)+t+de(o,2)}function lv(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):Hn(e,t)}function Hn(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=de(Math.trunc(n/60),2),o=de(n%60,2);return r+s+t+o}const uv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},p1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},PI=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return uv(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",uv(n,t)).replace("{{time}}",p1(s,t))},RI={p:p1,P:PI},OI=/^D+$/,NI=/^Y+$/,AI=["D","DD","YY","YYYY"];function II(e){return OI.test(e)}function DI(e){return NI.test(e)}function MI(e,t,r){const n=LI(e,t,r);if(console.warn(n),AI.includes(e))throw new RangeError(n)}function LI(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const $I=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,FI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zI=/^'([^]*?)'?$/,UI=/''/g,BI=/[a-zA-Z]/;function Al(e,t,r){var d,h,m,f,b,v,x,w;const n=oc(),s=(r==null?void 0:r.locale)??n.locale??SI,o=(r==null?void 0:r.firstWeekContainsDate)??((h=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(m=n.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,i=(r==null?void 0:r.weekStartsOn)??((v=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??n.weekStartsOn??((w=(x=n.locale)==null?void 0:x.options)==null?void 0:w.weekStartsOn)??0,a=jt(e,r==null?void 0:r.in);if(!WA(a))throw new RangeError("Invalid time value");let l=t.match(FI).map(g=>{const y=g[0];if(y==="p"||y==="P"){const _=RI[y];return _(g,s.formatLong)}return g}).join("").match($I).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const y=g[0];if(y==="'")return{isToken:!1,value:VI(g)};if(iv[y])return{isToken:!0,value:g};if(y.match(BI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:g}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:o,weekStartsOn:i,locale:s};return l.map(g=>{if(!g.isToken)return g.value;const y=g.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&DI(y)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&II(y))&&MI(y,t,String(e));const _=iv[y[0]];return _(a,y,s.localize,c)}).join("")}function VI(e){const t=e.match(zI);return t?t[1].replace(UI,"'"):e}function cv(e,t){const r=()=>zr(t==null?void 0:t.in,NaN),s=KI(e);let o;if(s.date){const c=GI(s.date,2);o=YI(c.restDateString,c.year)}if(!o||isNaN(+o))return r();const i=+o;let a=0,l;if(s.time&&(a=QI(s.time),isNaN(a)))return r();if(s.timezone){if(l=JI(s.timezone),isNaN(l))return r()}else{const c=new Date(i+a),d=jt(0,t==null?void 0:t.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return jt(i+a+l,t==null?void 0:t.in)}const tl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},WI=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,HI=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,qI=/^([+-])(\d{2})(?::?(\d{2}))?$/;function KI(e){const t={},r=e.split(tl.dateTimeDelimiter);let n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],tl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(tl.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const s=tl.timezone.exec(n);s?(t.time=n.replace(s[1],""),t.timezone=s[1]):t.time=n}return t}function GI(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};const s=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?s:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function YI(e,t){if(t===null)return new Date(NaN);const r=e.match(WI);if(!r)return new Date(NaN);const n=!!r[4],s=oi(r[1]),o=oi(r[2])-1,i=oi(r[3]),a=oi(r[4]),l=oi(r[5])-1;if(n)return rD(t,a,l)?XI(t,a,l):new Date(NaN);{const c=new Date(0);return!eD(t,o,i)||!tD(t,s)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(s,i)),c)}}function oi(e){return e?parseInt(e):1}function QI(e){const t=e.match(HI);if(!t)return NaN;const r=id(t[1]),n=id(t[2]),s=id(t[3]);return nD(r,n,s)?r*d1+n*c1+s*1e3:NaN}function id(e){return e&&parseFloat(e.replace(",","."))||0}function JI(e){if(e==="Z")return 0;const t=e.match(qI);if(!t)return 0;const r=t[1]==="+"?-1:1,n=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return sD(n,s)?r*(n*d1+s*c1):NaN}function XI(e,t,r){const n=new Date(0);n.setUTCFullYear(e,0,4);const s=n.getUTCDay()||7,o=(t-1)*7+r+1-s;return n.setUTCDate(n.getUTCDate()+o),n}const ZI=[31,null,31,30,31,30,31,31,30,31,30,31];function m1(e){return e%400===0||e%4===0&&e%100!==0}function eD(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(ZI[t]||(m1(e)?29:28))}function tD(e,t){return t>=1&&t<=(m1(e)?366:365)}function rD(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function nD(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function sD(e,t){return t>=0&&t<=59}const oD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);
323class $p extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class dv extends $p{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class hv extends $p{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class fv extends $p{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var qh;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(qh||(qh={}));class iD{constructor(t,{headers:r={},customFetch:n,region:s=qh.Any}={}){this.url=t,this.headers=r,this.region=s,this.fetch=oD(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return V(this,arguments,void 0,function*(r,n={}){var s;try{const{headers:o,method:i,body:a,signal:l}=n;let c={},{region:d}=n;d||(d=this.region);const h=new URL(`${this.url}/${r}`);d&&d!=="any"&&(c["x-region"]=d,h.searchParams.set("forceFunctionRegion",d));let m;a&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)?typeof Blob<"u"&&a instanceof Blob||a instanceof ArrayBuffer?(c["Content-Type"]="application/octet-stream",m=a):typeof a=="string"?(c["Content-Type"]="text/plain",m=a):typeof FormData<"u"&&a instanceof FormData?m=a:(c["Content-Type"]="application/json",m=JSON.stringify(a)):m=a;const f=yield this.fetch(h.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},c),this.headers),o),body:m,signal:l}).catch(w=>{throw w.name==="AbortError"?w:new dv(w)}),b=f.headers.get("x-relay-error");if(b&&b==="true")throw new hv(f);if(!f.ok)throw new fv(f);let v=((s=f.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),x;return v==="application/json"?x=yield f.json():v==="application/octet-stream"||v==="application/pdf"?x=yield f.blob():v==="text/event-stream"?x=f:v==="multipart/form-data"?x=yield f.formData():x=yield f.text(),{data:x,error:null,response:f}}catch(o){return o instanceof Error&&o.name==="AbortError"?{data:null,error:new dv(o)}:{data:null,error:o,response:o instanceof fv||o instanceof hv?o.context:void 0}}})}}var nt={};const Vo=oE(YO);var rl={},nl={},sl={},ol={},il={},al={},pv;function g1(){if(pv)return al;pv=1,Object.defineProperty(al,"__esModule",{value:!0});class e extends Error{constructor(r){super(r.message),this.name="PostgrestError",this.details=r.details,this.hint=r.hint,this.co
323de=r.code}}return al.default=e,al}var mv;function v1(){if(mv)return il;mv=1,Object.defineProperty(il,"__esModule",{value:!0});const t=Vo.__importDefault(g1());class r{constructor(s){var o,i;this.shouldThrowOnError=!1,this.method=s.method,this.url=s.url,this.headers=new Headers(s.headers),this.schema=s.schema,this.body=s.body,this.shouldThrowOnError=(o=s.shouldThrowOnError)!==null&&o!==void 0?o:!1,this.signal=s.signal,this.isMaybeSingle=(i=s.isMaybeSingle)!==null&&i!==void 0?i:!1,s.fetch?this.fetch=s.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(s,o){return this.headers=new Headers(this.headers),this.headers.set(s,o),this}then(s,o){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const i=this.fetch;let a=i(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async l=>{var c,d,h,m;let f=null,b=null,v=null,x=l.status,w=l.statusText;if(l.ok){if(this.method!=="HEAD"){const E=await l.text();E===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((c=this.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text"))?b=E:b=JSON.parse(E))}const y=(d=this.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),_=(h=l.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");y&&_&&_.length>1&&(v=parseInt(_[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(b)&&(b.length>1?(f={code:"PGRST116",details:`Results contain ${b.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},b=null,v=null,x=406,w="Not Acceptable"):b.length===1?b=b[0]:b=null)}else{const y=await l.text();try{f=JSON.parse(y),Array.isArray(f)&&l.status===404&&(b=[],f=null,x=200,w="OK")}catch{l.status===404&&y===""?(x=204,w="No Content"):f={message:y}}if(f&&this.isMaybeSingle&&(!((m=f==null?void 0:f.details)===null||m===void 0)&&m.includes("0 rows"))&&(f=null,x=200,w="OK"),f&&this.shouldThrowOnError)throw new t.default(f)}return{error:f,data:b,count:v,status:x,statusText:w}});return this.shouldThrowOnError||(a=a.catch(l=>{var c,d,h;return{error:{message:`${(c=l==null?void 0:l.name)!==null&&c!==void 0?c:"FetchError"}: ${l==null?void 0:l.message}`,details:`${(d=l==null?void 0:l.stack)!==null&&d!==void 0?d:""}`,hint:"",code:`${(h=l==null?void 0:l.code)!==null&&h!==void 0?h:""}`},data:null,count:null,status:0,statusText:""}})),a.then(s,o)}returns(){return this}overrideTypes(){return this}}return il.default=r,il}var gv;function y1(){if(gv)return ol;gv=1,Object.defineProperty(ol,"__esModule",{value:!0});const t=Vo.__importDefault(v1());class r extends t.default{select(s){let o=!1;const i=(s??"*").split("").map(a=>/\s/.test(a)&&!o?"":(a==='"'&&(o=!o),a)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(s,{ascending:o=!0,nullsFirst:i,foreignTable:a,referencedTable:l=a}={}){const c=l?`${l}.order`:"order",d=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${d?`${d},`:""}${s}.${o?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(s,{foreignTable:o,referencedTable:i=o}={}){const a=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(a,`${s}`),this}range(s,o,{foreignTable:i,referencedTable:a=i}={}){const l=typeof a>"u"?"offset":`${a}.offset`,c=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(l,`${s}`),this.url.searchParams.set(c,`${o-s+1}`),this}abortSignal(s){return this.signal=s,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
323explain({analyze:s=!1,verbose:o=!1,settings:i=!1,buffers:a=!1,wal:l=!1,format:c="text"}={}){var d;const h=[s?"analyze":null,o?"verbose":null,i?"settings":null,a?"buffers":null,l?"wal":null].filter(Boolean).join("|"),m=(d=this.headers.get("Accept"))!==null&&d!==void 0?d:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${m}"; options=${h};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(s){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${s}`),this}}return ol.default=r,ol}var vv;function Fp(){if(vv)return sl;vv=1,Object.defineProperty(sl,"__esModule",{value:!0});const t=Vo.__importDefault(y1()),r=new RegExp("[,()]");class n extends t.default{eq(o,i){return this.url.searchParams.append(o,`eq.${i}`),this}neq(o,i){return this.url.searchParams.append(o,`neq.${i}`),this}gt(o,i){return this.url.searchParams.append(o,`gt.${i}`),this}gte(o,i){return this.url.searchParams.append(o,`gte.${i}`),this}lt(o,i){return this.url.searchParams.append(o,`lt.${i}`),this}lte(o,i){return this.url.searchParams.append(o,`lte.${i}`),this}like(o,i){return this.url.searchParams.append(o,`like.${i}`),this}likeAllOf(o,i){return this.url.searchParams.append(o,`like(all).{${i.join(",")}}`),this}likeAnyOf(o,i){return this.url.searchParams.append(o,`like(any).{${i.join(",")}}`),this}ilike(o,i){return this.url.searchParams.append(o,`ilike.${i}`),this}ilikeAllOf(o,i){return this.url.searchParams.append(o,`ilike(all).{${i.join(",")}}`),this}ilikeAnyOf(o,i){return this.url.searchParams.append(o,`ilike(any).{${i.join(",")}}`),this}is(o,i){return this.url.searchParams.append(o,`is.${i}`),this}in(o,i){const a=Array.from(new Set(i)).map(l=>typeof l=="string"&&r.test(l)?`"${l}"`:`${l}`).join(",");return this.url.searchParams.append(o,`in.(${a})`),this}contains(o,i){return typeof i=="string"?this.url.searchParams.append(o,`cs.${i}`):Array.isArray(i)?this.url.searchParams.append(o,`cs.{${i.join(",")}}`):this.url.searchParams.append(o,`cs.${JSON.stringify(i)}`),this}containedBy(o,i){return typeof i=="string"?this.url.searchParams.append(o,`cd.${i}`):Array.isArray(i)?this.url.searchParams.append(o,`cd.{${i.join(",")}}`):this.url.searchParams.append(o,`cd.${JSON.stringify(i)}`),this}rangeGt(o,i){return this.url.searchParams.append(o,`sr.${i}`),this}rangeGte(o,i){return this.url.searchParams.append(o,`nxl.${i}`),this}rangeLt(o,i){return this.url.searchParams.append(o,`sl.${i}`),this}rangeLte(o,i){return this.url.searchParams.append(o,`nxr.${i}`),this}rangeAdjacent(o,i){return this.url.searchParams.append(o,`adj.${i}`),this}overlaps(o,i){return typeof i=="string"?this.url.searchParams.append(o,`ov.${i}`):this.url.searchParams.append(o,`ov.{${i.join(",")}}`),this}textSearch(o,i,{config:a,type:l}={}){let c="";l==="plain"?c="pl":l==="phrase"?c="ph":l==="websearch"&&(c="w");const d=a===void 0?"":`(${a})`;return this.url.searchParams.append(o,`${c}fts${d}.${i}`),this}match(o){return Object.entries(o).forEach(([i,a])=>{this.url.searchParams.append(i,`eq.${a}`)}),this}not(o,i,a){return this.url.searchParams.append(o,`not.${i}.${a}`),this}or(o,{foreignTable:i,referencedTable:a=i}={}){const l=a?`${a}.or`:"or";return this.url.searchParams.append(l,`(${o})`),this}filter(o,i,a){return this.url.searchParams.append(o,`${i}.${a}`),this}}return sl.default=n,sl}var yv;function w1(){if(yv)return nl;yv=1,Object.defineProperty(nl,"__esModule",{value:!0});const t=Vo.__importDefault(Fp());class r{constructor(s,{headers:o={},schema:i,fetch:a}){this.url=s,this.headers=new Headers(o),this.schema=i,this.fetch=a}select(s,o){const{head:i=!1,count:a}=o??{},l=i?"HEAD":"GET";let c=!1;const d=(s??"*").split("").map(h=>/\s/.test(h)&&!c?"":(h==='"'&&(c=!c),h)).join("");return this.url.searchParams.set("select",d),a&&this.headers.append("Prefer",`count=${a}`),new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(s,{count:o,defaultToNull:i=!0}={}){var a;const l="POST";if(o&&this.headers.append("Prefer",`count=${o}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const c=s.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(c.length>0){const d=[...new Set(c)].map(h=>`"${h}"`);this.url.searchParams.set("columns",d.join(","))}}return new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}upsert(s,{onConflict:o,ignoreDuplicates:i=!1,count:a,defaultToNull:l=!0}={}){var c;const d="POST";if(this.headers.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),o!==void 0&&this.url.searchParams.set("on_conflict",o),a&&this.headers.append("Prefer",`count=${a}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const h=s.reduce((m,f)=>m.concat(Object.keys(f)),[]);if(h.length>0){const m=[...new Set(h)].map(f=>`"${f}"`);this.url.searchParams.set("columns",m.join(","))}}return new t.default({method:d,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch})}update(s,{count:o}={}){var i;const a="PATCH";return o&&this.headers.append("Prefer",`count=${o}`),new t.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}delete({count:s}={}){var o;const i="DELETE";return s&&this.headers.append("Prefer",`count=${s}`),new t.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}}return nl.default=r,nl}var wv;function aD(){if(wv)return rl;
323wv=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Vo,t=e.__importDefault(w1()),r=e.__importDefault(Fp());class n{constructor(o,{headers:i={},schema:a,fetch:l}={}){this.url=o,this.headers=new Headers(i),this.schemaName=a,this.fetch=l}from(o){const i=new URL(`${this.url}/${o}`);return new t.default(i,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(o){return new n(this.url,{headers:this.headers,schema:o,fetch:this.fetch})}rpc(o,i={},{head:a=!1,get:l=!1,count:c}={}){var d;let h;const m=new URL(`${this.url}/rpc/${o}`);let f;a||l?(h=a?"HEAD":"GET",Object.entries(i).filter(([v,x])=>x!==void 0).map(([v,x])=>[v,Array.isArray(x)?`{${x.join(",")}}`:`${x}`]).forEach(([v,x])=>{m.searchParams.append(v,x)})):(h="POST",f=i);const b=new Headers(this.headers);return c&&b.set("Prefer",`count=${c}`),new r.default({method:h,url:m,headers:b,schema:this.schemaName,body:f,fetch:(d=this.fetch)!==null&&d!==void 0?d:fetch})}}return rl.default=n,rl}Object.defineProperty(nt,"__esModule",{value:!0});var x1=nt.PostgrestError=R1=nt.PostgrestBuilder=T1=nt.PostgrestTransformBuilder=j1=nt.PostgrestFilterBuilder=S1=nt.PostgrestQueryBuilder=_1=nt.PostgrestClient=void 0;const Wo=Vo,b1=Wo.__importDefault(aD());var _1=nt.PostgrestClient=b1.default;const E1=Wo.__importDefault(w1());var S1=nt.PostgrestQueryBuilder=E1.default;const k1=Wo.__importDefault(Fp());var j1=nt.PostgrestFilterBuilder=k1.default;const C1=Wo.__importDefault(y1());var T1=nt.PostgrestTransformBuilder=C1.default;const P1=Wo.__importDefault(v1());var R1=nt.PostgrestBuilder=P1.default;const O1=Wo.__importDefault(g1());x1=nt.PostgrestError=O1.default;var N1=nt.default={PostgrestClient:b1.default,PostgrestQueryBuilder:E1.default,PostgrestFilterBuilder:k1.default,PostgrestTransformBuilder:C1.default,PostgrestBuilder:P1.default,PostgrestError:O1.default};const lD=ey({__proto__:null,get PostgrestBuilder(){return R1},get PostgrestClient(){return _1},get PostgrestError(){return x1},get PostgrestFilterBuilder(){return j1},get PostgrestQueryBuilder(){return S1},get PostgrestTransformBuilder(){return T1},default:N1},[nt]),{PostgrestClient:uD,PostgrestQueryBuilder:v$,PostgrestFilterBuilder:y$,PostgrestTransformBuilder:w$,PostgrestBuilder:x$,PostgrestError:b$}=N1||lD;class cD{static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,s=parseInt(n.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
324import ws from "ws"
325new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=`
326
327Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const dD="2.80.0",hD=`realtime-js/${dD}`,fD="1.0.0",Kh=1e4,pD=1e3,mD=100;var ki;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(ki||(ki={}));var Me;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Me||(Me={}));var Xt;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Xt||(Xt={}));var Gh;(function(e){e.websocket="websocket"})(Gh||(Gh={}));var Kn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Kn||(Kn={}));class gD{constructor(){this.HEADER_LENGTH=1}decode(t,r){return t.constructor===ArrayBuffer?r(this._binaryDecode(t)):r(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const r=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,r,n)}_decodeBroadcast(t,r,n){const s=r.getUint8(1),o=r.getUint8(2);let i=this.HEADER_LENGTH+2;const a=n.decode(t.slice(i,i+s));i=i+s;const l=n.decode(t.slice(i,i+o));i=i+o;const c=JSON.parse(n.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class A1{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var me;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(me||(me={}));const xv=(e,t,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((o,i)=>(o[i]=vD(i,e,t,s),o),{}):{}},vD=(e,t,r,n)=>{const s=t.find(a=>a.name===e),o=s==null?void 0:s.type,i=r[e];return o&&!n.includes(o)?I1(o,i):Yh(i)},I1=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return bD(t,r)}switch(e){case me.bool:return yD(t);case me.float4:case me.float8:case me.int2:case me.int4:case me.int8:case me.numeric:case me.oid:return wD(t);case me.json:case me.jsonb:return xD(t);case me.timestamp:return _D(t);case me.abstime:case me.date:case me.daterange:case me.int4range:case me.int8range:case me.money:case me.reltime:case me.text:case me.time:case me.timestamptz:case me.timetz:case me.tsrange:case me.tstzrange:return Yh(t);default:return Yh(t)}},Yh=e=>e,yD=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},wD=e=>{if(typeof e=="string"){const t=parseFloat(e);
327if(!Number.isNaN(t))return t}return e},xD=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},bD=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let o;const i=e.slice(1,r);try{o=JSON.parse("["+i+"]")}catch{o=i?i.split(","):[]}return o.map(a=>I1(t,a))}return e},_D=e=>typeof e=="string"?e.replace(" ","T"):e,D1=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class ad{constructor(t,r,n={},s=Kh){this.channel=t,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var bv;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(bv||(bv={}));class ji{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ji.syncState(this.state,s,o,i),this.pendingDiffs.forEach(l=>{this.state=ji.syncDiff(this.state,l,o,i)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:o,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ji.syncDiff(this.state,s,o,i),a())}),this.onJoin((s,o,i)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:o,newPresences:i})}),this.onLeave((s,o,i)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:o,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,s){const o=this.cloneDeep(t),i=this.transformState(r),a={},l={};return this.map(o,(c,d)=>{i[c]||(l[c]=d)}),this.map(i,(c,d)=>{const h=o[c];if(h){const m=d.map(x=>x.presence_ref),f=h.map(x=>x.presence_ref),b=d.filter(x=>f.indexOf(x.presence_ref)<0),v=h.filter(x=>m.indexOf(x.presence_ref)<0);b.length>0&&(a[c]=b),v.length>0&&(l[c]=v)}else a[c]=d}),this.syncDiff(o,{joins:a,leaves:l},n,s)}static syncDiff(t,r,n,s){const{joins:o,leaves:i}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(o,(a,l)=>{var c;const d=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),d.length>0){const h=t[a].map(f=>f.presence_ref),m=d.filter(f=>h.indexOf(f.presence_ref)<0);t[a].unshift(...m)}n(a,d,l)}),this.map(i,(a,l)=>{let c=t[a];if(!c)return;const d=l.map(h=>h.presence_ref);c=c.filter(h=>d.indexOf(h.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const s=t[n];return"metas"in s?r[n]=s.metas.map(o=>(o.presence_ref=o.phx_ref,delete o.phx_ref,delete o.phx_ref_prev,o)):r[n]=s,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var _v;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(_v||(_v={}));var Ci;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Ci||(Ci={}));var Cr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Cr||(Cr={}));class zp{constructor(t,r={config:{}},n){var s,o;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Me.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new ad(this,Xt.join,this.params,this.timeout),this.rejoinTimer=new A1(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Me.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>
327i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Me.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Me.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Me.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Me.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Xt.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new ji(this),this.broadcastEndpointURL=D1(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((o=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||o===void 0)&&o.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,s,o;if(this.socket.isConnected()||this.socket.connect(),this.state==Me.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,c=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(f=>f.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[Ci.PRESENCE]&&this.bindings[Ci.PRESENCE].length>0||((o=this.params.config.presence)===null||o===void 0?void 0:o.enabled)===!0,h={},m={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>t==null?void 0:t(Cr.CHANNEL_ERROR,f)),this._onClose(()=>t==null?void 0:t(Cr.CLOSED)),this.updateJoinPayload(Object.assign({config:m},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:f})=>{var b;if(this.socket.setAuth(),f===void 0){t==null||t(Cr.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,x=(b=v==null?void 0:v.length)!==null&&b!==void 0?b:0,w=[];for(let g=0;g<x;g++){const y=v[g],{filter:{event:_,schema:E,table:k,filter:j}}=y,P=f&&f[g];if(P&&P.event===_&&P.schema===E&&P.table===k&&P.filter===j)w.push(Object.assign(Object.assign({},y),{id:P.id}));else{this.unsubscribe(),this.state=Me.errored,t==null||t(Cr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=w,t&&t(Cr.SUBSCRIBED);return}}).receive("error",f=>{this.state=Me.errored,t==null||t(Cr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Cr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===Me.joined&&t===Ci.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var s;const o=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(r==null)return Promise.reject("Payload is required for httpSend()");const i={method:"POST",headers:{Authorization:o,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,s;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
327in the future. Please use httpSend() explicitly for REST delivery.");const{event:o,payload:i}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:o,payload:i,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(o=>{var i,a,l;const c=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&o("ok"),c.receive("ok",()=>o("ok")),c.receive("error",()=>o("error")),c.receive("timeout",()=>o("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Me.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Xt.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new ad(this,Xt.leave,{},t),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Me.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const s=new AbortController,o=setTimeout(()=>s.abort(),n),i=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(o),i}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new ad(this,t,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>mD){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var s,o;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=Xt;if(n&&[a,l,c,d].indexOf(i)>=0&&n!==this._joinRef())return;let m=this._onMessage(i,r,n);if(r&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var b,v,x;return((b=f.filter)===null||b===void 0?void 0:b.event)==="*"||((x=(v=f.filter)===null||v===void 0?void 0:v.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===i}).map(f=>f.callback(m,n)):(o=this.bindings[i])===null||o===void 0||o.filter(f=>{var b,v,x,w,g,y;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in f){const _=f.id,E=(b=f.filter)===null||b===void 0?void 0:b.event;return _&&((v=r.ids)===null||v===void 0?void 0:v.includes(_))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((x=r.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const _=(g=(w=f==null?void 0:f.filter)===null||w===void 0?void 0:w.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((y=r==null?void 0:r.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===i}).map(f=>{if(typeof m=="object"&&"ids"in m){const b=m.data,{schema:v,table:x,commit_timestamp:w,type:g,errors:y}=b;m=Object.assign(Object.assign({},{schema:v,table:x,commit_timestamp:w,eventType:g,new:{},old:{},errors:y}),this._getPayloadRecords(b))}f.callback(m,n)})}_isClosed(){return this.state===Me.closed}_isJoined(){return this.state===Me.joined}_isJoining(){return this.state===Me.joining}_isLeaving(){return this.state===Me.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const s=t.toLocaleLowerCase(),o={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var o;return!(((o=s.type)===null||o===void 0?void 0:o.toLocaleLowerCase())===n&&zp.isEqual(s.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Xt.close,{},t)}_onError(t){this._on(Xt.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Me.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=xv(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=xv(t.columns,t.old_record)),r}}const ld=()=>{},ll={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},ED=[1e3,2e3,5e3,1e4],SD=1e4,kD=`
328  addEventListener("message", (e) => {
329    if (e.data.event === "start") {
330      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
331    }
332  });`;class jD{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Kh,this.transport=null,this.heartbeatIntervalMs=ll.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=ld,this.ref=0,this.reconnectTimer=null,this.logger=ld,this.conn=null,this.sendBuffer=[],this.serializer
332=new gD,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>s?(...o)=>s(...o):(...o)=>fetch(...o),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${Gh.websocket}`,this.httpEndpoint=D1(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=cD.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r}
333
334To use Realtime in Node.js, you need to provide a WebSocket implementation:
335
336Option 1: Use Node.js 22+ which has native WebSocket support
337Option 2: Install and provide the "ws" package:
338
339  npm install ws
340
341  import ws from "ws"
342  const client = new RealtimeClient(url, {
343    ...options,
344    transport: ws
345  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:fD}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},t?this.conn.close(t,r??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case ki.connecting:return Kn.Connecting;case ki.open:return Kn.Open;case ki.closing:return Kn.Closing;default:return Kn.Closed}}isConnected(){return this.connectionState()===Kn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,s=this.getChannels().find(o=>o.topic===n);if(s)return s;{const o=new zp(`realtime:${t}`,r,this);return this.channels.push(o),o}}push(t){const{topic:r,event:n,payload:s,ref:o}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${o})`,s),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(pD,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
345heduleTimeout()},ll.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:s,payload:o,ref:i}=r,a=i?`(${i})`:"",l=o.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),o),this.channels.filter(c=>c._isMember(n)).forEach(c=>c._trigger(s,o,i)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
345heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Xt.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${t}${n}${s}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([kD],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r;t?r=t:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const s={access_token:r,version:hD};r&&n.updateJoinPayload(s),n.joinedOnce&&n._isJoined()&&n._push(Xt.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new A1(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},ll.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,s,o,i,a,l,c,d;if(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:Kh,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:ll.HEARTBEAT_INTERVAL,this.worker=(o=t==null?void 0:t.worker)!==null&&o!==void 0?o:!1,this.accessToken=(i=t==null?void 0:t.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:ld,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(l=t==null?void 0:t.reconnectAfterMs)!==null&&l!==void 0?l:h=>ED[h-1]||SD,this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(h,m)=>m(JSON.stringify(h)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class Up extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ee(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class CD extends Up{constructor(t,r,n){super(t),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Qh extends Up{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}const Bp=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),TD=()=>Response,Jh=e=>{if(Array.isArray(e))return e.map(r=>Jh(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,o=>o.toUpperCase().replace(/[-_]/g,""));t[s]=Jh(n)}),t},PD=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ud=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},RD=(e,t,r)=>V(void 0,void 0,void 0,function*(){const n=yield TD();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(s=>{const o=e.status||500,i=(s==null?void 0:s.statusCode)||o+"";t(new CD(ud(s),o,i))}).catch(s=>{t(new Qh(ud(s),s))}):t(new Qh(ud(e),e))}),OD=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?s:(PD(n)?(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,t!=null&&t.duplex&&(s.duplex=t.duplex),Object.assign(Object.assign({},s),r))};function Sa(e,t,r,n,s,o){return V(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(r,OD(t,n,s,o)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>RD(l,a,n))})})}function ra(e,t,r,n){return V(this,void 0,void 0,function*(){return Sa(e,"GET",t,r,n)})}function Gt(e,t,r,n,s){return V(this,void 0,void 0,function*(){return Sa(e,"POST",t,n,s,r)})}function Xh(e,t,r,n,s){return V(this,void 0,void 0,function*(){return Sa(e,"PUT",t,n,s,r)})}function ND(e,t,r,n){return V(this,void 0,void 0,function*(){return Sa(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function Vp(e,t,r,n,s){return V(this,void 0,void 0,function*(){return Sa(e,"DELETE",t,n,s,r)})}class AD{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r}then(t,r){return this.execute().then(t,r)}execute(){return V(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ee(t))return{data:null,error:t};throw t}})}}var M1;class ID{constructor(t,r){this.downloadFn=t,this.shouldThrowOnError=r,this[M1]="BlobDownloadBuilder",this.promise=null}asStream(){return new AD(this.downloadFn,this.shouldThrowOnError)}then(t,r){return this.getPromise().then(t,r)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return V(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Ee(t))return{data:null,error:t};throw t}})}}M1=Symbol.toStringTag;const DD={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ev={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class MD{constructor(t,r={},n,s){this.shouldThrowOnError=!1,this.url=t,this.headers=r,this.bucketId=n,this.fetch=Bp(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,r,n,s){return V(this,void 0,void 0,function*(){try{let o;const i=Object.assign(Object.assign({},Ev),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&n instanceof Blob?(o=new FormData,o.append("cacheControl",i.cacheControl),l&&o.append("metadata",this.encodeMetadata(l)),o.append("",n)):typeof FormData<"u"&&n instanceof FormData?(o=n,o.has("cacheControl")||o.append("cacheControl",i.cacheControl),l&&!o.has("metadata")&&o.append("metadata",this.encodeMetadata(l))):(o=n,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l))),(typeof ReadableStream<"u"&&o instanceof ReadableStream||o&&typeof o=="object"&&"pipe"in o&&typeof o.pipe=="function")&&!i.duplex&&(i.duplex="half")),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const c=this._removeEmptyFolders(r),d=this._getFinalPath(c),h=yield(t=="PUT"?Xh:Gt)(this.fetch,`${this.url}/object/${d}`,o,Object.assign({headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{}));return{data:{path:c,id:h.Id,fullPath:h.Key},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(Ee(o))return{data:null,error:o};throw o}})}upload(t,r,n){return V(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,s){return V(this,void 0,void 0,function*(){const o=this._removeEmptyFolders(t),i=this._getFinalPath(o),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",r);try{let l;const c=Object.assign({upsert:Ev.upsert},s),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const h=yield Xh(this.fetch,a.toString(),l,{headers:d});return{data:{path:o,fullPath:h.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Ee(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,r){return V(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const s=Object.assign({},this.headers);r!=null&&r.upsert&&(s["x-upsert"]="true");const o=yield Gt(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:s}),i=new URL(this.url+o.url),a=i.searchParams.get("token");if(!a)throw new Up("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n))return{data:null,error:n};throw n}})}update(t,r,n){return V(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return V(this,void 0,void 0,function*(){try{return{data:yield Gt(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}copy(t,r,n){return V(this,void 0,void 0,function*(){try{return{data:{path:(yield Gt(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}createSignedUrl(t,r,n){return V(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),o=yield Gt(this.fetch,`${this.url}/object/sign/${s}
345`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return o={signedUrl:encodeURI(`${this.url}${o.signedURL}${i}`)},{data:o,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}createSignedUrls(t,r,n){return V(this,void 0,void 0,function*(){try{const s=yield Gt(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${o}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}download(t,r){const s=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",o=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),i=o?`?${o}`:"",a=this._getFinalPath(t),l=()=>ra(this.fetch,`${this.url}/${s}/${a}${i}`,{headers:this.headers,noResolveJson:!0});return new ID(l,this.shouldThrowOnError)}info(t){return V(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield ra(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:Jh(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n))return{data:null,error:n};throw n}})}exists(t){return V(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield ND(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n)&&n instanceof Qh){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),s=[],o=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";o!==""&&s.push(o);const a=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&s.push(l);let c=s.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${c}`)}}}remove(t){return V(this,void 0,void 0,function*(){try{return{data:yield Vp(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}list(t,r,n){return V(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},DD),r),{prefix:t||""});return{data:yield Gt(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}listV2(t,r){return V(this,void 0,void 0,function*(){try{const n=Object.assign({},t);return{data:yield Gt(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n))return{data:null,error:n};throw n}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const L1="2.80.0",$1={"X-Client-Info":`storage-js/${L1}`};class LD{constructor(t,r={},n,s){this.shouldThrowOnError=!1;const o=new URL(t);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase.")),this.url=o.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},$1),r),this.fetch=Bp(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(t){return V(this,void 0,void 0,function*(){try{const r=this.listBucketOptionsToQueryString(t);return{data:yield ra(this.fetch,`${this.url}/bucket${r}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}getBucket(t){return V(this,void 0,void 0,function*(){try{return{data:yield ra(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}createBucket(t){return V(this,arguments,void 0,function*(r,n={public:!1}){try{return{data:yield Gt(this.fetch,`${this.url}/bucket`,{id:r,name:r,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Ee(s))return{data:null,error:s};throw s}})}updateBucket(t,r){return V(this,void 0,void 0,function*(){try{return{data:yield Xh(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Ee(n))return{data:null,error:n};throw n}})}emptyBucket(t){return V(this,void 0,void 0,function*(){try{return{data:yield Gt(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}deleteBucket(t){return V(this,void 0,void 0,function*(){try{return{data:yield Vp(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}listBucketOptionsToQueryString(t){const r={};return t&&("limit"in t&&(r.limit=String(t.limit)),"offset"in t&&(r.offset=String(t.offset)),t.search&&(r.search=t.search),t.sortColumn&&(r.sortColumn=t.sortColumn),t.sortOrder&&(r.sortOrder=t.sortOrder)),Object.keys(r).length>0?"?"+new URLSearchParams(r).toString():""}}class $D{constructor(t,r={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},$1),r),this.fetch=Bp(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return V(this,void 0,void 0,function*(){try{return{data:yield Gt(this.fetch,`${this.url}/bucket`,{name:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}listBuckets(t){return V(this,void 0,void 0,function*(){try{const r=new 
345URLSearchParams;(t==null?void 0:t.limit)!==void 0&&r.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&r.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&r.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&r.set("sortOrder",t.sortOrder),t!=null&&t.search&&r.set("search",t.search);const n=r.toString(),s=n?`${this.url}/bucket?${n}`:`${this.url}/bucket`;return{data:yield ra(this.fetch,s,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}deleteBucket(t){return V(this,void 0,void 0,function*(){try{return{data:yield Vp(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Ee(r))return{data:null,error:r};throw r}})}}const Wp={"X-Client-Info":`storage-js/${L1}`,"Content-Type":"application/json"};class F1 extends Error{constructor(t){super(t),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function wt(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}class cd extends F1{constructor(t,r,n){super(t),this.name="StorageVectorsApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class FD extends F1{constructor(t,r){super(t),this.name="StorageVectorsUnknownError",this.originalError=r}}var Sv;(function(e){e.InternalError="InternalError",e.S3VectorConflictException="S3VectorConflictException",e.S3VectorNotFoundException="S3VectorNotFoundException",e.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",e.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",e.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(Sv||(Sv={}));const Hp=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zD=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kv=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),UD=(e,t,r)=>V(void 0,void 0,void 0,function*(){if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(r!=null&&r.noResolveJson)){const s=e.status||500,o=e;if(typeof o.json=="function")o.json().then(i=>{const a=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||s+"";t(new cd(kv(i),s,a))}).catch(()=>{const i=s+"",a=o.statusText||`HTTP ${s} error`;t(new cd(a,s,i))});else{const i=s+"",a=o.statusText||`HTTP ${s} error`;t(new cd(a,s,i))}}else t(new FD(kv(e),e))}),BD=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return n?(zD(n)?(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(n)):s.body=n,Object.assign(Object.assign({},s),r)):s};function VD(e,t,r,n,s,o){return V(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(r,BD(t,n,s,o)).then(l=>{if(!l.ok)throw l;if(n!=null&&n.noResolveJson)return l;const c=l.headers.get("content-type");return!c||!c.includes("application/json")?{}:l.json()}).then(l=>i(l)).catch(l=>UD(l,a,n))})})}function xt(e,t,r,n,s){return V(this,void 0,void 0,function*(){return VD(e,"POST",t,n,s,r)})}class WD{constructor(t,r={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Wp),r),this.fetch=Hp(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(t){return V(this,void 0,void 0,function*(){try{return{data:(yield xt(this.fetch,`${this.url}/CreateIndex`,t,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}getIndex(t,r){return V(this,void 0,void 0,function*(){try{return{data:yield xt(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:t,indexName:r},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(wt(n))return{data:null,error:n};throw n}})}listIndexes(t){return V(this,void 0,void 0,function*(){try{return{data:yield xt(this.fetch,`${this.url}/ListIndexes`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}deleteIndex(t,r){return V(this,void 0,void 0,function*(){try{return{data:(yield xt(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:t,indexName:r},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(wt(n))return{data:null,error:n};throw n}})}}class HD{constructor(t,r={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Wp),r),this.fetch=Hp(n)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(t){return V(this,void 0,void 0,function*(){try{if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:(yield xt(this.fetch,`${this.url}/PutVectors`,t,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}getVectors(t){return V(this,void 0,void 0,function*(){try{return{data:yield xt(this.fetch,`${this.url}/GetVectors`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}listVectors(t){return V(this,void 0,void 0,function*(){try{if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
345if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return{data:yield xt(this.fetch,`${this.url}/ListVectors`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}queryVectors(t){return V(this,void 0,void 0,function*(){try{return{data:yield xt(this.fetch,`${this.url}/QueryVectors`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}deleteVectors(t){return V(this,void 0,void 0,function*(){try{if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:(yield xt(this.fetch,`${this.url}/DeleteVectors`,t,{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}}class qD{constructor(t,r={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Wp),r),this.fetch=Hp(n)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return V(this,void 0,void 0,function*(){try{return{data:(yield xt(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}getBucket(t){return V(this,void 0,void 0,function*(){try{return{data:yield xt(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}listBuckets(){return V(this,arguments,void 0,function*(t={}){try{return{data:yield xt(this.fetch,`${this.url}/ListVectorBuckets`,t,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}deleteBucket(t){return V(this,void 0,void 0,function*(){try{return{data:(yield xt(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(wt(r))return{data:null,error:r};throw r}})}}class KD extends qD{constructor(t,r={}){super(t,r.headers||{},r.fetch)}from(t){return new GD(this.url,this.headers,t,this.fetch)}}class GD extends WD{constructor(t,r,n,s){super(t,r,s),this.vectorBucketName=n}createIndex(t){const r=Object.create(null,{createIndex:{get:()=>super.createIndex}});return V(this,void 0,void 0,function*(){return r.createIndex.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const t=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return V(this,arguments,void 0,function*(r={}){return t.listIndexes.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName}))})}getIndex(t){const r=Object.create(null,{getIndex:{get:()=>super.getIndex}});return V(this,void 0,void 0,function*(){return r.getIndex.call(this,this.vectorBucketName,t)})}deleteIndex(t){const r=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return V(this,void 0,void 0,function*(){return r.deleteIndex.call(this,this.vectorBucketName,t)})}index(t){return new YD(this.url,this.headers,this.vectorBucketName,t,this.fetch)}}class YD extends HD{constructor(t,r,n,s,o){super(t,r,o),this.vectorBucketName=n,this.indexName=s}putVectors(t){const r=Object.create(null,{putVectors:{get:()=>super.putVectors}});return V(this,void 0,void 0,function*(){return r.putVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(t){const r=Object.create(null,{getVectors:{get:()=>super.getVectors}});return V(this,void 0,void 0,function*(){return r.getVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const t=Object.create(null,{listVectors:{get:()=>super.listVectors}});return V(this,arguments,void 0,function*(r={}){return t.listVectors.call(this,Object.assign(Object.assign({},r),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(t){const r=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return V(this,void 0,void 0,function*(){return r.queryVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(t){const r=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return V(this,void 0,void 0,function*(){return r.deleteVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class QD extends LD{constructor(t,r={},n,s){super(t,r,n,s)}from(t){return new MD(this.url,this.headers,t,this.fetch)}get vectors(){return new KD(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new $D(this.url+"/iceberg",this.headers,this.fetch)}}const JD="2.80.0";let pi="";typeof Deno<"u"?pi="deno":typeof document<"u"?pi="web":typeof navigator<"u"&&navigator.product==="ReactNative"?pi="react-native":pi="node";const XD={"X-Client-Info":`supabase-js-${pi}/${JD}`},ZD={headers:XD},eM={schema:"public"},tM={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},rM={},nM=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),sM=()=>Headers,oM=(e,t,r)=>{const n=nM(r),s=sM();return async(o,i)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(i==null?void 0:i.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(o,Object.assign(Object.assign({},i),{headers:c}))}};function iM(e){return e.endsWith("/")?e:e+"/"}function aM(e,t){var r,n;const{db:s,auth:o,realtime:i,global:a}=e,{db:l,auth:c,realtime:d,global:h}=t,m={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},c),o),realtime:Object.assign(Object.assign({},d),i),storage:{},global:Object.assign(Object.assign(Object.assign({},h),a),{headers:Object.assign(Object.assign({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}function lM(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
345if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(iM(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const z1="2.80.0",$s=30*1e3,Zh=3,dd=Zh*$s,uM="http://localhost:9999",cM="supabase.auth.token",dM={"X-Client-Info":`gotrue-js/${z1}`},ef="X-Supabase-Api-Version",U1={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},hM=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,fM=10*60*1e3;class na extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function W(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class pM extends na{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function mM(e){return W(e)&&e.name==="AuthApiError"}class Gn extends na{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class $n extends na{constructor(t,r,n,s){super(t,n,s),this.name=r,this.status=n}}class Ht extends $n{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function gM(e){return W(e)&&e.name==="AuthSessionMissingError"}class As extends $n{constructor(){super("Auth session or user missing","AuthInvalidToken
345ResponseError",500,void 0)}}class ul extends $n{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class cl extends $n{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function vM(e){return W(e)&&e.name==="AuthImplicitGrantRedirectError"}class jv extends $n{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class tf extends $n{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function hd(e){return W(e)&&e.name==="AuthRetryableFetchError"}class Cv extends $n{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class rf extends $n{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Tv=` 	
346\r=`.split(""),yM=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Tv.length;t+=1)e[Tv[t].charCodeAt(0)]=-2;for(let t=0;t<xu.length;t+=1)e[xu[t].charCodeAt(0)]=t;return e})();function Pv(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(xu[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(xu[n]),t.queuedBits-=6}}function B1(e,t,r){const n=yM[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Rv(e){const t=[],r=i=>{t.push(String.fromCodePoint(i))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},o=i=>{bM(i,n,r)};for(let i=0;i<e.length;i+=1)B1(e.charCodeAt(i),s,o);return t.join("")}function wM(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function xM(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}wM(n,t)}}function bM(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function uo(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)B1(e.charCodeAt(s),r,n);return new Uint8Array(t)}function _M(e){const t=[];return xM(e,r=>t.push(r)),new Uint8Array(t)}function Xn(e){const t=[],r={queue:0,queuedBits:0},n=s=>{t.push(s)};return e.forEach(s=>Pv(s,r,n)),Pv(null,r,n),t.join("")}function EM(e){return Math.round(Date.now()/1e3)+e}function SM(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const Qe=()=>typeof window<"u"&&typeof document<"u",Un={tested:!1,writable:!1},V1=()=>{if(!Qe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Un.tested)return Un.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Un.tested=!0,Un.writable=!0}catch{Un.tested=!0,Un.writable=!1}return Un.writable};function kM(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,o)=>{t[o]=s})}catch{}return r.searchParams.forEach((n,s)=>{t[s]=n}),t}const W1=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),jM=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Fs=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Bn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},Zr=async(e,t)=>{await e.removeItem(t)};class ic{constructor(){this.promise=new ic.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}ic.promiseConstructor=Promise;function fd(e){const t=e.split(".");if(t.length!==3)throw new rf("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!hM.test(t[n]))throw new rf("JWT not in base64url format");
346return{header:JSON.parse(Rv(t[0])),payload:JSON.parse(Rv(t[1])),signature:uo(t[2]),raw:{header:t[0],payload:t[1]}}}async function CM(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function TM(e,t){return new Promise((n,s)=>{(async()=>{for(let o=0;o<1/0;o++)try{const i=await e(o);if(!t(o,null,i)){n(i);return}}catch(i){if(!t(o,i)){s(i);return}}})()})}function PM(e){return("0"+e.toString(16)).substr(-2)}function RM(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let o=0;o<56;o++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(t),Array.from(t,PM).join("")}async function OM(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(o=>String.fromCharCode(o)).join("")}async function NM(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await OM(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Is(e,t,r=!1){const n=RM();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await Fs(e,`${t}-code-verifier`,s);const o=await NM(n);return[o,n===o?"plain":"s256"]}const AM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function IM(e){const t=e.headers.get(ef);if(!t||!t.match(AM))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function DM(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function MM(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const LM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Ds(e){if(!LM.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function pd(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function $M(e,t){return new Proxy(e,{get:(r,n,s)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const o=n.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)"||o==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,s)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,s)}})}function Ov(e){return JSON.parse(JSON.stringify(e))}const qn=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),FM=[502,503,504];async function Nv(e){var t;if(!jM(e))throw new tf(qn(e),0);if(FM.includes(e.status))throw new tf(qn(e),e.status);let r;try{r=await e.json()}catch(o){throw new Gn(qn(o),o)}let n;const s=IM(e);if(s&&s.getTime()>=U1["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Cv(qn(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Ht}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((o,i)=>o&&typeof i=="string",!0))throw new Cv(qn(r),e.status,r.weak_password.reasons);throw new pM(qn(r),e.status||500,n)}const zM=(e,t,r,n)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function Q(e,t,r,n){var s;const o=Object.assign({},n==null?void 0:n.headers);o[ef]||(o[ef]=U1["2024-01-01"].name),n!=null&&n.jwt&&(o.Authorization=`Bearer ${n.jwt}`);const i=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(i.redirect_to=n.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await UM(e,t,r+a,{headers:o,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function UM(e,t,r,n,s,o){const i=zM(t,n,s,o);let a;try{a=await e(r,Object.assign({},i))}catch(l){throw console.error(l),new tf(qn(l),0)}if(a.ok||await Nv(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await Nv(l)}}function qt(e){var t;let r=null;WM(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=EM(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function Av(e){const t=qt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function an(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function BM(e){return{data:e,error:null}}
346function VM(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o}=e,i=Ln(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:s,verification_type:o},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function Iv(e){return e}function WM(e){return e.access_token&&e.refresh_token&&e.expires_in}const md=["global","local","others"];class HM{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=W1(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=md[0]){if(md.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${md.join(", ")}`);try{return await Q(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await Q(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:an})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=Ln(t,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await Q(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:VM,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(W(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await Q(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:an})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await Q(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:Iv});if(d.error)throw d.error;const h=await d.json(),m=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(b=>{const v=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(b.split(";")[1].split("=")[1]);c[`${x}Page`]=v}),c.total=parseInt(m)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(W(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){Ds(t);try{return await Q(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:an})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){Ds(t);try{return await Q(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:an})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){Ds(t);try{return await Q(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:an})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){Ds(t.userId);try{const{data:r,error:n}=await Q(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(W(r))return{data:null,error:r};throw r}}async _deleteFactor(t){Ds(t.userId),Ds(t.id);try{return{data:await Q(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,s,o,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},d=await Q(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(o=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&o!==void 0?o:""},xform:Iv});if(d.error)throw d.error;const h=await d.json(),m=(i=d.headers.get("x-total-count"))!==null&&i!==void 0?i:0,f=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(b=>{const v=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(b.split(";")[1].split("=")[1]);c[`${x}Page`]=v}),c.total=parseInt(m)),{data:Object.assign(Object.assign({},h),c),error:null}}catch(c){if(W(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await Q(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await Q(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await Q(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await Q(this.fetch,"DELET
346E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await Q(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(W(r))return{data:null,error:r};throw r}}}function Dv(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const Ms={debug:!!(globalThis&&V1()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class H1 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class qM extends H1{}async function KM(e,t,r){Ms.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),Ms.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){Ms.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await r()}finally{Ms.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Ms.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new qM(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ms.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null,"  "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function GM(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function q1(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function YM(e){return parseInt(e,16)}function QM(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function JM(e){var t;const{chainId:r,domain:n,expirationTime:s,issuedAt:o=new Date,nonce:i,notBefore:a,requestId:l,resources:c,scheme:d,uri:h,version:m}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(m!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${m}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
347`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=q1(e.address),b=d?`${d}://${n}`:n,v=e.statement?`${e.statement}
348`:"",x=`${b} wants you to sign in with your Ethereum account:
349${f}
350
351${v}`;let w=`URI: ${h}
352Version: ${m}
353Chain ID: ${r}${i?`
354Nonce: ${i}`:""}
355Issued At: ${o.toISOString()}`;if(s&&(w+=`
356Expiration Time: ${s.toISOString()}`),a&&(w+=`
357Not Before: ${a.toISOString()}`),l&&(w+=`
358Request ID: ${l}`),c){let g=`
359Resources:`;for(const y of c){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);g+=`
360- ${y}`}w+=g}return`${x}
361${w}`}
361class Ie extends Error{constructor({message:t,code:r,cause:n,name:s}){var o;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(o=s??(n instanceof Error?n.name:void 0))!==null&&o!==void 0?o:"Unknown Error",this.code=r}}class bu extends Ie{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function XM({error:e,options:t}){var r,n,s;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ie({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=o.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Ie({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=o.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Ie({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=o.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Ie({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Ie({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ie({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Ie({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ie({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const i=window.location.hostname;if(K1(i)){if(o.rp.id!==i)return new Ie({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ie({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Ie({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Ie({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ie({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function ZM({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ie({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ie({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(K1(n)){if(r.rpId!==n)return new Ie({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ie({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ie({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ie({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class eL{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const tL=new eL;function rL(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,s=Ln(e,["challenge","user","excludeCredentials"]),o=uo(t).buffer,i=Object.assign(Object.assign({},r),{id:uo(r.id).buffer}),a=Object.assign(Object.assign({}
361,s),{challenge:o,user:i});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const c=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:uo(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function nL(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=Ln(e,["challenge","allowCredentials"]),s=uo(t).buffer,o=Object.assign(Object.assign({},n),{challenge:s});if(r&&r.length>0){o.allowCredentials=new Array(r.length);for(let i=0;i<r.length;i++){const a=r[i];o.allowCredentials[i]=Object.assign(Object.assign({},a),{id:uo(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return o}function sL(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Xn(new Uint8Array(e.response.attestationObject)),clientDataJSON:Xn(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function oL(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Xn(new Uint8Array(s.authenticatorData)),clientDataJSON:Xn(new Uint8Array(s.clientDataJSON)),signature:Xn(new Uint8Array(s.signature)),userHandle:s.userHandle?Xn(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function K1(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Mv(){var e,t;return!!(Qe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function iL(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bu("Browser returned unexpected credential type",t)}:{data:null,error:new bu("Empty credential response",t)}}catch(t){return{data:null,error:XM({error:t,options:e})}}}async function aL(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bu("Browser returned unexpected credential type",t)}:{data:null,error:new bu("Empty credential response",t)}}catch(t){return{data:null,error:ZM({error:t,options:e})}}}const lL={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"none"},uL={userVerification:"preferred",hints:["security-key"]};function _u(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),r=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),n={};for(const s of e)if(s)for(const o in s){const i=s[o];if(i!==void 0)if(Array.isArray(i))n[o]=i;else if(r(i))n[o]=i;else if(t(i)){const a=n[o];t(a)?n[o]=_u(a,i):n[o]=_u(i)}else n[o]=i}return n}function cL(e,t){return _u(lL,e,t||{})}function dL(e,t){return _u(uL,e,t||{})}class hL{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:s},o){try{const{data:i,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!i)return{data:null,error:a};const l=s??tL.createNewAbortSignal();if(i.webauthn.type==="create"){const{user:c}=i.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${n}`),c.displayName||(c.displayName=c.name)}switch(i.webauthn.type){case"create":{const c=cL(i.webauthn.credential_options.publicKey,o==null?void 0:o.create),{data:d,error:h}=await iL({publicKey:c,signal:l});return d?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const c=dL(i.webauthn.credential_options.publicKey,o==null?void 0:o.request),{data:d,error:h}=await aL(Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:c,signal:l}));return d?{data:{factorId:t,challengeId:i.id,webauthn:{type:i.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(i){return W(i)?{data:null,error:i}:{data:null,error:new Gn("Unexpected error in challenge",i)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s}},o){if(!r)return{data:null,error:new na("rpId is required for WebAuthn authentication")};try{if(!Mv())return{data:null,error:new Gn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:s},{request:o});if(!i)return{data:null,error:a};const{webauthn:l}=i;return this._verify({factorId:t,challengeId:i.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(i){return W(i)?{data:null,error:i}:{data:null,error:new Gn("Unexpected error in authenticate",i)}}}async _register({friendlyName:t,rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:s},o){if(!r)return{data:null,error:new na("rpId is required for WebAuthn registration")};try{if(!Mv())return{data:null,error:new Gn("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this._enroll({friendlyName:t});if(!i)return await this.client.mfa.listFactors().then(d=>{var h;
361return(h=d.data)===null||h===void 0?void 0:h.all.find(m=>m.factor_type==="webauthn"&&m.friendly_name===t&&m.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:s},{create:o});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(i){return W(i)?{data:null,error:i}:{data:null,error:new Gn("Unexpected error in register",i)}}}}GM();const fL={url:uM,storageKey:cM,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:dM,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function Lv(e,t,r){return await r()}const Ls={};class sa{get jwks(){var t,r;return(r=(t=Ls[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){Ls[this.storageKey]=Object.assign(Object.assign({},Ls[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=Ls[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ls[this.storageKey]=Object.assign(Object.assign({},Ls[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const o=Object.assign(Object.assign({},fL),t);if(this.storageKey=o.storageKey,this.instanceID=(r=sa.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,sa.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.instanceID>0&&Qe()){const i=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=o.persistSession,this.autoRefreshToken=o.autoRefreshToken,this.admin=new HM({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=W1(o.fetch),this.lock=o.lock||Lv,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,this.throwOnError=o.throwOnError,o.lock?this.lock=o.lock:Qe()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=KM:this.lock=Lv,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new hL(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this)},this.persistSession?(o.storage?this.storage=o.storage:V1()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Dv(this.memoryStorage)),o.userStorage&&(this.userStorage=o.userStorage)):(this.memoryStorage={},this.storage=Dv(this.memoryStorage)),Qe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${z1}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(Qe()&&(r=kM(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),Qe()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:o}=await this._getSessionFromURL(r,n);if(o){if(this._debug("#_initialize()","error detecting session from URL",o),vM(o)){const l=(t=o.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:o}}return await this._removeSession(),{error:o}}const{session:i,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return W(r)?this._returnResult({error:r}):this._returnResult({error:new Gn("Unexpected error during initialization",r)}
361)}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,s;try{const o=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:qt}),{data:i,error:a}=o;if(a||!i)return this._returnResult({data:{user:null,session:null},error:a});const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(o){if(W(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signUp(t){var r,n,s;try{let o;if("email"in t){const{email:d,password:h,options:m}=t;let f=null,b=null;this.flowType==="pkce"&&([f,b]=await Is(this.storage,this.storageKey)),o=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:d,password:h,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:f,code_challenge_method:b},xform:qt})}else if("phone"in t){const{phone:d,password:h,options:m}=t;o=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},channel:(s=m==null?void 0:m.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:qt})}else throw new ul("You must provide either an email or phone number and a password");const{data:i,error:a}=o;if(a||!i)return this._returnResult({data:{user:null,session:null},error:a});const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(o){if(W(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithPassword(t){try{let r;if("email"in t){const{email:o,password:i,options:a}=t;r=await Q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Av})}else if("phone"in t){const{phone:o,password:i,options:a}=t;r=await Q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:o,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Av})}else throw new ul("You must provide either an email or phone number and a password");const{data:n,error:s}=r;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!n||!n.session||!n.user){const o=new As;return this._returnResult({data:{user:null,session:null},error:o})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(W(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,s,o;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(o=t.options)===null||o===void 0?void 0:o.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,s,o,i,a,l,c,d,h,m;let f,b;if("message"in t)f=t.message,b=t.signature;else{const{chain:v,wallet:x,statement:w,options:g}=t;let y;if(Qe())if(typeof x=="object")y=x;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")y=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=x}const _=new URL((r=g==null?void 0:g.url)!==null&&r!==void 0?r:window.location.href),E=await y.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!E||E.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=q1(E[0]);let j=(n=g==null?void 0:g.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!j){const A=await y.request({method:"eth_chainId"});j=YM(A)}const P={domain:_.host,address:k,statement:w,uri:_.href,version:"1",chainId:j,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(i=(o=g==null?void 0:g.signInWithEthereum)===null||o===void 0?void 0:o.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};f=JM(P),b=await y.request({method:"personal_sign",params:[QM(f),k]})}try{const{data:v,error:x}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:b}
361,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:qt});if(x)throw x;if(!v||!v.session||!v.user){const w=new As;return this._returnResult({data:{user:null,session:null},error:w})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:x})}catch(v){if(W(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(t){var r,n,s,o,i,a,l,c,d,h,m,f;let b,v;if("message"in t)b=t.message,v=t.signature;else{const{chain:x,wallet:w,statement:g,options:y}=t;let _;if(Qe())if(typeof w=="object")_=w;else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))_=k.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=w}const E=new URL((r=y==null?void 0:y.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in _&&_.signIn){const k=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),g?{statement:g}:null));let j;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")j=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)j=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in j&&"signature"in j&&(typeof j.signedMessage=="string"||j.signedMessage instanceof Uint8Array)&&j.signature instanceof Uint8Array)b=typeof j.signedMessage=="string"?j.signedMessage:new TextDecoder().decode(j.signedMessage),v=j.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${E.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(s=(n=y==null?void 0:y.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((c=y==null?void 0:y.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((h=(d=y==null?void 0:y.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...y.signInWithSolana.resources.map(j=>`- ${j}`)]:[]].join(`
362`);const k=await _.signMessage(new TextEncoder().encode(b),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=k}}try{const{data:x,error:w}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:Xn(v)},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:qt});if(w)throw w;if(!x||!x.session||!x.user){const g=new As;return this._returnResult({data:{user:null,session:null},error:g})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:w})}
362catch(x){if(W(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const r=await Bn(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{const{data:o,error:i}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:qt});if(await Zr(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!o||!o.session||!o.user){const a=new As;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:Object.assign(Object.assign({},o),{redirectType:s??null}),error:i})}catch(o){if(W(o))return this._returnResult({data:{user:null,session:null,redirectType:null},error:o});throw o}}async signInWithIdToken(t){try{const{options:r,provider:n,token:s,access_token:o,nonce:i}=t,a=await Q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:o,nonce:i,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:qt}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const d=new As;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(r){if(W(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,s,o,i;try{if("email"in t){const{email:a,options:l}=t;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await Is(this.storage,this.storageKey));const{error:h}=await Q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:d}=await Q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(o=l==null?void 0:l.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d})}throw new ul("You must provide either an email or phone number.")}catch(a){if(W(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var r,n;try{let s,o;"options"in t&&(s=(r=t.options)===null||r===void 0?void 0:r.redirectTo,o=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:i,error:a}=await Q(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:o}}),redirectTo:s,xform:qt});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,c=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(W(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var r,n,s;try{let o=null,i=null;this.flowType==="pkce"&&([o,i]=await Is(this.storage,this.storageKey));const a=await Q(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}
362:null),{skip_http_redirect:!0,code_challenge:o,code_challenge_method:i}),headers:this.headers,xform:BM});return this._returnResult(a)}catch(o){if(W(o))return this._returnResult({data:null,error:o});throw o}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new Ht;const{error:s}=await Q(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(W(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:s,options:o}=t,{error:i}=await Q(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},redirectTo:o==null?void 0:o.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in t){const{phone:n,type:s,options:o}=t,{data:i,error:a}=await Q(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a})}throw new ul("You must provide either an email or phone number and a type")}catch(r){if(W(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Bn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<dd:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const i=await Bn(this.userStorage,this.storageKey+"-user");i!=null&&i.user?t.user=i.user:t.user=pd()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=$M(t.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{session:null},error:o}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await Q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:an}):await this._useSession(async r=>{var n,s,o;const{data:i,error:a}=r;if(a)throw a;return!(!((n=i.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ht}:await Q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(o=(s=i.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0,xform:an})})}catch(r){if(W(r))return gM(r)&&(await this._removeSession(),await Zr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:s,error:o}=n;
362if(o)throw o;if(!s.session)throw new Ht;const i=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Is(this.storage,this.storageKey));const{data:c,error:d}=await Q(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:an});if(d)throw d;return i.user=c.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(n){if(W(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ht;const r=Date.now()/1e3;let n=r,s=!0,o=null;const{payload:i}=fd(t.access_token);if(i.exp&&(n=i.exp,s=n<=r),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};o=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;o={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)}return this._returnResult({data:{user:o.user,session:o},error:null})}catch(r){if(W(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:i,error:a}=r;if(a)throw a;t=(n=i.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Ht;const{data:s,error:o}=await this._callRefreshToken(t.refresh_token);return o?this._returnResult({data:{user:null,session:null},error:o}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(W(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!Qe())throw new cl("No browser detected.");if(t.error||t.error_description||t.error_code)throw new cl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new jv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new cl("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new jv("No code detected.");const{data:g,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:o,refresh_token:i,expires_in:a,expires_at:l,token_type:c}=t;if(!o||!a||!i||!c)throw new cl("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(a);let m=d+h;l&&(m=parseInt(l));const f=m-d;f*1e3<=$s&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const b=m-h;d-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,m,d):d-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,m,d);const{data:v,error:x}=await this._getUser(o);if(x)throw x;const w={provider_token:n,provider_refresh_token:s,access_token:o,expires_in:h,expires_at:m,refresh_token:i,token_type:c,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:w,redirectType:t.type},error:null})}catch(n){if(W(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await Bn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({error:o});const i=(n=s.session)===null||n===void 0?void 0:n.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(mM(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Zr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=SM(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(
362async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,s;try{const{data:{session:o},error:i}=r;if(i)throw i;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",o)),this._debug("INITIAL_SESSION","callback id",t,"session",o)}catch(o){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",o),console.error(o)}})}async resetPasswordForEmail(t,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await Is(this.storage,this.storageKey,!0));try{return await Q(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(o){if(W(o))return this._returnResult({data:null,error:o});throw o}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:s}=await this._useSession(async o=>{var i,a,l,c,d;const{data:h,error:m}=o;if(m)throw m;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await Q(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(c=h.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return Qe()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(W(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:s,data:{session:o}}=r;if(s)throw s;const{options:i,provider:a,token:l,access_token:c,nonce:d}=t,h=await Q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=o==null?void 0:o.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:c,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:qt}),{data:m,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!m||!m.session||!m.user?this._returnResult({data:{user:null,session:null},error:new As}):(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("USER_UPDATED",m.session)),this._returnResult({data:m,error:f}))}catch(s){if(W(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)throw i;return await Q(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await TM(async s=>(s>
3620&&await CM(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await Q(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:qt})),(s,o)=>{const i=200*Math.pow(2,s);return o&&hd(o)&&Date.now()+i-n<$s})}catch(n){if(this._debug(r,"error",n),W(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),Qe()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await Bn(this.storage,this.storageKey);if(s&&this.userStorage){let i=await Bn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:s.user},await Fs(this.userStorage,this.storageKey+"-user",i)),s.user=(t=i==null?void 0:i.user)!==null&&t!==void 0?t:pd()}else if(s&&!s.user&&!s.user){const i=await Bn(this.storage,this.storageKey+"-user");i&&(i!=null&&i.user)?(s.user=i.user,await Zr(this.storage,this.storageKey+"-user"),await Fs(this.storage,this.storageKey,s)):s.user=pd()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const o=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<dd;if(this._debug(n,`session has${o?"":" not"} expired with margin of ${dd}s`),o){if(this.autoRefreshToken&&s.refresh_token){const{error:i}=await this._callRefreshToken(s.refresh_token);i&&(console.error(i),hd(i)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(s.access_token);!a&&(i!=null&&i.user)?(s.user=i.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(n,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Ht;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new ic;const{data:o,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!o.session)throw new Ht;await this._saveSession(o.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const a={data:o.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(o){if(this._debug(s,"error",o),W(o)){const i={data:null,error:o};return hd(o)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(i),i}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(o),o}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,r,n=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const o=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(l){o.push(l)}});if(await Promise.all(i),o.length>0){for(let a=0;a<o.length;a+=1)console.error(o[a]);throw o[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Fs(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const o=Ov(s);await Fs(this.storage,this.storageKey,o)}else{const s=Ov(r);await Fs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await Zr(this.storage,this.storageKey),await Zr(this.storage,this.storageKey+"-code-verifier"),await Zr(this.storage,this.storageKey+"-user"),this.userStorage&&await Zr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Qe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
362catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),$s);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-t)/$s);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${$s}ms, refresh threshold is ${Zh} ticks`),s<=Zh&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof H1)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Qe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[o,i]=await Is(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(o)}`,code_challenge_method:`${encodeURIComponent(i)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const o=new URLSearchParams(n.queryParams);s.push(o.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;return o?this._returnResult({data:null,error:o}):await Q(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,s;const{data:o,error:i}=r;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await Q(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=o==null?void 0:o.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?sL(t.webauthn.credential_response):oL(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await Q(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:i,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const i=await Q(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});if(i.error)return i;const{data:a}=i;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:rL(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:nL(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const s={all:[],phone:[],totp:[],webauthn:[]};for(const o of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])s.all.push(o),o.status==="verified"&&s[o.factor_type].push(o);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var t,r;const{data:{session:n},error:s}
362=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=fd(n.access_token);let i=null;o.aal&&(i=o.aal);let a=i;((r=(t=n.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const c=o.amr||[];return{data:{currentLevel:i,nextLevel:a,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:s}=r;return s?this._returnResult({data:null,error:s}):n?await Q(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new Ht})})}catch(r){if(W(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new Ht});const i=await Q(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Qe()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new Ht});const i=await Q(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&Qe()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(i.data.redirect_url),i})}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+fM>s)return n;const{data:o,error:i}=await Q(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!o.keys||o.keys.length===0||(this.jwks=o,this.jwks_cached_at=s,n=o.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:f,error:b}
362=await this.getSession();if(b||!f.session)return this._returnResult({data:null,error:b});n=f.session.access_token}const{header:s,payload:o,signature:i,raw:{header:a,payload:l}}=fd(n);r!=null&&r.allowExpired||DM(o.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:f}=await this.getUser(n);if(f)throw f;return{data:{claims:o,header:s,signature:i},error:null}}const d=MM(s.alg),h=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,i,_M(`${a}.${l}`)))throw new rf("Invalid JWT signature");return{data:{claims:o,header:s,signature:i},error:null}}catch(n){if(W(n))return this._returnResult({data:null,error:n});throw n}}}sa.nextInstanceID={};const pL=sa;class mL extends pL{constructor(t){super(t)}}class gL{constructor(t,r,n){var s,o,i;this.supabaseUrl=t,this.supabaseKey=r;const a=lM(t);if(!r)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,c={db:eM,realtime:rM,auth:Object.assign(Object.assign({},tM),{storageKey:l}),global:ZD},d=aM(n??{},c);this.storageKey=(s=d.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=d.global.headers)!==null&&o!==void 0?o:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(h,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=d.auth)!==null&&i!==void 0?i:{},this.headers,d.global.fetch),this.fetch=oM(r,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new uD(new URL("rest/v1",a).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new QD(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new iD(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,r={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t,r;if(this.accessToken)return await this.accessToken();const{data:n}=await this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:s,userStorage:o,storageKey:i,flowType:a,lock:l,debug:c,throwOnError:d},h,m){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new mL({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),h),storageKey:i,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:s,userStorage:o,flowType:a,lock:l,debug:c,throwOnError:d,fetch:m,hasCustomAuthorizationHeader:Object.keys(this.headers).some(b=>b.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new jD(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const vL=(e,t,r)=>new gL(e,t,r);function yL(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}yL()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
362ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function wL(){var x,w;if(typeof window>"u")return;const e=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=r?((x=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:x[1])??((w=e.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:w[1]):void 0,o=window.parent&&window.parent!==window;if(!s||!o)return localStorage;const i=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=i?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&a.test(l)?[l]:i?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,m=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(g,y,_)=>new Promise(E=>{const k=m();let j=!1,P;const A=D=>{j||(j=!0,clearTimeout(P),window.removeEventListener("message",N),E(D))},N=D=>{if(c.indexOf(D.origin)<0)return;const K=D.data;K&&K.type===d&&K.requestId===k&&A(K)};window.addEventListener("message",N);const U={type:g,requestId:k,projectId:s,key:y};_!==void 0&&(U.value=_);for(const D of c)window.parent.postMessage(U,D);P=setTimeout(()=>A(null),h)});let b=!0;const v=250;return{getItem:async g=>{let y=await f("lovable-preview-auth:get",g);return!y&&b&&(await new Promise(_=>setTimeout(_,v)),y=await f("lovable-preview-auth:get",g)),b=!1,y&&y.ok&&typeof y.value=="string"?y.value===""?(localStorage.removeItem(g),null):y.value:localStorage.getItem(g)},setItem:(g,y)=>(localStorage.setItem(g,y),f("lovable-preview-auth:set",g,y).then(_=>{_&&_.ok&&typeof _.value=="string"&&localStorage.getItem(g)===y&&(_.value===""?localStorage.removeItem(g):localStorage.setItem(g,_.value))})),removeItem:g=>(localStorage.removeItem(g),f("lovable-preview-auth:remove",g).then(()=>{}))}}const xL="https://mjjayiiyzptshwtdsctl.supabase.co",bL="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1qamF5aWl5enB0c2h3dGRzY3RsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjI0NTUxMzUsImV4cCI6MjA3ODAzMTEzNX0.lRtEEKl2_GSsHmZjxq1GviwMIbExGX45QrytWPzrzq0",_L=vL(xL,bL,{auth:{storage:wL(),persistSession:!0,autoRefreshToken:!0}}),EL=["course-schedule-overrides"],SL=e=>{const[t="0",r="00"]=e.split(":"),n=new Date(2e3,0,1,Number(t),Number(r));return Al(n,"h:mm a")},kL=async()=>{const{data:e,error:t}=await _L.from("course_schedule_overrides").select("*").order("info_meeting_date",{ascending:!0});if(t)throw t;return e??[]},jL=()=>AR({queryKey:EL,queryFn:kL,staleTime:6e4,retry:1}),dl=e=>{var a;const t=jL(),r=MA[e],n=(a=t.data)==null?void 0:a.find(l=>l.course_key===e);if(!n)return{...r,isDatabaseSchedule:!1};const s=cv(n.info_meeting_date),o=cv(n.course_start_date),i=n.info_meeting_time.slice(0,8);return{...r,courseId:n.course_id,courseName:n.course_name,infoMeetingDate:Al(s,"EEE do MMM"),infoMeetingDateFull:Al(s,"EEEE do MMMM"),infoMeetingDateISO:n.info_meeting_date,infoMeetingTime:SL(i),infoMeetingTimeISO:i,infoMeetingDateTimeISO:`${n.info_meeting_date}T${i}`,courseStartDate:Al(o,"EEEE do MMMM yyyy"),courseStartDateISO:n.course_start_date,isDatabaseSchedule:!0}},CL=()=>{const e=dl("taOnlineLL"),t=[{key:"taOnlineWD",schedule:dl("taOnlineWD")},{key:"l2cypmhOnline",schedule:dl("l2cypmhOnline")},{key:"taOnlineL3",schedule:dl("taOnlineL3")}];return u.jsxs("section",{className:"cohort-showcase relative overflow-hidden border-b border-border bg-muted py-14 md:py-24",children:[u.jsx("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0 h-1 bg-gradient-to-r from-primary via-secondary to-primary"}),u.jsxs("div",{className:"container relative mx-auto max-w-7xl px-5",children:[u.jsxs("div",{className:"mb-9 flex flex-col gap-4 md:mb-12 md:flex-row md:items-end md:justify-between",children:[u.jsxs("div",{children:[u.jsxs("span",{className:"mb-4 inline-flex items-center gap-2 rounded-full border border-secondary/40 bg-secondary/10 px-4 py-2 text-[11px] font-black text-primary",children:[u.jsx("span",{className:"h-2 w-2 rounded-full bg-secondary motion-safe:animate-pulse"}),"Now enrolling · Next cohort"]}),u.jsx("h2",{className:"max-w-4xl text-4xl font-black leading-[1.02] text-foreground md:text-6xl",children:"Your route into a school starts here."}),u.jsx("p",{className:"mt-3 max-w-2xl text-base text-muted-foreground md:text-lg",children:"Start with our fully online Level 2 Teaching Assistant course, or compare our other funded courses."})]}),u.jsxs($e,{to:"/our-courses",className:"hidden md:inline-flex items-center gap-2 text-xs font-semibold text-primary hover:text-secondary transition-colors",children:["All courses",u.jsx(cr,{className:"h-4 w-4"})]})]}),u.jsxs("div",{className:"grid items-stretch gap-5 lg:grid-cols-[1.35fr_.65fr]",children:[u.jsx($e,{to:e.pageUrl,className:"group relative flex min-h-[430px] flex-col overflow-hidden rounded-lg bg-primary p-7 text-primary-foreground shadow-cohort md:p-10",children:u.jsxs("div",{className:"relative flex h-full flex-col",children:[u.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[u.jsx("span",{className:"rounded-full bg-secondary px-4 py-2 text-[11px] font-black text-secondary-foreground",children:"Featured course"}),u.jsx("span",{className:"text-xs font-bold text-primary-foreground
362/70",children:"100% government funded"})]}),u.jsxs("div",{className:"mt-9 max-w-2xl",children:[u.jsx("p",{className:"text-sm font-bold text-secondary",children:"Level 2"}),u.jsxs("h3",{className:"mt-3 text-4xl font-black leading-none md:text-6xl",children:["Teaching Assistant",u.jsx("span",{className:"mt-2 block text-secondary",children:"Fully online"})]}),u.jsx("p",{className:"mt-5 max-w-xl text-base leading-relaxed text-primary-foreground/80 md:text-lg",children:"Study live online from home and gain the skills and qualification to start working in a school."})]}),u.jsxs("div",{className:"mt-8 grid gap-3 sm:grid-cols-2",children:[u.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-primary-foreground/15 bg-primary-foreground/[0.06] p-4",children:[u.jsx(Wj,{className:"h-6 w-6 shrink-0 text-secondary"}),u.jsxs("div",{children:[u.jsx("strong",{className:"block text-sm",children:"Fully online"}),u.jsx("span",{className:"text-xs text-primary-foreground/65",children:"Learn live from home"})]})]}),u.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-primary-foreground/15 bg-primary-foreground/[0.06] p-4",children:[u.jsx(Vc,{className:"h-6 w-6 shrink-0 text-secondary"}),u.jsxs("div",{children:[u.jsx("strong",{className:"block text-sm",children:"Live teaching"}),u.jsx("span",{className:"text-xs text-primary-foreground/65",children:"Interactive classes on Zoom"})]})]})]}),u.jsxs("div",{className:"mt-auto flex flex-col gap-4 border-t border-primary-foreground/15 pt-6 sm:flex-row sm:items-center sm:justify-between",children:[u.jsxs("div",{className:"flex flex-wrap gap-x-5 gap-y-2 text-xs text-primary-foreground/75",children:[u.jsxs("span",{className:"flex items-center gap-2",children:[u.jsx(Vc,{className:"h-4 w-4 text-secondary"})," Info meeting ",e.infoMeetingDateFull,", ",e.infoMeetingTime]}),u.jsxs("span",{className:"flex items-center gap-2",children:[u.jsx(Mj,{className:"h-4 w-4 text-secondary"})," Starts ",e.courseStartDate]})]}),u.jsxs("span",{className:"inline-flex shrink-0 items-center gap-2 rounded-full bg-secondary px-5 py-3 text-sm font-black text-secondary-foreground transition-transform group-hover:translate-x-1",children:["Reserve my place ",u.jsx(cr,{className:"h-4 w-4"})]})]})]})}),u.jsx("div",{className:"grid gap-4",children:t.map(r=>u.jsxs($e,{to:r.schedule.pageUrl,className:"group flex flex-col rounded-lg border border-border bg-card p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:border-secondary hover:shadow-soft",children:[u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-primary text-primary-foreground",children:u.jsx(op,{className:"h-5 w-5"})}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("span",{className:"text-[10px] font-black text-secondary",children:"Fully online"}),u.jsx("h3",{className:"mt-1 text-base font-extrabold leading-snug text-foreground",children:r.schedule.courseName})]})]}),u.jsxs("div",{className:"mt-4 flex flex-wrap gap-x-4 gap-y-2 text-xs text-muted-foreground",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Vc,{className:"h-3.5 w-3.5 text-secondary"})," ",r.schedule.infoMeetingDateFull]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(zj,{className:"h-3.5 w-3.5 text-secondary"})," ",r.schedule.infoMeetingTime," on Zoom"]})]}),u.jsxs("span",{className:"mt-4 inline-flex items-center gap-1.5 text-xs font-black text-primary",children:["View course ",u.jsx(cr,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-1"})]})]},r.key))})]}),u.jsxs("div",{className:"mt-6 flex flex-col gap-2 border-t border-border pt-5 text-xs text-muted-foreground sm:flex-row sm:items-center sm:justify-between",children:[u.jsx("span",{children:"All information meetings are held live on Zoom."}),u.jsxs("strong",{className:"text-foreground",children:["Applications close ",DA.applicationDeadline]})]})]})]})},$v="/assets/hero-learners-success-Dhxqyj-y.jpg",TL="/assets/home-pillar-courses-Gpe7kvS3.jpg",PL="/assets/home-pillar-apprenticeships-BIgWhLjp.jpg",RL="/assets/home-pillar-employers-DVYZZNSu.jpg",OL="/assets/learner-cohort-banner-Cl8Ssc4-.jpg",Fv="/assets/testimonial-sarah-real-BzWrChxu.jpg",zv="/assets/testimonial-emma-real-BDw2-9uU.jpg",Uv="/assets/testimonial-jane-real-DYGPd_oq.jpg",NL=()=>u.jsxs("div",{className:"bg-background overflow-x-hidden",children:[u.jsx(PA,{title:"Truworx | Training, Apprenticeships & Talent Solutions UK",description:"Truworx is a UK training and talent partner — we deliver government-funded courses, apprenticeships and employer recruitment support that help people start meaningful careers.",canonical:"/"}),u.jsx(RA,{data:OA}),u.jsx(l1,{}
362),u.jsxs("section",{className:"relative min-h-[78vh] md:min-h-[94vh] flex items-center overflow-hidden bg-background",children:[u.jsx("img",{src:$v,alt:"Truworx learners and employers across the UK",className:"hidden md:block absolute inset-y-0 right-0 w-[60%] h-full object-cover",fetchpriority:"high"}),u.jsx("div",{className:"hidden md:block absolute inset-y-0 right-0 w-[60%] bg-gradient-to-r from-background via-background/80 to-transparent"}),u.jsx("div",{"aria-hidden":!0,className:"hidden md:block absolute inset-y-0 left-[40%] w-40 bg-gradient-to-r from-background to-transparent"}),u.jsx("img",{src:$v,alt:"","aria-hidden":!0,className:"md:hidden absolute inset-0 w-full h-full object-cover opacity-20"}),u.jsx("div",{className:"md:hidden absolute inset-0 bg-gradient-to-b from-background via-background/95 to-background"}),u.jsx("div",{"aria-hidden":!0,className:"absolute -top-40 -left-40 w-[600px] h-[600px] rounded-full bg-secondary/15 blur-3xl animate-[pulse_8s_ease-in-out_infinite]"}),u.jsx("div",{"aria-hidden":!0,className:"absolute top-1/3 left-1/4 w-[400px] h-[400px] rounded-full bg-primary/10 blur-3xl animate-[pulse_10s_ease-in-out_infinite]"}),u.jsx("div",{"aria-hidden":!0,className:"absolute -bottom-40 right-1/4 w-[500px] h-[500px] rounded-full bg-secondary/10 blur-3xl animate-[pulse_12s_ease-in-out_infinite]"}),u.jsx("div",{"aria-hidden":!0,className:"hidden md:block absolute top-0 right-0 w-1 h-full bg-gradient-to-b from-transparent via-secondary to-transparent"}),u.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 opacity-[0.025] pointer-events-none",style:{backgroundImage:"linear-gradient(hsl(var(--primary)) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--primary)) 1px, transparent 1px)",backgroundSize:"48px 48px"}}),u.jsxs("div",{className:"relative container mx-auto px-5 py-14 md:py-24",children:[u.jsxs("div",{className:"max-w-3xl animate-fade-in",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[u.jsxs("div",{className:"inline-flex items-stretch rounded-full overflow-hidden shadow-soft bg-background border border-secondary/40",children:[u.jsxs("span",{className:"bg-secondary text-secondary-foreground text-xs font-black px-4 py-1.5 flex items-center gap-1.5",children:[u.jsx(Hi,{className:"h-3 w-3"}),"Truworx"]}),u.jsx("span",{className:"text-foreground text-xs font-bold px-4 py-1.5 flex items-center",children:"Britain's Career Launchpad"})]}),u.jsxs("div",{className:"inline-flex items-center gap-1.5 bg-background/80 backdrop-blur border border-border rounded-full px-3 py-1.5 shadow-sm",children:[[...Array(5)].map((e,t)=>u.jsx(Uc,{className:"h-3.5 w-3.5 fill-secondary text-secondary"},t)),u.jsx("span",{className:"text-xs font-bold text-foreground ml-1",children:"Rated 4.9 by 5,000+ learners"})]})]}),u.jsxs("h1",{className:"font-black leading-[0.92]",style:{fontSize:"clamp(44px, 8vw, 100px)"},children:[u.jsx("span",{className:"text-primary",children:"Learn Today,"}),u.jsx("br",{}),u.jsx("span",{className:"text-heading-accent",children:"Work Tomorrow."})]}),u.jsx("p",{className:"mt-7 text-foreground/80 text-lg md:text-2xl font-light leading-relaxed max-w-2xl",children:"We train, qualify and place people into careers that matter — and help UK employers build the teams they need to grow. All in weeks, not years."}),u.jsx("div",{className:"mt-6 flex flex-wrap gap-x-5 gap-y-2",children:["100% government funded","Guaranteed job interview","Nationally accredited"].map(e=>u.jsxs("span",{className:"inline-flex items-center gap-2 text-sm font-semibold text-foreground/80",children:[u.jsx($j,{className:"h-4 w-4 text-secondary"}),e]},e))}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-9",children:[u.jsx("a",{href:"#what-we-do",children:u.jsxs(ao,{size:"lg",className:"group font-bold rounded-full px-8 py-7 text-base bg-secondary hover:bg-secondary/90 text-secondary-foreground shadow-card shadow-secondary/40 hover:scale-[1.03] transition-all w-full sm:w-auto",children:["Show me what's possible",u.jsx(cr,{className:"ml-2 h-5 w-5 group-hover:translate-x-1 transition-transform"})]})}),u.jsx($e,{to:"/contact",children:u.jsxs(ao,{size:"lg",variant:"outline",className:"font-bold rounded-full px-8 py-7 text-base bg-background/80 backdrop-blur border-primary/30 text-primary hover:bg-primary hover:text-primary-foreground w-full sm:w-auto",children:[u.jsx(Kj,{className:"mr-2 h-4 w-4 fill-current"}),"Speak to a human"]})})]}),u.jsxs("div",{className:"mt-10 flex flex-wrap items-center gap-x-5 gap-y-3 text-[11px] font-bold text-foreground
362/60",children:[u.jsxs("span",{className:"inline-flex items-center gap-2",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-secondary animate-pulse"}),"NCFE accredited"]}),u.jsxs("span",{className:"inline-flex items-center gap-2",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-secondary animate-pulse"}),"ESFA funded"]}),u.jsxs("span",{className:"inline-flex items-center gap-2",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-secondary animate-pulse"}),"Ofsted registered"]})]})]}),u.jsxs("div",{className:"hidden lg:block absolute right-8 bottom-12 w-72 rounded-2xl bg-background/90 backdrop-blur-xl border border-border shadow-card p-5 animate-fade-in",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsxs("div",{className:"flex -space-x-2",children:[u.jsx("img",{src:Fv,alt:"",className:"w-10 h-10 rounded-full ring-2 ring-background object-cover"}),u.jsx("img",{src:zv,alt:"",className:"w-10 h-10 rounded-full ring-2 ring-background object-cover"}),u.jsx("img",{src:Uv,alt:"",className:"w-10 h-10 rounded-full ring-2 ring-background object-cover"}),u.jsx("div",{className:"w-10 h-10 rounded-full ring-2 ring-background bg-primary text-primary-foreground text-[10px] font-black flex items-center justify-center",children:"+5k"})]}),u.jsxs("div",{className:"text-xs font-bold text-foreground/80 leading-tight",children:["Real people.",u.jsx("br",{}),"Real careers."]})]}),u.jsxs("div",{className:"border-t border-border pt-3 flex items-end justify-between",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-3xl font-black text-primary leading-none",children:"92%"}),u.jsx("div",{className:"text-[10px] font-bold text-muted-foreground mt-1",children:"Into work within weeks"})]}),u.jsx(Bc,{className:"h-5 w-5 text-secondary"})]})]})]}),u.jsx("div",{"aria-hidden":!0,className:"hidden md:block absolute bottom-0 left-0 right-0 border-t border-border bg-background/80 backdrop-blur overflow-hidden",children:u.jsx("div",{className:"flex items-center gap-12 py-3 whitespace-nowrap animate-[scroll_30s_linear_infinite]",children:[...Array(2)].flatMap((e,t)=>["★ NCFE Accredited","★ ESFA Funded","★ Ofsted Registered","★ DWP Approved","★ Job Centre Plus Partner","★ 5,000+ Trained","★ 92% Placement Rate"].map((r,n)=>u.jsx("span",{className:"text-xs font-bold text-foreground/60",children:r},`${t}-${n}`)))})})]}),u.jsx("div",{"aria-hidden":!0,className:"h-[3px] w-full bg-gradient-to-r from-primary via-secondary to-primary"}),u.jsx(IA,{variant:"light"}),u.jsx(CL,{}),u.jsxs("section",{className:"relative py-20 md:py-32 bg-muted overflow-hidden",children:[u.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -top-24 -right-24 w-96 h-96 rounded-full bg-secondary/10 blur-3xl"}),u.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-24 -left-24 w-96 h-96 rounded-full bg-primary/10 blur-3xl"}),u.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute top-6 left-1/2 -translate-x-1/2 font-serif text-secondary/15 select-none",style:{fontSize:"clamp(200px, 24vw, 360px)",lineHeight:1},children:"“"}),u.jsxs("div",{className:"container mx-auto px-5 max-w-5xl relative text-center",children:[u.jsx("span",{className:"inline-block bg-primary text-primary-foreground text-[11px] font-black px-3 py-1.5 rounded-md mb-6",children:"Our Mission"}),u.jsxs("p",{className:"font-black text-foreground leading-[1.05]",style:{fontSize:"clamp(30px, 4.8vw, 60px)"},children:["We exist to unlock"," ",u.jsx("span",{className:"italic font-serif text-primary",children:"work that matters"})," ","— giving people the skills, confidence and opportunities to build a better life, and giving employers the talent to build a stronger business."]}),u.jsxs("div",{className:"mt-10 flex items-center justify-center gap-3 text-sm font-bold text-foreground/60",children:[u.jsx("span",{className:"h-px w-12 bg-primary/30"}),u.jsx("span",{children:"Proudly British · Delivered Nationwide"}),u.jsx("span",{className:"h-px w-12 bg-primary/30"})]})]})]}),u.jsxs("section",{className:"relative py-20 md:py-28 bg-primary text-primary-foreground overflow-hidden",children:[u.jsx("img",{src:OL,alt:"",className:"absolute inset-0 w-full h-full object-cover opacity-15"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/95 via-primary/85 to-primary/95"}
362),u.jsx("div",{"aria-hidden":!0,className:"absolute -top-32 -right-32 w-96 h-96 rounded-full bg-secondary/15 blur-3xl"}),u.jsx("div",{"aria-hidden":!0,className:"absolute -bottom-32 -left-32 w-96 h-96 rounded-full bg-secondary/10 blur-3xl"}),u.jsxs("div",{className:"container mx-auto px-5 max-w-6xl relative",children:[u.jsxs("div",{className:"text-center mb-12 md:mb-16",children:[u.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-black text-secondary bg-secondary/15 border border-secondary/40 rounded-full px-3 py-1 mb-4",children:[u.jsx(Bc,{className:"h-3 w-3"})," The proof"]}),u.jsxs("h2",{className:"font-black leading-[1.05]",style:{fontSize:"clamp(32px, 5vw, 56px)"},children:["Numbers don't lie. ",u.jsx("span",{className:"text-primary-foreground",children:"Lives changed."})]})]}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6",children:[{v:"5,000+",l:"Lives changed",icon:gh,pct:100},{v:"500+",l:"Hiring partners",icon:fh,pct:78},{v:"92%",l:"Walk into work",icon:Bc,pct:92},{v:"£0",l:"Cost to learners",icon:mh,pct:100}].map(e=>{const t=e.icon;return u.jsxs("div",{className:"group relative rounded-2xl bg-primary-foreground/[0.04] hover:bg-primary-foreground/[0.08] backdrop-blur-sm border border-primary-foreground/10 hover:border-secondary/40 p-6 md:p-7 transition-all hover:-translate-y-1",children:[u.jsx(t,{className:"h-5 w-5 text-secondary mb-4"}),u.jsx("div",{className:"font-black text-primary-foreground leading-none",style:{fontSize:"clamp(36px, 5vw, 60px)"},children:e.v}),u.jsx("div",{className:"mt-2 text-xs md:text-sm text-primary-foreground/70 font-mediumr",children:e.l}),u.jsx("div",{className:"mt-4 h-1 rounded-full bg-primary-foreground/10 overflow-hidden",children:u.jsx("div",{className:"h-full bg-primary-foreground/70 transition-all duration-1000",style:{width:`${e.pct}%`}})})]},e.l)})})]}),u.jsx("div",{"aria-hidden":!0,className:"absolute bottom-0 left-0 right-0 h-[3px] bg-secondary"})]}),u.jsx("section",{id:"what-we-do",className:"relative py-20 md:py-28 bg-background overflow-hidden",children:u.jsxs("div",{className:"container mx-auto px-5 max-w-7xl relative",children:[u.jsxs("div",{className:"mb-12 md:mb-16 flex flex-col md:flex-row md:items-end md:justify-between gap-6",children:[u.jsxs("div",{className:"max-w-2xl",children:[u.jsx("span",{className:"inline-block bg-primary text-primary-foreground text-[10px] font-bold px-3 py-1 mb-6",children:"What we do"}),u.jsxs("h2",{className:"font-serif text-primary leading-[1.05]",style:{fontSize:"clamp(36px, 5vw, 60px)"},children:["Three doors. One ",u.jsx("span",{className:"italic",children:"brighter future."})]})]}),u.jsxs($e,{to:"/our-courses",className:"hidden md:inline-flex items-center gap-2 text-xs font-semibold text-primary hover:text-secondary transition-colors",children:["View everything we offer",u.jsx(cr,{className:"h-4 w-4"})]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-8",children:[{img:TL,kicker:"Learners",title:"Free Courses",desc:"Fully-funded, nationally-accredited qualifications — online, flexible, and built to get you job-ready in weeks.",to:"/our-courses",cta:"Find your course"},{img:PL,kicker:"Apprentices",title:"Apprenticeships",desc:"Earn while you learn. End-to-end apprenticeships from Adult Care to Early Years — perfect for first jobs and career changers alike.",to:"/apprenticeships",cta:"Explore standards"},{img:RL,kicker:"Employers",title:"For Employers",desc:"Job-ready talent, fully-funded training and Levy support — recruit, upskill and retain the people your business needs.",to:"/employers",cta:"Hire smarter"}].map(e=>u.jsxs($e,{to:e.to,className:"group relative flex flex-col h-[480px] md:h-[540px] overflow-hidden bg-primary",children:[u.jsxs("div",{className:"absolute inset-0 z-0",children:[u.jsx("img",{src:e.img,alt:e.title,className:"w-full h-full object-cover opacity-60 grayscale group-hover:grayscale-0 group-hover:opacity-70 group-hover:scale-105 transition-all duration-[1200ms] ease-out"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary via-primary/50 to-transparent"})]}),u.jsxs("div",{className:"relative z-10 mt-auto p-7 md:p-9",children:[u.jsx("p",{className:"text-secondary text-[10px] font-bold mb-4",children:e.kicker}),u.jsx("h3",{className:"font-serif text-primary-foreground text-3xl md:text-[2rem] leading-tight mb-4",children:e.title}
362),u.jsx("p",{className:"text-primary-foreground/75 text-sm leading-relaxed mb-7 max-w-[280px]",children:e.desc}),u.jsxs("div",{className:"inline-flex items-center gap-2 text-primary-foreground text-[11px] font-semibold group-hover:text-primary-foreground group-hover:underline transition-colors",children:[e.cta,u.jsx(cr,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]},e.title))}),u.jsx("div",{className:"mt-12 md:mt-16 text-center",children:u.jsxs($e,{to:"/our-courses",className:"inline-flex items-center gap-2 text-xs font-semibold text-primary hover:text-secondary transition-colors border-b border-primary/15 pb-1",children:["View everything we offer",u.jsx(cr,{className:"h-3 w-3"})]})})]})}),u.jsx("section",{className:"relative py-14 md:py-20 bg-muted overflow-hidden",children:u.jsx("div",{className:"container mx-auto px-5 max-w-5xl",children:u.jsxs("div",{className:"rounded-3xl border border-border bg-background p-7 md:p-10 shadow-sm",children:[u.jsx("span",{className:"inline-block bg-primary text-primary-foreground text-[11px] font-black px-3 py-1.5 rounded-md mb-4",children:"Greater London"}),u.jsx("h2",{className:"text-2xl md:text-4xl font-black mb-3 leading-tight",children:"Living in London? You have a different route."}),u.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl",children:"Adult education funding in London is devolved, so our fully funded courses aren't available there. Instead you can take a Level 3 Teaching Assistant or Early Years Educator Diploma — nothing to pay upfront, and a guaranteed job interview at the end."}),u.jsx("div",{className:"flex flex-wrap gap-3",children:u.jsx(ao,{asChild:!0,size:"lg",className:"font-bold bg-primary hover:bg-primary/90 text-primary-foreground",children:u.jsxs($e,{to:"/london-courses",children:["See London Courses ",u.jsx(cr,{className:"ml-2 h-4 w-4"})]})})})]})})}),u.jsx("section",{className:"relative py-14 md:py-16 bg-background overflow-hidden border-y border-border",children:u.jsx("div",{className:"container mx-auto px-5 max-w-6xl",children:u.jsxs("div",{className:"grid md:grid-cols-4 gap-6 items-center",children:[u.jsxs("div",{className:"md:col-span-1",children:[u.jsx("span",{className:"inline-block bg-primary text-primary-foreground text-[11px] font-black px-3 py-1.5 rounded-md mb-3",children:"Recognition"}),u.jsx("h3",{className:"font-black text-foreground leading-tight text-2xl md:text-3xl",children:"Backed by the names that matter in UK education."})]}),u.jsx("div",{className:"md:col-span-3 grid grid-cols-2 md:grid-cols-4 gap-3",children:[{icon:Bw,label:"NCFE Accredited Provider"},{icon:mh,label:"ESFA Funded"},{icon:gh,label:"DWP Partner Network"},{icon:ip,label:"Ofsted Registered"}].map(({icon:e,label:t})=>u.jsxs("div",{className:"group rounded-xl bg-muted hover:bg-secondary/10 border border-border hover:border-secondary/40 p-5 flex flex-col items-start gap-3 transition-all hover:-translate-y-1",children:[u.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary text-primary-foreground flex items-center justify-center group-hover:bg-secondary group-hover:text-secondary-foreground transition-colors",children:u.jsx(e,{className:"h-5 w-5"})}),u.jsx("div",{className:"text-xs font-bold text-foreground leading-tight",children:t})]},t))})]})})}),u.jsxs("section",{className:"py-20 md:py-28 bg-muted relative overflow-hidden",children:[u.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -top-32 -left-32 w-[500px] h-[500px] rounded-full bg-primary/5 blur-3xl"}),u.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-32 -right-32 w-[500px] h-[500px] rounded-full bg-secondary/10 blur-3xl"}),u.jsxs("div",{className:"container mx-auto px-5 max-w-6xl relative",children:[u.jsxs("div",{className:"text-center mb-12",children:[u.jsx("span",{className:"inline-block bg-primary text-primary-foreground text-[11px] font-black px-3 py-1.5 rounded-md",children:"Real stories · Real careers"}),u.jsxs("h2",{className:"mt-4 font-black text-foreground leading-[1.05]",style:{fontSize:"clamp(30px, 4.5vw, 52px)"},children:["From the ",u.jsx("span",{className:"italic font-serif text-primary",children:"school run"})," to a ",u.jsx("span",{className:"italic font-serif text-primary",children:"career"})," she loves."]})]}),u.jsxs("div",{className:"relative rounded-3xl bg-background border border-border shadow-card overflow-hidden mb-6 grid md:grid-cols-[400px_1fr]",children:[u.jsx("div",{"aria-hidden":!0,
362className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-primary via-secondary to-primary z-10"}),u.jsxs("div",{className:"relative h-72 md:h-auto overflow-hidden",children:[u.jsx("img",{src:Fv,alt:"Sarah, Liverpool",className:"absolute inset-0 w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-primary/60 via-transparent to-transparent md:bg-gradient-to-r md:from-transparent md:to-background/0"}),u.jsxs("div",{className:"absolute top-5 left-5 inline-flex items-center gap-1.5 bg-background/90 backdrop-blur rounded-full px-3 py-1.5 shadow-soft",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-secondary animate-pulse"}),u.jsx("span",{className:"text-[10px] font-black text-foreground",children:"Verified learner"})]}),u.jsxs("div",{className:"absolute bottom-5 left-5 md:hidden text-primary-foreground",children:[u.jsx("div",{className:"font-black",children:"Sarah, Liverpool"}),u.jsx("div",{className:"text-xs text-primary-foreground/80",children:"Now working as a Teaching Assistant"})]})]}),u.jsxs("div",{className:"p-8 md:p-12 relative",children:[u.jsx(Gj,{className:"absolute top-8 right-8 h-12 w-12 text-secondary/20"}),u.jsx("div",{className:"flex gap-1 mb-5",children:[...Array(5)].map((e,t)=>u.jsx(Uc,{className:"h-4 w-4 fill-secondary text-secondary"},t))}),u.jsx("p",{className:"font-light text-foreground italic leading-[1.2]",style:{fontSize:"clamp(22px, 2.8vw, 36px)"},children:`"Truworx didn't just hand me a certificate. They handed me back my confidence — and a future I never thought I'd have."`}),u.jsxs("div",{className:"mt-8 flex items-center gap-3",children:[u.jsx("div",{className:"h-px w-12 bg-primary"}),u.jsxs("div",{className:"hidden md:block",children:[u.jsx("div",{className:"font-black text-foreground",children:"Sarah, Liverpool"}),u.jsx("div",{className:"text-sm text-muted-foreground",children:"Now working as a Teaching Assistant"})]}),u.jsx("div",{className:"md:hidden",children:u.jsx("div",{className:"font-bold text-foreground text-sm",children:"— Sarah, Liverpool"})})]})]})]}),u.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:[{img:zv,quote:"The tutors genuinely cared. I felt supported every single step of the way.",name:"Emma, Manchester",role:"Teaching Assistant"},{img:Uv,quote:"Twelve weeks ago I was at home with the kids. Today I'm in a job I love.",name:"Jane, Birmingham",role:"School Support Worker"}].map(e=>u.jsxs("div",{className:"group rounded-2xl bg-background border border-border p-6 flex gap-4 items-start shadow-sm hover:shadow-soft hover:-translate-y-1 transition-all",children:[u.jsx("img",{src:e.img,alt:e.name,className:"w-16 h-16 rounded-full object-cover flex-shrink-0 ring-4 ring-secondary/20"}),u.jsxs("div",{className:"flex-1",children:[u.jsx("div",{className:"flex gap-0.5 mb-2",children:[...Array(5)].map((t,r)=>u.jsx(Uc,{className:"h-3 w-3 fill-secondary text-secondary"},r))}),u.jsxs("p",{className:"text-sm text-foreground/85 leading-relaxed italic",children:['"',e.quote,'"']}),u.jsxs("div",{className:"mt-3",children:[u.jsx("div",{className:"text-xs font-black text-foreground",children:e.name}),u.jsx("div",{className:"text-[11px] text-muted-foreground",children:e.role})]})]})]},e.name))})]})]}),u.jsx("section",{className:"py-12 bg-background border-y border-border",children:u.jsxs("div",{className:"container mx-auto px-5 max-w-6xl",children:[u.jsx("p",{className:"text-center text-[11px] font-bold text-muted-foreground mb-8",children:"Working alongside the UK's leading employers, schools and public bodies"}),u.jsx(NA,{})]})}),u.jsxs("section",{className:"relative py-20 md:py-28 bg-primary text-primary-foreground overflow-hidden",children:[u.jsx("div",{"aria-hidden":!0,className:"absolute top-0 left-0 right-0 h-[3px] bg-secondary"}),u.jsx("div",{"aria-hidden":!0,className:"absolute -top-40 -right-40 w-[700px] h-[700px] rounded-full bg-secondary/15 blur-3xl animate-[pulse_10s_ease-in-out_infinite]"}),u.jsx("div",{"aria-hidden":!0,className:"absolute -bottom-40 -left-40 w-[600px] h-[600px] rounded-full bg-primary-foreground
362/5 blur-3xl"}),u.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 opacity-[0.04] pointer-events-none",style:{backgroundImage:"linear-gradient(white 1px, transparent 1px), linear-gradient(90deg, white 1px, transparent 1px)",backgroundSize:"60px 60px"}}),u.jsxs("div",{className:"container mx-auto px-5 max-w-5xl text-center relative",children:[u.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-black text-secondary bg-secondary/15 border border-secondary/40 rounded-full px-3 py-1 mb-5",children:[u.jsx(Hi,{className:"h-3 w-3"})," Get started"]}),u.jsxs("h2",{className:"font-black leading-[1.02]",style:{fontSize:"clamp(38px, 5.5vw, 72px)"},children:["So — which one are ",u.jsx("span",{className:"italic font-serif text-primary-foreground",children:"you"}),"?"]}),u.jsx("p",{className:"mt-5 text-base md:text-lg text-primary-foreground/75 max-w-2xl mx-auto font-light",children:"Two paths. One team behind you. Pick yours and we'll take it from here."}),u.jsxs("div",{className:"mt-12 grid md:grid-cols-2 gap-4 md:gap-6 text-left",children:[u.jsxs($e,{to:"/our-courses",className:"group relative rounded-3xl bg-primary-foreground/[0.06] hover:bg-primary-foreground/10 backdrop-blur-sm border border-primary-foreground/15 hover:border-secondary/60 p-7 md:p-9 transition-all hover:-translate-y-1 overflow-hidden",children:[u.jsx("div",{"aria-hidden":!0,className:"absolute -top-20 -right-20 w-48 h-48 rounded-full bg-secondary/20 blur-3xl group-hover:bg-secondary/30 transition-colors"}),u.jsxs("div",{className:"relative",children:[u.jsxs("div",{className:"flex items-center justify-between mb-6",children:[u.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-secondary text-secondary-foreground shadow-soft",children:u.jsx(op,{className:"h-7 w-7"})}),u.jsx(su,{className:"h-6 w-6 text-primary-foreground/40 group-hover:text-primary-foreground group-hover:rotate-45 transition-all"})]}),u.jsx("div",{className:"text-[10px] font-black text-secondary mb-2",children:"For Learners"}),u.jsx("h3",{className:"text-2xl md:text-3xl font-black mb-3 leading-tight",children:"I want a fresh start"}),u.jsx("p",{className:"text-primary-foreground/75 text-sm md:text-base font-light leading-relaxed mb-6",children:"Fully-funded courses, expert tutors and a guaranteed job interview waiting at the end."}),u.jsxs("div",{className:"inline-flex items-center gap-2 text-secondary font-bold text-sm group-hover:gap-3 transition-all border-b border-secondary/40 pb-0.5",children:["Find my course",u.jsx(cr,{className:"h-4 w-4"})]})]})]}),u.jsxs($e,{to:"/employers",className:"group relative rounded-3xl bg-primary-foreground/[0.06] hover:bg-primary-foreground/10 backdrop-blur-sm border border-primary-foreground/15 hover:border-secondary/60 p-7 md:p-9 transition-all hover:-translate-y-1 overflow-hidden",children:[u.jsx("div",{"aria-hidden":!0,className:"absolute -top-20 -right-20 w-48 h-48 rounded-full bg-secondary/20 blur-3xl group-hover:bg-secondary/30 transition-colors"}),u.jsxs("div",{className:"relative",children:[u.jsxs("div",{className:"flex items-center justify-between mb-6",children:[u.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-secondary text-secondary-foreground shadow-soft",children:u.jsx(fh,{className:"h-7 w-7"})}),u.jsx(su,{className:"h-6 w-6 text-primary-foreground/40 group-hover:text-primary-foreground group-hover:rotate-45 transition-all"})]}),u.jsx("div",{className:"text-[10px] font-black text-secondary mb-2",children:"For Employers"}),u.jsx("h3",{className:"text-2xl md:text-3xl font-black mb-3 leading-tight",children:"I need great people"}),u.jsx("p",{className:"text-primary-foreground/75 text-sm md:text-base font-light leading-relaxed mb-6",children:"Job-ready candidates, apprenticeship recruitment and Levy support — all under one roof."}),u.jsxs("div",{className:"inline-flex items-center gap-2 text-secondary font-bold text-sm group-hover:gap-3 transition-all border-b border-secondary/40 pb-0.5",children:["Build my team",u.jsx(cr,{className:"h-4 w-4"})]})]})]})]})]})]}),u.jsx(AA,{})]}),AL=p.lazy(()=>O(()=>import("./CVAssistant-DEr583p6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),IL=p.lazy(()=>O(()=>import("./JobSearch-GOM0Faxj.js"),__vite__mapDeps([20,7,8,9,1,2,10,11,12,13,3,14,4,21,22,23,24,19,25]))),DL=p.lazy(()=>O(()=>import("./SavedJobs-BcnUIXjG.js"),__vite__mapDeps([26,7,8,9,1,2,10,11,12,13,3,14,4,23,27,25]))),ML=p.lazy(()=>O(()=>import("./TAOnline-D-qCG7LS.js"),__vite__mapDeps([28,29,30,31,32,33,34,35,36,37,38,39,40,1,10,11,12,13,2,4,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,19,59,60]))),LL=p.lazy(()=>O(()=>import("./TAOnlineL3-DbTn1ykz.js"),__vite__mapDeps([61,30,31,32,33,34,35,36,37,1,10,11,12,13,2,4,23,62,50,63,48,49,46,47,51,52,53,54,64,65,55,56,57,58,19,60,66,59]))),$L=p.lazy(()=>O(()=>import("./L3TALondon-Cb95VzL1.js"),__vite__mapDeps([67,4,23,68,56,57,69,47,50,1,2,70,71,33,72,73,32,74,75,76,77,37,36,34,78,79,60,80,81]))),FL=p.lazy(()=>O(()=>import("./L3PTLondon-Bo0hbrdp.js"),__vite__mapDeps([82,4,23,1,2,69,47,50,74,75,70,73,37,36,34,83,79,84,60,80]))),zL=p.lazy(()=>O(()=>import("./L3EYELondon-SDh7qNiL.js"),__vite__mapDeps([85,4,23,68,56,57,69,47,50,1,2,70,71,33,72,73,74,75,76,37,36,34,77,78,79,60,86,80,81]))),UL=p.lazy(()=>O(()=>import("./LondonCourses-uiq-RdD8.js"),__vite__mapDeps([87,4,23,43,44,45,74,75,50,36]))),BL=p.lazy(()=>O(()=>import("./TAConfirm-BZ6FtGPj.js"),__vite__mapDeps([88,4,89,90,1,2,10,11,12,13,40,50,19,91,92,36]))),VL=p.lazy(()=>O(()=>import("./TAConfirmL3-DAVHBd8L.js"),__vite__mapDeps([93,4,89,90,1,2,10,11,12,13,40,50,19]))),WL=p.lazy(()=>O(()=>import("./L3TALondonConfirm-PNY3cG-g.js"),__vite__mapDeps([94,95,1,2,10,11,12,13,96,97,50,35,36,19,74,4,75]))),HL=p.lazy(()=>O(()=>import("./L3TALondonSuccess-Wit07oZf.js"),__vite__mapDeps([98,50,35,36]))),qL=p.lazy(()=>O(()=>import("./EarlyYearsLondonConfirm-CiVC2WUX.js"),__vite__mapDeps([99,4,89,95,1,2,10,11,12,13,96,97,50,35,36,19]))),KL=p.lazy(()=>O(()=>import("./TAConfirmCYPMH-BpBMNCu7.js"),__vite__mapDeps([100,4,89,90,1,2,10,11,12,13,40,50,19]))),GL=p.lazy(()=>O(()=>import("./CYPMHConfirm-eWBSNXjV.js"),__vite__mapDeps([101,4,89,90,1,2,10,11,12,13,40,50,19]))),YL=p.lazy(()=>O(()=>import("./Contact-CLrFF8WK.js"),__vite__mapDeps([102,1,3,2,35,36,14]))),QL=p.lazy(()=>O(()=>import("./WorkWithUs-JtVRZ7nw.js"),__vite__mapDeps([103,1,3,2,56,57,104,50,105,106,79,107,14]))),JL=p.lazy(()=>O(()=>import("./PSCoursePage-DkqnR-hk.js"),__vite__mapDeps([108,63,4,1,2,19,109,21,12,10,11,13,110,111,112,60]))),G1=p.lazy(()=>O(()=>import("./NotFound-DdSHP7HS.js"),__vite__mapDeps([113,114,115]))),XL=()=>{const{psSlug:e}=aO();return!e||!e.startsWith("ps-")?u.jsx(Ue,{children:u.jsx(G1,{})}):u.jsx(JL,{})},ZL=p.lazy(()=>O(()=>import("./Auth-rgef7pLY.js"),__vite__mapDeps([116,1,2,4,117,9,19,118,14,50,119]))),e3=p.lazy(()=>O(()=>import("./LearnerRegister-BrZ0u0lp.js"),__vite__mapDeps([120,1,2,4,117,115]))),t3=p.lazy(()=>O(()=>import("./MyDashboard-CjjuhJxw.js"),__vite__mapDeps([121,4,23,24,19,9,3,36,35,122,1,123,50,25,34,117,104,124,125,126]))),r3=p.lazy(()=>O(()=>import("./AdminUpload-xFTz5wqj.js"),__vite__mapDeps([127,4,2,128,117,129,10,11,12,13,9,1,107,77,130,131,19,35,132,133,134,123,34,18]))),n3=p.lazy(()=>O(()=>import("./SubmitEvidence-BLMHkELB.js"),__vite__mapDeps([135,1,2,3,4]))),s3=p.lazy(()=>O(()=>import("./AdminEvidenceSubmissions-BAzHXJIX.js"),__vite__mapDeps([136,4,1,23,21,12,3,5,132,9,19,122,131,35,2,128,123,134,34,18,137]))),o3=p.lazy(()=>O(()=>import("./AdminPSApplications-CXolCVyE.js"),__vite__mapDeps([138,4,1,23,3,10,11,12,13,19,137,18]))),i3=p.lazy(()=>O(()=>import("./AdminPSLeads-DJP56Cix.js"),__vite__mapDeps([139,4,1,23,3,10,11,12,13,110,19,137,18,126]))),a3=p.lazy(()=>O(()=>import("./AutomationHub-DeuS5tcx.js"),__vite__mapDeps([140,4,133,35,79,105,141]))),l3=p.lazy(()=>O(()=>import("./AdminAuth-CKUogNwp.js"),__vite__mapDeps([142,1,4,2,21,12,117,19]))),u3=p.lazy(()=>O(()=>import("./AdminDashboard-BWbpEodf.js"),__vite__mapDeps([143,144,145,1,23,123,146,147,133,36,148,105,79,129,10,11,12,13,9,2,107,77,130,149,22,5,150,19,35,34,17,122,141,151,152,118,14,50,119,4,153,57,126,109,154,92,155,132,137,156,157,158,18,3,159,160,15,161,162,16,128,163,164,27,115,49,25,165,166,21,167,78,134,37,168,169,170,47,171]))),c3=p.lazy(()=>O(()=>import("./AdminRegister-Bu58aiA4.js"),__vite__mapDeps([172,1,4,2,21,12,117,19,115,149,14]))),d3=p.lazy(()=>O(()=>import("./AdminOverview-g9mikZI2.js"),__vite__mapDeps([173,5,117,129,10,11,12,13,9,1,2,107,77,130,154,4,109,19,147]))),h3=p.lazy(()=>O(()=>import("./AdminCourseSignups-C-El-O9l.js"),__vite__mapDeps([174,4,5,23,1,19,115,137,122,27]))),f3=p.lazy(()=>O(()=>import("./AdminCallBookings-FQwQD_JT.js"),__vite__mapDeps([175,4,73,10,11,12,13,115,18,137,25,35,36,19,27]))),p3=p.lazy(()=>O(()=>import("./AdminDuplicates-NK0Sdbo2.js"),__vite__mapDeps([176,4,23,115,19,119]))),m3=p.lazy(()=>O(()=>import("./AdminCustomContent-BgP06IT4.js"),__vite__mapDeps([177,1,2,3,4,19,146,156]))),g3=p.lazy(()=>O(()=>import("./LearnerHub-DE-OF44f.js"),__vite__mapDeps([178,4,124,125,19,117,104,23,18,169,91,147,141,36,50,77,151,60]))),v3=p.lazy(()=>O(()=>
362import("./OAuthConsent-D5BNNcKO.js"),__vite__mapDeps([179,1,2,4,19]))),y3=p.lazy(()=>O(()=>import("./KeithDashboard-CCNcYvjv.js"),__vite__mapDeps([180,131,19,35,132,4,5,2,10,11,12,13,128,155,36,147,22,123,134,34,18]))),w3=p.lazy(()=>O(()=>import("./WaitingForLevel-CPLpJ_O2.js"),__vite__mapDeps([181,4,147]))),x3=p.lazy(()=>O(()=>import("./Unsubscribe-BeToGd0z.js"),__vite__mapDeps([182,1,2,3,4,19]))),b3=p.lazy(()=>O(()=>import("./CancelMyPlace-ChFfpYE4.js"),__vite__mapDeps([183,1,2,4,50,19]))),_3=p.lazy(()=>O(()=>import("./CourseFeedback-BeqNJwG2.js"),__vite__mapDeps([184,4,2,1,3,10,11,12,13,96,19,152]))),E3=p.lazy(()=>O(()=>import("./CRMCampaigns-vjxTjLV5.js"),__vite__mapDeps([185,4,130,122,35,186,152]))),S3=p.lazy(()=>O(()=>import("./CreateCRMCampaign-Cz9FMOWV.js"),__vite__mapDeps([187,4,1,2,3,10,11,12,13,115,130,27,19]))),k3=p.lazy(()=>O(()=>import("./EditCRMCampaign-5GNjP85n.js"),__vite__mapDeps([188,4,1,2,3,10,11,12,13,9,115,130,49,27,36,19,156]))),j3=p.lazy(()=>O(()=>import("./CRMCampaignDetail-LM6OGjmi.js"),__vite__mapDeps([189,4,23,1,2,158,115,137,35,190,122,186,152]))),C3=p.lazy(()=>O(()=>import("./AddCohortLearners-DGhxJ3N6.js"),__vite__mapDeps([191,4,19,119,109]))),T3=p.lazy(()=>O(()=>import("./InstallApp-Dd0WDxqR.js"),__vite__mapDeps([192,4,50,170,18,37]))),P3=p.lazy(()=>O(()=>import("./WhatsAppMessages-D6kjRQSH.js"),__vite__mapDeps([193,163,4,3,150,11,23,10,12,13,159,160,36,19,164,27,115,119,146,122]))),R3=p.lazy(()=>O(()=>import("./MobileWhatsAppInbox-C-oeLdgK.js"),__vite__mapDeps([194,3,150,11,23,160,19,115,122,36,137,114,119]))),O3=p.lazy(()=>O(()=>import("./WhatsAppMonitoring-C3Ew20e0.js"),__vite__mapDeps([195,4,23,5,150,11,126,152,157,19,137,119,50,9,81,77]))),N3=p.lazy(()=>O(()=>import("./WhatsAppSettings-E4x2Il74.js"),__vite__mapDeps([196,1,3,4,5,23,161,12,2,115,152,146,156,27,130]))),A3=p.lazy(()=>O(()=>import("./FAQ-q4HWpdZ1.js"),__vite__mapDeps([197,56,57,152]))),I3=p.lazy(()=>O(()=>import("./L2CYPMH-Cov54E-0.js"),__vite__mapDeps([198,4,23,199,56,57,58,31,164,33,72,50,36,200,54,1,2,76,77,37,34,19,62,70,43,44,45,201,9,202,48,49,104,52,60]))),D3=p.lazy(()=>O(()=>import("./MentalHealthCourses-CXd7PENp.js"),__vite__mapDeps([203,4,23,10,11,12,13,56,57,200,54,1,2,50,76,77,37,34,19,43,44,45,70,52]))),M3=p.lazy(()=>O(()=>import("./L2CYPMHliv-DOMoJqHa.js"),__vite__mapDeps([204,205,56,57,200,54,1,2,50,76,77,37,34,19,43,44,45,70,63,33,206,52]))),L3=p.lazy(()=>O(()=>import("./TACYPMLL-ClCGXETK.js"),__vite__mapDeps([207,30,31,32,33,34,35,36,37,38,39,1,10,11,12,13,2,4,23,62,50,63,41,43,44,45,48,49,51,52,53,54,55,56,57,58,59,60,19]))),$3=p.lazy(()=>O(()=>import("./L2MHliv-QQvgydi6.js"),__vite__mapDeps([208,205,56,57,200,54,1,2,50,76,77,37,34,19,43,44,45,70,63,33]))),F3=p.lazy(()=>O(()=>import("./BehaviourThatChallengesCourse-tpG6GhVX.js"),__vite__mapDeps([209,205,56,57,200,54,1,2,50,76,77,37,34,19,43,44,45,70,63,33]))),ii=p.lazy(()=>O(()=>import("./TAOnlineLL-CZNdV0zM.js"),__vite__mapDeps([29,30,31,32,33,34,35,36,37,38,39,40,1,10,11,12,13,2,4,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,19,59,60]))),z3=p.lazy(()=>O(()=>import("./TAOnlineLLExperiment-BqqO7q8D.js"),[])),U3=p.lazy(()=>O(()=>import("./L2TAOnline-BcjUgrtL.js"),__vite__mapDeps([210,29,30,31,32,33,34,35,36,37,38,39,40,1,10,11,12,13,2,4,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,19,59,60]))),B3=p.lazy(()=>O(()=>import("./TAOnlineCopy-BkB72BJC.js"),__vite__mapDeps([211,40,30,31,32,33,34,35,36,37,38,39,1,10,11,12,13,2,4,23,62,50,63,41,43,44,45,48,49,51,52,53,54,55,56,57,58,59,60,19]))),V3=p.lazy(()=>O(()=>import("./TARomford-WDT1yK7Q.js"),__vite__mapDeps([212,29,30,31,32,33,34,35,36,37,38,39,40,1,10,11,12,13,2,4,23,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,19,59,60]))),W3=p.lazy(()=>O(()=>import("./TAOnlineWD-NEmMB7Pa.js"),__vite__mapDeps([213,40,30,31,32,33,34,35,36,37,38,39,1,10,11,12,13,2,4,23,62,50,63,41,43,44,45,48,49,51,52,53,54,55,56,57,58,59,60,19]))),H3=p.lazy(()=>O(()=>import("./TAOnlineWDMatched-Cw2LzwXq.js"),__vite__mapDeps([214,40,30,31,32,33,34,35,36,37,38,39,1,10,11,12,13,2,4,23,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,19,59,60]))),q3=p.lazy(()=>O(()=>import("./TAOnlineSVL-D-RBBcTg.js"),__vite__mapDeps([215,38,4,216,206,42,104,217,218,6,65,169,190,90,1,2,10,11,12,13,40,50,19,51,52,32,53,96,9,36,119,201,55,56,57,58,59,34,33,91,60,66,126]))),K3=p.lazy(()=>O(()=>import("./TALiverpoolAds-DWHW51Pb.js"),__vite__mapDeps([219,1,2,51,52,19,31,33,36])));p.lazy(()=>O(()=>
362import("./BookACall-BXNHfSXo.js"),__vite__mapDeps([220,38,1,4,221,9,50,33,51,52,53,222,39,216,64,65,56,57,59])));p.lazy(()=>O(()=>import("./BookACallTA-CpYLSbE1.js"),__vite__mapDeps([223,38,1,4,221,9,50,33,51,52,53,222,39,216,64,65,56,57,59])));const G3=p.lazy(()=>O(()=>import("./RegionalTargeting-C_rUFuUi.js"),__vite__mapDeps([224,5,167,4,10,11,12,13,1,2,3,23,78,19,164,156,35,130,34,18,21,141,150,128,134,123,50,122,147]))),Y3=p.lazy(()=>O(()=>import("./DWPPartners-BhIgf2uT.js"),__vite__mapDeps([225,4,23,56,57,15,1,9,5,18,134,226,35,10,11,12,13,3,2,45,77,81,119,50,141,126,149,96,162,16,19,14,104,227,164,152]))),Q3=p.lazy(()=>O(()=>import("./DWPPartnerPortal-DyFk12L4.js"),__vite__mapDeps([228,4,1,2,3,10,11,12,13,23,25,50,18,35]))),J3=p.lazy(()=>O(()=>import("./SchoolPartners-BuuiRp6G.js"),__vite__mapDeps([229,4,23,8,9,1,2,10,11,12,13,3,14,104,47,227,164,50,81,79]))),X3=p.lazy(()=>O(()=>import("./GrassrootsMarketing-a2YS8KP1.js"),__vite__mapDeps([230,4,1,3,23,5,10,11,12,13,158,25,50,152,34,130]))),Z3=p.lazy(()=>O(()=>import("./AdminCourseManager-eRIht6Bm.js"),__vite__mapDeps([231,4,158,23,1,9,5,51,52,115,34,25,171,77,156]))),e4=p.lazy(()=>O(()=>import("./EarlyYears-Ct4YHJCh.js"),__vite__mapDeps([232,71,33,72,4,23,233,54,1,2,10,11,12,13,19,109,31,152,35,56,57,73,50,37,36,34,86,60,80]))),t4=p.lazy(()=>O(()=>import("./EarlyYearsLondon-LE49125W.js"),__vite__mapDeps([234,71,33,72,4,23,68,56,57,69,47,50,233,54,1,2,10,11,12,13,19,109,31,152,35,104,73,37,36,34,75,86,80,60]))),r4=p.lazy(()=>O(()=>import("./SchoolApprenticeships-Cqe_10mo.js"),__vite__mapDeps([235,4,56,57,1,2,10,11,12,13,21,109,31,78,19,86,206,73,70,33,227,47,60,75,81,36]))),n4=p.lazy(()=>O(()=>import("./PersonalTraining-DXSgLt-U.js"),__vite__mapDeps([236,71,33,72,4,23,233,54,1,2,10,11,12,13,19,109,31,152,35,56,57,73,50,37,36,34,83,77,141,52,80]))),s4=p.lazy(()=>O(()=>import("./JFCSubmissions-CAosRVhS.js"),__vite__mapDeps([237,1,3,21,12,23,158,4,5,159,2,9,162,16,10,11,13,97,238,77,19,35,34,239,156,81,227,109,59,168,49,27,145,86,137,147,18,240]))),o4=p.lazy(()=>O(()=>import("./JFCAuth-7DPZa16w.js"),__vite__mapDeps([241,1,2,4,19,31]))),i4=p.lazy(()=>O(()=>import("./L2CYPMHSHJ-BJYhe1nI.js"),__vite__mapDeps([242,199,56,57,4,58,23,31,164,33,72,50,36,202,200,54,1,2,76,77,37,34,19,62,70,43,44,45,221,9,48,49,104,52,60]))),a4=p.lazy(()=>O(()=>import("./EarlyYearsApprenticeships-BYNFUOIp.js"),__vite__mapDeps([243,4,1,2,10,11,12,13,109,31,19,152,35,70,221,9,50,33,73,32,56,57,244,76,77,37,36,34,245,60]))),l4=p.lazy(()=>O(()=>import("./SNEAuth-BRi1Wu_m.js"),__vite__mapDeps([246,1,2,4,19,86,31]))),u4=p.lazy(()=>O(()=>import("./SNEPortal-BgteQ8iQ.js"),__vite__mapDeps([247,1,21,12,23,158,5,159,19,80,153,57,35,36,77,3,10,11,13,130,122,162,16,238,239,156,81,109,4,145,34,27,125,137,147,107,18,84]))),c4=p.lazy(()=>O(()=>import("./LLCourses-D0lERLJN.js"),__vite__mapDeps([248,1,2,4,23,70,201,9,36,50,71,33,72,62,43,44,45,202,10,11,12,13,51,52,111,73,76,77,37,34,19,109,31]))),d4=p.lazy(()=>O(()=>import("./LLCoursesLP-C0m_7CB7.js"),__vite__mapDeps([249,4,23,9,199,56,57,58,31,164,33,72,50,36,233,54,1,2,10,11,12,13,19,109,152,35,62,70,43,44,45,201,202,48,49,111,73,32,51,52,76,77,37,34]))),h4=p.lazy(()=>O(()=>import("./DfeProviderFinder-C_2bnrt9.js"),__vite__mapDeps([250,144,145,1,115,133,123,18,105,146,4,23,92,35,238,119,2,10,11,12,13,158,128,134,19,21,165,137,49,16,5,3,25,126,50,251,22,107]))),f4=p.lazy(()=>O(()=>import("./OurCourses-BA6rrbma.js"),__vite__mapDeps([252,4,23,62,50,43,44,45,51,52,111,36]))),p4=p.lazy(()=>O(()=>import("./FundedCourses-CQ1E_rPw.js"),__vite__mapDeps([253,5,254,23,19]))),m4=p.lazy(()=>O(()=>import("./FundedCoursesCategory-aRWUwMmw.js"),__vite__mapDeps([255,254,23,19]))),g4=p.lazy(()=>O(()=>import("./Posters-CP96Pe_5.js"),__vite__mapDeps([256,53,4,25,226,18,37,35]))),v4=p.lazy(()=>O(()=>import("./PartnerPortal-CFVt4Yjx.js"),__vite__mapDeps([257,4,1,23,5,158,31,147,107]))),y4=p.lazy(()=>O(()=>import("./LincolnshireCoursesAd-BhN-QWcY.js"),__vite__mapDeps([258,1,2,10,11,12,13,50]))),w4=p.lazy(()=>O(()=>import("./CourseCancellation-DIa4kA7g.js"),__vite__mapDeps([259,1,2,3,21,12,10,11,13,4,50]))),x4=p.lazy(()=>O(()=>import("./Employers-BlVBjrxU.js"),__vite__mapDeps([260,4,217,149,47,86,261]))),b4=p.lazy(()=>O(()=>import("./EmployersEnquire-By5Rh2hl.js"),__vite__mapDeps([262,4,23,1,2,3,10,11,12,13,19,47,146,263]))),_4=p.lazy(()=>O(()=>import("./EmployersThankYou-DcZJGi0y.js"),__vite__mapDeps([264,4,23,60,265,35,106,148,251,36,146,47,33]))),E4=p.lazy(()=>O(()=>import("./Apprenticeships-Gq-ympqQ.js"),__vite__mapDeps([266,4,267,47,146,75,251,84]))),S4=p.lazy(()=>O(()=>import("./ApprenticeshipsForEmployers-B9IrRuuH.js"),__vite__mapDeps([268,4,1,2,10,11,12,13,56,57,267,47,19,86,261,106,263]))),k4=p.lazy(()=>O(()=>import("./ApprenticeshipsForLearners-DmR-Lvhd.js"),__vite__mapDeps([269,4,1,2,10,11,12,13,56,57,267,19,86,261,81,75,84,251]))),Bv=p.lazy(()=>O(()=>import("./ApprenticeshipStandard-D222RTbV.js"),__vite__mapDeps([270,4,23,1,2,3,10,11,12,13,216,244,267,265,47,84,112,19,75,141]))),j4=p.lazy(()=>O(()=>import("./ApprenticeshipsThankYou-DpKZt0_v.js"),__vite__mapDeps([271,4,152,80,35]))),C4=p.lazy(()=>O(()=>import("./CareerQuiz-uA-mYf1U.js"),__vite__mapDeps([272,4,1,15,115,19,52]))),T4=p.lazy(()=>O(()=>import("./DBSGuide-DgoKRWYl.js"),__vite__mapDeps([273,4,1,218,13,18]))),P4=p.lazy(()=>O(()=>import("./PlacementFinder-B1sVdjJV.js"),__vite__mapDeps([274,4,1,23,19,25,47]))),R4=p.lazy(()=>O(()=>import("./SuccessStories-YqbNrwlK.js"),__vite__mapDeps([275,4,165]))),O4=p.lazy(()=>O(()=>
362import("./MessageSequenceBuilder-DCSOv-vj.js"),__vite__mapDeps([276,35,152,34,166]))),Vv=p.lazy(()=>O(()=>import("./TAOnlineLLConfirmed-DkT4o2Nm.js"),__vite__mapDeps([277,32,56,57,77,59,245,18,34]))),N4=p.lazy(()=>O(()=>import("./TAOnlineWL-DAThFoN4.js"),__vite__mapDeps([278,38,39,44,45,114,59,36,19,148]))),A4=p.lazy(()=>O(()=>import("./TACatchup-LlH12KV-.js"),__vite__mapDeps([279,90,1,2,10,11,12,13,4,40,50,19,21,23,280,41,77,59,84,60]))),I4=p.lazy(()=>O(()=>import("./TACatchupL3-DUgnIfev.js"),__vite__mapDeps([281,21,12,4,23,280,90,1,2,10,11,13,40,50,19,41,77,59,84]))),D4=p.lazy(()=>O(()=>import("./TACatchupCYPMH-dIy07cCE.js"),__vite__mapDeps([282,90,1,2,10,11,12,13,4,40,50,19,21,23,280,41,77,59,84,60]))),M4=p.lazy(()=>O(()=>import("./TACatchupWD-yuxS1lJ_.js"),__vite__mapDeps([283,90,1,2,10,11,12,13,4,40,50,19,21,23,280,41,77,59,84,60]))),L4=new gR,$4=()=>u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:u.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"})}),F4=()=>u.jsx(bR,{client:L4,children:u.jsxs(JP,{children:[u.jsx(NC,{}),u.jsx(cT,{}),u.jsxs(OO,{children:[u.jsx(TA,{}),u.jsx(p.Suspense,{fallback:u.jsx($4,{}),children:u.jsxs(_O,{children:[u.jsx(C,{path:"/",element:u.jsx(NL,{})}),u.jsx(C,{path:"/cv-assistant",element:u.jsx(Ue,{children:u.jsx(AL,{})})}),u.jsx(C,{path:"/job-search",element:u.jsx(Ue,{children:u.jsx(IL,{})})}),u.jsx(C,{path:"/saved-jobs",element:u.jsx(Ue,{children:u.jsx(DL,{})})}),u.jsx(C,{path:"/taonline",element:u.jsx(ML,{})}),u.jsx(C,{path:"/taonlinetest",element:u.jsx(te,{to:"/taonline",replace:!0})}),u.jsx(C,{path:"/taonline-old",element:u.jsx(te,{to:"/taonline",replace:!0})}),u.jsx(C,{path:"/l2cypmh",element:u.jsx(I3,{})}),u.jsx(C,{path:"/mhcourses",element:u.jsx(te,{to:"/l2cypmhliv",replace:!0})}),u.jsx(C,{path:"/mhcourses-hub",element:u.jsx(D3,{})}),u.jsx(C,{path:"/l2cypmhliv",element:u.jsx(M3,{})}),u.jsx(C,{path:"/tacypmhll",element:u.jsx(L3,{})}),u.jsx(C,{path:"/l2cypmhonline",element:u.jsx(te,{to:"/tacypmhll",replace:!0})}),u.jsx(C,{path:"/childrens-mental-health-course",element:u.jsx(te,{to:"/l2cypmhliv",replace:!0})}),u.jsx(C,{path:"/l2mhliv",element:u.jsx($3,{})}),u.jsx(C,{path:"/mental-health-support-first-aid-course",element:u.jsx(te,{to:"/l2mhliv",replace:!0})}),u.jsx(C,{path:"/behaviour-that-challenges-course",element:u.jsx(F3,{})}),u.jsx(C,{path:"/taonlinel3",element:u.jsx(LL,{})}),u.jsx(C,{path:"/taonlinel3ll",element:u.jsx(te,{to:"/taonlinel3",replace:!0})}),u.jsx(C,{path:"/l3talondon",element:u.jsx($L,{})}),u.jsx(C,{path:"/ptlondon",element:u.jsx(FL,{})}),u.jsx(C,{path:"/l3ptlondon",element:u.jsx(te,{to:"/ptlondon",replace:!0})}),u.jsx(C,{path:"/l3eyelondon",element:u.jsx(zL,{})}),u.jsx(C,{path:"/london-courses",element:u.jsx(UL,{})}),u.jsx(C,{path:"/taconfirm",element:u.jsx(Ue,{children:u.jsx(BL,{})})}),u.jsx(C,{path:"/taconfirml3",element:u.jsx(Ue,{children:u.jsx(VL,{})})}),u.jsx(C,{path:"/l3talondonconfirm",element:u.jsx(WL,{})}),u.jsx(C,{path:"/l3talondon-success",element:u.jsx(HL,{})}),u.jsx(C,{path:"/eylondonconfirm",element:u.jsx(Ue,{children:u.jsx(qL,{})})}),u.jsx(C,{path:"/taconfirmcypmh",element:u.jsx(Ue,{children:u.jsx(KL,{})})}),u.jsx(C,{path:"/cypmhconfirm",element:u.jsx(Ue,{children:u.jsx(GL,{})})}),u.jsx(C,{path:"/taoconfirm",element:u.jsx(te,{to:`/taconfirm${window.location.search}`,replace:!0})}),u.jsx(C,{path:"/contact",element:u.jsx(YL,{})}),u.jsx(C,{path:"/work-with-us",element:u.jsx(QL,{})}),u.jsx(C,{path:"/our-courses",element:u.jsx(f4,{})}),u.jsx(C,{path:"/funded-courses",element:u.jsx(p4,{})}),u.jsx(C,{path:"/funded-courses/:tab/:category",element:u.jsx(m4,{})}),u.jsx(C,{path:"/apprenticeships",element:u.jsx(Ue,{children:u.jsx(E4,{})})}),u.jsx(C,{path:"/apprenticeships/for-employers",element:u.jsx(Ue,{children:u.jsx(S4,{})})}),u.jsx(C,{path:"/apprenticeships/for-learners",element:u.jsx(Ue,{children:u.jsx(k4,{})})}),u.jsx(C,{path:"/apprenticeships/:slug",element:u.jsx(Ue,{children:u.jsx(Bv,{})})}),u.jsx(C,{path:"/apprenticeships/:categorySlug/:slug",element:u.jsx(Ue,{children:u.jsx(Bv,{})})}),u.jsx(C,{path:"/apprenticeships/thank-you",element:u.jsx(Ue,{children:u.jsx(j4,{})})}),u.jsx(C,{path:"/school-apprenticeships",element:u.jsx(r4,{})}),u.jsx(C,{path:"/schoolapprenticeships",element:u.jsx(te,{to:"/school-apprenticeships",replace:!0})}),u.jsx(C,{path:"/school-jobs",element:u.jsx(te,{to:"/school-apprenticeships",replace:!0})}),u.jsx(C,{path:"/auth",element:u.jsx(ZL,{})}),u.jsx(C,{path:"/learner/register",element:u.jsx(e3,{})}),u.jsx(C,{path:"/mydashboard",element:u.jsx(t3,{})}),u.jsx(C,{path:"/admin/auth",element:u.jsx(l3,{})}),u.jsx(C,{path:"/admin/dashboard",element:u.jsx(u3,{})}),u.jsx(C,{path:"/admin/register",element:u.jsx(c3,{})}),u.jsx(C,{path:"/admin/upload",element:u.jsx(r3,{})}),u.jsx(C,{path:"/submit-evidence",element:u.jsx(n3,{})}),u.jsx(C,{path:"/admin/evidence-submissions",element:u.jsx(s3,{})}),u.jsx(C,{path:"/admin/ps-applications",element:u.jsx(o3,{})}),u.jsx(C,{path:"/admin/ps-leads",element:u.jsx(i3,{})}),u.jsx(C,{path:"/admin/automation-hub",element:u.jsx(a3,{})}),u.jsx(C,{path:"/admin/overview",element:u.jsx(d3,{})}),u.jsx(C,{path:"/admin/course-signups",element:u.jsx(h3,{})}),u.jsx(C,{path:"/admin/call-bookings",element:u.jsx(f3,{})}),u.jsx(C,{path:"/admin/duplicates",element:u.jsx(p3,{})}),u.jsx(C,{path:"/admin/custom-content",element:u.jsx(m3,{})}),u.jsx(C,{path:"/learner-hub",element:u.jsx(g3,{})}),u.jsx(C,{path:"/.lovable/oauth/consent",element:u.jsx(v3,{})}),u.jsx(C,{path:"/waiting-for-level",element:u.jsx(w3,{})}),u.jsx(C,{path:"/aspire-upload",element:u.jsx(te,{to:"/admin/upload",replace:!0})}
362),u.jsx(C,{path:"/keith-dashboard",element:u.jsx(y3,{})}),u.jsx(C,{path:"/unsubscribe",element:u.jsx(x3,{})}),u.jsx(C,{path:"/cancelmyplace",element:u.jsx(b3,{})}),u.jsx(C,{path:"/cancel-my-place",element:u.jsx(te,{to:"/cancelmyplace",replace:!0})}),u.jsx(C,{path:"/feedback",element:u.jsx(_3,{})}),u.jsx(C,{path:"/crm-campaigns",element:u.jsx(E3,{})}),u.jsx(C,{path:"/crm-campaigns/new",element:u.jsx(S3,{})}),u.jsx(C,{path:"/crm-campaigns/:id/edit",element:u.jsx(k3,{})}),u.jsx(C,{path:"/crm-campaigns/:id",element:u.jsx(j3,{})}),u.jsx(C,{path:"/admin/add-cohort-learners",element:u.jsx(C3,{})}),u.jsx(C,{path:"/admin/whatsapp",element:u.jsx(P3,{})}),u.jsx(C,{path:"/admin/whatsapp-settings",element:u.jsx(N3,{})}),u.jsx(C,{path:"/admin/whatsapp-monitoring",element:u.jsx(O3,{})}),u.jsx(C,{path:"/admin/study-buddy",element:u.jsx(te,{to:"/admin/dashboard",replace:!0})}),u.jsx(C,{path:"/install",element:u.jsx(T3,{})}),u.jsx(C,{path:"/mobile-inbox",element:u.jsx(R3,{})}),u.jsx(C,{path:"/faq",element:u.jsx(A3,{})}),u.jsx(C,{path:"/taonlinell",element:u.jsx(U3,{})}),u.jsx(C,{path:"/l2taonline",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinell1",element:u.jsx(ii,{variant:1})}),u.jsx(C,{path:"/taonlinell2",element:u.jsx(ii,{variant:2})}),u.jsx(C,{path:"/taonlinell3",element:u.jsx(ii,{variant:3})}),u.jsx(C,{path:"/taonlinell4",element:u.jsx(ii,{variant:4})}),u.jsx(C,{path:"/taonlinell-test",element:u.jsx(z3,{})}),u.jsx(C,{path:"/taonline-copy",element:u.jsx(B3,{})}),u.jsx(C,{path:"/taromford",element:u.jsx(V3,{})}),u.jsx(C,{path:"/taonlinewd",element:u.jsx(H3,{})}),u.jsx(C,{path:"/taonlinewd-old",element:u.jsx(W3,{})}),u.jsx(C,{path:"/taonlinesvl",element:u.jsx(q3,{})}),u.jsx(C,{path:"/taonlinevsl",element:u.jsx(te,{to:"/taonlinesvl",replace:!0})}),u.jsx(C,{path:"/taliverpoolads",element:u.jsx(K3,{})}),u.jsx(C,{path:"/ta-ads",element:u.jsx(te,{to:"/taliverpoolads",replace:!0})}),u.jsx(C,{path:"/taonlinell-clean",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinell-old",element:u.jsx(ii,{pathOverride:"/taonlinell-old"})}),u.jsx(C,{path:"/taonlinell-legacy",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinellv2",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinell-v2",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinellv3",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taliverpool",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinelltraffic",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinelltrafficmin",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinedual",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlineduplicate",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/bookacall",element:u.jsx(te,{to:"/",replace:!0})}),u.jsx(C,{path:"/bookacallTA",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinell-qs",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinezm",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/ta-booked",element:u.jsx(Vv,{})}),u.jsx(C,{path:"/taonlinell-confirmed",element:u.jsx(Vv,{})}),u.jsx(C,{path:"/taonlinewl",element:u.jsx(N4,{})}),u.jsx(C,{path:"/tacatchup",element:u.jsx(A4,{})}),u.jsx(C,{path:"/ta-catchup",element:u.jsx(te,{to:"/tacatchup",replace:!0})}),u.jsx(C,{path:"/tacatchupl3",element:u.jsx(I4,{})}),u.jsx(C,{path:"/ta-catchup-l3",element:u.jsx(te,{to:"/tacatchupl3",replace:!0})}),u.jsx(C,{path:"/tacatchupcypmh",element:u.jsx(D4,{})}),u.jsx(C,{path:"/ta-catchup-cypmh",element:u.jsx(te,{to:"/tacatchupcypmh",replace:!0})}),u.jsx(C,{path:"/tacatchupwd",element:u.jsx(M4,{})}),u.jsx(C,{path:"/ta-catchup-wd",element:u.jsx(te,{to:"/tacatchupwd",replace:!0})}),u.jsx(C,{path:"/taonlinecl",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlinewl-new",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/taonlineold1",element:u.jsx(te,{to:"/taonlinell",replace:!0})}),u.jsx(C,{path:"/admin/regional-targeting",element:u.jsx(G3,{})}),u.jsx(C,{path:"/dwp-partners",element:u.jsx(Y3,{})}),u.jsx(C,{path:"/dwp-portal",element:u.jsx(Q3,{})}),u.jsx(C,{path:"/school-partners",element:u.jsx(J3,{})}),u.jsx(C,{path:"/admin/grassroots",element:u.jsx(X3,{})}),u.jsx(C,{path:"/admin/courses",element:u.jsx(Z3,{})}),u.jsx(C,{path:"/early-years",element:u.jsx(e4,{})}),u.jsx(C,{path:"/early-years-london",element:u.jsx(t4,{})}),u.jsx(C,{path:"/template",element:u.jsx(te,{to:"/",replace:!0})}
362),u.jsx(C,{path:"/personal-training",element:u.jsx(n4,{})}),u.jsx(C,{path:"/jfc-submissions",element:u.jsx(s4,{})}),u.jsx(C,{path:"/jfc-auth",element:u.jsx(o4,{})}),u.jsx(C,{path:"/taonlineshj",element:u.jsx(te,{to:"/taonline",replace:!0})}),u.jsx(C,{path:"/l2cypmhshj",element:u.jsx(i4,{})}),u.jsx(C,{path:"/taonlinel3shj",element:u.jsx(te,{to:"/taonlinel3",replace:!0})}),u.jsx(C,{path:"/apprenticeships/early-years-educator",element:u.jsx(a4,{})}),u.jsx(C,{path:"/sne-auth",element:u.jsx(l4,{})}),u.jsx(C,{path:"/sne-portal",element:u.jsx(u4,{})}),u.jsx(C,{path:"/llcourses",element:u.jsx(c4,{})}),u.jsx(C,{path:"/llcourseslp",element:u.jsx(d4,{})}),u.jsx(C,{path:"/admin/dfe-provider-finder",element:u.jsx(h4,{})}),u.jsx(C,{path:"/partner-portal",element:u.jsx(v4,{})}),u.jsx(C,{path:"/courses/lincolnshire",element:u.jsx(y4,{})}),u.jsx(C,{path:"/course-cancellation",element:u.jsx(w4,{})}),u.jsx(C,{path:"/posters",element:u.jsx(g4,{})}),u.jsx(C,{path:"/employers",element:u.jsx(x4,{})}),u.jsx(C,{path:"/employers/enquire",element:u.jsx(Ue,{children:u.jsx(b4,{})})}),u.jsx(C,{path:"/employers/thank-you",element:u.jsx(Ue,{children:u.jsx(_4,{})})}),u.jsx(C,{path:"/career-quiz",element:u.jsx(C4,{})}),u.jsx(C,{path:"/dbs-guide",element:u.jsx(T4,{})}),u.jsx(C,{path:"/placement-finder",element:u.jsx(P4,{})}),u.jsx(C,{path:"/success-stories",element:u.jsx(R4,{})}),u.jsx(C,{path:"/message-sequences",element:u.jsx(O4,{})}),u.jsx(C,{path:"/:psSlug",element:u.jsx(XL,{})}),u.jsx(C,{path:"*",element:u.jsx(Ue,{children:u.jsx(G1,{})})})]})})]})]})}),hl="__preview_refresh",z4=[/^\/admin(?:\/|$)/,/^\/keith-dashboard(?:\/|$)/,/^\/jfc-(?:auth|submissions)(?:\/|$)/];function U4(){try{return window.self!==window.top}catch{return!0}}function B4(){return window.location.hostname.includes("id-preview--")||window.location.hostname.includes("lovableproject.com")||window.location.hostname.includes("lovable.app")}function V4(){return B4()||U4()}function W4(e=window.location.pathname){return V4()||z4.some(t=>t.test(e))}async function H4(){var t;if(typeof window>"u"||(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations().then(r=>Promise.all(r.map(n=>n.unregister())))),!("caches"in window)))return;const e=await caches.keys();await Promise.all(e.map(r=>caches.delete(r)))}async function q4(){if(!W4())return!1;await H4();const e=new URL(window.location.href),t=e.searchParams.has(hl),r=`${hl}:attempt:${window.location.pathname}`,n=Number(sessionStorage.getItem(r)||"0");return t?(e.searchParams.delete(hl),window.history.replaceState(window.history.state,"",e.toString()),sessionStorage.removeItem(r),!1):Date.now()-n<1e4?!1:(sessionStorage.setItem(r,Date.now().toString()),e.searchParams.set(hl,Date.now().toString()),window.location.replace(e.toString()),!0)}const Y1="__build_fingerprint",K4=5*60*1e3;async function G4(){try{const e=await fetch(`/index.html?_v=${Date.now()}`,{cache:"no-store",credentials:"same-origin"});if(!e.ok)return null;const t=await e.text();return(t.match(/\/assets\/[^"'\s)]+/g)||[]).sort().join("|")||t.length.toString()}catch{return null}}let Xs=null,gd=!1;function Y4(){try{return localStorage.getItem(Y1)}catch{return null}}function Wv(e){try{localStorage.setItem(Y1,e)}catch{}}async function ai(e=!0){if(!gd){gd=!0;try{const t=await G4();if(!t)return;if(!Xs){Xs=t,Wv(t);return}t!==Xs&&(Xs=t,Wv(t),e&&window.location.reload())}finally{gd=!1}}}function Q4(){if(typeof window>"u"||window.location.hostname.includes("lovableproject.com")||window.location.hostname.includes("id-preview--")||window.location.hostname==="localhost")return;Xs=Y4(),ai(!!Xs);const t=()=>{document.visibilityState==="visible"&&ai(!0)};document.addEventListener("visibilitychange",t),window.addEventListener("focus",()=>void ai(!0)),window.addEventListener("pageshow",r=>{r.persisted&&ai(!0)}),setInterval(()=>void ai(!0),K4),window.addEventListener("error",r=>{const n=((r==null?void 0:r.message)||"")+" "+((r==null?void 0:r.filename)||"");/Loading chunk|Failed to fetch dynamically imported module|Importing a module script failed/i.test(n)&&window.location.reload()}),window.addEventListener("unhandledrejection",r=>{const n=String((r==null?void 0:r.reason)||"");/Loading chunk|Failed to fetch dynamically imported module|Importing a module script failed/i.test(n)&&window.location.reload()})}async function J4(){if(await q4())return;const e=document.getElementById("root");e&&(mw(e).render(u.jsx(F4,{})),Q4())}J4();
362export{Al as $,cr as A,ao as B,Vw as C,d$ as D,h$ as E,Hw as F,op as G,ip as H,TA as I,RA as J,$v as K,IA as L,ph as M,DA as N,AA as O,pe as P,MA as Q,$e as R,Hi as S,Bc as T,gh as U,Vc as V,t$ as W,Yw as X,Gw as Y,m$ as Z,i$ as _,Ij as a,Px as a$,cv as a0,Mj as a1,qj as a2,Ue as a3,Ww as a4,aO as a5,Lj as a6,_r as a7,Fj as a8,wa as a9,n_ as aA,Hj as aB,Cl as aC,AR as aD,JP as aE,ty as aF,qw as aG,jL as aH,EL as aI,sp as aJ,c_ as aK,hN as aL,fN as aM,xr as aN,W2 as aO,q2 as aP,s_ as aQ,o_ as aR,qu as aS,Tx as aT,Lr as aU,pa as aV,Fb as aW,ab as aX,Cp as aY,Sp as aZ,ma as a_,kh as aa,Yi as ab,fR as ac,He as ad,xR as ae,ct as af,nR as ag,zA as ah,zr as ai,Qj as aj,nd as ak,sd as al,Ol as am,CA as an,Nl as ao,gt as ap,K2 as aq,a_ as ar,J2 as as,X2 as at,Z2 as au,cs as av,Fu as aw,V2 as ax,H2 as ay,r_ as az,se as b,Rx as b0,cj as b1,kt as b2,Cx as b3,zu as b4,Ro as b5,Wj as b6,f$ as b7,M as b8,s$ as b9,eN as bA,OC as bB,g$ as bC,Vj as bD,Dj as bE,o$ as ba,XP as bb,Uk as bc,a$ as bd,l$ as be,Vk as bf,$O as bg,jt as bh,ov as bi,ta as bj,sv as bk,u1 as bl,oc as bm,UA as bn,SI as bo,HA as bp,wu as bq,jI as br,TI as bs,VA as bt,Kj as bu,LA as bv,p$ as bw,Gj as bx,te as by,OL as bz,Z4 as c,Zf as d,Mn as e,ga as f,q as g,Ae as h,l_ as i,u as j,kP as k,Oe as l,Kw as m,fh as n,Uc as o,zj as p,l1 as q,p as r,_L as s,dl as t,$k as u,xa as v,$j as w,mh as x,Bw as y,PA as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.