1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bl8BisC4.js","assets/SiteLayout-QL3lfLpz.js","assets/SiteFooter-D7Wh8en6.js","assets/Logo-BAmmjE3v.js","assets/tax-office-horizontal-cropped-B9-0-FDc.js","assets/PacificDateTime-BrcR4xPj.js","assets/clock-3-DoAQYU-Y.js","assets/phone-nZ8BDkDT.js","assets/lock-g2A3HQ18.js","assets/menu-yewxWmWY.js","assets/chevron-down-C_8JxJZv.js","assets/ReleaseUpdateControl-DxmGRqg-.js","assets/button-DLnadNm-.js","assets/index-B_r-nw40.js","assets/index-BYWyDHmV.js","assets/utils-DclmTqRz.js","assets/environment-JjV88x1u.js","assets/loader-circle-BIhp2T5f.js","assets/circle-check-D-hKIkxG.js","assets/circle-alert-DVSEETS_.js","assets/refresh-cw-rvUcgLGi.js","assets/shield-check-BTnOF0zr.js","assets/mail-CTxIHcnD.js","assets/map-pin-B72uzfsB.js","assets/external-link-C-lYeYZr.js","assets/book-open-D1BdO__g.js","assets/calendar-check-mvK7CFeJ.js","assets/sparkles-BTSVqTuw.js","assets/TaxAcademyComingSoon--XVEjD1T.js","assets/arrow-right-DcMnX9qD.js","assets/landmark-DPkKlKKo.js","assets/message-square-text-buKHD9jV.js","assets/clipboard-check-BPctyv9C.js","assets/file-check-corner-BBJL4vwO.js","assets/users-Cv44CzvE.js","assets/smartphone-B1OdTd07.js","assets/_authenticated-QGMJTGAb.js","assets/GlobalClientSearch-RjWipniW.js","assets/useServerFn-dsCYRZkS.js","assets/life-buoy-DfRpvxWB.js","assets/contact-round-O-nUgAnn.js","assets/about-Dz28N8ZX.js","assets/award-ciuOYgnI.js","assets/badge-check-B5C3MVhb.js","assets/banknote-BRsq5oS4.js","assets/user-round-Buqan2FS.js","assets/handshake-Dlqiek0c.js","assets/business-document-review.jpg.asset-5z_zC_U0.js","assets/target-CmmEwB9k.js","assets/scale-Clw_ik1_.js","assets/heart-CCcyaatn.js","assets/access-CWA8GsYb.js","assets/access-gateway.functions-CCxelNL7.js","assets/arrow-left-LCBLVF-z.js","assets/crown-CkV8lbW9.js","assets/accessibility-and-assistance-Df9ZZmgx.js","assets/PublicProcessPage-CpYQ63J2.js","assets/printer-BTyiKaFS.js","assets/info-B_j5tyNT.js","assets/accessibility-and-assistance-CjDnHv44.js","assets/accessibility-and-assistance-BpqwHCGU.js","assets/appointment-BgFdjRVN.js","assets/input-DBktsWKB.js","assets/textarea-BrA9wryM.js","assets/label-D65CGT6m.js","assets/checkbox-CdFm-rfm.js","assets/index-BNGHP7od.js","assets/index-DONxfPNC.js","assets/index-D0JN1CgP.js","assets/index-CjgBGKuv.js","assets/check-pTVVyWAQ.js","assets/public-engagement.functions-ClZUhTlY.js","assets/clock-ZkLeMmxH.js","assets/building-DzCBg68a.js","assets/video-DZEFXBTf.js","assets/send-Wgp4JKAd.js","assets/business-client-process-B4kjpMjY.js","assets/business-client-process-Dz9d5XMm.js","assets/business-client-process-3EylwvfX.js","assets/business-promotions-ByKde8w1.js","assets/client-portal-access-FTpnyZUW.js","assets/client-portal-access-CncGoydn.js","assets/client-portal-access-CGcOxdGE.js","assets/contact-D3sR6eG4.js","assets/calendar-days-A-ecMm5M.js","assets/disclaimers-BxOXs7rB.js","assets/LegalPage-z8WmPYgi.js","assets/downloadable-forms-M-J53YNC.js","assets/download-B6FR5Ux9.js","assets/upload-Dxjaf_d7.js","assets/user-BB0C3Uid.js","assets/how-we-work-B2HZs6iE.js","assets/how-we-work-j01FAhoY.js","assets/how-we-work-bdGg4b9u.js","assets/intake-CETh63EG.js","assets/intake.functions-BZM4bBCW.js","assets/house-CMLFm5cO.js","assets/invitations-and-verification-BO7nb-Io.js","assets/invitations-and-verification-BxjrQxPJ.js","assets/invitations-and-verification-ChJ9xsFJ.js","assets/knowledge-CGx5yYwm.js","assets/login-B3Nj9DWn.js","assets/PasswordField-BnzG0MnF.js","assets/eye-off-BtCr4KQq.js","assets/eye-CdMyXHif.js","assets/receipt-text-CBSsizH5.js","assets/lock-keyhole-DVHxpkFH.js","assets/new-client-process-Dg8xjiAq.js","assets/new-client-process-DwuKS60x.js","assets/new-client-process-BqBuAJZR.js","assets/newsletter-DwsBGdEm.js","assets/archive-BqJ90Yng.js","assets/newsletter-unsubscribe-BSlisYY1.js","assets/opportunities-DCKE-ue8.js","assets/opportunities-CIyrNjVk.js","assets/opportunities-CiYP02sR.js","assets/partners-qYi_v-Rm.js","assets/pricing-CvmePc16.js","assets/file-search-CFFwQ_gm.js","assets/privacy-B9NGPfWV.js","assets/privacy-summary-BRk6fkoW.js","assets/privacy-summary-DuqZPw8c.js","assets/privacy-summary-f-il6Rpf.js","assets/process-faq-BcvAdzmA.js","assets/process-faq-oz_xWAdx.js","assets/process-faq-CTeX7aKw.js","assets/refund-policy-COiP3T8D.js","assets/reset-password-D04lpUbL.js","assets/secure-document-handling-BBvJ75j_.js","assets/secure-document-handling-r1zHUK0F.js","assets/secure-document-handling-FjbT8ksP.js","assets/security-Ctgymco3.js","assets/key-round-0uyy5xTs.js","assets/bell-ring-2FZbhjy7.js","assets/sms-terms-L_R75zgQ.js","assets/staff-access-17xCOQqT.js","assets/StaffAccessExperience-BGqwEWAY.js","assets/user-check-24meVZLX.js","assets/staff-onboarding-C-DED3lr.js","assets/staff-onboarding-WMbIes8k.js","assets/staff-onboarding-BCmAl
1CjX.js","assets/support-and-security-concerns-D9G2839Z.js","assets/support-and-security-concerns-j0lpyAVT.js","assets/support-and-security-concerns-B_iOJOHA.js","assets/tax-estimator-B-yH0u2w.js","assets/dollar-sign-CvJbzvnJ.js","assets/trending-up-ClVGLvVF.js","assets/tax-knowledge-CTgwdS1g.js","assets/taxes-to-go-BQVP1_C_.js","assets/index-Dh198cp4.js","assets/index-BZewuAMN.js","assets/message-square-BEgqXi-a.js","assets/file-pen-line-COuyfKIc.js","assets/taxpayer-resources-DUnF2m4o.js","assets/fingerprint-pattern-JW8Lvuc9.js","assets/terms-B-CYHDEK.js","assets/unsubscribe-mWbKScUa.js","assets/admin-D05Qc6SO.js","assets/RailShell-32EPa5jf.js","assets/file-badge-CaWoPEiN.js","assets/wallet-CSA1mnVR.js","assets/library-hte-lg8y.js","assets/calendar-clock-C3cvOjzB.js","assets/git-branch-BZt8lZx8.js","assets/shield-BOqrzzVw.js","assets/file-exclamation-point-BcPelkx8.js","assets/bell-BcJUpBGN.js","assets/greeting-DhVtogWI.js","assets/log-out-CPUjZ_jz.js","assets/chevron-right-CkZvcj7x.js","assets/portal-DJzzTgSW.js","assets/service-CdPTlDt8.js","assets/updates-CIcxMJry.js","assets/useQuery-t3OaPNbH.js","assets/require-aal2-DCNe2o0e.js","assets/workforce-DtpRmIf1.js","assets/certificates.verify-DES_oYkP.js","assets/checkout.return-BHBN1oM6.js","assets/invitation.accept-C_Lnuvry.js","assets/mail-check-DvKdJGAx.js","assets/services.index-BoOxIaum.js","assets/laptop-CpVxZVRR.js","assets/services.amended-CVsBUQOF.js","assets/ServiceDetailPage-CPHlVejb.js","assets/services.back-taxes-Dj8V8Nlq.js","assets/services.business-CteAwL5g.js","assets/services.individual-D6uLw8mM.js","assets/services.remote-CsjMtYFq.js","assets/services.resolution-wyJlh4ia.js","assets/tax-knowledge.deadlines-BW78kwD1.js","assets/TaxHubPage-BZNzKrma.js","assets/tax-knowledge.estimated-taxes-DkoPgU8D.js","assets/tax-knowledge.filing-guides-DOnxBk-I.js","assets/tax-knowledge.filing-status-1Gp3OHew.js","assets/tax-knowledge.irs-help-CW1eHbeF.js","assets/tax-knowledge.payments-BxmP9LsA.js","assets/tax-knowledge.refund-tracking-BhmvqpA0.js","assets/tax-knowledge.resolution-zkgHaMje.js","assets/tax-knowledge.self-employment-qVfVO6in.js","assets/tax-knowledge.small-business-BftoqTeg.js","assets/tax-knowledge.w4-calculator-BiDDHDKB.js","assets/admin.index-c_9yDV7W.js","assets/AlertStrips-c6lG4UQR.js","assets/shield-alert-2d0qfXYa.js","assets/pen-line-DWlxXp72.js","assets/circle-x-BxT0GRCk.js","assets/RoleHomeHeader-tinMRDgS.js","assets/workflow-C8oOdGFx.js","assets/activity-D30NIpsZ.js","assets/admin.case-workspace-hF2VFtDs.js","assets/useMutation-DAX08OJ_.js","assets/case-workspace.functions-h2vwn3Ps.js","assets/admin.certificates-DvuHn-Pn.js","assets/staff-certificates.functions-BWbz506m.js","assets/PDFButton-DE
152OomL.js","assets/admin.changelog-Cto_n7Gj.js","assets/plus-CJ3jLstB.js","assets/admin.client-education-CVvIcrfd.js","assets/useUserRoles-CN3zrOf8.js","assets/admin.clients-CDS6NMM3.js","assets/admin-users.functions-b3qZKUGp.js","assets/admin.communications-E56zBH3K.js","assets/sms.functions-0_f1LkWR.js","assets/card-Dd-0GKY_.js","assets/badge-CqqWgEKa.js","assets/tabs-B20jtgSc.js","assets/index-Cy1RgD0G.js","assets/select-KCv9f22r.js","assets/Combination-4KfKrIil.js","assets/separator-D7YsfVob.js","assets/formatDistanceToNow-Ctx6mZEP.js","assets/admin.contacts-CFWrRJrT.js","assets/contacts.functions-DMaxz9QM.js","assets/undo-2-D2eRD1t6.js","assets/admin.credentials-C-WNiaf_.js","assets/admin.document-requests-DPl0WbXm.js","assets/admin.email-templates-BUJcxVSb.js","assets/admin.external-handoff-BWr9-Oep.js","assets/admin.forms-CpO0tj6-.js","assets/trash-2-BgqmfAlN.js","assets/admin.founder-readiness-ByP-kOSD.js","assets/identity-directory.functions-CAcukvcO.js","assets/circle-lHC9mHgG.js","assets/admin.founder-security-DhSvBxS5.js","assets/admin.helpdesk-Bpgp-2Hr.js","assets/switch-CLJoCDlQ.js","assets/funnel-C2tAqpdQ.js","assets/admin.identity-directory-vpRik_rX.js","assets/admin.intake-DqkYmiqR.js","assets/EcosystemIdBadge-BTjJyS9X.js","assets/copy-CLeu3h_2.js","assets/admin.intake-settings-C8bSEciV.js","assets/admin.invitations-CI4rP0Xx.js","assets/admin.lifecycle-B3v-WATR.js","assets/admin.onboarding-CBVIONYS.js","assets/tax-organizer.functions-BLQnDg5x.js","assets/admin.payments-fO14HnMn.js","assets/stripe--eFHmu8t.js","assets/admin.payouts-D8Vo2T2T.js","assets/admin.pipeline-C0aeVwv1.js","assets/admin.public-content-Cnmzvx5P.js","assets/clipboard-list-BM7Mbepu.js","assets/admin.readiness-preview-B9baMDVI.js","assets/tax-readiness-cy0qX7Av.js","assets/admin.readiness-rules-CBLaMqdf.js","assets/tax-readiness.functions-Df72Gw5i.js","assets/admin.referrals-wlRGFSCI.js","assets/tiers-DRO5xcCK.js","assets/admin.search-6hPQ0Cqv.js","assets/admin.security-BxECKRaO.js","assets/SecurityCenter-BChfMN3X.js","assets/dialog-Cn5AOWcN.js","assets/ross-associates-tax-office-2026-horizontal.png.asset-CuwGw-px.js","assets/admin.security-config-p7bsjSoM.js","assets/vault.functions-hQJIM5tN.js","assets/admin.staff-dashboard-preview-DQK1qc-R.js","assets/StaffWorkspace-DXG7_TIs.js","assets/StaffAvatar-B2Ir5RKy.js","assets/staff-desk-BYosPV97.js","assets/TimecardView-0bNEtSKK.js","assets/report-export-DMlTELyv.js","assets/CertificationLayout-CaCryF1y.js","assets/timekeeping.functions-Bjljnwzu.js","assets/admin.staff-entry-preview-DZ_iFEUZ.js","assets/admin.staff-journey-review-CWADRMiS.js","assets/admin.staff-program-BwT6nTW1.js","assets/admin.tax-research-p4nXvQ1w.js","assets/TaxResearchWorkspace-BRRexaxa.js","assets/tax-research.functions-ywEeSWNI.js","assets/admin.tax-research-access-C5IMeI6V.js","assets/admin.tiers-C90Bh8Yl.js","assets/admin.time-attendance-DyIX1G39.js","assets/TimecardRegistryPanel-C1yqEHgn.js","assets/file-down-Xem5SDrO.js","assets/PayPeriodSelect-vtgpSbOw.js","assets/admin.timecard-registry-Cr0QCHB_.js","assets/admin.users-9UgDbnzs.js","assets/admin.vault-DNP5MDjR.js","assets/admin.w4-video-pilot-0AryKVy2.js","assets/portal.index-BXbigdKP.js","assets/TaxCalendarWidget-kZAH8hD2.js","assets/portal.academy-DgBvLqgI.js","assets/portal.appointments-bzYpr6ND.js","assets/portal.billing-DCxDk3Ky.js","assets/portal.business-vault-B3uZYHya.js","assets/receipt-JGhCUV0X.js","assets/folder-open-6YK3d1AW.js","assets/portal.case-checklist-Df1n_H3T.js","assets/portal.checklist-BXr6VVvg.js","assets/portal.document-center-_aAG18_k.js","assets/portal.documents-Da-3QDEm.js","assets/portal.irs-letter-Dbbx_SWs.js","assets/portal.messages-DCoh3-Um.js","assets/portal.notifications-Bs43188Y.js","assets/portal.onboarding-r57AXUYW.js","assets/portal.profile-ChwJfWI_.js","assets/portal.quick-upload-NvQQI6Cy.js","assets/camera-CqF6awBc.js","assets/portal.referrals-BG1SRp0c.js","assets/portal.refund-tracker-Bva3kULC.js","assets/portal.required-documents-OKd0rjVZ.js","assets/portal.security-hYfKzejb.js","assets/portal.support-aB1qrDHJ.js","assets/portal.tax-calendar-Cx2avb1f.js","assets/portal.tax-pipeline-BC0QJU2-.js","assets/portal.tax-readiness-ZHcQFJPB.js","assets/portal.vault--w6rqLNm.js","assets/portal.withholding-estimator-DS2ZZDuf.js","assets/withholding-review-CphuFCrV.js","assets/service.index-BxFyx3io.js","assets/customer-service-BsPbsuWR.js","assets/service.appointments-CS1mAoPE.js","assets/service.resources-uFJA9Woa.js","assets/service.security-B5ucaJzR.js","assets/service.tax-research-Da1z2aKd.js","assets/service.taxpayers-DPhaOzpd.js","assets/service.tickets-D5CXBmdI.js","assets/workforce.index-MYTFX1cH.js","assets/staff-onboarding.functions-vL7tsG0G.js","assets/staff-desk.functions-WneqEDc7.js","assets/workforce.availability-BohV2kqc.js","assets/staff-program.functions-CO2_pNXd.js","assets/workforce.certificates-CZtiJk63.js","assets/workforce.credentials-PgvlWlbk.js","assets/workforce.demo-lab-CDlDP3FJ.js","assets/InternalShell-CgyarsG2.js","assets/workforce.desk-C7J-Fmxv.js","assets/StaffPhotoEditor-QEV0LtRs.js","assets/workforce.directory-BTba76a0.js","assets/workforce.documents-BdQlXWcD.js","assets/workforce.goals-DqZFgA0J.js","assets/workforce.help-B6BbzCNb.js","assets/workforce.integrations-DBjulSqq.js","assets/workforce.license-C2q3HllI.js","assets/workforce.mobile-app-DpYqZS4p.js","assets/workforce.onboarding-BIfl7fgD.js","assets/workforce.payouts-BvHFu6V8.js","assets/workforce.protax-DU1ygpn2.js","assets/workforce.readiness-queue-D3-Gz7LT.js","assets/workforce.resources-D7UTiqiT.js","assets/workforce.security-WnOFZdHG.js","assets/workforce.tax-research-D1eRPTpg.js","assets/workforce.time-4GXp_AdN.js","assets/log-in-BulAni-E.js","assets/workforce.timecard-registry-CHplMDHI.js","assets/workforce.training-0rmjGKt7.js","assets/workforce.training-center-BxPv3BBw.js","assets/workforce.withholding-reviews-BHdlL9V0.js","assets/admin.clients._userId-CYcpCATC.js","assets/sticky-note-BV7Pg0e2.js","assets/admin.contacts._contactId-B1d8iSRu.js","assets/save-BCtfnOq8.js","assets/admin.contacts.duplicates-9_jnD0cM.js","assets/admin.settings.permissions-Do8969mC.js","assets/admin.workforce.index-DLNBd-o6.js","assets/admin.workforce._userId-CtamvA22.js","assets/portal.support._ticketId-D1ww5sqg.js","assets/service.taxpayers._clientId-D3Y9hLgN.js"])))=>i.map(i=>d[i]); 2function LT(t,e){for(var n=0;n<e.length;n++){const s=e[n];
vendor: 6,073 bytes, line 2
2if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(s,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function jp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ch={exports:{}},Io={};var t_;function NT(){if(t_)return Io;t_=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:t,type:s,key:u,ref:o!==void 0?o:null,props:c}}return Io.Fragment=e,Io.jsx=n,Io.jsxs=n,Io}var n_;function jT(){return n_||(n_=1,ch.exports=NT()),ch.exports}var ae=jT(),lh={exports:{}},$e={};var r_;function MT(){if(r_)return $e;r_=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function b($){return $===null||typeof $!="object"?null:($=v&&$[v]||$["@@iterator"],typeof $=="function"?$:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function E($,J,Q){this.props=$,this.context=J,this.refs=x,this.updater=Q||w}E.prototype.isReactComponent={},E.prototype.setState=function($,J){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,J,"setState")},E.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function k(){}k.prototype=E.prototype;function O($,J,Q){this.props=$,this.context=J,this.refs=x,this.updater=Q||w}var j=O.prototype=new k;j.constructor=O,S(j,E.prototype),j.isPureReactComponent=!0;var X=Array.isArray;function N(){}var C={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function Y($,J,Q){var ie=Q.ref;return{$$typeof:t,type:$,key:J,ref:ie!==void 0?ie:null,props:Q}}function ne($,J){return Y($.type,J,$.props)}function z($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function V($){var J={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Q){return J[Q]})}var W=/\/+/g;function se($,J){return typeof $=="object"&&$!==null&&$.key!=null?V(""+$.key):J.toString(36)}function de($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(N,N):($.status="pending",$.then(function(J){$.status==="pending"&&($.status="fulfilled",$.value=J)},function(J){$.status==="pending"&&($.status="rejected",$.reason=J)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function M($,J,Q,ie,fe){var Ee=typeof $;(Ee==="undefined"||Ee==="boolean")&&($=null);var pe=!1;if($===null)pe=!0;else switch(Ee){case"bigint":case"string":case"number":pe=!0;break;case"object":switch($.$$typeof){case t:case e:pe=!0;break;case y:return pe=$._init,M(pe($._payload),J,Q,ie,fe)}}if(pe)return fe=fe($),pe=ie===""?"."+se($,0):ie,X(fe)?(Q="",pe!=null&&(Q=pe.replace(W,"$&/")+"/"),M(fe,J,Q,"",function(Rt){return Rt})):fe!=null&&(z(fe)&&(fe=ne(fe,Q+(fe.key==null||$&&$.key===fe.key?"":(""+fe.key).replace(W,"$&/")+"/")+pe)),J.push(fe)),1;pe=0;var me=ie===""?".":ie+":";if(X($))for(var Me=0;Me<$.length;Me++)ie=$[Me],Ee=me+se(ie,Me),pe+=M(ie,J,Q,Ee,fe);else if(Me=b($),typeof Me=="function")for($=Me.call($),Me=0;!(ie=$.next()).done;)ie=ie.value,Ee=me+se(ie,Me++),pe+=M(ie,J,Q,Ee,fe);else if(Ee==="object"){if(typeof $.then=="function")return M(de($),J,Q,ie,fe);throw J=String($),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return pe}function re($,J,Q){if($==null)return $;var ie=[],fe=0;return M($,ie,"","",function(Ee){return J.call(Q,Ee,fe++)}),ie}function ye($){if($._status===-1){var J=$._result;J=J(),J.then(function(Q){($._status===0||$._status===-1)&&($._status=1,$._result=Q)},function(Q){($._status===0||$._status===-1)&&($._status=2,$._result=Q)}),$._status===-1&&($._status=0,$._result=J)}if($._status===1)return $._result.default;throw $._result}var Ne=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},Ae={map:re,forEach:function($,J,Q){re($,function(){J.apply(this,arguments)},Q)},count:function($){var J=0;return re($,function(){J++}),J},toArray:function($){return re($,function(J){return J})||[]},only:function($){if(!z($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return $e.Activity=g,$e.Children=Ae,$e.Component=E,$e.Fragment=n,$e.Profiler=o,$e.PureComponent=O,$e.StrictMode=s,$e.Suspense=f,$e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,$e.__COMPILER_RUNTIME={__proto__:null,c:function($){return C.H.useMemoCache($)}},$e.cache=function($){return function(){return $.apply(null,arguments)}},$e.cacheSignal=function(){return null},$e.cloneElement=function($,J,Q){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var ie=S({},$.props),fe=$.key;if(J!=null)for(Ee in J.key!==void 0&&(fe=""+J.key),J)!G.call(J,Ee)||Ee==="
2key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&J.ref===void 0||(ie[Ee]=J[Ee]);var Ee=arguments.length-2;if(Ee===1)ie.children=Q;else if(1<Ee){for(var pe=Array(Ee),me=0;me<Ee;me++)pe[me]=arguments[me+2];ie.children=pe}return Y($.type,fe,ie)},$e.createContext=function($){return $={$$typeof:u,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:c,_context:$},$},$e.createElement=function($,J,Q){var ie,fe={},Ee=null;if(J!=null)for(ie in J.key!==void 0&&(Ee=""+J.key),J)G.call(J,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(fe[ie]=J[ie]);var pe=arguments.length-2;if(pe===1)fe.children=Q;else if(1<pe){for(var me=Array(pe),Me=0;Me<pe;Me++)me[Me]=arguments[Me+2];fe.children=me}if($&&$.defaultProps)for(ie in pe=$.defaultProps,pe)fe[ie]===void 0&&(fe[ie]=pe[ie]);return Y($,Ee,fe)},$e.createRef=function(){return{current:null}},$e.forwardRef=function($){return{$$typeof:d,render:$}},$e.isValidElement=z,$e.lazy=function($){return{$$typeof:y,_payload:{_status:-1,_result:$},_init:ye}},$e.memo=function($,J){return{$$typeof:p,type:$,compare:J===void 0?null:J}},$e.startTransition=function($){var J=C.T,Q={};C.T=Q;try{var ie=$(),fe=C.S;fe!==null&&fe(Q,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(N,Ne)}catch(Ee){Ne(Ee)}finally{J!==null&&Q.types!==null&&(J.types=Q.types),C.T=J}},$e.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},$e.use=function($){return C.H.use($)},$e.useActionState=function($,J,Q){return C.H.useActionState($,J,Q)},$e.useCallback=function($,J){return C.H.useCallback($,J)},$e.useContext=function($){return C.H.useContext($)},$e.useDebugValue=function(){},$e.useDeferredValue=function($,J){return C.H.useDeferredValue($,J)},$e.useEffect=function($,J){return C.H.useEffect($,J)},$e.useEffectEvent=function($){return C.H.useEffectEvent($)},$e.useId=function(){return C.H.useId()},$e.useImperativeHandle=function($,J,Q){return C.H.useImperativeHandle($,J,Q)},$e.useInsertionEffect=function($,J){return C.H.useInsertionEffect($,J)},$e.useLayoutEffect=function($,J){return C.H.useLayoutEffect($,J)},$e.useMemo=function($,J){return C.H.useMemo($,J)},$e.useOptimistic=function($,J){return C.H.useOptimistic($,J)},$e.useReducer=function($,J,Q){return C.H.useReducer($,J,Q)},$e.useRef=function($){return C.H.useRef($)},$e.useState=function($){return C.H.useState($)},$e.useSyncExternalStore=function($,J,Q){return C.H.useSyncExternalStore($,J,Q)},$e.useTransition=function(){return C.H.useTransition()},$e.version="19.2.6",$e}var a_;function Tc(){return a_||(a_=1,lh.exports=MT()),lh.exports}var ue=Tc();const ce=jp(ue),uz=LT({__proto__:null,default:ce},[ue]);var uh={exports:{}},Lo={},dh={exports:{}},fh={};var s_;function UT(){return s_||(s_=1,(function(t){function e(M,re){var ye=M.length;M.push(re);e:for(;0<ye;){var Ne=ye-1>>>1,Ae=M[Ne];if(0<o(Ae,re))M[Ne]=re,M[ye]=Ae,ye=Ne;else break e}}function n(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var re=M[0],ye=M.pop();if(ye!==re){M[0]=ye;e:for(var Ne=0,Ae=M.length,$=Ae>>>1;Ne<$;){var J=2*(Ne+1)-1,Q=M[J],ie=J+1,fe=M[ie];if(0>o(Q,ye))ie<Ae&&0>o(fe,Q)?(M[Ne]=fe,M[ie]=ye,Ne=ie):(M[Ne]=Q,M[J]=ye,Ne=J);else if(ie<Ae&&0>o(fe,ye))M[Ne]=fe,M[ie]=ye,Ne=ie;else break e}}return re}function o(M,re){var ye=M.sortIndex-re.sortIndex;return ye!==0?ye:M.id-re.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var f=[],p=[],y=1,g=null,v=3,b=!1,w=!1,S=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function j(M){for(var re=n(p);re!==null;){if(re.callback===null)s(p);else if(re.startTime<=M)s(p),re.sortIndex=re.expirationTime,e(f,re);else break;re=n(p)}}function X(M){if(S=!1,j(M),!w)if(n(f)!==null)w=!0,N||(N=!0,V());else{var re=n(p);re!==null&&de(X,re.startTime-M)}}var N=!1,C=-1,G=5,Y=-1;function ne(){return x?!0:!(t.unstable_now()-Y<G)}function z(){if(x=!1,N){var M=t.unstable_now();Y=M;var re=!0;try{e:{w=!1,S&&(S=!1,k(C),C=-1),b=!0;var ye=v;try{t:{for(j(M),g=n(f);g!==null&&!(g.expirationTime>M&&ne());){var Ne=g.callback;if(typeof Ne=="function"){g.callback=null,v=g.priorityLevel;var Ae=Ne(g.expirationTime<=M);if(M=t.unstable_now(),typeof Ae=="function"){g.callback=Ae,j(M),re=!0;break t}g===n(f)&&s(f),j(M)}else s(f);g=n(f)}if(g!==null)re=!0;else{var $=n(p);$!==null&&de(X,$.startTime-M),re=!1}}break e}finally{g=null,v=ye,b=!1}re=void 0}}finally{re?V():N=!1}}}var V;if(typeof O=="function")V=function(){O(z)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,se=W.port2;W.port1.onmessage=z,V=function(){se.postMessage(null)}}else V=function(){E(z,0)};function de(M,re){C=E(function(){M(t.unstable_now())},re)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(M){M.callback=null},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(M){switch(v){case 1:case 2:case 3:var re=3;break;default:re=v}var ye=v;v=re;try{return M()}finally{v=ye}},t.unstable_requestPaint=function(){x=!0},t.unstable_runWithPriority=function(M,re){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ye=v;v=M;try{return re()}finally{v=ye}},t.unstable_scheduleCallback=function(M,re,ye){var Ne=t.unstable_now();switch(typeof ye=="object"&&ye!==null?(ye=ye.delay,ye=typeof ye=="number"&&0<ye?Ne+ye:Ne):ye=Ne,M){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=ye+Ae,M={id:y++,callback:re,priorityLevel:M,startTime:ye,expirationTime:Ae,sortIndex:-1},ye>Ne?(M.sortIndex=ye,e(p,M),n(f)===null&&M===n(p)&&(S?(k(C),C=-1):S=!0,de(X,ye-Ne))):(M.sortIndex=Ae,e(f,M),w||b||(w=!0,N||(N=!0,V()))),M},t.unstable_shouldYield=ne,t.unstable_wrapCallback=function(M){var re=v;return function(){var ye=v;v=re;try{return M.apply(this,arguments)}finally{v=ye}}}})(fh)),fh}var i_;function BT(){return i_||(i_=1,dh.exports=UT()),dh.exports}var hh={exports:{}},Ht={};var o_;function zT(){if(o_)return Ht;o_=1;var t=Tc();function e(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var s={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(f,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:f,containerInfo:p,implementation:y}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ht.createPortal=function(f,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(e(299));return c(f,p,null,y)},Ht.flushSync=function(f){var p=u.T,y=s.p;try{if(u.T=null,s.p=2,f)return f()}finally{u.T=p,s.p=y,s.d.f()}},Ht.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,
vendor: 5,639 bytes, line 2
2s.d.C(f,p))},Ht.prefetchDNS=function(f){typeof f=="string"&&s.d.D(f)},Ht.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?s.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):y==="script"&&s.d.X(f,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ht.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);s.d.M(f,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(f)},Ht.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin);s.d.L(f,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ht.preloadModule=function(f,p){if(typeof f=="string")if(p){var y=d(p.as,p.crossOrigin);s.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(f)},Ht.requestFormReset=function(f){s.d.r(f)},Ht.unstable_batchedUpdates=function(f,p){return f(p)},Ht.useFormState=function(f,p,y){return u.H.useFormState(f,p,y)},Ht.useFormStatus=function(){return u.H.useHostTransitionStatus()},Ht.version="19.2.6",Ht}var c_;function Zb(){if(c_)return hh.exports;c_=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),hh.exports=zT(),hh.exports}var l_;function qT(){if(l_)return Lo;l_=1;var t=BT(),e=Tc(),n=Zb();function s(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function c(r){var a=r,i=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(i=a.return),r=a.return;while(r)}return a.tag===3?i:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(c(r)!==r)throw Error(s(188))}function p(r){var a=r.alternate;if(!a){if(a=c(r),a===null)throw Error(s(188));return a!==r?null:r}for(var i=r,l=a;;){var h=i.return;if(h===null)break;var m=h.alternate;if(m===null){if(l=h.return,l!==null){i=l;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===i)return f(h),r;if(m===l)return f(h),a;m=m.sibling}throw Error(s(188))}if(i.return!==l.return)i=h,l=m;else{for(var _=!1,R=h.child;R;){if(R===i){_=!0,i=h,l=m;break}if(R===l){_=!0,l=h,i=m;break}R=R.sibling}if(!_){for(R=m.child;R;){if(R===i){_=!0,i=m,l=h;break}if(R===l){_=!0,l=m,i=h;break}R=R.sibling}if(!_)throw Error(s(189))}}if(i.alternate!==l)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),O=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function V(r){return r===null||typeof r!="object"?null:(r=z&&r[z]||r["@@iterator"],typeof r=="function"?r:null)}var W=Symbol.for("react.client.reference");function se(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===W?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case E:return"Profiler";case x:return"StrictMode";case X:return"Suspense";case N:return"SuspenseList";case Y:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case O:return r.displayName||"Context";case k:return(r._context.displayName||"Context")+".Consumer";case j:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case C:return a=r.displayName||null,a!==null?a:se(r.type)||"Memo";case G:a=r._payload,r=r._init;try{return se(r(a))}catch{}}return null}var de=Array.isArray,M=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pen
vendor: 4,217 bytes, lines 2-9
2ding:!1,data:null,method:null,action:null},Ne=[],Ae=-1;function $(r){return{current:r}}function J(r){0>Ae||(r.current=Ne[Ae],Ne[Ae]=null,Ae--)}function Q(r,a){Ae++,Ne[Ae]=r.current,r.current=a}var ie=$(null),fe=$(null),Ee=$(null),pe=$(null);function me(r,a){switch(Q(Ee,a),Q(fe,r),Q(ie,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?Ev(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=Ev(a),r=Tv(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}J(ie),Q(ie,r)}function Me(){J(ie),J(fe),J(Ee)}function Rt(r){r.memoizedState!==null&&Q(pe,r);var a=ie.current,i=Tv(a,r.type);a!==i&&(Q(fe,r),Q(ie,i))}function Sn(r){fe.current===r&&(J(ie),J(fe)),pe.current===r&&(J(pe),Co._currentValue=ye)}var Bt,Cc;function Bn(r){if(Bt===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);Bt=a&&a[1]||"",Cc=-1<i.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+Bt+r+Cc}var Mi=!1;function Es(r,a){if(!r||Mi)return"";Mi=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(K){var F=K}Reflect.construct(r,[],te)}else{try{te.call()}catch(K){F=K}r.call(te.prototype)}}else{try{throw Error()}catch(K){F=K}(te=r())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(K){if(K&&F&&typeof K.stack=="string")return[K.stack,F.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),_=m[0],R=m[1];if(_&&R){var P=_.split(` 5`),H=R.split(` 6`);for(h=l=0;l<P.length&&!P[l].includes("DetermineComponentFrameRoot");)l++;for(;h<H.length&&!H[h].includes("DetermineComponentFrameRoot");)h++;if(l===P.length||h===H.length)for(l=P.length-1,h=H.length-1;1<=l&&0<=h&&P[l]!==H[h];)h--;for(;1<=l&&0<=h;l--,h--)if(P[l]!==H[h]){if(l!==1||h!==1)do if(l--,h--,0>h||P[l]!==H[h]){var Z=` 7`+P[l].replace(" at new "," at ");return r.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",r.displayName)),Z}while(1<=l&&0<=h);break}}}finally{Mi=!1,Error.prepareStackTrace=i}return(i=r?r.displayName||r.name:"")?Bn(i):""}function za(r,a){switch(r.tag){case 26:case 27:case 5:return Bn(r.type);case 16:return Bn("Lazy");case 13:return r.child!==a&&a!==null?Bn("Suspense Fallback"):Bn("Suspense");case 19:return Bn("SuspenseList");case 0:case 15:return Es(r.type,!1);case 11:return Es(r.type.render,!1);case 1:return Es(r.type,!0);case 31:return Bn("Activity");default:return""}}function Ui(r){try{var a="",i=null;do a+=za(r,i),i=r,r=r.return;while(r);return a}catch(l){return` 8Error generating stack: `+l.message+` 9`+l.stack}}var fn=Object.prototype.hasOwnProperty,Bi=t.unstable_scheduleCallback,zi=t.unstable_cancelCallback,Gt=t.unstable_shouldYield,Wr=t.unstable_requestPaint,Kt=t.unstable_now,Wu=t.unstable_getCurrentPriorityLevel,qa=t.unstable_ImmediatePriority,Pc=t.unstable_UserBlockingPriority,Ha=t.unstable_NormalPriority,qi=t.unstable_LowPriority,gr=t.unstable_IdlePriority,$c=t.log,Zr=t.unstable_setDisableYieldValue,Va=null,Yt=null;function zn(r){if(typeof $c=="function"&&Zr(r),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(Va,r)}catch{}}var zt=Math.clz32?Math.clz32:er,Zu=Math.log,Hi=Math.LN2;function er(r){return r>>>=0,r===0?32:31-(Zu(r)/Hi|0)|0}var Ts=256,As=262144,Fa=4194304;function tr(r){var a=r&42;if(a!==0)return a;switch(r&-r){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;
vendor: 9,459 bytes, line 9
9case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Ce(r,a,i){var l=r.pendingLanes;if(l===0)return 0;var h=0,m=r.suspendedLanes,_=r.pingedLanes;r=r.warmLanes;var R=l&134217727;return R!==0?(l=R&~m,l!==0?h=tr(l):(_&=R,_!==0?h=tr(_):i||(i=R&~r,i!==0&&(h=tr(i))))):(R=l&~m,R!==0?h=tr(R):_!==0?h=tr(_):i||(i=l&~r,i!==0&&(h=tr(i)))),h===0?0:a!==0&&a!==h&&(a&m)===0&&(m=h&-h,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:h}function lt(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function xt(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qt(){var r=Fa;return Fa<<=1,(Fa&62914560)===0&&(Fa=4194304),r}function Jr(r){for(var a=[],i=0;31>i;i++)a.push(r);return a}function dt(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Qt(r,a,i,l,h,m){var _=r.pendingLanes;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=i,r.entangledLanes&=i,r.errorRecoveryDisabledLanes&=i,r.shellSuspendCounter=0;var R=r.entanglements,P=r.expirationTimes,H=r.hiddenUpdates;for(i=_&~i;0<i;){var Z=31-zt(i),te=1<<Z;R[Z]=0,P[Z]=-1;var F=H[Z];if(F!==null)for(H[Z]=null,Z=0;Z<F.length;Z++){var K=F[Z];K!==null&&(K.lane&=-536870913)}i&=~te}l!==0&&Ga(r,l,0),m!==0&&h===0&&r.tag!==0&&(r.suspendedLanes|=m&~(_&~a))}function Ga(r,a,i){r.pendingLanes|=a,r.suspendedLanes&=~a;var l=31-zt(a);r.entangledLanes|=a,r.entanglements[l]=r.entanglements[l]|1073741824|i&261930}function Xt(r,a){var i=r.entangledLanes|=a;for(r=r.entanglements;i;){var l=31-zt(i),h=1<<l;h&a|r[l]&a&&(r[l]|=a),i&=~h}}function en(r,a){var i=a&-a;return i=(i&42)!==0?1:xs(i),(i&(r.suspendedLanes|a))!==0?0:i}function xs(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function qn(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Ju(){var r=re.p;return r!==0?r:(r=window.event,r===void 0?32:Yv(r.type))}function um(r,a){var i=re.p;try{return re.p=r,a()}finally{re.p=i}}var Qr=Math.random().toString(36).slice(2),$t="__reactFiber$"+Qr,tn="__reactProps$"+Qr,Os="__reactContainer$"+Qr,Qu="__reactEvents$"+Qr,ER="__reactListeners$"+Qr,TR="__reactHandles$"+Qr,dm="__reactResources$"+Qr,Vi="__reactMarker$"+Qr;function Xu(r){delete r[$t],delete r[tn],delete r[Qu],delete r[ER],delete r[TR]}function ks(r){var a=r[$t];if(a)return a;for(var i=r.parentNode;i;){if(a=i[Os]||i[$t]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(r=$v(r);r!==null;){if(i=r[$t])return i;r=$v(r)}return a}r=i,i=r.parentNode}return null}function Cs(r){if(r=r[$t]||r[Os]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Fi(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(s(33))}function Ps(r){var a=r[dm];return a||(a=r[dm]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ot(r){r[Vi]=!0}var fm=new Set,hm={};function Ka(r,a){$s(r,a),$s(r+"Capture",a)}function $s(r,a){for(hm[r]=a,r=0;r<a.length;r++)fm.add(a[r])}var AR=RegExp("^[: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]*$"),pm={},mm={};function xR(r){return fn.call(mm,r)?!0:fn.call(pm,r)?!1:AR.test(r)?mm[r]=!0:(pm[r]=!0,!1)}function Dc(r,a,i){if(xR(a))if(i===null)r.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+i)}}function Ic(r,a,i){if(i===null)r.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+i)}}function yr(r,a,i,l){if(l===null)r.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttributeNS(a,i,""+l)}}function Rn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function gm(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function OR(r,a,i){var l=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,m=l.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return h.call(this)},set:function(_){i=""+_,m.call(this,_)}}),Object.defineProperty(r,a,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(_){i=""+_},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function ed(r){if(!r._valueTracker){var a=gm(r)?"checked":"value";r._valueTracker=OR(r,a,""+r[a])}}function ym(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var i=a.getValue(),l="";return r&&(l=gm(r)?r.checked?"true":"false":r.value),r=l,r!==i?(a.setValue(r),!0):!1}function Lc(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var kR=/[\n"\\]/g;function En(r){return r.replace(kR,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function td(r,a,i,l,h,m,_,R){r.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?r.type=_:r.removeAttribute("type"),a!=null?_==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Rn(a)):r.value!==""+Rn(a)&&(r.value=""+Rn(a)):_!=="submit"&&_!=="reset"||r.removeAttribute("value"),a!=null?nd(r,_,Rn(a)):i!=null?nd(r,_,Rn(i)):l!=null&&r.removeAttribute("value"),h==null&&m!=null&&(r.defaultChecked=!!m),h!=null&&(r.checked=h&&typeof h!="function"&&typeof h!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?r.name=""+Rn(R):r.removeAttribute("name")}function vm(r,a,i,l,h,m,_,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(r.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){ed(r);return}i=i!=null?""+Rn(i):"",a=a!=null?""+Rn(a):i,R||a===r.value||(r.value=a),r.defaultValue=a}l=l??h,l=typeof l!="function"&&typeof l!="symbol"&&!!l,r.checked=R?r.checked:!!l,r.defaultChecked=!!l,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.name=_),ed(r)}function nd(r,a,i){a==="number"&&Lc(r.ownerDocument)===r||r.defaultValue===""+i||(r.defaultValue=""+i)}function Ds(r,a,i,l){if(r=r.options,a){a={};for(var h=0;h<i.length;h++)a["$"+i[h]]=!0;for(i=0;i<r.length;i++)h=a.hasOwnProperty("$"+r[i].value),r[i].selected!==h&&(r[i].selected=h),h&&l&&(r[i].defaultSelected=!0)}else{for(i=""+Rn(i),a=null,h=0;h<r.length;h++){if(r[h].value===i){r[h].selected=!0,l&&(r[h].defaultSelected=!0);return}a!==null||r[h].disabled||(a=r[h])}a!==null&&(a.selected=!0)}}function _m(r,a,i){if(a!=null&&(a=""+Rn(a),a!==r.value&&(r.value=a),i==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=i!=null?""+Rn(i):""}function bm(r,a,i,l){if(a==null){if(l!=null){if(i!=null)throw Error(s(92));if(de(l)){if(1<l.length)throw Error(s(93));l=l[0]}i=l}i==null&&(i=""),a=i}i=Rn(a),r.defaultValue=i,l=r.textContent,l===i&&l!==""&&l!==null&&(r.value=l),ed(r)}function Is(r,a){if(a){var i=r.firstChild;if(i&&i===r.lastChild&&i.nodeType===3){i.nodeValue=a;return}}r.textContent=a}var CR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wm(r,a,i){var l=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":l?r.setProperty(a,i):typeof i!="number"||i===0||CR.has(a)?a==="float"?r.cssFloat=i:r[a]=(""+i).trim():r[a]=i+"px"}
vendor: 4,435 bytes, line 9
9function Sm(r,a,i){if(a!=null&&typeof a!="object")throw Error(s(62));if(r=r.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?r.setProperty(l,""):l==="float"?r.cssFloat="":r[l]="");for(var h in a)l=a[h],a.hasOwnProperty(h)&&i[h]!==l&&wm(r,h,l)}else for(var m in a)a.hasOwnProperty(m)&&wm(r,m,a[m])}function rd(r){if(r.indexOf("-")===-1)return!1;switch(r){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 PR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$R=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nc(r){return $R.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function vr(){}var ad=null;function sd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ls=null,Ns=null;function Rm(r){var a=Cs(r);if(a&&(r=a.stateNode)){var i=r[tn]||null;e:switch(r=a.stateNode,a.type){case"input":if(td(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=r;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+En(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var l=i[a];if(l!==r&&l.form===r.form){var h=l[tn]||null;if(!h)throw Error(s(90));td(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(a=0;a<i.length;a++)l=i[a],l.form===r.form&&ym(l)}break e;case"textarea":_m(r,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&Ds(r,!!i.multiple,a,!1)}}}var id=!1;
vendor: 1,279 bytes, line 9
9function Em(r,a,i){if(id)return r(a,i);id=!0;try{var l=r(a);return l}finally{if(id=!1,(Ls!==null||Ns!==null)&&(Rl(),Ls&&(a=Ls,r=Ns,Ns=Ls=null,Rm(a),r)))for(a=0;a<r.length;a++)Rm(r[a])}}function Gi(r,a){var i=r.stateNode;if(i===null)return null;var l=i[tn]||null;if(l===null)return null;i=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(r=r.type,l=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!l;break e;default:r=!1}if(r)return null;if(i&&typeof i!="function")throw Error(s(231,a,typeof i));return i}var _r=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),od=!1;if(_r)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){od=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{od=!1}var Xr=null,cd=null,jc=null;function Tm(){if(jc)return jc;var r,a=cd,i=a.length,l,h="value"in Xr?Xr.value:Xr.textContent,m=h.length;for(r=0;r<i&&a[r]===h[r];r++);var _=i-r;for(l=1;l<=_&&a[i-l]===h[m-l];l++);return jc=h.slice(r,1<l?1-l:void 0)}function Mc(r){var a=r.keyCode;
vendor: 4,579 bytes, line 9
9return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Uc(){return!0}function Am(){return!1}function nn(r){function a(i,l,h,m,_){this._reactName=i,this._targetInst=h,this.type=l,this.nativeEvent=m,this.target=_,this.currentTarget=null;for(var R in r)r.hasOwnProperty(R)&&(i=r[R],this[R]=i?i(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Uc:Am,this.isPropagationStopped=Am,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Uc)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Uc)},persist:function(){},isPersistent:Uc}),a}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bc=nn(Ya),Yi=g({},Ya,{view:0,detail:0}),DR=nn(Yi),ld,ud,Wi,zc=g({},Yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Wi&&(Wi&&r.type==="mousemove"?(ld=r.screenX-Wi.screenX,ud=r.screenY-Wi.screenY):ud=ld=0,Wi=r),ld)},movementY:function(r){return"movementY"in r?r.movementY:ud}}),xm=nn(zc),IR=g({},zc,{dataTransfer:0}),LR=nn(IR),NR=g({},Yi,{relatedTarget:0}),dd=nn(NR),jR=g({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),MR=nn(jR),UR=g({},Ya,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),BR=nn(UR),zR=g({},Ya,{data:0}),Om=nn(zR),qR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HR={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"},VR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FR(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=VR[r])?!!a[r]:!1}function fd(){return FR}var GR=g({},Yi,{key:function(r){if(r.key){var a=qR[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Mc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?HR[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fd,charCode:function(r){return r.type==="keypress"?Mc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Mc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),KR=nn(GR),YR=g({},zc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),km=nn(YR),WR=g({},Yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fd}),ZR=nn(WR),JR=g({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),QR=nn(JR),XR=g({},zc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),eE=nn(XR),tE=g({},Ya,{newState:0,oldState:0}),nE=nn(tE),rE=[9,13,27,32],hd=_r&&"CompositionEvent"in window,Zi=null;_r&&"documentMode"in document&&(Zi=document.documentMode);var aE=_r&&"TextEvent"in window&&!Zi,Cm=_r&&(!hd||Zi&&8<Zi&&11>=Zi),Pm=" ",$m=!1;function Dm(r,a){switch(r){case"keyup":return rE.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Im(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var js=!1;function sE(r,a){switch(r){case"compositionend":return Im(a);case"keypress":return a.which!==32?null:($m=!0,Pm);case"textInput":return r=a.data,r===Pm&&$m?null:r;default:return null}}
vendor: 6,529 bytes, line 9
9function iE(r,a){if(js)return r==="compositionend"||!hd&&Dm(r,a)?(r=Tm(),jc=cd=Xr=null,js=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Cm&&a.locale!=="ko"?null:a.data;default:return null}}var oE={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 Lm(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!oE[r.type]:a==="textarea"}function Nm(r,a,i,l){Ls?Ns?Ns.push(l):Ns=[l]:Ls=l,a=Cl(a,"onChange"),0<a.length&&(i=new Bc("onChange","change",null,i,l),r.push({event:i,listeners:a}))}var Ji=null,Qi=null;function cE(r){vv(r,0)}function qc(r){var a=Fi(r);if(ym(a))return r}function jm(r,a){if(r==="change")return a}var Mm=!1;if(_r){var pd;if(_r){var md="oninput"in document;if(!md){var Um=document.createElement("div");Um.setAttribute("oninput","return;"),md=typeof Um.oninput=="function"}pd=md}else pd=!1;Mm=pd&&(!document.documentMode||9<document.documentMode)}function Bm(){Ji&&(Ji.detachEvent("onpropertychange",zm),Qi=Ji=null)}function zm(r){if(r.propertyName==="value"&&qc(Qi)){var a=[];Nm(a,Qi,r,sd(r)),Em(cE,a)}}function lE(r,a,i){r==="focusin"?(Bm(),Ji=a,Qi=i,Ji.attachEvent("onpropertychange",zm)):r==="focusout"&&Bm()}function uE(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return qc(Qi)}function dE(r,a){if(r==="click")return qc(a)}function fE(r,a){if(r==="input"||r==="change")return qc(a)}function hE(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var hn=typeof Object.is=="function"?Object.is:hE;function Xi(r,a){if(hn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var i=Object.keys(r),l=Object.keys(a);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var h=i[l];if(!fn.call(a,h)||!hn(r[h],a[h]))return!1}return!0}function qm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Hm(r,a){var i=qm(r);r=0;for(var l;i;){if(i.nodeType===3){if(l=r+i.textContent.length,r<=a&&l>=a)return{node:i,offset:a-r};r=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=qm(i)}}function Vm(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Vm(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Fm(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Lc(r.document);a instanceof r.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)r=a.contentWindow;else break;a=Lc(r.document)}return a}function gd(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var pE=_r&&"documentMode"in document&&11>=document.documentMode,Ms=null,yd=null,eo=null,vd=!1;function Gm(r,a,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;vd||Ms==null||Ms!==Lc(l)||(l=Ms,"selectionStart"in l&&gd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),eo&&Xi(eo,l)||(eo=l,l=Cl(yd,"onSelect"),0<l.length&&(a=new Bc("onSelect","select",null,a,i),r.push({event:a,listeners:l}),a.target=Ms)))}function Wa(r,a){var i={};return i[r.toLowerCase()]=a.toLowerCase(),i["Webkit"+r]="webkit"+a,i["Moz"+r]="moz"+a,i}var Us={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionrun:Wa("Transition","TransitionRun"),transitionstart:Wa("Transition","TransitionStart"),transitioncancel:Wa("Transition","TransitionCancel"),transitionend:Wa("Transition","TransitionEnd")},_d={},Km={};_r&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete Us.animationend.animation,delete Us.animationiteration.animation,delete Us.animationstart.animation),"TransitionEvent"in window||delete Us.transitionend.transition);function Za(r){if(_d[r])return _d[r];if(!Us[r])return r;var a=Us[r],i;for(i in a)if(a.hasOwnProperty(i)&&i in Km)return _d[r]=a[i];return r}var Ym=Za("animationend"),Wm=Za("animationiteration"),Zm=Za("animationstart"),mE=Za("transitionrun"),gE=Za("transitionstart"),yE=Za("transitioncancel"),Jm=Za("transitionend"),Qm=new Map,bd="abort auxClick beforeToggle 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(" ");bd.push("scrollEnd");function Hn(r,a){Qm.set(r,a),Ka(a,[r])}var Hc=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Tn=[],Bs=0,wd=0;function Vc(){for(var r=Bs,a=wd=Bs=0;a<r;){var i=Tn[a];Tn[a++]=null;var l=Tn[a];Tn[a++]=null;var h=Tn[a];Tn[a++]=null;var m=Tn[a];if(Tn[a++]=null,l!==null&&h!==null){var _=l.pending;_===null?h.next=h:(h.next=_.next,_.next=h),l.pending=h}m!==0&&Xm(i,h,m)}}function Fc(r,a,i,l){Tn[Bs++]=r,Tn[Bs++]=a,Tn[Bs++]=i,Tn[Bs++]=l,wd|=l,r.lanes|=l,r=r.alternate,r!==null&&(r.lanes|=l)}function Sd(r,a,i,l){return Fc(r,a,i,l),Gc(r)}function Ja(r,a){return Fc(r,null,null,a),Gc(r)}function Xm(r,a,i){r.lanes|=i;var l=r.alternate;l!==null&&(l.lanes|=i);for(var h=!1,m=r.return;m!==null;)m.childLanes|=i,l=m.alternate,l!==null&&(l.childLanes|=i),m.tag===22&&(r=m.stateNode,r===null||r._visibility&1||(h=!0)),r
vendor: 15,928 bytes, line 9
9=m,m=m.return;return r.tag===3?(m=r.stateNode,h&&a!==null&&(h=31-zt(i),r=m.hiddenUpdates,l=r[h],l===null?r[h]=[a]:l.push(a),a.lane=i|536870912),m):null}function Gc(r){if(50<Ro)throw Ro=0,$f=null,Error(s(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var zs={};function vE(r,a,i,l){this.tag=r,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(r,a,i,l){return new vE(r,a,i,l)}function Rd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function br(r,a){var i=r.alternate;return i===null?(i=pn(r.tag,a,r.key,r.mode),i.elementType=r.elementType,i.type=r.type,i.stateNode=r.stateNode,i.alternate=r,r.alternate=i):(i.pendingProps=a,i.type=r.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=r.flags&65011712,i.childLanes=r.childLanes,i.lanes=r.lanes,i.child=r.child,i.memoizedProps=r.memoizedProps,i.memoizedState=r.memoizedState,i.updateQueue=r.updateQueue,a=r.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=r.sibling,i.index=r.index,i.ref=r.ref,i.refCleanup=r.refCleanup,i}function eg(r,a){r.flags&=65011714;var i=r.alternate;return i===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=i.childLanes,r.lanes=i.lanes,r.child=i.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=i.memoizedProps,r.memoizedState=i.memoizedState,r.updateQueue=i.updateQueue,r.type=i.type,a=i.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Kc(r,a,i,l,h,m){var _=0;if(l=r,typeof r=="function")Rd(r)&&(_=1);else if(typeof r=="string")_=RT(r,i,ie.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Y:return r=pn(31,i,a,h),r.elementType=Y,r.lanes=m,r;case S:return Qa(i.children,h,m,a);case x:_=8,h|=24;break;case E:return r=pn(12,i,a,h|2),r.elementType=E,r.lanes=m,r;case X:return r=pn(13,i,a,h),r.elementType=X,r.lanes=m,r;case N:return r=pn(19,i,a,h),r.elementType=N,r.lanes=m,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case O:_=10;break e;case k:_=9;break e;case j:_=11;break e;case C:_=14;break e;case G:_=16,l=null;break e}_=29,i=Error(s(130,r===null?"null":typeof r,"")),l=null}return a=pn(_,i,a,h),a.elementType=r,a.type=l,a.lanes=m,a}function Qa(r,a,i,l){return r=pn(7,r,l,a),r.lanes=i,r}function Ed(r,a,i){return r=pn(6,r,null,a),r.lanes=i,r}function tg(r){var a=pn(18,null,null,0);return a.stateNode=r,a}function Td(r,a,i){return a=pn(4,r.children!==null?r.children:[],r.key,a),a.lanes=i,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var ng=new WeakMap;function An(r,a){if(typeof r=="object"&&r!==null){var i=ng.get(r);return i!==void 0?i:(a={value:r,source:a,stack:Ui(a)},ng.set(r,a),a)}return{value:r,source:a,stack:Ui(a)}}var qs=[],Hs=0,Yc=null,to=0,xn=[],On=0,ea=null,nr=1,rr="";function wr(r,a){qs[Hs++]=to,qs[Hs++]=Yc,Yc=r,to=a}function rg(r,a,i){xn[On++]=nr,xn[On++]=rr,xn[On++]=ea,ea=r;var l=nr;r=rr;var h=32-zt(l)-1;l&=~(1<<h),i+=1;var m=32-zt(a)+h;if(30<m){var _=h-h%5;m=(l&(1<<_)-1).toString(32),l>>=_,h-=_,nr=1<<32-zt(a)+h|i<<h|l,rr=m+r}else nr=1<<m|i<<h|l,rr=r}function Ad(r){r.return!==null&&(wr(r,1),rg(r,1,0))}function xd(r){for(;r===Yc;)Yc=qs[--Hs],qs[Hs]=null,to=qs[--Hs],qs[Hs]=null;for(;r===ea;)ea=xn[--On],xn[On]=null,rr=xn[--On],xn[On]=null,nr=xn[--On],xn[On]=null}function ag(r,a){xn[On++]=nr,xn[On++]=rr,xn[On++]=ea,nr=a.id,rr=a.overflow,ea=r}var Dt=null,ot=null,Ve=!1,ta=null,kn=!1,Od=Error(s(519));function na(r){var a=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw no(An(a,r)),Od}function sg(r){var a=r.stateNode,i=r.type,l=r.memoizedProps;switch(a[$t]=r,a[tn]=l,i){case"dialog":ze("cancel",a),ze("close",a);break;case"iframe":case"object":case"embed":ze("load",a);break;case"video":case"audio":for(i=0;i<To.length;i++)ze(To[i],a);break;case"source":ze("error",a);break;case"img":case"image":case"link":ze("error",a),ze("load",a);break;case"details":ze("toggle",a);break;case"input":ze("invalid",a),vm(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ze("invalid",a);break;case"textarea":ze("invalid",a),bm(a,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||l.suppressHydrationWarning===!0||Sv(a.textContent,i)?(l.popover!=null&&(ze("beforetoggle",a),ze("toggle",a)),l.onScroll!=null&&ze("scroll",a),l.onScrollEnd!=null&&ze("scrollend",a),l.onClick!=null&&(a.onclick=vr),a=!0):a=!1,a||na(r,!0)}function ig(r){for(Dt=r.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:kn=!1;return;case 27:case 3:kn=!0;return;default:Dt=Dt.return}}function Vs(r){if(r!==Dt)return!1;if(!Ve)return ig(r),Ve=!0,!1;var a=r.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=r.type,i=!(i!=="form"&&i!=="button")||Kf(r.type,r.memoizedProps)),i=!i),i&&ot&&na(r),ig(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));ot=Pv(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));ot=Pv(r)}else a===27?(a=ot,ga(r.type)?(r=Qf,Qf=null,ot=r):ot=a):ot=Dt?Pn(r.stateNode.nextSibling):null;return!0}function Xa(){ot=Dt=null,Ve=!1}function kd(){var r=ta;return r!==null&&(on===null?on=r:on.push.apply(on,r),ta=null),r}function no(r){ta===null?ta=[r]:ta.push(r)}var Cd=$(null),es=null,Sr=null;function ra(r,a,i){Q(Cd,a._currentValue),a._currentValue=i}function Rr(r){r._currentValue=Cd.current,J(Cd)}function Pd(r,a,i){for(;r!==null;){var l=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),r===i)break;r=r.return}}function $d(r,a,i,l){var h=r.child;for(h!==null&&(h.return=r);h!==null;){var m=h.dependencies;if(m!==null){var _=h.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=h;for(var P=0;P<a.length;P++)if(R.context===a[P]){m.lanes|=i,R=m.alternate,R!==null&&(R.lanes|=i),Pd(m.return,i,r),l||(_=null);break e}m=R.next}}else if(h.tag===18){if(_=h.return,_===null)throw Error(s(341));_.lanes|=i,m=_.alternate,m!==null&&(m.lanes|=i),Pd(_,i,r),_=null}else _=h.child;if(_!==null)_.return=h;else for(_=h;_!==null;){if(_===r){_=null;break}if(h=_.sibling,h!==null){h.return=_.return,_=h;break}_=_.return}h=_}}function Fs(r,a,i,l){r=null;for(var h=a,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var _=h.alternate;if(_===null)throw Error(s(387));if(_=_.memoizedProps,_!==null){var R=h.type;hn(h.pendingProps.value,_.value)||(r!==null?r.push(R):r=[R])}}else if(h===pe.current){if(_=h.alternate,_===null)throw Error(s(387));_.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(r!==null?r.push(Co):r=[Co])}h=h.return}r!==null&&$d(a,r,i,l),a.flags|=262144}function Wc(r){for(r=r.firstContext;r!==null;){if(!hn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ts(r){es=r,Sr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function It(r){return og(es,r)}function Zc(r,a){return es===null&&ts(r),og(r,a)}function og(r,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Sr===null){if(r===null)throw Error(s(308));Sr=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Sr=Sr.next=a;return i}var _E=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(i,l){r.push(l)}};this.abort=function(){a.aborted=!0,r.forEach(function(i){return i()})}},bE=t.unstable_scheduleCallback,wE=t.unstable_NormalPriority,yt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dd(){return{controller:new _E,data:new Map,refCount:0}}function ro(r){r.refCount--,r.refCount===0&&bE(wE,function(){r.controller.abort()})}var ao=null,Id=0,Gs=0,Ks=null;function SE(r,a){if(ao===null){var i=ao=[];Id=0,Gs=Mf(),Ks={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Id++,a.then(cg,cg),a}function cg(){if(--Id===0&&ao!==null){Ks!==null&&(Ks.status="fulfilled");var r=ao;ao=null,Gs=0,Ks=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function RE(r,a){var i=[],l={status:"pending",value:null,reason:null,then:function(h){i.push(h)}};return r.then(function(){l.status="fulfilled",l.value=a;for(var h=0;h<i.length;h++)(0,i[h])(a)},function(h){for(l.status="rejected",l.reason=h,h=0;h<i.length;h++)(0,i[h])(void 0)}),l}var lg=M.S;M.S=function(r,a){Gy=Kt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&SE(r,a),lg!==null&&lg(r,a)};var ns=$(null);function Ld(){var r=ns.current;return r!==null?r:nt.pooledCache}function Jc(r,a){a===null?Q(ns,ns.current):Q(ns,a.pool)}function ug(){var r=Ld();return r===null?null:{parent:yt._currentValue,pool:r}}var Ys=Error(s(460)),Nd=Error(s(474)),Qc=Error(s(542)),Xc={then:function(){}};function dg(r){return r=r.status,r==="fulfilled"||r==="rejected"}function fg(r,a,i){switch(i=r[i],i===void 0?r.push(a):i!==a&&(a.then(vr,vr),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,pg(r),r;default:if(typeof a.status=="string")a.then(vr,vr);else{if(r=nt,r!==null&&100<r.shellSuspendCounter)throw Error(s(482));r=a,r.status="pending",r.then(function(l){if(a.status==="pending"){var h=a;h.status="fulfilled",h.value=l}},function(l){if(a.status==="pending"){var h=a;h.status="rejected",h.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,pg(r),r}throw as=a,Ys}}function rs(r){try{var a=r._init;return a(r._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(as=i,Ys):i}}var as=null;function hg(){if(as===null)throw Error(s(459));var r=as;return as=null,r}function pg(r){if(r===Ys||r===Qc)throw Error(s(483))}var Ws=null,so=0;function el(r){var a=so;return so+=1,Ws===null&&(Ws=[]),fg(Ws,r,a)}function io(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function tl(r,a){throw a.$$typeof===v?Error(s(525)):(r=Object.prototype.toString.call(a),Error(s(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function mg(r){function a(B,L){if(r){var q=B.deletions;q===null?(B.deletions=[L],B.flags|=16):q.push(L)}}function i(B,L){if(!r)return null;for(;L!==null;)a(B,L),L=L.sibling;return null}function l(B){for(var L=new Map;B!==null;)B.key!==null?L.set(B.key,B):L.set(B.index,B),B=B.sibling;return L}function h(B,L){return B=br(B,L),B.index=0,B.sibling=null,B}function m(B,L,q){return B.index=q,r?(q=B.alternate,q!==null?(q=q.index,q<L?(B.flags|=67108866,L):q):(B.flags|=67108866,L)):(B.flags|=1048576,L)}function _(B){return r&&B.alternate===null&&(B.flags|=67108866),B}function R(B,L,q,ee){return L===null||L.tag!==6?(L=Ed(q,B.mode,ee),L.return=B,L):(L=h(L,q),L.return=B,L)}function P(B,L,q,ee){var Te=q.type;return Te===S?Z(B,L,q.props.children,ee,q.key):L!==null&&(L.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===G&&rs(Te)===L.type)?(L=h(L,q.props),io(L,q),L.return=B,L):(L=Kc(q.type,q.key,q.props,null,B.mode,ee),io(L,q),L.return=B,L)}function H(B,L,q,ee){return L===null||L.tag!==4||L.stateNode.containerInfo!==q.containerInfo||L.stateNode.implementation!==q.implementation?(L=Td(q,B.mode,ee),L.return=B,L):(L=h(L,q.children||[]),L.return=B,L)}function Z(B,L,q,ee,Te){return L===null||L.tag!==7?(L=Qa(q,B.mode,ee,Te),L.return=B,L):(L=h(L,q),L.return=B,L)}function te(B,L,q){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Ed(""+L,B.mode,q),L.return=B,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return q=Kc(L.type,L.key,L.props,null,B.mode,q),io(q,L),q.return=B,q;case w:return L=Td(L,B.mode,q),L.return=B,L;case G:return L=rs(L),te(B,L,q)}if(de(L)||V(L))return L=Qa(L,B.mode,q,null),L.return=B,L;if(typeof L.then=="function")return te(B,el(L),q);if(L.$$typeof===O)return te(B,Zc(B,L),q);tl(B,L)}return null}function F(B,L,q,ee){var Te=L!==null?L.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Te!==null?null:R(B,L,""+q,ee);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return q.key===Te?P(B,L,q,ee):null;case w:return q.key===Te?H(B,L,q,ee):null;case G:return q=rs(q),F(B,L,q,ee)}if(de(q)||V(q))return Te!==null?null:Z(B,L,q,ee,null);if(typeof q.then=="function")return F(B,L,el(q),ee);if(q.$$typeof===O)return F(B,L,Zc(B,q),ee);tl(B,q)}return null}function K(B,L,q,ee,Te){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return B=B.get(q)||null,R(L,B,""+ee,Te);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case b:return B=B.get(ee.key===null?q:ee.key)||null,P(L,B,ee,Te);case w:return B=B.get(ee.key===null?q:ee.key)||null,H(L,B,ee,Te);case G:return ee=rs(ee),K(B,L,q,ee,Te)}if(de(ee)||V(ee))return B=B.get(q)||null,Z(L,B,ee,Te,null);if(typeof ee.then=="function")return K(B,L,q,el(ee),Te);if(ee.$$typeof===O)return K(B,L,q,Zc(L,ee),Te);tl(L,ee)}return null}function ge(B,L,q,ee){for(var Te=null,Ge=null,Se=L,je=L=0,He=null;Se!==null&&je<q.length;je++){Se.index>je?(He=Se,Se=null):He=Se.sibling;var Ke=F(B,Se,q[je],ee);if(Ke===null){Se===null&&(Se=He);break}r&&Se&&Ke.alternate===null&&a(B,Se),L=m(Ke,L,je),Ge===null?Te=Ke:Ge.sibling=Ke,Ge=Ke,Se=He}if(je===q.length)return i(B,Se),Ve&&wr(B,je),Te;if(Se===null){for(;je<q.length;je++)Se=te(B,q[je],ee),Se!==null&&(L=m(Se,L,je),Ge===null?Te=Se:Ge.sibling=Se,Ge=Se);return Ve&&wr(B,je),Te}for(Se=l(Se);je<q.length;je++)He=K(Se,B,je,q[je],ee),He!==null&&(r&&He.alternate!==null&&Se.delete(He.key===null?je:He.key),L=m(He,L,je),Ge===null?Te=He:Ge.sibling=He,Ge=He);return r&&Se.forEach(function(wa){return a(B,wa)}),Ve&&wr(B,je),Te}function xe(B,L,q,ee){if(q==null)throw Error(s(151));for(var Te=null,Ge=null,Se=L,je=L=0,He=null,Ke=q.next();Se!==null&&!Ke.done;je++,Ke=q.next()){Se.index>je?(He=Se,Se=null):He=Se.sibling;var wa=F(B,Se,Ke.value,ee);if(wa===null){Se===null&&(Se=He);break}r&&Se&&wa.alternate===null&&a(B,Se),L=m(wa,L,je),Ge===null?Te=wa:Ge.sibling=wa,Ge=wa,Se=He}if(Ke.done)return i(B,Se),Ve&&wr(B,je),Te;if(Se===null){for(;!Ke.done;je++,Ke=q.next())Ke=te(B,Ke.value,ee),Ke!==null&&(L=m(Ke,L,je),Ge===null?Te=Ke:Ge.sibling=Ke,Ge=Ke);return Ve&&wr(B,je),Te}for(Se=l(Se);!Ke.done;je++,Ke=q.next())Ke=K(Se,B,je,Ke.value,ee),Ke!==null&&(r&&Ke.alternate!==null&&Se.delete(Ke.key===null?je:Ke.key),L=m(Ke,L,je),Ge===null?Te=Ke:Ge.sibling=Ke,Ge=Ke);return r&&Se.forEach(function(IT){return a(B,IT)}),Ve&&wr(B,je),Te}function tt(B,L,q,ee){if(typeof q=="object"&&q!==null&&q.type===S&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case b:e:{for(var Te=q.key;L!==null;){if(L.key===Te){if(Te=q.type,Te===S){if(L.tag===7){i(B,L.sibling),ee=h(L,q.props.children),ee.return=B,B=ee;break e}}else if(L.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===G&&rs(Te)===L.type){i(B,L.sibling),ee=h(L,q.props),io(ee,q),ee.return=B,B=ee;break e}i(B,L);break}else a(B,L);L=L.sibling}q.type===S?(ee=Qa(q.props.children,B.mode,ee,q.key),ee.return=B,B=ee):(ee=Kc(q.type,q.key,q.props,null,B.mode,ee),io(ee,q),ee.return=B,B=ee)}return _(B);case w:e:{for(Te=q.key;L!==null;){if(L.key===Te)if(L.tag===4&&L.stateNode.containerInfo===q.containerInfo&&L.stateNode.implementation===q.implementation){i(B,L.sibling),ee=h(L,q.children||[]),ee.return=B,B=ee;break e}else{i(B,L);break}else a(B,L);L=L.sibling}ee=Td(q,B.mode,ee),ee.return=B,B=ee}return _(B);case G:return q=rs(q),tt(B,L,q,ee)}if(de(q))return ge(B,L,q,ee);if(V(q)){if(Te=V(q),typeof Te!="function")throw Error(s(150));return q=Te.call(q),xe(B,L,q,ee)}if(typeof q.then=="function")return tt(B,L,el(q),ee);
vendor: 5,055 bytes, line 9
9if(q.$$typeof===O)return tt(B,L,Zc(B,q),ee);tl(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,L!==null&&L.tag===6?(i(B,L.sibling),ee=h(L,q),ee.return=B,B=ee):(i(B,L),ee=Ed(q,B.mode,ee),ee.return=B,B=ee),_(B)):i(B,L)}return function(B,L,q,ee){try{so=0;var Te=tt(B,L,q,ee);return Ws=null,Te}catch(Se){if(Se===Ys||Se===Qc)throw Se;var Ge=pn(29,Se,null,B.mode);return Ge.lanes=ee,Ge.return=B,Ge}}}var ss=mg(!0),gg=mg(!1),aa=!1;function jd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Md(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function sa(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ia(r,a,i){var l=r.updateQueue;if(l===null)return null;if(l=l.shared,(Ze&2)!==0){var h=l.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),l.pending=a,a=Gc(r),Xm(r,null,i),a}return Fc(r,l,a,i),Gc(r)}function oo(r,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var l=a.lanes;l&=r.pendingLanes,i|=l,a.lanes=i,Xt(r,i)}}function Ud(r,a){var i=r.updateQueue,l=r.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var h=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var _={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?h=m=_:m=m.next=_,i=i.next}while(i!==null);m===null?h=m=a:m=m.next=a}else h=m=a;i={baseState:l.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},r.updateQueue=i;return}r=i.lastBaseUpdate,r===null?i.firstBaseUpdate=a:r.next=a,i.lastBaseUpdate=a}var Bd=!1;function co(){if(Bd){var r=Ks;if(r!==null)throw r}}function lo(r,a,i,l){Bd=!1;var h=r.updateQueue;aa=!1;var m=h.firstBaseUpdate,_=h.lastBaseUpdate,R=h.shared.pending;if(R!==null){h.shared.pending=null;var P=R,H=P.next;P.next=null,_===null?m=H:_.next=H,_=P;var Z=r.alternate;Z!==null&&(Z=Z.updateQueue,R=Z.lastBaseUpdate,R!==_&&(R===null?Z.firstBaseUpdate=H:R.next=H,Z.lastBaseUpdate=P))}if(m!==null){var te=h.baseState;_=0,Z=H=P=null,R=m;do{var F=R.lane&-536870913,K=F!==R.lane;if(K?(qe&F)===F:(l&F)===F){F!==0&&F===Gs&&(Bd=!0),Z!==null&&(Z=Z.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var ge=r,xe=R;F=a;var tt=i;switch(xe.tag){case 1:if(ge=xe.payload,typeof ge=="function"){te=ge.call(tt,te,F);break e}te=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=xe.payload,F=typeof ge=="function"?ge.call(tt,te,F):ge,F==null)break e;te=g({},te,F);break e;case 2:aa=!0}}F=R.callback,F!==null&&(r.flags|=64,K&&(r.flags|=8192),K=h.callbacks,K===null?h.callbacks=[F]:K.push(F))}else K={lane:F,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Z===null?(H=Z=K,P=te):Z=Z.next=K,_|=F;if(R=R.next,R===null){if(R=h.shared.pending,R===null)break;K=R,R=K.next,K.next=null,h.lastBaseUpdate=K,h.shared.pending=null}}while(!0);Z===null&&(P=te),h.baseState=P,h.firstBaseUpdate=H,h.lastBaseUpdate=Z,m===null&&(h.shared.lanes=0),da|=_,r.lanes=_,r.memoizedState=te}}function yg(r,a){if(typeof r!="function")throw Error(s(191,r));r.call(a)}function vg(r,a){var i=r.callbacks;if(i!==null)for(r.callbacks=null,r=0;r<i.length;r++)yg(i[r],a)}var Zs=$(null),nl=$(0);function _g(r,a){r=$r,Q(nl,r),Q(Zs,a),$r=r|a.baseLanes}function zd(){Q(nl,$r),Q(Zs,Zs.current)}function qd(){$r=nl.current,J(Zs),J(nl)}var mn=$(null),Cn=null;function oa(r){var a=r.alternate;Q(mt,mt.current&1),Q(mn,r),Cn===null&&(a===null||Zs.current!==null||a.memoizedState!==null)&&(Cn=r)}function Hd(r){Q(mt,mt.current),Q(mn,r),Cn===null&&(Cn=r)}function bg(r){r.tag===22?(Q(mt,mt.current),Q(mn,r),Cn===null&&(Cn=r)):ca()}function ca(){Q(mt,mt.current),Q(mn,mn.current)}function gn(r){J(mn),Cn===r&&(Cn=null),J(mt)}var mt=$(0);function rl(r){for(var a=r;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Zf(i)||Jf(i)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Er=0,Le=null,Xe=null,vt=null,al=!1,Js=!1,is=!1,sl=0,uo=0,Qs=null,EE=0;function ft(){throw Error(s(321))}function Vd(r,a){if(a===null)return!1;for(var i=0;i<a.length&&i<r.length;i++)if(!hn(r[i],a[i]))return!1;return!0}function Fd(r,a,i,l,h,m){return Er=m,Le=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,M.H=r===null||r.memoizedState===null?ry:of,is=!1,m=i(l,h),is=!1,Js&&(m=Sg(a,i,l,h)),wg(r),m}function wg(r){M.H=po;var a=Xe!==null&&Xe.next!==null;if(Er=0,vt=Xe=Le=null,al=!1,uo=0,Qs=null,a)throw Error(s(300));r===null||_t||(r=r.dependencies,r!==null&&Wc(r)&&(_t=!0))}function Sg(r,a,i,l){Le=r;var h=0;
vendor: 10,914 bytes, line 9
9do{if(Js&&(Qs=null),uo=0,Js=!1,25<=h)throw Error(s(301));if(h+=1,vt=Xe=null,r.updateQueue!=null){var m=r.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}M.H=ay,m=a(i,l)}while(Js);return m}function TE(){var r=M.H,a=r.useState()[0];return a=typeof a.then=="function"?fo(a):a,r=r.useState()[0],(Xe!==null?Xe.memoizedState:null)!==r&&(Le.flags|=1024),a}function Gd(){var r=sl!==0;return sl=0,r}function Kd(r,a,i){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~i}function Yd(r){if(al){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}al=!1}Er=0,vt=Xe=Le=null,Js=!1,uo=sl=0,Qs=null}function Wt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Le.memoizedState=vt=r:vt=vt.next=r,vt}function gt(){if(Xe===null){var r=Le.alternate;r=r!==null?r.memoizedState:null}else r=Xe.next;var a=vt===null?Le.memoizedState:vt.next;if(a!==null)vt=a,Xe=r;else{if(r===null)throw Le.alternate===null?Error(s(467)):Error(s(310));Xe=r,r={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},vt===null?Le.memoizedState=vt=r:vt=vt.next=r}return vt}function il(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fo(r){var a=uo;return uo+=1,Qs===null&&(Qs=[]),r=fg(Qs,r,a),a=Le,(vt===null?a.memoizedState:vt.next)===null&&(a=a.alternate,M.H=a===null||a.memoizedState===null?ry:of),r}function ol(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return fo(r);if(r.$$typeof===O)return It(r)}throw Error(s(438,String(r)))}function Wd(r){var a=null,i=Le.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var l=Le.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(h){return h.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=il(),Le.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(r),l=0;l<r;l++)i[l]=ne;return a.index++,i}function Tr(r,a){return typeof a=="function"?a(r):a}function cl(r){var a=gt();return Zd(a,Xe,r)}function Zd(r,a,i){var l=r.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=i;var h=r.baseQueue,m=l.pending;if(m!==null){if(h!==null){var _=h.next;h.next=m.next,m.next=_}a.baseQueue=h=m,l.pending=null}if(m=r.baseState,h===null)r.memoizedState=m;else{a=h.next;var R=_=null,P=null,H=a,Z=!1;do{var te=H.lane&-536870913;if(te!==H.lane?(qe&te)===te:(Er&te)===te){var F=H.revertLane;if(F===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),te===Gs&&(Z=!0);else if((Er&F)===F){H=H.next,F===Gs&&(Z=!0);continue}else te={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},P===null?(R=P=te,_=m):P=P.next=te,Le.lanes|=F,da|=F;te=H.action,is&&i(m,te),m=H.hasEagerState?H.eagerState:i(m,te)}else F={lane:te,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},P===null?(R=P=F,_=m):P=P.next=F,Le.lanes|=te,da|=te;H=H.next}while(H!==null&&H!==a);if(P===null?_=m:P.next=R,!hn(m,r.memoizedState)&&(_t=!0,Z&&(i=Ks,i!==null)))throw i;r.memoizedState=m,r.baseState=_,r.baseQueue=P,l.lastRenderedState=m}return h===null&&(l.lanes=0),[r.memoizedState,l.dispatch]}function Jd(r){var a=gt(),i=a.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=r;var l=i.dispatch,h=i.pending,m=a.memoizedState;if(h!==null){i.pending=null;var _=h=h.next;do m=r(m,_.action),_=_.next;while(_!==h);hn(m,a.memoizedState)||(_t=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,l]}function Rg(r,a,i){var l=Le,h=gt(),m=Ve;if(m){if(i===void 0)throw Error(s(407));i=i()}else i=a();var _=!hn((Xe||h).memoizedState,i);if(_&&(h.memoizedState=i,_t=!0),h=h.queue,ef(Ag.bind(null,l,h,r),[r]),h.getSnapshot!==a||_||vt!==null&&vt.memoizedState.tag&1){if(l.flags|=2048,Xs(9,{destroy:void 0},Tg.bind(null,l,h,i,a),null),nt===null)throw Error(s(349));m||(Er&127)!==0||Eg(l,a,i)}return i}function Eg(r,a,i){r.flags|=16384,r={getSnapshot:a,value:i},a=Le.updateQueue,a===null?(a=il(),Le.updateQueue=a,a.stores=[r]):(i=a.stores,i===null?a.stores=[r]:i.push(r))}function Tg(r,a,i,l){a.value=i,a.getSnapshot=l,xg(a)&&Og(r)}function Ag(r,a,i){return i(function(){xg(a)&&Og(r)})}function xg(r){var a=r.getSnapshot;r=r.value;try{var i=a();return!hn(r,i)}catch{return!0}}function Og(r){var a=Ja(r,2);a!==null&&cn(a,r,2)}function Qd(r){var a=Wt();if(typeof r=="function"){var i=r;if(r=i(),is){zn(!0);try{i()}finally{zn(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:r},a}function kg(r,a,i,l){return r.baseState=i,Zd(r,Xe,typeof l=="function"?l:Tr)}function AE(r,a,i,l,h){if(dl(r))throw Error(s(485));if(r=a.action,r!==null){var m={payload:h,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){m.listeners.push(_)}};M.T!==null?i(!0):m.isTransition=!1,l(m),i=a.pending,i===null?(m.next=a.pending=m,Cg(a,m)):(m.next=i.next,a.pending=i.next=m)}}function Cg(r,a){var i=a.action,l=a.payload,h=r.state;if(a.isTransition){var m=M.T,_={};M.T=_;try{var R=i(h,l),P=M.S;P!==null&&P(_,R),Pg(r,a,R)}catch(H){Xd(r,a,H)}finally{m!==null&&_.types!==null&&(m.types=_.types),M.T=m}}else try{m=i(h,l),Pg(r,a,m)}catch(H){Xd(r,a,H)}}function Pg(r,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){$g(r,a,l)},function(l){return Xd(r,a,l)}):$g(r,a,i)}function $g(r,a,i){a.status="fulfilled",a.value=i,Dg(a),r.state=i,a=r.pending,a!==null&&(i=a.next,i===a?r.pending=null:(i=i.next,a.next=i,Cg(r,i)))}function Xd(r,a,i){var l=r.pending;if(r.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=i,Dg(a),a=a.next;while(a!==l)}r.action=null}function Dg(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Ig(r,a){return a}function Lg(r,a){if(Ve){var i=nt.formState;if(i!==null){e:{var l=Le;if(Ve){if(ot){t:{for(var h=ot,m=kn;h.nodeType!==8;){if(!m){h=null;break t}if(h=Pn(h.nextSibling),h===null){h=null;break t}}m=h.data,h=m==="F!"||m==="F"?h:null}if(h){ot=Pn(h.nextSibling),l=h.data==="F!";break e}}na(l)}l=!1}l&&(a=i[0])}}return i=Wt(),i.memoizedState=i.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ig,lastRenderedState:a},i.queue=l,i=ey.bind(null,Le,l),l.dispatch=i,l=Qd(!1),m=sf.bind(null,Le,!1,l.queue),l=Wt(),h={state:a,dispatch:null,action:r,pending:null},l.queue=h,i=AE.bind(null,Le,h,m,i),h.dispatch=i,l.memoizedState=r,[a,i,!1]}function Ng(r){var a=gt();return jg(a,Xe,r)}function jg(r,a,i){if(a=Zd(r,a,Ig)[0],r=cl(Tr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=fo(a)}catch(_){throw _===Ys?Qc:_}else l=a;a=gt();var h=a.queue,m=h.dispatch;return i!==a.memoizedState&&(Le.flags|=2048,Xs(9,{destroy:void 0},xE.bind(null,h,i),null)),[l,m,r]}function xE(r,a){r.action=a}function Mg(r){var a=gt(),i=Xe;if(i!==null)return jg(a,i,r);gt(),a=a.memoizedState,i=gt();var l=i.queue.dispatch;return i.memoizedState=r,[a,l,!1]}function Xs(r,a,i,l){return r={tag:r,create:i,deps:l,inst:a,next:null},a=Le.updateQueue,a===null&&(a=il(),Le.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=r.next=r:(l=i.next,i.next=r,r.next=l,a.lastEffect=r),r}function Ug(){return gt().memoizedState}function ll(r,a,i,l){var h=Wt();Le.flags|=r,h.memoizedState=Xs(1|a,{destroy:void 0},i,l===void 0?null:l)}function ul(r,a,i,l){var h=gt();l=l===void 0?null:l;var m=h.memoizedState.inst;Xe!==null&&l!==null&&Vd(l,Xe.memoizedState.deps)?h.memoizedState=Xs(a,m,i,l):(Le.flags|=r,h.memoizedState=Xs(1|a,m,i,l))}function Bg(r,a){ll(8390656,8,r,a)}function ef(r,a){ul(2048,8,r,a)}function OE(r){Le.flags|=4;var a=Le.updateQueue;if(a===null)a=il(),Le.updateQueue=a,a.events=[r];else{var i=a.events;i===null?a.events=[r]:i.push(r)}}function zg(r){var a=gt().memoizedState;return OE({ref:a,nextImpl:r}),function(){if((Ze&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}function qg(r,a){return ul(4,2,r,a)}function Hg(r,a){return ul(4,4,r,a)}function Vg(r,a){if(typeof a=="function"){r=r();var i=a(r);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Fg(r,a,i){i=i!=null?i.concat([r]):null,ul(4,4,Vg.bind(null,a,r),i)}function tf(){}function Gg(r,a){var i=gt();a=a===void 0?null:a;var l=i.memoizedState;return a!==null&&Vd(a,l[1])?l[0]:(i.memoizedState=[r,a],r)}function Kg(r,a){var i=gt();a=a===void 0?null:a;var l=i.memoizedState;if(a!==null&&Vd(a,l[1]))return l[0];if(l=r(),is){zn(!0);try{r()}finally{zn(!1)}}return i.memoizedState=[l,a],l}function nf(r,a,i){return i===void 0||(Er&1073741824)!==0&&(qe&261930)===0?r.memoizedState=a:(r.memoizedState=i,r=Yy(),Le.lanes|=r,da|=r,i)}function Yg(r,a,i,l){return hn(i,a)?i:Zs.current!==null?(r=nf(r,i,l),hn(r,a)||(_t=!0),r):(Er&42)===0||(Er&1073741824)!==0&&(qe&261930)===0?(_t=!0,r.memoizedState=i):(r=Yy(),Le.lanes|=r,da|=r,a)}function Wg(r,a,i,l,h){var m=re.p;re.p=m!==0&&8>m?m:8;var _=M.T,R={};M.T=R,sf(r,!1,a,i);try{var P=h(),H=M.S;if(H!==null&&H(R,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var Z=RE(P,l);ho(r,a,Z,_n(r))}else ho(r,a,l,_n(r))}catch(te){ho(r,a,{then:function(){},status:"rejected",reason:te},_n())}finally{re.p=m,_!==null&&R.types!==null&&(_.types=R.types),M.T=_}}function kE(){}function rf(r,a,i,l){if(r.tag!==5)throw Error(s(476));var h=Zg(r).queue;Wg(r,h,a,ye,i===null?kE:function(){return Jg(r),i(l)})}function Zg(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:ye},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:i},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Jg(r){var a=Zg(r);a.next===null&&(a=r.alternate.memoizedState),ho(r,a.next.queue,{},_n())}function af(){return It(Co)}function Qg(){return gt().memoizedState}function Xg(){return gt().memoizedState}function CE(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var i=_n();r=sa(i);var l=ia(a,r,i);l!==null&&(cn(l,a,i),oo(l,a,i)),a={cache:Dd()},r.payload=a;return}a=a.return}}function PE(r,a,i){var l=_n();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},dl(r)?ty(a,i):(i=Sd(r,a,i,l),i!==null&&(cn(i,r,l),ny(i,a,l)))}function ey(r,a,i){var l=_n();ho(r,a,i,l)}function ho(r,a,i,l){var h={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(dl(r))ty(a,h);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var _=a.lastRenderedState,R=m(_,i
vendor: 3,055 bytes, line 9
9);if(h.hasEagerState=!0,h.eagerState=R,hn(R,_))return Fc(r,a,h,0),nt===null&&Vc(),!1}catch{}if(i=Sd(r,a,h,l),i!==null)return cn(i,r,l),ny(i,a,l),!0}return!1}function sf(r,a,i,l){if(l={lane:2,revertLane:Mf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},dl(r)){if(a)throw Error(s(479))}else a=Sd(r,i,l,2),a!==null&&cn(a,r,2)}function dl(r){var a=r.alternate;return r===Le||a!==null&&a===Le}function ty(r,a){Js=al=!0;var i=r.pending;i===null?a.next=a:(a.next=i.next,i.next=a),r.pending=a}function ny(r,a,i){if((i&4194048)!==0){var l=a.lanes;l&=r.pendingLanes,i|=l,a.lanes=i,Xt(r,i)}}var po={readContext:It,use:ol,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft};po.useEffectEvent=ft;var ry={readContext:It,use:ol,useCallback:function(r,a){return Wt().memoizedState=[r,a===void 0?null:a],r},useContext:It,useEffect:Bg,useImperativeHandle:function(r,a,i){i=i!=null?i.concat([r]):null,ll(4194308,4,Vg.bind(null,a,r),i)},useLayoutEffect:function(r,a){return ll(4194308,4,r,a)},useInsertionEffect:function(r,a){ll(4,2,r,a)},useMemo:function(r,a){var i=Wt();a=a===void 0?null:a;var l=r();if(is){zn(!0);try{r()}finally{zn(!1)}}return i.memoizedState=[l,a],l},useReducer:function(r,a,i){var l=Wt();if(i!==void 0){var h=i(a);if(is){zn(!0);try{i(a)}finally{zn(!1)}}}else h=a;return l.memoizedState=l.baseState=h,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:h},l.queue=r,r=r.dispatch=PE.bind(null,Le,r),[l.memoizedState,r]},useRef:function(r){var a=Wt();return r={current:r},a.memoizedState=r},useState:function(r){r=Qd(r);var a=r.queue,i=ey.bind(null,Le,a);return a.dispatch=i,[r.memoizedState,i]},useDebugValue:tf,useDeferredValue:function(r,a){var i=Wt();return nf(i,r,a)},useTransition:function(){var r=Qd(!1);return r=Wg.bind(null,Le,r.queue,!0,!1),Wt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,i){var l=Le,h=Wt();if(Ve){if(i===void 0)throw Error(s(407));i=i()}else{if(i=a(),nt===null)throw Error(s(349));(qe&127)!==0||Eg(l,a,i)}h.memoizedState=i;var m={value:i,getSnapshot:a};return h.queue=m,Bg(Ag.bind(null,l,m,r),[r]),l.flags|=2048,Xs(9,{destroy:void 0},Tg.bind(null,l,m,i,a),null),i},useId:function(){var r=Wt(),a=nt.identifierPrefix;if(Ve){var i=rr,l=nr;i=(l&~(1<<32-zt(l)-1)).toString(32)+i,a="_"+a+"R_"+i,i=sl++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=EE++,a="_"+a+"r_"+i.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:af,useFormState:Lg,useActionState:Lg,useOptimistic:function(r){var a=Wt();a.memoizedState=a.baseState=r;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=sf.bind(null,Le,!0,i),i.dispatch=a,[r,a]},useMemoCache:Wd,useCacheRefresh:function(){return Wt().memoizedState=CE.bind(null,
vendor: 5,743 bytes, line 9
9Le)},useEffectEvent:function(r){var a=Wt(),i={impl:r};return a.memoizedState=i,function(){if((Ze&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},of={readContext:It,use:ol,useCallback:Gg,useContext:It,useEffect:ef,useImperativeHandle:Fg,useInsertionEffect:qg,useLayoutEffect:Hg,useMemo:Kg,useReducer:cl,useRef:Ug,useState:function(){return cl(Tr)},useDebugValue:tf,useDeferredValue:function(r,a){var i=gt();return Yg(i,Xe.memoizedState,r,a)},useTransition:function(){var r=cl(Tr)[0],a=gt().memoizedState;return[typeof r=="boolean"?r:fo(r),a]},useSyncExternalStore:Rg,useId:Qg,useHostTransitionStatus:af,useFormState:Ng,useActionState:Ng,useOptimistic:function(r,a){var i=gt();return kg(i,Xe,r,a)},useMemoCache:Wd,useCacheRefresh:Xg};of.useEffectEvent=zg;var ay={readContext:It,use:ol,useCallback:Gg,useContext:It,useEffect:ef,useImperativeHandle:Fg,useInsertionEffect:qg,useLayoutEffect:Hg,useMemo:Kg,useReducer:Jd,useRef:Ug,useState:function(){return Jd(Tr)},useDebugValue:tf,useDeferredValue:function(r,a){var i=gt();return Xe===null?nf(i,r,a):Yg(i,Xe.memoizedState,r,a)},useTransition:function(){var r=Jd(Tr)[0],a=gt().memoizedState;return[typeof r=="boolean"?r:fo(r),a]},useSyncExternalStore:Rg,useId:Qg,useHostTransitionStatus:af,useFormState:Mg,useActionState:Mg,useOptimistic:function(r,a){var i=gt();return Xe!==null?kg(i,Xe,r,a):(i.baseState=r,[r,i.queue.dispatch])},useMemoCache:Wd,useCacheRefresh:Xg};ay.useEffectEvent=zg;function cf(r,a,i,l){a=r.memoizedState,i=i(l,a),i=i==null?a:g({},a,i),r.memoizedState=i,r.lanes===0&&(r.updateQueue.baseState=i)}var lf={enqueueSetState:function(r,a,i){r=r._reactInternals;var l=_n(),h=sa(l);h.payload=a,i!=null&&(h.callback=i),a=ia(r,h,l),a!==null&&(cn(a,r,l),oo(a,r,l))},enqueueReplaceState:function(r,a,i){r=r._reactInternals;var l=_n(),h=sa(l);h.tag=1,h.payload=a,i!=null&&(h.callback=i),a=ia(r,h,l),a!==null&&(cn(a,r,l),oo(a,r,l))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var i=_n(),l=sa(i);l.tag=2,a!=null&&(l.callback=a),a=ia(r,l,i),a!==null&&(cn(a,r,i),oo(a,r,i))}};function sy(r,a,i,l,h,m,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(l,m,_):a.prototype&&a.prototype.isPureReactComponent?!Xi(i,l)||!Xi(h,m):!0}function iy(r,a,i,l){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,l),a.state!==r&&lf.enqueueReplaceState(a,a.state,null)}function os(r,a){var i=a;if("ref"in a){i={};for(var l in a)l!=="ref"&&(i[l]=a[l])}if(r=r.defaultProps){i===a&&(i=g({},i));for(var h in r)i[h]===void 0&&(i[h]=r[h])}return i}function oy(r){Hc(r)}function cy(r){console.error(r)}function ly(r){Hc(r)}function fl(r,a){try{var i=r.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function uy(r,a,i){try{var l=r.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function uf(r,a,i){return i=sa(i),i.tag=3,i.payload={element:null},i.callback=function(){fl(r,a)},i}function dy(r){return r=sa(r),r.tag=3,r}function fy(r,a,i,l){var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var m=l.value;r.payload=function(){return h(m)},r.callback=function(){uy(a,i,l)}}var _=i.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(r.callback=function(){uy(a,i,l),typeof h!="function"&&(fa===null?fa=new Set([this]):fa.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function $E(r,a,i,l,h){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=i.alternate,a!==null&&Fs(a,i,h,!0),i=mn.current,i!==null){switch(i.tag){case 31:case 13:return Cn===null?El():i.alternate===null&&ht===0&&(ht=3),i.flags&=-257,i.flags|=65536,i.lanes=h,l===Xc?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([l]):a.add(l),Lf(r,l,h)),!1;case 22:return i.flags|=65536,l===Xc?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([l]):i.add(l)),Lf(r,l,h)),!1}throw Error(s(435,i.tag))}return Lf(r,l,h),El(),!1}if(Ve)return a=mn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=h,l!==Od&&(r=Error(s(422),{cause:l}),no(An(r,i)))):(l!==Od&&(a=Error(s(423),{cause:l}),no(An(a,i))),r=r.current.alternate,r.flags|=65536,h&=-h,r.lanes|=h,l=An(l,i),h=uf(r.stateNode,l,h),Ud(r,h),ht!==4&&(ht=2)),!1;var m=Error(s(520),{cause:l});if(m=An(m,i),So===null?So=[m]:So.push(m),ht!==4&&(ht=2),a===null)return!0;l=An(l,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,r=h&-h,i.lanes|=r,r=uf(i.stateNode,l,r),Ud(i,r),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(fa===null||!fa.has(m))))return i.flags|=65536,h&=-h,i.lanes|=h,h=dy(h),fy(h,r,i,l),Ud(i,h),!1}i=i.return}while(i!==null);return!1}var df=Error(s(461)),_t=!1;function Lt(r,a,i,l){a.child=r===null?gg(a,null,i,l):ss(a,r.child,i,l)}function hy(r,a,i,l,h){i=i.render;var m=a.ref;if("ref"in l){var _={};for(var R in l)R!=="ref"&&(_[R]=l[R])}else _=l;return ts(a),l=Fd(r,a,i,_,m,h),R=Gd(),r!==null&&!_t?(Kd(r,a,h),Ar(r,a,h)):(Ve&&R&&Ad(a),a.flags|=1,Lt(r,a,l,h),a.child)}function py(r,a,i,l,h){if(r===null){var m=i.type;return typeof m=="function"&&!Rd(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,my(r,a,m,l,h)):(r=Kc(i.type,null,l,a,a.mode,h),r.ref=a.ref,r.return=a,a.child=r)}if(m=r.child,!_f(r,h)){var _=m.memoizedProps;if(i=i.compare,i=i!==null?i:Xi,i(_,l)&&r.ref===a.ref)return Ar(r,a,h)}
vendor: 9,316 bytes, line 9
9return a.flags|=1,r=br(m,l),r.ref=a.ref,r.return=a,a.child=r}function my(r,a,i,l,h){if(r!==null){var m=r.memoizedProps;if(Xi(m,l)&&r.ref===a.ref)if(_t=!1,a.pendingProps=l=m,_f(r,h))(r.flags&131072)!==0&&(_t=!0);else return a.lanes=r.lanes,Ar(r,a,h)}return ff(r,a,i,l,h)}function gy(r,a,i,l){var h=l.children,m=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,r!==null){for(l=a.child=r.child,h=0;l!==null;)h=h|l.lanes|l.childLanes,l=l.sibling;l=h&~m}else l=0,a.child=null;return yy(r,a,m,i,l)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Jc(a,m!==null?m.cachePool:null),m!==null?_g(a,m):zd(),bg(a);else return l=a.lanes=536870912,yy(r,a,m!==null?m.baseLanes|i:i,i,l)}else m!==null?(Jc(a,m.cachePool),_g(a,m),ca(),a.memoizedState=null):(r!==null&&Jc(a,null),zd(),ca());return Lt(r,a,h,i),a.child}function mo(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function yy(r,a,i,l,h){var m=Ld();return m=m===null?null:{parent:yt._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},r!==null&&Jc(a,null),zd(),bg(a),r!==null&&Fs(r,a,l,!0),a.childLanes=h,null}function hl(r,a){return a=ml({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function vy(r,a,i){return ss(a,r.child,null,i),r=hl(a,a.pendingProps),r.flags|=2,gn(a),a.memoizedState=null,r}function DE(r,a,i){var l=a.pendingProps,h=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Ve){if(l.mode==="hidden")return r=hl(a,l),a.lanes=536870912,mo(null,r);if(Hd(a),(r=ot)?(r=Cv(r,kn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ea!==null?{id:nr,overflow:rr}:null,retryLane:536870912,hydrationErrors:null},i=tg(r),i.return=a,a.child=i,Dt=a,ot=null)):r=null,r===null)throw na(a);return a.lanes=536870912,null}return hl(a,l)}var m=r.memoizedState;if(m!==null){var _=m.dehydrated;if(Hd(a),h)if(a.flags&256)a.flags&=-257,a=vy(r,a,i);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(s(558));else if(_t||Fs(r,a,i,!1),h=(i&r.childLanes)!==0,_t||h){if(l=nt,l!==null&&(_=en(l,i),_!==0&&_!==m.retryLane))throw m.retryLane=_,Ja(r,_),cn(l,r,_),df;El(),a=vy(r,a,i)}else r=m.treeContext,ot=Pn(_.nextSibling),Dt=a,Ve=!0,ta=null,kn=!1,r!==null&&ag(a,r),a=hl(a,l),a.flags|=4096;return a}return r=br(r.child,{mode:l.mode,children:l.children}),r.ref=a.ref,a.child=r,r.return=a,r}function pl(r,a){var i=a.ref;if(i===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(r===null||r.ref!==i)&&(a.flags|=4194816)}}function ff(r,a,i,l,h){return ts(a),i=Fd(r,a,i,l,void 0,h),l=Gd(),r!==null&&!_t?(Kd(r,a,h),Ar(r,a,h)):(Ve&&l&&Ad(a),a.flags|=1,Lt(r,a,i,h),a.child)}function _y(r,a,i,l,h,m){return ts(a),a.updateQueue=null,i=Sg(a,l,i,h),wg(r),l=Gd(),r!==null&&!_t?(Kd(r,a,m),Ar(r,a,m)):(Ve&&l&&Ad(a),a.flags|=1,Lt(r,a,i,m),a.child)}function by(r,a,i,l,h){if(ts(a),a.stateNode===null){var m=zs,_=i.contextType;typeof _=="object"&&_!==null&&(m=It(_)),m=new i(l,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=lf,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=l,m.state=a.memoizedState,m.refs={},jd(a),_=i.contextType,m.context=typeof _=="object"&&_!==null?It(_):zs,m.state=a.memoizedState,_=i.getDerivedStateFromProps,typeof _=="function"&&(cf(a,i,_,l),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(_=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),_!==m.state&&lf.enqueueReplaceState(m,m.state,null),lo(a,l,m,h),co(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(r===null){m=a.stateNode;var R=a.memoizedProps,P=os(i,R);m.props=P;var H=m.context,Z=i.contextType;_=zs,typeof Z=="object"&&Z!==null&&(_=It(Z));var te=i.getDerivedStateFromProps;Z=typeof te=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,Z||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||H!==_)&&iy(a,m,l,_),aa=!1;var F=a.memoizedState;m.state=F,lo(a,l,m,h),co(),H=a.memoizedState,R||F!==H||aa?(typeof te=="function"&&(cf(a,i,te,l),H=a.memoizedState),(P=aa||sy(a,i,P,l,F,H,_))?(Z||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=H),m.props=l,m.state=H,m.context=_,l=P):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{m=a.stateNode,Md(r,a),_=a.memoizedProps,Z=os(i,_),m.props=Z,te=a.pendingProps,F=m.context,H=i.contextType,P=zs,typeof H=="object"&&H!==null&&(P=It(H)),R=i.getDerivedStateFromProps,(H=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(_!==te||F!==P)&&iy(a,m,l,P),aa=!1,F=a.memoizedState,m.state=F,lo(a,l,m,h),co();var K=a.memoizedState;_!==te||F!==K||aa||r!==null&&r.dependencies!==null&&Wc(r.dependencies)?(typeof R=="function"&&(cf(a,i,R,l),K=a.memoizedState),(Z=aa||sy(a,i,Z,l,F,K,P)||r!==null&&r.dependencies!==null&&Wc(r.dependencies))?(H||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,K,P),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,K,P)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||_===r.memoizedProps&&F===r.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&F===r.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=K),m.props=l,m.state=K,m.context=P,l=Z):(typeof m.componentDidUpdate!="function"||_===r.memoizedProps&&F===r.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&F===r.memoizedState||(a.flags|=1024),l=!1)}return m=l,pl(r,a),l=(a.flags&128)!==0,m||l?(m=a.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,r!==null&&l?(a.child=ss(a,r.child,null,h),a.child=ss(a,null,i,h)):Lt(r,a,i,h),a.memoizedState=m.state,r=a.child):r=Ar(r,a,h),r}function wy(r,a,i,l){return Xa(),a.flags|=256,Lt(r,a,i,l),a.child}var hf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pf(r){return{baseLanes:r,cachePool:ug()}}function mf(r,a,i){return r=r!==null?r.childLanes&~i:0,a&&(r|=vn),r}function Sy(r,a,i){var l=a.pendingProps,h=!1,m=(a.flags&128)!==0,_;if((_=m)||(_=r!==null&&r.memoizedState===null?!1:(mt.current&2)!==0),_&&(h=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,r===null){if(Ve){if(h?oa(a):ca(),(r=ot)?(r=Cv(r,kn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ea!==null?{id:nr,overflow:rr}:null,retryLane:536870912,hydrationErrors:null},i=tg(r),i.return=a,a.child=i,Dt=a,ot=null)):r=null,r===null)throw na(a);return Jf(r)?a.lanes=32:a.lanes=536870912,null}var R=l.children;return l=l.fallback,h?(ca(),h=a.mode,R=ml({mode:"hidden",children:R},h),l=Qa(l,h,i,null),R.return=a,l.return=a,R.sibling=l,a.child=R,l=a.child,l.memoizedState=pf(i),l.childLanes=mf(r,_,i),a.memoizedState=hf,mo(null,l)):(oa(a),gf(a,R))}var P=r.memoizedState;if(P!==null&&(R=P.dehydrated,R!==null)){if(m)a.flags&256?(oa(a),a.flags&=-257,a=yf(r,a,i)):a.memoizedState!==null?(ca(),a.child=r.child,a.flags|=128,a=null):(ca(),R=l.fallback,h=a.mode,l=ml({mode:"visible",children:l.children},h),R=Qa(R,h,i,null),R.flags|=2,l.return=a,R.return=a,l.sibling=R,a.child=l,ss(a,r.child,null,i),l=a.child,l.memoizedState=pf(i),l.childLanes=mf(r,_,i),a.memoizedState=hf,a=mo(null,l));else if(oa(a),Jf(R)){if(_=R.nextSibling&&R.nextSibling.dataset,_)var H=_.dgst;_=H,l=Error(s(419)),l.stack="",l.digest=_,no({value:l,source:null,stack:null}),a=yf(r,a,i)}else if(_t||Fs(r,a,i,!1),_=(i&r.childLanes)!==0,_t||_){if(_=nt,_!==null&&(l=en(_,i),l!==0&&l!==P.retryLane))throw P.retryLane=l,Ja(r,l),cn(_,r,l),df;Zf(R)||El(),a=yf(r,a,i)}else Zf(R)?(a.flags|=192,a.child=r.child,a=null):(r=P.treeContext,ot=Pn(R.nextSibling),Dt=a,Ve=!0,ta=null,kn=!1,r!==null&&ag(a,r),a=gf(a,l.children),a.flags|=4096);return a}return h?(ca(),R=l.fallback,h=a.mode,P=r.child,H=P.sibling,l=br(P,{mode:"hidden",children:l.children}),l.subtreeFlags=P.subtreeFlags&65011712,H!==null?R=br(H,R):(R=Qa(R,h,i,null),R.flags|=2),R.return=a,l.return=a,l.sibling=R,a.child=l,mo(null,l),l=a.child,R=r.child.memoizedState,R===null?R=pf(i):(h=R.cachePool,h!==null?(P=yt._currentValue,h=h.parent!==P?{parent:P,pool:P}
vendor: 6,866 bytes, line 9
9:h):h=ug(),R={baseLanes:R.baseLanes|i,cachePool:h}),l.memoizedState=R,l.childLanes=mf(r,_,i),a.memoizedState=hf,mo(r.child,l)):(oa(a),i=r.child,r=i.sibling,i=br(i,{mode:"visible",children:l.children}),i.return=a,i.sibling=null,r!==null&&(_=a.deletions,_===null?(a.deletions=[r],a.flags|=16):_.push(r)),a.child=i,a.memoizedState=null,i)}function gf(r,a){return a=ml({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function ml(r,a){return r=pn(22,r,null,a),r.lanes=0,r}function yf(r,a,i){return ss(a,r.child,null,i),r=gf(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function Ry(r,a,i){r.lanes|=a;var l=r.alternate;l!==null&&(l.lanes|=a),Pd(r.return,a,i)}function vf(r,a,i,l,h,m){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:h,treeForkCount:m}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=l,_.tail=i,_.tailMode=h,_.treeForkCount=m)}function Ey(r,a,i){var l=a.pendingProps,h=l.revealOrder,m=l.tail;l=l.children;var _=mt.current,R=(_&2)!==0;if(R?(_=_&1|2,a.flags|=128):_&=1,Q(mt,_),Lt(r,a,l,i),l=Ve?to:0,!R&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Ry(r,i,a);else if(r.tag===19)Ry(r,i,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(h){case"forwards":for(i=a.child,h=null;i!==null;)r=i.alternate,r!==null&&rl(r)===null&&(h=i),i=i.sibling;i=h,i===null?(h=a.child,a.child=null):(h=i.sibling,i.sibling=null),vf(a,!1,h,i,m,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,h=a.child,a.child=null;h!==null;){if(r=h.alternate,r!==null&&rl(r)===null){a.child=h;break}r=h.sibling,h.sibling=i,i=h,h=r}vf(a,!0,i,null,m,l);break;case"together":vf(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function Ar(r,a,i){if(r!==null&&(a.dependencies=r.dependencies),da|=a.lanes,(i&a.childLanes)===0)if(r!==null){if(Fs(r,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(s(153));if(a.child!==null){for(r=a.child,i=br(r,r.pendingProps),a.child=i,i.return=a;r.sibling!==null;)r=r.sibling,i=i.sibling=br(r,r.pendingProps),i.return=a;i.sibling=null}return a.child}function _f(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Wc(r)))}function IE(r,a,i){switch(a.tag){case 3:me(a,a.stateNode.containerInfo),ra(a,yt,r.memoizedState.cache),Xa();break;case 27:case 5:Rt(a);break;case 4:me(a,a.stateNode.containerInfo);break;case 10:ra(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Hd(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(oa(a),a.flags|=128,null):(i&a.child.childLanes)!==0?Sy(r,a,i):(oa(a),r=Ar(r,a,i),r!==null?r.sibling:null);oa(a);break;case 19:var h=(r.flags&128)!==0;if(l=(i&a.childLanes)!==0,l||(Fs(r,a,i,!1),l=(i&a.childLanes)!==0),h){if(l)return Ey(r,a,i);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Q(mt,mt.current),l)break;return null;case 22:return a.lanes=0,gy(r,a,i,a.pendingProps);case 24:ra(a,yt,r.memoizedState.cache)}return Ar(r,a,i)}function Ty(r,a,i){if(r!==null)if(r.memoizedProps!==a.pendingProps)_t=!0;else{if(!_f(r,i)&&(a.flags&128)===0)return _t=!1,IE(r,a,i);_t=(r.flags&131072)!==0}else _t=!1,Ve&&(a.flags&1048576)!==0&&rg(a,to,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(r=rs(a.elementType),a.type=r,typeof r=="function")Rd(r)?(l=os(r,l),a.tag=1,a=by(null,a,r,l,i)):(a.tag=0,a=ff(null,a,r,l,i));else{if(r!=null){var h=r.$$typeof;if(h===j){a.tag=11,a=hy(null,a,r,l,i);break e}else if(h===C){a.tag=14,a=py(null,a,r,l,i);break e}}throw a=se(r)||r,Error(s(306,a,""))}}return a;case 0:return ff(r,a,a.type,a.pendingProps,i);case 1:return l=a.type,h=os(l,a.pendingProps),by(r,a,l,h,i);case 3:e:{if(me(a,a.stateNode.containerInfo),r===null)throw Error(s(387));l=a.pendingProps;var m=a.memoizedState;h=m.element,Md(r,a),lo(a,l,null,i);var _=a.memoizedState;if(l=_.cache,ra(a,yt,l),l!==m.cache&&$d(a,[yt],i,!0),co(),l=_.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=wy(r,a,l,i);break e}else if(l!==h){h=An(Error(s(424)),a),no(h),a=wy(r,a,l,i);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,ot=Pn(r.firstChild),Dt=a,Ve=!0,ta=null,kn=!0,i=gg(a,null,l,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Xa(),l===h){a=Ar(r,a,i);break e}Lt(r,a,l,i)}a=a.child}return a;case 26:return pl(r,a),r===null?(i=Nv(a.type,null,a.pendingProps,null))?a.memoizedState=i:Ve||(i=a.type,r=a.pendingProps,l=Pl(Ee.current).createElement(i),l[$t]=a,l[tn]=r,Nt(l,i,r),Ot(l),a.stateNode=l):a.memoizedState=Nv(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Rt(a),r===null&&Ve&&(l=a.stateNode=Dv(a.type,a.pendingProps,Ee.current),Dt=a,kn=!0,h=ot,ga(a.type)?(Qf=h,ot=Pn(l.firstChild)):ot=h),Lt(r,a,a.pendingProps.children,i),pl(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Ve&&((h=l=ot)&&(l=uT(l,a.type,a.pendingProps,kn),l!==null?(a.stateNode=l,Dt=a,ot=Pn(l.firstChild),kn=!1,h=!0):h=!1),h||na(a)),Rt(a),h=a.type,m=a.pendingProps,_=r!==null?r.memoizedProps:null,l=m.children,Kf(h,m)?l=null:_!==null&&Kf(h,_)&&(a.flags|=32),a.memoizedState!==null&&(h=Fd(r,a,TE,null,null,i),Co._currentValue=h),pl(r,a),Lt(r,a,l,i),a.child;case 6:return r===null&&Ve&&((r=i=ot)&&(i=dT(i,a.pendingProps,kn),i!==null?(a.stateNode=i,Dt=a,ot=null,r=!0):r=!1),r||na(a)),null;case 13:return Sy(r,a,i);case 4:return me(a,a.stateNode.containerInfo),l=a.pendingProps,r===null?a.child=ss(a,null,l,i):Lt(r,a,l,i),a.child;case 11:return hy(r,a,a.type,a.pendingProps,i);case 7:return Lt(r,a,a.pendingProps,i),a.child;case 8:return Lt(r,a,a.pendingProps.children,i),a.child;case 12:return Lt(r,a,a.pendingProps.children,i),a.child;case 10:return l=a.pendingProps,ra(a,a.type,l.value),Lt(r,a,l.children,i),a.child;case 9:return h=a.type._context,l=a.pendingProps.children,ts(a),h=It(h),l=l(h),a.flags|=1,Lt(r,a,l,i),a.child;case 14:return py(r,a,a.type,a.pendingProps,i);case 15:return my(r,a,a.type,a.pendingProps,i);case 19:return Ey(r,a,i);case 31:return DE(r,a,i);case 22:return gy(r,a,i,a.pendingProps);case 24:return ts(a),l=It(yt),r===null?(h=Ld(),h===null&&(h=nt,m=Dd(),h.pooledCache=m,m.refCount++,m!==null&&(h.pooledCacheLanes|=i),h=m),a.memoizedState={parent:l,cache:h},jd(a),ra(a,yt,h)):((r.lanes&i)!==0&&(Md(r,a),lo(a,null,null,i),co()),h=r.memoizedState,m=a.memoizedState,h.parent!==l?(h={parent:l,cache:l},a.memoizedState=h,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=h),ra(a,yt,l)):(l=m.cache,ra(a,yt,l),l!==h.c
vendor: 4,306 bytes, line 9
9ache&&$d(a,[yt],i,!0))),Lt(r,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function xr(r){r.flags|=4}function bf(r,a,i,l,h){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(h&335544128)===h)if(r.stateNode.complete)r.flags|=8192;else if(Qy())r.flags|=8192;else throw as=Xc,Nd}else r.flags&=-16777217}function Ay(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!zv(a))if(Qy())r.flags|=8192;else throw as=Xc,Nd}function gl(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?qt():536870912,r.lanes|=a,ri|=a)}function go(r,a){if(!Ve)switch(r.tailMode){case"hidden":a=r.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?r.tail=null:i.sibling=null;break;case"collapsed":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:l.sibling=null}}function ct(r){var a=r.alternate!==null&&r.alternate.child===r.child,i=0,l=0;if(a)for(var h=r.child;h!==null;)i|=h.lanes|h.childLanes,l|=h.subtreeFlags&65011712,l|=h.flags&65011712,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)i|=h.lanes|h.childLanes,l|=h.subtreeFlags,l|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=l,r.childLanes=i,a}function LE(r,a,i){var l=a.pendingProps;switch(xd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(a),null;case 1:return ct(a),null;case 3:return i=a.stateNode,l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Rr(yt),Me(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(r===null||r.child===null)&&(Vs(a)?xr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,kd())),ct(a),null;case 26:var h=a.type,m=a.memoizedState;return r===null?(xr(a),m!==null?(ct(a),Ay(a,m)):(ct(a),bf(a,h,null,l,i))):m?m!==r.memoizedState?(xr(a),ct(a),Ay(a,m)):(ct(a),a.flags&=-16777217):(r=r.memoizedProps,r!==l&&xr(a),ct(a),bf(a,h,r,l,i)),null;case 27:if(Sn(a),i=Ee.current,h=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==l&&xr(a);else{if(!l){if(a.stateNode===null)throw Error(s(166));return ct(a),null}r=ie.current,Vs(a)?sg(a):(r=Dv(h,l,i),a.stateNode=r,xr(a))}return ct(a),null;case 5:if(Sn(a),h=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==l&&xr(a);else{if(!l){if(a.stateNode===null)throw Error(s(166));return ct(a),null}if(m=ie.current,Vs(a))sg(a);else{var _=Pl(Ee.current);switch(m){case 1:m=_.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:m=_.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":m=_.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":m=_.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":m=_.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof l.is=="string"?_.createElement("select",{is:l.is}):_.createElement("select"),l.multiple?m.multiple=!0:l.size&&(m.size=l.size);break;default:m=typeof l.is=="string"?_.createElement(h,{is:l.is}):_.createElement(h)}}m[$t]=a,m[tn]=l;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)m.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break e;for(;_.sibling===null;){if(_.return===null||_.return===a)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}a.stateNode=m;e:switch(Nt(m,h,l),h){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&xr(a)}}return ct(a),bf(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,i),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==l&&xr(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(s(166));if(r=Ee.current,Vs(a)){if(r=a.stateNode,i=a.memoizedProps,l=null,h=Dt,h!==null)switch(h.tag){case 27:case 5:l=h.memoizedProps}r[$t]=a,r=!!(r.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Sv(r.nodeValue,i)),r||na(a,!0)}else r=Pl(r).createTextNode(l),r[$t]=a,a.stateNode=r}return ct(a),null;case 31:if(i=a.memoizedState,r===null||r.memoizedState!==null){if(l=Vs(a),i!==null){if(r===null){if(!l)throw Error(s(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(557)
vendor: 23,675 bytes, line 9
9);r[$t]=a}else Xa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ct(a),r=!1}else i=kd(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=i),r=!0;if(!r)return a.flags&256?(gn(a),a):(gn(a),null);if((a.flags&128)!==0)throw Error(s(558))}return ct(a),null;case 13:if(l=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(h=Vs(a),l!==null&&l.dehydrated!==null){if(r===null){if(!h)throw Error(s(318));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(s(317));h[$t]=a}else Xa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ct(a),h=!1}else h=kd(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=h),h=!0;if(!h)return a.flags&256?(gn(a),a):(gn(a),null)}return gn(a),(a.flags&128)!==0?(a.lanes=i,a):(i=l!==null,r=r!==null&&r.memoizedState!==null,i&&(l=a.child,h=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(h=l.alternate.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==h&&(l.flags|=2048)),i!==r&&i&&(a.child.flags|=8192),gl(a,a.updateQueue),ct(a),null);case 4:return Me(),r===null&&qf(a.stateNode.containerInfo),ct(a),null;case 10:return Rr(a.type),ct(a),null;case 19:if(J(mt),l=a.memoizedState,l===null)return ct(a),null;if(h=(a.flags&128)!==0,m=l.rendering,m===null)if(h)go(l,!1);else{if(ht!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(m=rl(r),m!==null){for(a.flags|=128,go(l,!1),r=m.updateQueue,a.updateQueue=r,gl(a,r),a.subtreeFlags=0,r=i,i=a.child;i!==null;)eg(i,r),i=i.sibling;return Q(mt,mt.current&1|2),Ve&&wr(a,l.treeForkCount),a.child}r=r.sibling}l.tail!==null&&Kt()>wl&&(a.flags|=128,h=!0,go(l,!1),a.lanes=4194304)}else{if(!h)if(r=rl(m),r!==null){if(a.flags|=128,h=!0,r=r.updateQueue,a.updateQueue=r,gl(a,r),go(l,!0),l.tail===null&&l.tailMode==="hidden"&&!m.alternate&&!Ve)return ct(a),null}else 2*Kt()-l.renderingStartTime>wl&&i!==536870912&&(a.flags|=128,h=!0,go(l,!1),a.lanes=4194304);l.isBackwards?(m.sibling=a.child,a.child=m):(r=l.last,r!==null?r.sibling=m:a.child=m,l.last=m)}return l.tail!==null?(r=l.tail,l.rendering=r,l.tail=r.sibling,l.renderingStartTime=Kt(),r.sibling=null,i=mt.current,Q(mt,h?i&1|2:i&1),Ve&&wr(a,l.treeForkCount),r):(ct(a),null);case 22:case 23:return gn(a),qd(),l=a.memoizedState!==null,r!==null?r.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(i&536870912)!==0&&(a.flags&128)===0&&(ct(a),a.subtreeFlags&6&&(a.flags|=8192)):ct(a),i=a.updateQueue,i!==null&&gl(a,i.retryQueue),i=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048),r!==null&&J(ns),null;case 24:return i=null,r!==null&&(i=r.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Rr(yt),ct(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function NE(r,a){switch(xd(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Rr(yt),Me(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Sn(a),null;case 31:if(a.memoizedState!==null){if(gn(a),a.alternate===null)throw Error(s(340));Xa()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(gn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(s(340));Xa()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return J(mt),null;case 4:return Me(),null;case 10:return Rr(a.type),null;case 22:case 23:return gn(a),qd(),r!==null&&J(ns),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Rr(yt),null;case 25:return null;default:return null}}function xy(r,a){switch(xd(a),a.tag){case 3:Rr(yt),Me();break;case 26:case 27:case 5:Sn(a);break;case 4:Me();break;case 31:a.memoizedState!==null&&gn(a);break;case 13:gn(a);break;case 19:J(mt);break;case 10:Rr(a.type);break;case 22:case 23:gn(a),qd(),r!==null&&J(ns);break;case 24:Rr(yt)}}function yo(r,a){try{var i=a.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var h=l.next;i=h;do{if((i.tag&r)===r){l=void 0;var m=i.create,_=i.inst;l=m(),_.destroy=l}i=i.next}while(i!==h)}}catch(R){Qe(a,a.return,R)}}function la(r,a,i){try{var l=a.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var m=h.next;l=m;do{if((l.tag&r)===r){var _=l.inst,R=_.destroy;if(R!==void 0){_.destroy=void 0,h=a;var P=i,H=R;try{H()}catch(Z){Qe(h,P,Z)}}}l=l.next}while(l!==m)}}catch(Z){Qe(a,a.return,Z)}}function Oy(r){var a=r.updateQueue;if(a!==null){var i=r.stateNode;try{vg(a,i)}catch(l){Qe(r,r.return,l)}}}function ky(r,a,i){i.props=os(r.type,r.memoizedProps),i.state=r.memoizedState;try{i.componentWillUnmount()}catch(l){Qe(r,a,l)}}function vo(r,a){try{var i=r.ref;if(i!==null){switch(r.tag){case 26:case 27:case 5:var l=r.stateNode;break;case 30:l=r.stateNode;break;default:l=r.stateNode}typeof i=="function"?r.refCleanup=i(l):i.current=l}}catch(h){Qe(r,a,h)}}function ar(r,a){var i=r.ref,l=r.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(h){Qe(r,a,h)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(h){Qe(r,a,h)}else i.current=null}function Cy(r){var a=r.type,i=r.memoizedProps,l=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(h){Qe(r,r.return,h)}}function wf(r,a,i){try{var l=r.stateNode;aT(l,r.type,i,a),l[tn]=a}catch(h){Qe(r,r.return,h)}}function Py(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&ga(r.type)||r.tag===4}function Sf(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Py(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&ga(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Rf(r,a,i){var l=r.tag;if(l===5||l===6)r=r.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(r,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(r),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=vr));else if(l!==4&&(l===27&&ga(r.type)&&(i=r.stateNode,a=null),r=r.child,r!==null))for(Rf(r,a,i),r=r.sibling;r!==null;)Rf(r,a,i),r=r.sibling}function yl(r,a,i){var l=r.tag;if(l===5||l===6)r=r.stateNode,a?i.insertBefore(r,a):i.appendChild(r);else if(l!==4&&(l===27&&ga(r.type)&&(i=r.stateNode),r=r.child,r!==null))for(yl(r,a,i),r=r.sibling;r!==null;)yl(r,a,i),r=r.sibling}function $y(r){var a=r.stateNode,i=r.memoizedProps;try{for(var l=r.type,h=a.attributes;h.length;)a.removeAttributeNode(h[0]);Nt(a,l,i),a[$t]=r,a[tn]=i}catch(m){Qe(r,r.return,m)}}var Or=!1,bt=!1,Ef=!1,Dy=typeof WeakSet=="function"?WeakSet:Set,kt=null;function jE(r,a){if(r=r.containerInfo,Ff=Ml,r=Fm(r),gd(r)){if("selectionStart"in r)var i={start:r.selectionStart,end:r.selectionEnd};else e:{i=(i=r.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var h=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var _=0,R=-1,P=-1,H=0,Z=0,te=r,F=null;t:for(;;){for(var K;te!==i||h!==0&&te.nodeType!==3||(R=_+h),te!==m||l!==0&&te.nodeType!==3||(P=_+l),te.nodeType===3&&(_+=te.nodeValue.length),(K=te.firstChild)!==null;)F=te,te=K;for(;;){if(te===r)break t;if(F===i&&++H===h&&(R=_),F===m&&++Z===l&&(P=_),(K=te.nextSibling)!==null)break;te=F,F=te.parentNode}te=K}i=R===-1||P===-1?null:{start:R,end:P}}else i=null}i=i||{start:0,end:0}}else i=null;for(Gf={focusedElem:r,selectionRange:i},Ml=!1,kt=a;kt!==null;)if(a=kt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,kt=r;else for(;kt!==null;){switch(a=kt,m=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(i=0;i<r.length;i++)h=r[i],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&m!==null){r=void 0,i=a,h=m.memoizedProps,m=m.memoizedState,l=i.stateNode;try{var ge=os(i.type,h);r=l.getSnapshotBeforeUpdate(ge,m),l.__reactInternalSnapshotBeforeUpdate=r}catch(xe){Qe(i,i.return,xe)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,i=r.nodeType,i===9)Wf(r);else if(i===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Wf(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(s(163))}if(r=a.sibling,r!==null){r.return=a.return,kt=r;break}kt=a.return}}function Iy(r,a,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Cr(r,i),l&4&&yo(5,i);break;case 1:if(Cr(r,i),l&4)if(r=i.stateNode,a===null)try{r.componentDidMount()}catch(_){Qe(i,i.return,_)}else{var h=os(i.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(h,a,r.__reactInternalSnapshotBeforeUpdate)}catch(_){Qe(i,i.return,_)}}l&64&&Oy(i),l&512&&vo(i,i.return);break;case 3:if(Cr(r,i),l&64&&(r=i.updateQueue,r!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{vg(r,a)}catch(_){Qe(i,i.return,_)}}break;case 27:a===null&&l&4&&$y(i);case 26:case 5:Cr(r,i),a===null&&l&4&&Cy(i),l&512&&vo(i,i.return);break;case 12:Cr(r,i);break;case 31:Cr(r,i),l&4&&jy(r,i);break;case 13:Cr(r,i),l&4&&My(r,i),l&64&&(r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(i=GE.bind(null,i),fT(r,i))));break;case 22:if(l=i.memoizedState!==null||Or,!l){a=a!==null&&a.memoizedState!==null||bt,h=Or;var m=bt;Or=l,(bt=a)&&!m?Pr(r,i,(i.subtreeFlags&8772)!==0):Cr(r,i),Or=h,bt=m}break;case 30:break;default:Cr(r,i)}}function Ly(r){var a=r.alternate;a!==null&&(r.alternate=null,Ly(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Xu(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var ut=null,rn=!1;function kr(r,a,i){for(i=i.child;i!==null;)Ny(r,a,i),i=i.sibling}function Ny(r,a,i){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(Va,i)}catch{}switch(i.tag){case 26:bt||ar(i,a),kr(r,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:bt||ar(i,a);var l=ut,h=rn;ga(i.type)&&(ut=i.stateNode,rn=!1),kr(r,a,i),xo(i.stateNode),ut=l,rn=h;break;case 5:bt||ar(i,a);case 6:if(l=ut,h=rn,ut=null,kr(r,a,i),ut=l,rn=h,ut!==null)if(rn)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(i.stateNode)}catch(m){Qe(i,a,m)}else try{ut.removeChild(i.stateNode)}catch(m){Qe(i,a,m)}break;case 18:ut!==null&&(rn?(r=ut,Ov(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,i.stateNode),di(r)):Ov(ut,i.stateNode));break;case 4:l=ut,h=rn,ut=i.stateNode.containerInfo,rn=!0,kr(r,a,i),ut=l,rn=h;break;case 0:case 11:case 14:case 15:la(2,i,a),bt||la(4,i,a),kr(r,a,i);break;case 1:bt||(ar(i,a),l=i.stateNode,typeof l.componentWillUnmount=="function"&&ky(i,a,l)),kr(r,a,i);break;case 21:kr(r,a,i);break;case 22:bt=(l=bt)||i.memoizedState!==null,kr(r,a,i),bt=l;break;default:kr(r,a,i)}}function jy(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{di(r)}catch(i){Qe(a,a.return,i)}}}function My(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{di(r)}catch(i){Qe(a,a.return,i)}}function ME(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new Dy),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new Dy),a;default:throw Error(s(435,r.tag))}}function vl(r,a){var i=ME(r);a.forEach(function(l){if(!i.has(l)){i.add(l);var h=KE.bind(null,r,l);l.then(h,h)}})}function an(r,a){var i=a.deletions;if(i!==null)for(var l=0;l<i.length;l++){var h=i[l],m=r,_=a,R=_;e:for(;R!==null;){switch(R.tag){case 27:if(ga(R.type)){ut=R.stateNode,rn=!1;break e}break;case 5:ut=R.stateNode,rn=!1;break e;case 3:case 4:ut=R.stateNode.containerInfo,rn=!0;break e}R=R.return}if(ut===null)throw Error(s(160));Ny(m,_,h),ut=null,rn=!1,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Uy(a,r),a=a.sibling}var Vn=null;function Uy(r,a){var i=r.alternate,l=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:an(a,r),sn(r),l&4&&(la(3,r,r.return),yo(3,r),la(5,r,r.return));break;case 1:an(a,r),sn(r),l&512&&(bt||i===null||ar(i,i.return)),l&64&&Or&&(r=r.updateQueue,r!==null&&(l=r.callbacks,l!==null&&(i=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var h=Vn;if(an(a,r),sn(r),l&512&&(bt||i===null||ar(i,i.return)),l&4){var m=i!==null?i.memoizedState:null;if(l=r.memoizedState,i===null)if(l===null)if(r.stateNode===null){e:{l=r.type,i=r.memoizedProps,h=h.ownerDocument||h;t:switch(l){case"title":m=h.getElementsByTagName("title")[0],(!m||m[Vi]||m[$t]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=h.createElement(l),h.head.insertBefore(m,h.querySelector("head > title"))),Nt(m,l,i),m[$t]=r,Ot(m),l=m;break e;case"link":var _=Uv("link","href",h).get(l+(i.href||""));if(_){for(var R=0;R<_.length;R++)if(m=_[R],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){_.splice(R,1);break t}}m=h.createElement(l),Nt(m,l,i),h.head.appendChild(m);break;case"meta":if(_=Uv("meta","content",h).get(l+(i.content||""))){for(R=0;R<_.length;R++)if(m=_[R],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){_.splice(R,1);break t}}m=h.createElement(l),Nt(m,l,i),h.head.appendChild(m);break;default:throw Error(s(468,l))}m[$t]=r,Ot(m),l=m}r.stateNode=l}else Bv(h,r.type,r.stateNode);else r.stateNode=Mv(h,l,r.memoizedProps);else m!==l?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,l===null?Bv(h,r.type,r.stateNode):Mv(h,l,r.memoizedProps)):l===null&&r.stateNode!==null&&wf(r,r.memoizedProps,i.memoizedProps)}break;case 27:an(a,r),sn(r),l&512&&(bt||i===null||ar(i,i.return)),i!==null&&l&4&&wf(r,r.memoizedProps,i.memoizedProps);break;case 5:if(an(a,r),sn(r),l&512&&(bt||i===null||ar(i,i.return)),r.flags&32){h=r.stateNode;try{Is(h,"")}catch(ge){Qe(r,r.return,ge)}}l&4&&r.stateNode!=null&&(h=r.memoizedProps,wf(r,h,i!==null?i.memoizedProps:h)),l&1024&&(Ef=!0);break;case 6:if(an(a,r),sn(r),l&4){if(r.stateNode===null)throw Error(s(162));l=r.memoizedProps,i=r.stateNode;try{i.nodeValue=l}catch(ge){Qe(r,r.return,ge)}}break;case 3:if(Il=null,h=Vn,Vn=$l(a.containerInfo),an(a,r),Vn=h,sn(r),l&4&&i!==null&&i.memoizedState.isDehydrated)try{di(a.containerInfo)}catch(ge){Qe(r,r.return,ge)}Ef&&(Ef=!1,By(r));break;case 4:l=Vn,Vn=$l(r.stateNode.containerInfo),an(a,r),sn(r),Vn=l;break;case 12:an(a,r),sn(r);break;case 31:an(a,r),sn(r),l&4&&(l=r.updateQueue,l!==null&&(r.updateQueue=null,vl(r,l)));break;case 13:an(a,r),sn(r),r.child.flags&8192&&r.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(bl=Kt()),l&4&&(l=r.updateQueue,l!==null&&(r.updateQueue=null,vl(r,l)));break;case 22:h=r.memoizedState!==null;var P=i!==null&&i.memoizedState!==null,H=Or,Z=bt;if(Or=H||h,bt=Z||P,an(a,r),bt=Z,Or=H,sn(r),l&8192)e:for(a=r.stateNode,a._visibility=h?a._visibility&-2:a._visibility|1,h&&(i===null||P||Or||bt||cs(r)),i=null,a=r;;){if(a.tag===5||a.tag===26){if(i===null){P=i=a;try{if(m=P.stateNode,h)_=m.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{R=P.stateNode;var te=P.memoizedProps.style,F=te!=null&&te.hasOwnProperty("display")?te.display:null;R.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(ge){Qe(P,P.return,ge)}}}else if(a.tag===6){if(i===null){P=a;try{P.stateNode.nodeValue=h?"":P.memoizedProps}catch(ge){Qe(P,P.return,ge)}}}else if(a.tag===18){if(i===null){P=a;try{var K=P.stateNode;h?kv(K,!0):kv(P.stateNode,!1)}catch(ge){Qe(P,P.return,ge)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=r.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,vl(r,i))));break;case 19:an(a,r),sn(r),l&4&&(l=r.updateQueue,l!==null&&(r.updateQueue=null,vl(r,l)));break;case 30:break;case 21:break;default:an(a,r),sn(r)}}function sn(r){var a=r.flags;if(a&2){try{for(var i,l=r.return;l!==null;){if(Py(l)){i=l;break}l=l.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var h=i.stateNode,m=Sf(r);yl(r,m,h);break;case 5:var _=i.stateNode;i.flags&32&&(Is(_,""),i.flags&=-33);var R=Sf(r);yl(r,R,_);break;case 3:case 4:var P=i.stateNode.containerInfo,H=Sf(r);Rf(r,H,P);break;default:throw Error(s(161))}}catch(Z){Qe(r,r.return,Z)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function By(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;By(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Cr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Iy(r,a.alternate,a),a=a.sibling}function cs(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:la(4,a,a.return),cs(a);break;case 1:ar(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&ky(a,a.return,i),cs(a);break;case 27:xo(a.stateNode);case 26:case 5:ar(a,a.return),cs(a);break;case 22:a.memoizedState===null&&cs(a);break;case 30:cs(a);break;default:cs(a)}r=r.sibling}}function Pr(r,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,h=r,m=a,_=m.flags;switch(m.tag){case 0:case 11:case 15:Pr(h,m,i),yo(4,m);break;case 1:if(Pr(h,m,i),l=m,h=l.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(H){Qe(l,l.return,H)}if(l=m,h=l.updateQueue,h!==null){var R=l.stateNode;try{var P=h.shared.hiddenCallbacks;if(P!==null)for(h.shared.hiddenCallbacks=null,h=0;h<P.length;h++)yg(P[h],R)}catch(H){Qe(l,l.return,H)}}i&&_&64&&Oy(m),vo(m,m.return);break;case 27:$y(m);case 26:case 5:Pr(h,m,i),i&&l===null&&_&4&&Cy(m),vo(m,m.return);break;case 12:Pr(h,m,i);break;case 31:Pr(h,m,i),i&&_&4&&jy(h,m);break;case 13:Pr(h,m,i),i&&_&4&&My(h,m);break;case 22:m.memoizedState===null&&Pr(h,m,i),vo(m,m.return);break;case 30:break;default:Pr(h,m,i)}a=a.sibling}}function Tf(r,a){var i=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==i&&(r!=null&&r.refCount++,i!=null&&ro(i))}function Af(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&ro(r))}function Fn(r,a,i,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)zy(r,a,i,l),a=a.sibling}function zy(r,a,i,l){var h=a.flags;switch(a.tag){case 0:case 11:case 15:Fn(r,a,i,l),h&2048&&yo(9,a);break;case 1:Fn(r,a,i,l);break;case 3:Fn(r,a,i,l),h&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&ro(r)));break;case 12:if(h&2048){Fn(r,a,i,l),r=a.stateNode;try{var m=a.memoizedProps,_=m.id,R=m.onPostCommit;typeof R=="function"&&R(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(P){Qe(a,a.return,P)}}else Fn(r,a,i,l);break;case 31:Fn(r,a,i,l);break;case 13:Fn(r,a,i,l);break;case 23:break;case 22:m=a.stateNode,_=a.alternate,a.memoizedState!==null?m._visibility&2?Fn(r,a,i,l):_o(r,a):m._visibility&2?Fn(r,a,i,l):(m._visibility|=2,ei(r,a,i,l,(a.subtreeFlags&10256)!==0||!1)),h&2048&&Tf(_,a);break;case 24:Fn(r,a,i,l),h&2048&&Af(a.alternate,a);break;default:Fn(r,a,i,l)}}function ei(r,a,i,l,h){for(h=h&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=r,_=a,R=i,P=l,H=_.flags;switch(_.tag){case 0:case 11:case 15:ei(m,_,R,P,h),yo(8,_);break;case 23:break;case 22:var Z=_.stateNode;_.memoizedState!==null?Z._visibility&2?ei(m,_,R,P,h):_o(m,_):(Z._visibility|=2,ei(m,_,R,P,h)),h&&H&2048&&Tf(_.alternate,_);break;case 24:ei(m,_,R,P,h),h&&H&2048&&Af(_.alternate,_);break;default:ei(m,_,R,P,h)}a=a.sibling}}function _o(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=r,l=a,h=l.flags;switch(l.tag){case 22:_o(i,l),h&2048&&Tf(l.alternate,l);break;case 24:_o(i,l),h&2048&&Af(l.alternate,l);break;default:_o(i,l)}a=a.sibling}}var bo=8192;function ti(r,a,i){if(r.subtreeFlags&bo)for(r=r.child;r!==null;)qy(r,a,i),r=r.sibling}function qy(r,a,i){switch(r.tag){case 26:ti(r,a,i),r.flags&bo&&r.memoizedState!==null&&ET(i,Vn,r.memoizedState,r.memoizedProps);break;case 5:ti(r,a,i);break;case 3:case 4:var l=Vn;Vn=$l(r.stateNode.containerInfo),ti(r,a,i),Vn=l;break;case 22:r.memoizedState===null&&(l=r.alternate,l!==null&&l.memoizedState!==null?(l=bo,bo=16777216,ti(r,a,i),bo=l):ti(r,a,i));break;default:ti(r,a,i)}}function Hy(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function wo(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];kt=l,Fy(l,r)}Hy(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Vy(r),r=r.sibling}function Vy(r){switch(r.tag){case 0:case 11:case 15:wo(r),r.flags&2048&&la(9,r,r.return);break;case 3:wo(r);break;case 12:wo(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,_l(r)):wo(r);break;default:wo(r)}}function _l(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];kt=l,Fy(l,r)}Hy(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:la(8,a,a.return),_l(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,_l(a));break;default:_l(a)}r=r.sibling}}function Fy(r,a){for(;kt!==null;){var i=kt;switch(i.tag){case 0:case 11:case 15:la(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ro(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,kt=l;else e:for(i=r;kt!==null;){l=kt;var h=l.sibling,m=l.return;if(Ly(l),l===i){kt=null;break e}if(h!==null){h.return=m,kt=h;break e}kt=m}}}var UE={getCacheForType:function(r){var a=It(yt),i=a.data.get(r);return i===void 0&&(i=r(),a.data.set(r,i)),i},cacheSignal:function(){return It(yt).controller.signal}},BE=typeof WeakMap=="function"?WeakMap:Map,Ze=0,nt=null,Be=null,qe=0,Je=0,yn=null,ua=!1,ni=!1,xf=!1,$r=0,ht=0,da=0,ls=0,Of=0,vn=0,ri=0,So=null,on=null,kf=!1,bl=0,Gy=0,wl=1/0,Sl=null,fa=null,Et=0,ha=null,ai=null,Dr=0,Cf=0,Pf=null,Ky=null,Ro=0,$f=null;function _n(){return(Ze&2)!==0&&qe!==0?qe&-qe:M.T!==null?Mf():Ju()}function Yy(){if(vn===0)if((qe&536870912)===0||Ve){var r=As;As<<=1,(As&3932160)===0&&(As=262144),vn=r}else vn=536870912;return r=mn.current,r!==null&&(r.flags|=32),vn}function cn(r,a,i){(r===nt&&(Je===2||Je===9)||r.cancelPendingCommit!==null)&&(si(r,0),pa(r,qe,vn,!1)),dt(r,i),((Ze&2)===0||r!==nt)&&(r===nt&&((Ze&2)===0&&(ls|=i),ht===4&&pa(r,qe,vn,!1)),sr(r))}
vendor: 2,241 bytes, line 9
9function Wy(r,a,i){if((Ze&6)!==0)throw Error(s(327));var l=!i&&(a&127)===0&&(a&r.expiredLanes)===0||lt(r,a),h=l?HE(r,a):If(r,a,!0),m=l;do{if(h===0){ni&&!l&&pa(r,a,0,!1);break}else{if(i=r.current.alternate,m&&!zE(i)){h=If(r,a,!1),m=!1;continue}if(h===2){if(m=a,r.errorRecoveryDisabledLanes&m)var _=0;else _=r.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var R=r;h=So;var P=R.current.memoizedState.isDehydrated;if(P&&(si(R,_).flags|=256),_=If(R,_,!1),_!==2){if(xf&&!P){R.errorRecoveryDisabledLanes|=m,ls|=m,h=4;break e}m=on,on=h,m!==null&&(on===null?on=m:on.push.apply(on,m))}h=_}if(m=!1,h!==2)continue}}if(h===1){si(r,0),pa(r,a,0,!0);break}e:{switch(l=r,m=h,m){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a)break;case 6:pa(l,a,vn,!ua);break e;case 2:on=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(h=bl+300-Kt(),10<h)){if(pa(l,a,vn,!ua),Ce(l,0,!0)!==0)break e;Dr=a,l.timeoutHandle=Av(Zy.bind(null,l,i,on,Sl,kf,a,vn,ls,ri,ua,m,"Throttled",-0,0),h);break e}Zy(l,i,on,Sl,kf,a,vn,ls,ri,ua,m,null,-0,0)}}break}while(!0);sr(r)}function Zy(r,a,i,l,h,m,_,R,P,H,Z,te,F,K){if(r.timeoutHandle=-1,te=a.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vr},qy(a,m,te);var ge=(m&62914560)===m?bl-Kt():(m&4194048)===m?Gy-Kt():0;if(ge=TT(te,ge),ge!==null){Dr=m,r.cancelPendingCommit=ge(av.bind(null,r,a,m,i,l,h,_,R,P,Z,te,null,F,K)),pa(r,m,_,!H);return}}av(r,a,m,i,l,h,_,R,P)}function zE(r){for(var a=r;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var h=i[l],m=h.getSnapshot;h=h.value;try{if(!hn(m(),h))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function pa(r,a,i,l){a&=~Of,a&=~ls,r.suspendedLanes|=a,r.pingedLanes&=~a,l&&(r.warmLanes|=a),l=r.expirationTimes;for(var h=a;0<h;){var m=31-zt(h),_=1<<m;l[m]=-1,h&=~_}i!==0&&Ga(r,i,a)}function Rl(){return(Ze&6)===0?(Eo(0),!1):!0}
vendor: 2,919 bytes, line 9
9function Df(){if(Be!==null){if(Je===0)var r=Be.return;else r=Be,Sr=es=null,Yd(r),Ws=null,so=0,r=Be;for(;r!==null;)xy(r.alternate,r),r=r.return;Be=null}}function si(r,a){var i=r.timeoutHandle;i!==-1&&(r.timeoutHandle=-1,oT(i)),i=r.cancelPendingCommit,i!==null&&(r.cancelPendingCommit=null,i()),Dr=0,Df(),nt=r,Be=i=br(r.current,null),qe=a,Je=0,yn=null,ua=!1,ni=lt(r,a),xf=!1,ri=vn=Of=ls=da=ht=0,on=So=null,kf=!1,(a&8)!==0&&(a|=a&32);var l=r.entangledLanes;if(l!==0)for(r=r.entanglements,l&=a;0<l;){var h=31-zt(l),m=1<<h;a|=r[h],l&=~m}return $r=a,Vc(),i}function Jy(r,a){Le=null,M.H=po,a===Ys||a===Qc?(a=hg(),Je=3):a===Nd?(a=hg(),Je=4):Je=a===df?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,yn=a,Be===null&&(ht=1,fl(r,An(a,r.current)))}function Qy(){var r=mn.current;return r===null?!0:(qe&4194048)===qe?Cn===null:(qe&62914560)===qe||(qe&536870912)!==0?r===Cn:!1}function Xy(){var r=M.H;return M.H=po,r===null?po:r}function ev(){var r=M.A;return M.A=UE,r}function El(){ht=4,ua||(qe&4194048)!==qe&&mn.current!==null||(ni=!0),(da&134217727)===0&&(ls&134217727)===0||nt===null||pa(nt,qe,vn,!1)}function If(r,a,i){var l=Ze;Ze|=2;var h=Xy(),m=ev();(nt!==r||qe!==a)&&(Sl=null,si(r,a)),a=!1;var _=ht;e:do try{if(Je!==0&&Be!==null){var R=Be,P=yn;switch(Je){case 8:Df(),_=6;break e;case 3:case 2:case 9:case 6:mn.current===null&&(a=!0);var H=Je;if(Je=0,yn=null,ii(r,R,P,H),i&&ni){_=0;break e}break;default:H=Je,Je=0,yn=null,ii(r,R,P,H)}}qE(),_=ht;break}catch(Z){Jy(r,Z)}while(!0);return a&&r.shellSuspendCounter++,Sr=es=null,Ze=l,M.H=h,M.A=m,Be===null&&(nt=null,qe=0,Vc()),_}function qE(){for(;Be!==null;)tv(Be)}function HE(r,a){var i=Ze;Ze|=2;var l=Xy(),h=ev();nt!==r||qe!==a?(Sl=null,wl=Kt()+500,si(r,a)):ni=lt(r,a);e:do try{if(Je!==0&&Be!==null){a=Be;var m=yn;t:switch(Je){case 1:Je=0,yn=null,ii(r,a,m,1);break;case 2:case 9:if(dg(m)){Je=0,yn=null,nv(a);break}a=function(){Je!==2&&Je!==9||nt!==r||(Je=7),sr(r)},m.then(a,a);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:dg(m)?(Je=0,yn=null,nv(a)):(Je=0,yn=null,ii(r,a,m,7));break;case 5:var _=null;switch(Be.tag){case 26:_=Be.memoizedState;case 5:case 27:var R=Be;if(_?zv(_):R.stateNode.complete){Je=0,yn=null;var P=R.sibling;if(P!==null)Be=P;else{var H=R.return;H!==null?(Be=H,Tl(H)):Be=null}break t}}Je=0,yn=null,ii(r,a,m,5);break;case 6:Je=0,yn=null,ii(r,a,m,6);break;case 8:Df(),ht=6;break e;default:throw Error(s(462))}}VE();break}catch(Z){Jy(r,Z)}while(!0);return Sr=es=null,M.H=l,M.A=h,Ze=i,Be!==null?0:(nt=null,qe=0,Vc(),ht)}function VE(){for(;Be!==null&&!Gt();)tv(Be)}function tv(r){var a=Ty(r.alternate,r,$r);r.memoizedProps=r.pendingProps,a===null?Tl(r):Be=a}function nv(r){var a=r,i=a.alternate;switch(a.tag){case 15:case 0:a=_y(i,a,a.pendingProps,a.type,void 0,qe);break;case 11:a=_y(i,a,a.pendingProps,a.type.render,a.ref,qe);break;case 5:Yd(a);default:xy(i,a),a=Be=eg(a,$r),a=Ty(i,a,$r)}r.memoizedProps=r.pendingProps,a===null?Tl(r):Be=a}
vendor: 9,036 bytes, line 9
9function ii(r,a,i,l){Sr=es=null,Yd(a),Ws=null,so=0;var h=a.return;try{if($E(r,h,a,i,qe)){ht=1,fl(r,An(i,r.current)),Be=null;return}}catch(m){if(h!==null)throw Be=h,m;ht=1,fl(r,An(i,r.current)),Be=null;return}a.flags&32768?(Ve||l===1?r=!0:ni||(qe&536870912)!==0?r=!1:(ua=r=!0,(l===2||l===9||l===3||l===6)&&(l=mn.current,l!==null&&l.tag===13&&(l.flags|=16384))),rv(a,r)):Tl(a)}function Tl(r){var a=r;do{if((a.flags&32768)!==0){rv(a,ua);return}r=a.return;var i=LE(a.alternate,a,$r);if(i!==null){Be=i;return}if(a=a.sibling,a!==null){Be=a;return}Be=a=r}while(a!==null);ht===0&&(ht=5)}function rv(r,a){do{var i=NE(r.alternate,r);if(i!==null){i.flags&=32767,Be=i;return}if(i=r.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(r=r.sibling,r!==null)){Be=r;return}Be=r=i}while(r!==null);ht=6,Be=null}function av(r,a,i,l,h,m,_,R,P){r.cancelPendingCommit=null;do Al();while(Et!==0);if((Ze&6)!==0)throw Error(s(327));if(a!==null){if(a===r.current)throw Error(s(177));if(m=a.lanes|a.childLanes,m|=wd,Qt(r,i,m,_,R,P),r===nt&&(Be=nt=null,qe=0),ai=a,ha=r,Dr=i,Cf=m,Pf=h,Ky=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,YE(Ha,function(){return lv(),null})):(r.callbackNode=null,r.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,h=re.p,re.p=2,_=Ze,Ze|=4;try{jE(r,a,i)}finally{Ze=_,re.p=h,M.T=l}}Et=1,sv(),iv(),ov()}}function sv(){if(Et===1){Et=0;var r=ha,a=ai,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=M.T,M.T=null;var l=re.p;re.p=2;var h=Ze;Ze|=4;try{Uy(a,r);var m=Gf,_=Fm(r.containerInfo),R=m.focusedElem,P=m.selectionRange;if(_!==R&&R&&R.ownerDocument&&Vm(R.ownerDocument.documentElement,R)){if(P!==null&&gd(R)){var H=P.start,Z=P.end;if(Z===void 0&&(Z=H),"selectionStart"in R)R.selectionStart=H,R.selectionEnd=Math.min(Z,R.value.length);else{var te=R.ownerDocument||document,F=te&&te.defaultView||window;if(F.getSelection){var K=F.getSelection(),ge=R.textContent.length,xe=Math.min(P.start,ge),tt=P.end===void 0?xe:Math.min(P.end,ge);!K.extend&&xe>tt&&(_=tt,tt=xe,xe=_);var B=Hm(R,xe),L=Hm(R,tt);if(B&&L&&(K.rangeCount!==1||K.anchorNode!==B.node||K.anchorOffset!==B.offset||K.focusNode!==L.node||K.focusOffset!==L.offset)){var q=te.createRange();q.setStart(B.node,B.offset),K.removeAllRanges(),xe>tt?(K.addRange(q),K.extend(L.node,L.offset)):(q.setEnd(L.node,L.offset),K.addRange(q))}}}}for(te=[],K=R;K=K.parentNode;)K.nodeType===1&&te.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<te.length;R++){var ee=te[R];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}Ml=!!Ff,Gf=Ff=null}finally{Ze=h,re.p=l,M.T=i}}r.current=a,Et=2}}function iv(){if(Et===2){Et=0;var r=ha,a=ai,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=M.T,M.T=null;var l=re.p;re.p=2;var h=Ze;Ze|=4;try{Iy(r,a.alternate,a)}finally{Ze=h,re.p=l,M.T=i}}Et=3}}function ov(){if(Et===4||Et===3){Et=0,Wr();var r=ha,a=ai,i=Dr,l=Ky;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Et=5:(Et=0,ai=ha=null,cv(r,r.pendingLanes));var h=r.pendingLanes;if(h===0&&(fa=null),qn(i),a=a.stateNode,Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(Va,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=M.T,h=re.p,re.p=2,M.T=null;try{for(var m=r.onRecoverableError,_=0;_<l.length;_++){var R=l[_];m(R.value,{componentStack:R.stack})}}finally{M.T=a,re.p=h}}(Dr&3)!==0&&Al(),sr(r),h=r.pendingLanes,(i&261930)!==0&&(h&42)!==0?r===$f?Ro++:(Ro=0,$f=r):Ro=0,Eo(0)}}function cv(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,ro(a)))}function Al(){return sv(),iv(),ov(),lv()}function lv(){if(Et!==5)return!1;var r=ha,a=Cf;Cf=0;var i=qn(Dr),l=M.T,h=re.p;try{re.p=32>i?32:i,M.T=null,i=Pf,Pf=null;var m=ha,_=Dr;if(Et=0,ai=ha=null,Dr=0,(Ze&6)!==0)throw Error(s(331));var R=Ze;if(Ze|=4,Vy(m.current),zy(m,m.current,_,i),Ze=R,Eo(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(Va,m)}catch{}return!0}finally{re.p=h,M.T=l,cv(r,a)}}function uv(r,a,i){a=An(i,a),a=uf(r.stateNode,a,2),r=ia(r,a,2),r!==null&&(dt(r,2),sr(r))}function Qe(r,a,i){if(r.tag===3)uv(r,r,i);else for(;a!==null;){if(a.tag===3){uv(a,r,i);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(fa===null||!fa.has(l))){r=An(i,r),i=dy(2),l=ia(a,i,2),l!==null&&(fy(i,l,a,r),dt(l,2),sr(l));break}}a=a.return}}function Lf(r,a,i){var l=r.pingCache;if(l===null){l=r.pingCache=new BE;var h=new Set;l.set(a,h)}else h=l.get(a),h===void 0&&(h=new Set,l.set(a,h));h.has(i)||(xf=!0,h.add(i),r=FE.bind(null,r,a,i),a.then(r,r))}function FE(r,a,i){var l=r.pingCache;l!==null&&l.delete(a),r.pingedLanes|=r.suspendedLanes&i,r.warmLanes&=~i,nt===r&&(qe&i)===i&&(ht===4||ht===3&&(qe&62914560)===qe&&300>Kt()-bl?(Ze&2)===0&&si(r,0):Of|=i,ri===qe&&(ri=0)),sr(r)}function dv(r,a){a===0&&(a=qt()),r=Ja(r,a),r!==null&&(dt(r,a),sr(r))}function GE(r){var a=r.memoizedState,i=0;a!==null&&(i=a.retryLane),dv(r,i)}function KE(r,a){var i=0;switch(r.tag){case 31:case 13:var l=r.stateNode,h=r.memoizedState;h!==null&&(i=h.retryLane);break;case 19:l=r.stateNode;break;case 22:l=r.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(a),dv(r,i)}function YE(r,a){return Bi(r,a)}var xl=null,oi=null,Nf=!1,Ol=!1,jf=!1,ma=0;function sr(r){r!==oi&&r.next===null&&(oi===null?xl=oi=r:oi=oi.next=r),Ol=!0,Nf||(Nf=!0,ZE())}function Eo(r,a){if(!jf&&Ol){jf=!0;do for(var i=!1,l=xl;l!==null;){if(r!==0){var h=l.pendingLanes;if(h===0)var m=0;else{var _=l.suspendedLanes,R=l.pingedLanes;m=(1<<31-zt(42|r)+1)-1,m&=h&~(_&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,mv(l,m))}else m=qe,m=Ce(l,l===nt?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||lt(l,m)||(i=!0,mv(l,m));l=l.next}while(i);jf=!1}}function WE(){fv()}function fv(){Ol=Nf=!1;var r=0;ma!==0&&iT()&&(r=ma);for(var a=Kt(),i=null,l=xl;l!==null;){var h=l.next,m=hv(l,a);m===0?(l.next=null,i===null?xl=h:i.next=h,h===null&&(oi=i)):(i=l,(r!==0||(m&3)!==0)&&(Ol=!0)),l=h}Et!==0&&Et!==5||Eo(r),ma!==0&&(ma=0)}function hv(r,a){for(var i=r.suspendedLanes,l=r.pingedLanes,h=r.expirationTimes,m=r.pendingLanes&-62914561;0<m;){var _=31-zt(m),R=1<<_,P=h[_];P===-1?((R&i)===0||(R&l)!==0)&&(h[_]=xt(R,a)):P<=a&&(r.expiredLanes|=R),m&=~R}if(a=nt,i=qe,i=Ce(r,r===a?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),l=r.callbackNode,i===0||r===a&&(Je===2||Je===9)||r.cancelPendingCommit!==null)return l!==null&&l!==null&&zi(l),r.callbackNode=null,r.callbackPriority=0;if((i&3)===0||lt(r,i)){if(a=i&-i,a===r.callbackPriority)return a;switch(l!==null&&zi(l),qn(i)){case 2:case 8:i=Pc;break;case 32:i=Ha;break;case 268435456:i=gr;break;default:i=Ha}return l=pv.bind(null,r),i=Bi(i,l),r.callbackPriority=a,r.callbackNode=i,a}return l!==null&&l!==null&&zi(l),r.callbackPriority=2,r.callbackNode=null,2}function pv(r,a){if(Et!==0&&Et!==5)return r.callbackNode=null,r.callbackPriority=0,null;var i=r.callbackNode;if(Al()&&r.callbackNode!==i)return null;var l=qe;return l=Ce(r,r===nt?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),l===0?null:(Wy(r,l,a),hv(r,Kt()),r.callbackNode!=null&&r.callbackNode===i?pv.bind(null,r):null)}function mv(r,a){if(Al())return null;Wy(r,a,!0)}function ZE(){cT(function(){(Ze&6)!==0?Bi(qa,WE):fv()})}function Mf(){if(ma===0){var r=Gs;r===0&&(r=Ts,Ts<<=1,(Ts&261888)===0&&(Ts=256)),ma=r}return ma}function gv(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Nc(""+r)}function yv(r,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,r.id&&i.setAttribute("form",r.id),a.parentNode.insertBefore(i,a),r=new FormData(r),i.parentNode.removeChild(i),r}function JE(r,a,i,l,h){if(a==="submit"&&i&&i.stateNode===h){var m=gv((h[tn]||null).action),_=l.submitter;_&&(a=(a=_[tn]||null)?gv(a.formAction):_.getAttribute("formAction"),a!==null&&(m=a,_=null));var R=new Bc("action","action",null,l,h);r.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ma!==0){var P=_?yv(h,_):new FormData(h);rf(i,{pending:!0,data:P,method:h.method,action:m},null,P)}}else typeof m=="function"&&(R.preventDefault(),P=_?yv(h,_):new FormData(h),rf(i,{pending:!0,data:P,method:h.method,action:m},m,P))},currentTarget:h}]})}}for(var Uf=0;Uf<bd.length;Uf++){var Bf=bd[Uf],QE=Bf.toLowerCase(),XE=Bf[0].toUpperCase()+Bf.slice(1);Hn(QE,"on"+XE)}Hn(Ym,"onAnimationEnd"),Hn(Wm,"onAnimationIteration"),Hn(Zm,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(mE,"onTransitionRun"),Hn(gE,"onTransitionStart"),Hn(yE,"onTransitionCancel"),Hn(Jm,"onTransitionEnd"),$s("onMouseEnter",["mouseout","mouseover"]),$s("onMouseLeave",["mouseout","mouseover"]),$s("onPointerEnter",["pointerout","pointerover"]),$s("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="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(" "),eT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(To));function vv(r,a){a=(a&4)!==0;for(var i=0;i<r.length;i++){var l=r[i],h=l.event;l=l.listeners;e:{var m=void 0;if(a)for(var _=l.length-1;0<=_;_--){var R=l[_],P=R.instance,H=R.currentTarget;if(R=R.listener,P!==m&&h.isPropagationStopped())break e;m=R,h.currentTarget=H;try{m(h)}catch(Z){Hc(Z)}h.currentTarget=null,m=P}else for(_=0;_<l.length;_++){if(R=l[_],P=R.instance,H=R.currentTarget,R=R.listener,P!==m&&h.isPropagationStopped())break e;m=R,h.currentTarget=H;try{m(h)}catch(Z){Hc(Z)}h.currentTarget=null,m=P}}}}function ze(r,a){var i=a[Qu];i===void 0&&(i=a[Qu]=new Set);var l=r+"__bubble";i.has(l)||(_v(a,r,2,!1),i.add(l))}function zf(r,a,i){var l=0;a&&(l|=4),_v(i,r,l,a)}var kl="_reactListening"+Math.random().toString(36).slice(2);function qf(r){if(!r[kl]){r[kl]=!0,fm.forEach(function(i){i!=="selectionchange"&&(eT.has(i)||zf(i,!1,r),zf(i,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[kl]||(a[kl]=!0,zf("selectionchange",!1,a))}}function _v(r,a,i,l){switch(Yv(a)){case 2:var h=OT;break;case 8:h=kT;break;default:h=rh}i=h.bind(null,a,i,r),h=void 0,!od||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(h=!0),l?h!==void 0?r.addEventListener(a,i,{capture:!0,passive:h}):r.addEventListener(a,i,!0):h!==void 0?r.addEventListener(a,i,{passive:h}):r.addEventListener(a,i,!1)}function Hf(r,a,i,l,h){var m=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var _=l.tag;if(_===3||_===4){var R=l.stateNode.containerInfo;if(R===h)break;if(_===4)for(_=l.return;_!==null;){var P=_.tag;if((P===3||P===4)&&_.stateNode.containerInfo===h)return;_=_.return}for(;R!==null;){if(_=ks(R),_===null)return;if(P=_.tag,P===5||P===6||P===26||P===27){l=m=_;continue e}R=R.parentNode}}l=l.return}Em(function(){var H=m,Z=sd(i),te=[];e:{var F=Qm.get(r);if(F!==void 0){var K=Bc,ge=r;switch(r){case"keypress":if(Mc(i)===0)break e;case"keydown":case"keyup":K=KR;break;case"focusin":ge="focus",K=dd;break;case"focusout":ge="blur",K=dd;break;case"beforeblur":case"afterblur":K=dd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=xm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=LR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=ZR;break;case Ym:case Wm:case Zm:K=MR;break;case Jm:K=QR;break;case"scroll":case"scrollend":K=DR;break;case"wheel":K=eE;break;case"copy":case"cut":case"paste":K=BR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=km;break;case"toggle":case"beforetoggle":K=nE}var xe=(a&4)!==0,tt=!xe&&(r==="scroll"||r==="scrollend"),B=xe?F!==null?F+"Capture":null:F;xe=[];for(var L=H,q;L!==null;){var ee=L;if(q=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||q===null||B===null||(ee=Gi(L,B),ee!=null&&xe.push(Ao(L,ee,q))),tt)break;L=L.return}0<xe.length&&(F=new K(F,ge,null,i,Z),te.push({event:F,listeners:xe}))}}if((a&7)===0){e:{if(F=r==="mouseover"||r==="pointerover",K=r==="mouseout"||r==="pointerout",F&&i!==ad&&(ge=i.relatedTarget||i.fromElement)&&(ks(ge)||ge[Os]))break e;if((K||F)&&(F=Z.window===Z?Z:(F=Z.ownerDocument)?F.defaultView||F.parentWindow:window,K?(ge=i.relatedTarget||i.toElement,K=H,ge=ge?ks(ge):null,ge!==null&&(tt=c(ge),xe=ge.tag,ge!==tt||xe!==5&&xe!==27&&xe!==6)&&(ge=null)):(K=null,ge=H),K!==ge)){if(xe=xm,ee="onMouseLeave",B="onMouseEnter",L="mouse",(r==="pointerout"||r==="pointerover")&&(xe=km,ee="onPointerLeave",B="onPointerEnter",L="pointer"),tt=K==null?F:Fi(K),q=ge==null?F:Fi(ge),F=new xe(ee,L+"leave",K,i,Z),F.target=tt,F.relatedTarget=q,ee=null,ks(Z)===H&&(xe=new xe(B,L+"enter",ge,i,Z),xe.target=q,xe.relatedTarget=tt,ee=xe),tt=ee,K&&ge)t:{for(xe=tT,B=K,L=ge,q=0,ee=B;ee;
vendor: 5,464 bytes, lines 9-10
9ee=xe(ee))q++;ee=0;for(var Te=L;Te;Te=xe(Te))ee++;for(;0<q-ee;)B=xe(B),q--;for(;0<ee-q;)L=xe(L),ee--;for(;q--;){if(B===L||L!==null&&B===L.alternate){xe=B;break t}B=xe(B),L=xe(L)}xe=null}else xe=null;K!==null&&bv(te,F,K,xe,!1),ge!==null&&tt!==null&&bv(te,tt,ge,xe,!0)}}e:{if(F=H?Fi(H):window,K=F.nodeName&&F.nodeName.toLowerCase(),K==="select"||K==="input"&&F.type==="file")var Ge=jm;else if(Lm(F))if(Mm)Ge=fE;else{Ge=uE;var Se=lE}else K=F.nodeName,!K||K.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?H&&rd(H.elementType)&&(Ge=jm):Ge=dE;if(Ge&&(Ge=Ge(r,H))){Nm(te,Ge,i,Z);break e}Se&&Se(r,F,H),r==="focusout"&&H&&F.type==="number"&&H.memoizedProps.value!=null&&nd(F,"number",F.value)}switch(Se=H?Fi(H):window,r){case"focusin":(Lm(Se)||Se.contentEditable==="true")&&(Ms=Se,yd=H,eo=null);break;case"focusout":eo=yd=Ms=null;break;case"mousedown":vd=!0;break;case"contextmenu":case"mouseup":case"dragend":vd=!1,Gm(te,i,Z);break;case"selectionchange":if(pE)break;case"keydown":case"keyup":Gm(te,i,Z)}var je;if(hd)e:{switch(r){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else js?Dm(r,i)&&(He="onCompositionEnd"):r==="keydown"&&i.keyCode===229&&(He="onCompositionStart");He&&(Cm&&i.locale!=="ko"&&(js||He!=="onCompositionStart"?He==="onCompositionEnd"&&js&&(je=Tm()):(Xr=Z,cd="value"in Xr?Xr.value:Xr.textContent,js=!0)),Se=Cl(H,He),0<Se.length&&(He=new Om(He,r,null,i,Z),te.push({event:He,listeners:Se}),je?He.data=je:(je=Im(i),je!==null&&(He.data=je)))),(je=aE?sE(r,i):iE(r,i))&&(He=Cl(H,"onBeforeInput"),0<He.length&&(Se=new Om("onBeforeInput","beforeinput",null,i,Z),te.push({event:Se,listeners:He}),Se.data=je)),JE(te,r,H,i,Z)}vv(te,a)})}function Ao(r,a,i){return{instance:r,listener:a,currentTarget:i}}function Cl(r,a){for(var i=a+"Capture",l=[];r!==null;){var h=r,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=Gi(r,i),h!=null&&l.unshift(Ao(r,h,m)),h=Gi(r,a),h!=null&&l.push(Ao(r,h,m))),r.tag===3)return l;r=r.return}return[]}function tT(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function bv(r,a,i,l,h){for(var m=a._reactName,_=[];i!==null&&i!==l;){var R=i,P=R.alternate,H=R.stateNode;if(R=R.tag,P!==null&&P===l)break;R!==5&&R!==26&&R!==27||H===null||(P=H,h?(H=Gi(i,m),H!=null&&_.unshift(Ao(i,H,P))):h||(H=Gi(i,m),H!=null&&_.push(Ao(i,H,P)))),i=i.return}_.length!==0&&r.push({event:a,listeners:_})}var nT=/\r\n?/g,rT=/\u0000|\uFFFD/g;function wv(r){return(typeof r=="string"?r:""+r).replace(nT,` 10`).replace(rT,"")}function Sv(r,a){return a=wv(a),wv(r)===a}function et(r,a,i,l,h,m){switch(i){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||Is(r,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&Is(r,""+l);break;case"className":Ic(r,"class",l);break;case"tabIndex":Ic(r,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ic(r,i,l);break;case"style":Sm(r,l,m);break;case"data":if(a!=="object"){Ic(r,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||i!=="href")){r.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){r.removeAttribute(i);break}l=Nc(""+l),r.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){r.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(a!=="input"&&et(r,a,"name",h.name,h,null),et(r,a,"formEncType",h.formEncType,h,null),et(r,a,"formMethod",h.formMethod,h,null),et(r,a,"formTarget",h.formTarget,h,null)):(et(r,a,"encType",h.encType,h,null),et(r,a,"method",h.method,h,null),et(r,a,"target",h.target,h,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){r.removeAttribute(i);break}l=Nc(""+l),r.setAttribute(i,l);break;case"onClick":l!=null&&(r.onclick=vr);break;case"onScroll":l!=null&&ze("scroll",r);break;case"onScrollEnd":l!=null&&ze("scrollend",r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(h.children!=null)throw Error(s(60));r.innerHTML=i}}break;case"multiple":r.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":r.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){r.removeAttribute("xlink:href");break}i=Nc(""+l),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?r.setAttribute(i,""+l):r.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?r.setAttribute(i,""):r.removeAttribute(i);break;case"capture":case"download":l===!0?r.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?r.setAttribute(i,l):r.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?r.setAttribute(i,l):r.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?r.removeAttribute(i):r.setAttribute(i,l);break;case"popover":ze("beforetoggle",r),ze("toggle",r),Dc(r,"popover",l);break;case"xlinkActuate":yr(r,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":yr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":yr(r,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":yr(r,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":yr(r,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":yr(r,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":yr(r,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":yr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":yr(r,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Dc(r,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=PR.get(i)||i,Dc(r,i,l))}}function Vf(r,a,i,l,h,m){switch(i){case"style":Sm(r,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(h.children!=null)throw Error(s(60));r.innerHTML=i}}break;case"children":typeof l=="string"?Is(r,l):(typeof l=="number"||typeof l=="bigint")&&Is(r,""+l);break;case"onScroll":l!=null&&ze("scroll",r);break;case"onScrollEnd":l!=null&&ze("scrollend",r);break;case"onClick":l!=null&&(r.onclick=vr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hm.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(h=i.endsWith("Capture"),a=i.slice(2,h?i.length-7:void 0),m=r[tn]||null,m=m!=null?m[i]:null,typeof m=="function"&&r.removeEventListener(a,m,h),typeof l=="function")){typeof m!="function"&&m!==null&&(i in r?r[i]=null:r.hasAttribute(i)&&r.removeAttribute(i)),r.addEventListener(a,l,h);break e}i in r?r[i]=l:l===!0?r.setAttribute(i,""):Dc(r,i,l)}}}function Nt(r,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",r),ze("load",r);var l=!1,h=!1,m;for(m in i)if(i.hasOwnProperty(m)){var _=i[m];if(_!=null)switch(m){case"src":l=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:et(r,a,m,_,i,null)}}h&&et(r,a,"srcSet",i.srcSet,i,null),l&&et(r,a,"src",i.src,i,null);return;case"input":ze("invalid",r);var R=m=_=h=null,P=null,H=null;for(l in i)if(i.hasOwnProperty(l)){var Z=i[l];if(Z!=null)switch(l){case"name":h=Z;break;case"type":_=Z;break;case"checked":P=Z;break;case"defaultChecked":H=Z;break;case"value":m=Z;break;case"defaultValue":R=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,a));break;default:et(r,a,l,Z,i,null)}}vm(r,m,R,P,H,_,h,!1);return;case"select":ze("invalid",r),l=_=m=null;for(h in i)if(i.hasOwnProperty(h)&&(R=i[h],R!=null))switch(h){case"value":m=R;break;case"defaultValue":_=R;break;case"multiple":l=R;default:et(r,a,h,R,i,null)}a=m,i=_,r.multiple=!!l,a!=null?Ds(r,!!l,a,!1):i!=null&&Ds(r,!!l,i,!0);return;case"textarea":ze("invalid",r),m=h=l=null;for(_ in i)if(i.hasOwnProperty(_)&&(R=i[_],R!=null))switch(_){case"value":l=R;break;case"defaultValue":h=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(91));break;default:et(r,a,_,R,i,null)}bm(r,l,h,m);return;case"option":for(P in i)i.hasOwnProperty(P)&&(l=i[P],l!=null)&&(P==="selected"?r.selected=l&&typeof l!="function"&&typeof l!="symbol":et(r,a,P,l,i,null));return;case"dialog":ze("beforetoggle",r),ze("toggle",r),ze("cancel",r),ze("close",r);break;case"iframe":case"object":ze("load",r);break;case"video":case"audio":for(l=0;l<To.length;l++)ze(To[l],r);break;case"image":ze("error",r),ze("load",r);break;case"details":ze("toggle",r);break;case"embed":case"source":case"link":ze("error",r),ze("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in i)if(i.hasOwnProperty(H)&&(l=i[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:et(r,a,H,l,i,null)}return;default:if(rd(a)){for(Z in i)i.hasOwnProperty(Z)&&(l=i[Z],l!==void 0&&Vf(r,a,Z,l,i,void 0));return}}for(R in i)i.hasOwnProperty(R)&&(l=i[R],l!=null&&et(r,a,R,l,i,null))}function aT(r,a,i,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,_=null,R=null,P=null,H=null,Z=null;for(K in i){var te=i[K];if(i.hasOwnProperty(K)&&te!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":P=te;default:l.hasOwnProperty(K)||et(r,a,K,null,l,te)}}for(var F in l){var K=l[F];if(te=i[F],l.hasOwnProperty(F)&&(K!=null||te!=null))switch(F){case"type":m=K;break;case"name":h=K;break;case"checked":H=K;break;case"defaultChecked":Z=K;break;case"value":_=K;break;case"defaultValue":R=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,a));break;default:K!==te&&et(r,a,F,K,l,te)}}td(r,_,R,P,H,Z,m,h);return;case"select":K=_=R=F=null;for(m in i)if(P=i[m],i.hasOwnProperty(m)&&P!=null)switch(m){case"value":break;case"multiple":K=P;default:l.hasOwnProperty(m)||et(r,a,m,null,l,P)}for(h in l)if(m=l[h],P=i[h],l.hasOwnProperty(h)&&(m!=null||P!=null))switch(h){case"value":F=m;break;case"defaultValue":R=m;break;case"multiple":_=m;default:m!==P&&et(r,a,h,m,l,P)}a=R,i=_,l=K,F!=null?Ds(r,!!i,F,!1):!!l!=!!i&&(a!=null?Ds(r,!!i,a,!0):Ds(r,!!i,i?[]:"",!1));return;case"textarea":K=F=null;for(R in i)if(h=i[R],i.hasOwnProperty(R)&&h!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:et(r,a,R,null,l,h)}for(_ in l)if(h=l[_],m=i[_],l.hasOwnProperty(_)&&(h!=null||m!=null))switch(_){case"value":F=h;break;case"defaultValue":K=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==m&&et(r,a,_,h,l,m)}_m(r,F,K);return;case"option":for(var ge in i)F=i[ge],i.hasOwnProperty(ge)&&F!=null&&!l.hasOwnProperty(ge)&&(ge==="selected"?r.selected=!1:et(r,a,ge,null,l,F));for(P in l)F=l[P],K=i[P],l.hasOwnProperty(P)&&F!==K&&(F!=null||K!=null)&&(P==="selected"?r.selected=F&&typeof F!="function"&&typeof F!="symbol":et(r,a,P,F,l,K));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in i)F=i[xe],i.hasOwnProperty(xe)&&F!=null&&!l.hasOwnProperty(xe)&&et(r,a,xe,null,l,F);for(H in l)if(F=l[H],K=i[H],l.hasOwnProperty(H)&&F!==K&&(F!=null||K!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,a));break;default:et(r,a,H,F,l,K)}return;default:if(rd(a)){for(var tt in i)F=i[tt],i.hasOwnProperty(tt)&&F!==void 0&&!l.hasOwnProperty(tt)&&Vf(r,a,tt,void 0,l,F);for(Z in l)F=l[Z],K=i[Z],!l.hasOwnProperty(Z)||F===K||F===void 0&&K===void 0||Vf(r,a,Z,F,l,K);return}}for(var B in i)F=i[B],i.hasOwnProperty(B)&&F!=null&&!l.hasOwnProperty(B)&&et(r,a,B,null,l,F);for(te in l)F=l[te],K=i[te],!l.hasOwnProperty(te)||F===K||F==null&&K==null||et(r,a,te,F,l,K)}function Rv(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}
vendor: 9,989 bytes, line 10
10function sT(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var h=i[l],m=h.transferSize,_=h.initiatorType,R=h.duration;if(m&&R&&Rv(_)){for(_=0,R=h.responseEnd,l+=1;l<i.length;l++){var P=i[l],H=P.startTime;if(H>R)break;var Z=P.transferSize,te=P.initiatorType;Z&&Rv(te)&&(P=P.responseEnd,_+=Z*(P<R?1:(R-H)/(P-H)))}if(--l,a+=8*(m+_)/(h.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Ff=null,Gf=null;function Pl(r){return r.nodeType===9?r:r.ownerDocument}function Ev(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tv(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Kf(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Yf=null;function iT(){var r=window.event;return r&&r.type==="popstate"?r===Yf?!1:(Yf=r,!0):(Yf=null,!1)}var Av=typeof setTimeout=="function"?setTimeout:void 0,oT=typeof clearTimeout=="function"?clearTimeout:void 0,xv=typeof Promise=="function"?Promise:void 0,cT=typeof queueMicrotask=="function"?queueMicrotask:typeof xv<"u"?function(r){return xv.resolve(null).then(r).catch(lT)}:Av;function lT(r){setTimeout(function(){throw r})}function ga(r){return r==="head"}function Ov(r,a){var i=a,l=0;do{var h=i.nextSibling;if(r.removeChild(i),h&&h.nodeType===8)if(i=h.data,i==="/$"||i==="/&"){if(l===0){r.removeChild(h),di(a);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")xo(r.ownerDocument.documentElement);else if(i==="head"){i=r.ownerDocument.head,xo(i);for(var m=i.firstChild;m;){var _=m.nextSibling,R=m.nodeName;m[Vi]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=_}}else i==="body"&&xo(r.ownerDocument.body);i=h}while(i);di(a)}function kv(r,a){var i=r;r=0;do{var l=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(r===0)break;r--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||r++;i=l}while(i)}function Wf(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Wf(i),Xu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}r.removeChild(i)}}function uT(r,a,i,l){for(;r.nodeType===1;){var h=i;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(l){if(!r[Vi])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(m=r.getAttribute("rel"),m==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(m!==h.rel||r.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||r.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||r.getAttribute("title")!==(h.title==null?null:h.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(m=r.getAttribute("src"),(m!==(h.src==null?null:h.src)||r.getAttribute("type")!==(h.type==null?null:h.type)||r.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&r.getAttribute("name")===m)return r}else return r;if(r=Pn(r.nextSibling),r===null)break}return null}function dT(r,a,i){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=Pn(r.nextSibling),r===null))return null;return r}function Cv(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Pn(r.nextSibling),r===null))return null;return r}function Zf(r){return r.data==="$?"||r.data==="$~"}function Jf(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function fT(r,a){var i=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||i.readyState!=="loading")a();else{var l=function(){a(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),r._reactRetry=l}}function Pn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Qf=null;function Pv(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var i=r.data;if(i==="/$"||i==="/&"){if(a===0)return Pn(r.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}r=r.nextSibling}return null}function $v(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var i=r.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return r;a--}else i!=="/$"&&i!=="/&"||a++}r=r.previousSibling}return null}function Dv(r,a,i){switch(a=Pl(i),r){case"html":if(r=a.documentElement,!r)throw Error(s(452));return r;case"head":if(r=a.head,!r)throw Error(s(453));return r;case"body":if(r=a.body,!r)throw Error(s(454));return r;default:throw Error(s(451))}}function xo(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Xu(r)}var $n=new Map,Iv=new Set;function $l(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Ir=re.d;re.d={f:hT,r:pT,D:mT,C:gT,L:yT,m:vT,X:bT,S:_T,M:wT};function hT(){var r=Ir.f(),a=Rl();return r||a}function pT(r){var a=Cs(r);a!==null&&a.tag===5&&a.type==="form"?Jg(a):Ir.r(r)}var ci=typeof document>"u"?null:document;function Lv(r,a,i){var l=ci;if(l&&typeof a=="string"&&a){var h=En(a);h='link[rel="'+r+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),Iv.has(h)||(Iv.add(h),r={rel:r,crossOrigin:i,href:a},l.querySelector(h)===null&&(a=l.createElement("link"),Nt(a,"link",r),Ot(a),l.head.appendChild(a)))}}function mT(r){Ir.D(r),Lv("dns-prefetch",r,null)}function gT(r,a){Ir.C(r,a),Lv("preconnect",r,a)}function yT(r,a,i){Ir.L(r,a,i);var l=ci;if(l&&r&&a){var h='link[rel="preload"][as="'+En(a)+'"]';a==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+En(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+En(i.imageSizes)+'"]')):h+='[href="'+En(r)+'"]';var m=h;switch(a){case"style":m=li(r);break;case"script":m=ui(r)}$n.has(m)||(r=g({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:r,as:a},i),$n.set(m,r),l.querySelector(h)!==null||a==="style"&&l.querySelector(Oo(m))||a==="script"&&l.querySelector(ko(m))||(a=l.createElement("link"),Nt(a,"link",r),Ot(a),l.head.appendChild(a)))}}function vT(r,a){Ir.m(r,a);var i=ci;if(i&&r){var l=a&&typeof a.as=="string"?a.as:"script",h='link[rel="modulepreload"][as="'+En(l)+'"][href="'+En(r)+'"]',m=h;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=ui(r)}if(!$n.has(m)&&(r=g({rel:"modulepreload",href:r},a),$n.set(m,r),i.querySelector(h)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ko(m)))return}l=i.createElement("link"),Nt(l,"link",r),Ot(l),i.head.appendChild(l)}}}function _T(r,a,i){Ir.S(r,a,i);var l=ci;if(l&&r){var h=Ps(l).hoistableStyles,m=li(r);a=a||"default";var _=h.get(m);if(!_){var R={loading:0,preload:null};if(_=l.querySelector(Oo(m)))R.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},i),(i=$n.get(m))&&Xf(r,i);var P=_=l.createElement("link");Ot(P),Nt(P,"link",r),P._p=new Promise(function(H,Z){P.onload=H,P.onerror=Z}),P.addEventListener("load",function(){R.loading|=1}),P.addEventListener("error",function(){R.loading|=2}),R.loading|=4,Dl(_,a,l)}_={type:"stylesheet",instance:_,count:1,state:R},h.set(m,_)}}}function bT(r,a){Ir.X(r,a);var i=ci;if(i&&r){var l=Ps(i).hoistableScripts,h=ui(r),m=l.get(h);m||(m=i.querySelector(ko(h)),m||(r=g({src:r,async:!0},a),(a=$n.get(h))&&eh(r,a),m=i.createElement("script"),Ot(m),Nt(m,"link",r),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(h,m))}}function wT(r,a){Ir.M(r,a);var i=ci;if(i&&r){var l=Ps(i).hoistableScripts,h=ui(r),m=l.get(h);m||(m=i.querySelector(ko(h)),m||(r=g({src:r,async:!0,type:"module"},a),(a=$n.get(h))&&eh(r,a),m=i.createElement("script"),Ot(m),Nt(m,"link",r),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(h,m))}}function Nv(r,a,i,l){var h=(h=Ee.current)?$l(h):null;if(!h)throw Error(s(446));switch(r){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=li(i.href),i=Ps(h).hoistableStyles,l=i.get(a),l||(l={type:"style",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){r=li(i.href);var m=Ps(h).hoistableStyles,_=m.get(r);if(_||(h=h.ownerDocument||h,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(r,_),(m=h.querySelector(Oo(r)))&&!m._p&&(_.instance=m,_.state.loading=5),$n.has(r)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},$n.set(r,i),m||ST(h,r,i,_.state))),a&&l===null)throw Error(s(528,""));return _}if(a&&l!==null)throw Error(s(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?
vendor: 4,600 bytes, line 10
10(a=ui(i),i=Ps(h).hoistableScripts,l=i.get(a),l||(l={type:"script",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,r))}}function li(r){return'href="'+En(r)+'"'}function Oo(r){return'link[rel="stylesheet"]['+r+"]"}function jv(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function ST(r,a,i,l){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=r.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),Nt(a,"link",i),Ot(a),r.head.appendChild(a))}function ui(r){return'[src="'+En(r)+'"]'}function ko(r){return"script[async]"+r}function Mv(r,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var l=r.querySelector('style[data-href~="'+En(i.href)+'"]');if(l)return a.instance=l,Ot(l),l;var h=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(r.ownerDocument||r).createElement("style"),Ot(l),Nt(l,"style",h),Dl(l,i.precedence,r),a.instance=l;case"stylesheet":h=li(i.href);var m=r.querySelector(Oo(h));if(m)return a.state.loading|=4,a.instance=m,Ot(m),m;l=jv(i),(h=$n.get(h))&&Xf(l,h),m=(r.ownerDocument||r).createElement("link"),Ot(m);var _=m;return _._p=new Promise(function(R,P){_.onload=R,_.onerror=P}),Nt(m,"link",l),a.state.loading|=4,Dl(m,i.precedence,r),a.instance=m;case"script":return m=ui(i.src),(h=r.querySelector(ko(m)))?(a.instance=h,Ot(h),h):(l=i,(h=$n.get(m))&&(l=g({},i),eh(l,h)),r=r.ownerDocument||r,h=r.createElement("script"),Ot(h),Nt(h,"link",l),r.head.appendChild(h),a.instance=h);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,Dl(l,i.precedence,r));return a.instance}function Dl(r,a,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=l.length?l[l.length-1]:null,m=h,_=0;_<l.length;_++){var R=l[_];if(R.dataset.precedence===a)m=R;else if(m!==h)break}m?m.parentNode.insertBefore(r,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(r,a.firstChild))}function Xf(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function eh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Il=null;function Uv(r,a,i){if(Il===null){var l=new Map,h=Il=new Map;h.set(i,l)}else h=Il,l=h.get(i),l||(l=new Map,h.set(i,l));if(l.has(r))return l;for(l.set(r,null),i=i.getElementsByTagName(r),h=0;h<i.length;h++){var m=i[h];if(!(m[Vi]||m[$t]||r==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var _=m.getAttribute(a)||"";_=r+_;var R=l.get(_);R?R.push(m):l.set(_,[m])}}return l}function Bv(r,a,i){r=r.ownerDocument||r,r.head.insertBefore(i,a==="title"?r.querySelector("head > title"):null)}function RT(r,a,i){if(i===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function zv(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function ET(r,a,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=li(l.href),m=a.querySelector(Oo(h));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Ll.bind(r),a.then(r,r)),i.state.loading|=4,i.instance=m,Ot(m);return}m=a.ownerDocument||a,l=jv(l),(h=$n.get(h))&&Xf(l,h),m=m.createElement("link"),Ot(m);var _=m;_._p=new Promise(function(R,P){_.onload=R,_.onerror=P}),Nt(m,"link",l),i.instance=m}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(r.count++,i=Ll.bind(r),a.addEventListener("load",i),a.addEventListener("error",i))}}var th=0;function TT(r,a){return r.stylesheets&&r.count===0&&jl(r,r.stylesheets),0<r.count||0<r.imgCount?function(i){var l=setTimeout(function(){if(r.stylesheets&&jl(r,r.stylesheets),r.unsuspend){var m=r.unsu
vendor: 10,516 bytes, line 10
10spend;r.unsuspend=null,m()}},6e4+a);0<r.imgBytes&&th===0&&(th=62500*sT());var h=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&jl(r,r.stylesheets),r.unsuspend)){var m=r.unsuspend;r.unsuspend=null,m()}},(r.imgBytes>th?50:800)+a);return r.unsuspend=i,function(){r.unsuspend=null,clearTimeout(l),clearTimeout(h)}}:null}function Ll(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jl(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Nl=null;function jl(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Nl=new Map,a.forEach(AT,r),Nl=null,Ll.call(r))}function AT(r,a){if(!(a.state.loading&4)){var i=Nl.get(r);if(i)var l=i.get(null);else{i=new Map,Nl.set(r,i);for(var h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var _=h[m];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(i.set(_.dataset.precedence,_),l=_)}l&&i.set(null,l)}h=a.instance,_=h.getAttribute("data-precedence"),m=i.get(_)||l,m===l&&i.set(null,h),i.set(_,h),this.count++,l=Ll.bind(this),h.addEventListener("load",l),h.addEventListener("error",l),m?m.parentNode.insertBefore(h,m.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(h,r.firstChild)),a.state.loading|=4}}var Co={$$typeof:O,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function xT(r,a,i,l,h,m,_,R,P){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Jr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jr(0),this.hiddenUpdates=Jr(null),this.identifierPrefix=l,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function qv(r,a,i,l,h,m,_,R,P,H,Z,te){return r=new xT(r,a,i,_,P,H,Z,te,R),a=1,m===!0&&(a|=24),m=pn(3,null,null,a),r.current=m,m.stateNode=r,a=Dd(),a.refCount++,r.pooledCache=a,a.refCount++,m.memoizedState={element:l,isDehydrated:i,cache:a},jd(m),r}function Hv(r){return r?(r=zs,r):zs}function Vv(r,a,i,l,h,m){h=Hv(h),l.context===null?l.context=h:l.pendingContext=h,l=sa(a),l.payload={element:i},m=m===void 0?null:m,m!==null&&(l.callback=m),i=ia(r,l,a),i!==null&&(cn(i,r,a),oo(i,r,a))}function Fv(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var i=r.retryLane;r.retryLane=i!==0&&i<a?i:a}}function nh(r,a){Fv(r,a),(r=r.alternate)&&Fv(r,a)}function Gv(r){if(r.tag===13||r.tag===31){var a=Ja(r,67108864);a!==null&&cn(a,r,67108864),nh(r,67108864)}}function Kv(r){if(r.tag===13||r.tag===31){var a=_n();a=xs(a);var i=Ja(r,a);i!==null&&cn(i,r,a),nh(r,a)}}var Ml=!0;function OT(r,a,i,l){var h=M.T;M.T=null;var m=re.p;try{re.p=2,rh(r,a,i,l)}finally{re.p=m,M.T=h}}function kT(r,a,i,l){var h=M.T;M.T=null;var m=re.p;try{re.p=8,rh(r,a,i,l)}finally{re.p=m,M.T=h}}function rh(r,a,i,l){if(Ml){var h=ah(l);if(h===null)Hf(r,a,l,Ul,i),Wv(r,l);else if(PT(h,r,a,i,l))l.stopPropagation();else if(Wv(r,l),a&4&&-1<CT.indexOf(r)){for(;h!==null;){var m=Cs(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var _=tr(m.pendingLanes);if(_!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;_;){var P=1<<31-zt(_);R.entanglements[1]|=P,_&=~P}sr(m),(Ze&6)===0&&(wl=Kt()+500,Eo(0))}}break;case 31:case 13:R=Ja(m,2),R!==null&&cn(R,m,2),Rl(),nh(m,2)}if(m=ah(l),m===null&&Hf(r,a,l,Ul,i),m===h)break;h=m}h!==null&&l.stopPropagation()}else Hf(r,a,l,null,i)}}function ah(r){return r=sd(r),sh(r)}var Ul=null;function sh(r){if(Ul=null,r=ks(r),r!==null){var a=c(r);if(a===null)r=null;else{var i=a.tag;if(i===13){if(r=u(a),r!==null)return r;r=null}else if(i===31){if(r=d(a),r!==null)return r;r=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Ul=r,null}function Yv(r){switch(r){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Wu()){case qa:return 2;case Pc:return 8;case Ha:case qi:return 32;case gr:return 268435456;default:return 32}default:return 32}}var ih=!1,ya=null,va=null,_a=null,Po=new Map,$o=new Map,ba=[],CT="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".split(" ");function Wv(r,a){switch(r){case"focusin":case"focusout":ya=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":Po.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":$o.delete(a.pointerId)}}function Do(r,a,i,l,h,m){return r===null||r.nativeEvent!==m?(r={blockedOn:a,domEventName:i,eventSystemFlags:l,nativeEvent:m,targetContainers:[h]},a!==null&&(a=Cs(a),a!==null&&Gv(a)),r):(r.eventSystemFlags|=l,a=r.targetContainers,h!==null&&a.indexOf(h)===-1&&a.push(h),r)}function PT(r,a,i,l,h){switch(a){case"focusin":return ya=Do(ya,r,a,i,l,h),!0;case"dragenter":return va=Do(va,r,a,i,l,h),!0;case"mouseover":return _a=Do(_a,r,a,i,l,h),!0;case"pointerover":var m=h.pointerId;return Po.set(m,Do(Po.get(m)||null,r,a,i,l,h)),!0;case"gotpointercapture":return m=h.pointerId,$o.set(m,Do($o.get(m)||null,r,a,i,l,h)),!0}return!1}function Zv(r){var a=ks(r.target);if(a!==null){var i=c(a);if(i!==null){if(a=i.tag,a===13){if(a=u(i),a!==null){r.blockedOn=a,um(r.priority,function(){Kv(i)});return}}else if(a===31){if(a=d(i),a!==null){r.blockedOn=a,um(r.priority,function(){Kv(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){r.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Bl(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var i=ah(r.nativeEvent);if(i===null){i=r.nativeEvent;var l=new i.constructor(i.type,i);ad=l,i.target.dispatchEvent(l),ad=null}else return a=Cs(i),a!==null&&Gv(a),r.blockedOn=i,!1;a.shift()}return!0}function Jv(r,a,i){Bl(r)&&i.delete(a)}function $T(){ih=!1,ya!==null&&Bl(ya)&&(ya=null),va!==null&&Bl(va)&&(va=null),_a!==null&&Bl(_a)&&(_a=null),Po.forEach(Jv),$o.forEach(Jv)}function zl(r,a){r.blockedOn===a&&(r.blockedOn=null,ih||(ih=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,$T)))}var ql=null;function Qv(r){ql!==r&&(ql=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ql===r&&(ql=null);for(var a=0;a<r.length;a+=3){var i=r[a],l=r[a+1],h=r[a+2];if(typeof l!="function"){if(sh(l||i)===null)continue;break}var m=Cs(i);m!==null&&(r.splice(a,3),a-=3,rf(m,{pending:!0,data:h,method:i.method,action:l},l,h))}}))}function di(r){function a(P){return zl(P,r)}ya!==null&&zl(ya,r),va!==null&&zl(va,r),_a!==null&&zl(_a,r),Po.forEach(a),$o.forEach(a);for(var i=0;i<ba.length;i++){var l=ba[i];l.blockedOn===r&&(l.blockedOn=null)}for(;0<ba.length&&(i=ba[0],i.blockedOn===null);)Zv(i),i.blockedOn===null&&ba.shift();if(i=(r.ownerDocument||r).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var h=i[l],m=i[l+1],_=h[tn]||null;if(typeof m=="function")_||Qv(i);else if(_){var R=null;if(m&&m.hasAttribute("formAction")){if(h=m,_=m[tn]||null)R=_.formAction;else if(sh(h)!==null)continue}else R=_.action;typeof R=="function"?i[l+1]=R:(i.splice(l,3),l-=3),Qv(i)}}}function Xv(){function r(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(_){return h=_})},focusReset:"manual",scroll:"manual"})}function a(){h!==null&&(h(),h=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,h=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),h!==null&&(h(),h=null)}}}function oh(r){this._internalRoot=r}Hl.prototype.render=oh.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(s(409));var i=a.current,l=_n();Vv(i,l,r,a,null,null)},Hl.prototype.unmount=oh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;Vv(r.current,2,null,r,null,null),Rl(),a[Os]=null}};function Hl(r){this._internalRoot=r}Hl.prototype.unstable_scheduleHydration=function(r){if(r){var a=Ju();r={blockedOn:null,target:r,priority:a};for(var i=0;i<ba.length&&a!==0&&a<ba[i].priority;i++);ba.splice(i,0,r),i===0&&Zv(r)}};var e_=e.version;if(e_!=="19.2.6")throw Error(s(527,e_,"19.2.6"));re.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(s(188)):(r=Object.keys(r).join(","),Error(s(268,r)));return r=p(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var DT={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.6"};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vl.isDisabled&&Vl.supportsFiber)try{Va=Vl.inject(DT),Yt=Vl}catch{}}return Lo.createRoot=function(r,a){if(!o(r))throw Error(s(299));var i=!1,l="",h=oy,m=cy,_=ly;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=qv(r,1,!1,null,null,i,l,null,h,m,_,Xv),r[Os]=a.current,qf(r),new oh(a)},Lo.hydrateRoot=function(r,a,i){if(!o(r))throw Error(s(299));var l=!1,h="",m=oy,_=cy,R=ly,P=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(_=i.onCaughtError),i.onRecoverableError!==void 0&&(R=i.onRecoverableError),i.formState!==void 0&&(P=i.formState)),a=qv(r,1,!0,a,i??null,l,h,P,m,_,R,Xv),a.context=Hv(null),i=a.current,l=_n(),l=xs(l),h=sa(l),h.callback=null,ia(i,h,l),i=l,a.current.lanes=i,dt(a,i),sr(a),r[Os]=a.current,qf(r),new Hl(a)},Lo.version="19.2.6",Lo}var u_;function HT(){if(u_)return uh.exports;u_=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),uh.exports=qT(),uh.exports}var VT=HT(),FT="__TSS_CONTEXT",np=Symbol.for("TSS_SERVER_FUNCTION"),d_=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),GT="application/x-tss-framed",Mp=()=>window.__TSS_START_OPTIONS__;function vs(t){return t?.isNotFound===!0}function be(t){t.statusCode=t.statusCode||t.code||307;const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const n=new Response(null,{status:t.statusCode,headers:e});if(n.options=t,t.throw)throw n;return n}function Up(t){return t instanceof Response&&!!t.options}function Jb(t){if(t!==null&&typeof t=="object"&&t.isSerializedRedirect)return be(t)}function KT(t){return t.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(e,n)=>n==="0"?"\0":n==="r"?"�":n)}const f_=!1;function $a(t){return t[t.length-1]}function Qb(t,e){return typeof t=="function"?t(e):t}const Bp=Object.prototype.hasOwnProperty;function Xb(t){for(const e in t)if(Bp.call(t,e))return!0;return!1}const uu=()=>Object.create(null),fi=(t,e)=>ka(t,e,!0);function ka(t,e,n,s=0){if(t===e)return t;if(s++>500)return e;const o=Array.isArray(t)&&Array.isArray(e);if(!o&&!(yu(t)&&yu(e)))return e;const c=Object.keys(t),u=c.length,d=Object.keys(e),f=d.length;if(o?u!==t.length||f!==e.length||u&&$a(c)!==`${u-1}`||f&&$a(d)!==`${f-1}`:u!==Object.getOwnPropertyNames(t).length||f!==Object.getOwnPropertyNames(e).length||Object.getOwnPropertySymbols(e).length)return e;let p=0,y,g,v;if(o){for(;p<f&&(v=p,g=t[v],y=e[v],y=g===y?g:typeof g=="object"?ka(g,y,n,s):y,y===g);p++);if(p===f&&u===f)return t}else{let w=u===f,S=!0;for(;p<f;p++){v=d[p],g=t[v];const x=e[v];y=g===x?g:typeof g=="object"?ka(g,x,n,s):x,w&&=y===g&&(c[p]===v||Bp.call(t,v)),S&&=Object.is(y,x),c[p]=y}if(w)return Object.getOwnPropertySymbols(t).length?e:t;if(S)return e}const b=o?d.fill(0):n?uu():{};for(let w=0;w<f;w++)v=o?w:d[w],o?(g=t[v],w>p&&(y=e[v],y=g===y?g:typeof g=="object"?ka(g,y,n,s):y),b[v]=w<p?g:y):b[v]=c[w];return b}function yu(t){return!t||typeof t!="object"?!1:(Object.getPrototypeOf(t)?.constructor??Object)===Object}function Qn(t,e,n,s){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let o=0,c=t.length;o<c;o++){const u=t[o],d=e[o];if(u!==d&&!Qn(u,d,n,s))return!1}return!0}if(yu(t)&&yu(e)){if(n){for(const c in e)if((s||e[c]!==void 0)&&!Qn(t[c],e[c],n,s))return!1;return!0}let o=0;if(s)o=Object.keys(t).length;else for(const c in t)t[c]!==void 0&&o++;for(const c in e)if((s||e[c]!==void 0)&&(o--===0||!Qn(t[c],e[c],n,s)))return!1;return o===0}return!1}function YT(t){return typeof t?.message!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}const WT=/[\x00-\x1f\x7f"<>`{}]/g;function ZT(t){return t.replace(WT,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function h_(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return ZT(e)}const JT=["http:","https:","mailto:","tel:"];function ic(t){if(t[0]!=="/"&&t.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(t)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}const ew=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function tw(t,e){if(!t)return!1;if(ew.test(t))return!0;const n=ic(t);return n?!e.has(n):!1}const QT={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},XT=/[&><\u2028\u2029]/g;function eA(t){return t.replace(XT,e=>QT[e])}function No(t){if(!t)return t;let e=t;if(/[%\\\x00-\x1f\x7f]/.test(t)){const n=/%25|%5C/gi;let s=0,o;for(e="";(o=n.exec(t))!==null;)e+=h_(t.slice(s,o.index))+o[0],s=n.lastIndex;e+=h_(s?t.slice(s):t)}return e}function tA(t){return/[\s\u0080-\uFFFF]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function nA(t,e){if(t===e)return!0;
10if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Oi(t){return t.replace(/\/{2,}/g,"/")}function nw(t){return t==="/"?t:t.replace(/^\/+/,"")}function hr(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/+$/,""):t}function rw(t){return hr(nw(t))}function p_(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function m_(t,e,n="never",s){if(e.includes("//")&&(e=Oi(e)),e.startsWith("/"))return e.length===1||n==="preserve"?e:n==="always"?e.endsWith("/")?e:`${e}/`:e.endsWith("/")?e.slice(0,-1):e;const o=e===".";let c;if(s){c=o?t:t+"\0"+e;const p=s.get(c);if(p)return p}let u;if(o)u=t.split("/");else{for(t.includes("//")&&(t=Oi(t)),u=t.split("/");u.length>1&&$a(u)==="";)u.pop();const p=e.split("/");for(let y=0,g=p.length;y<g;y++){const v=p[y];v===""?y?y===g-1&&u.push(v):u=[v]:v===".."?u.length>1?u.pop():u=[""]:v==="."||u.push(v)}}u.length>1&&($a(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const d=u.join("/"),f=(o?Oi(d):d)||"/";return c&&s&&s.set(c,f),f}function rA(t){const e=new Map(t.map(s=>[encodeURIComponent(s),s])),n=new RegExp([...e.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return s=>s.replace(n,o=>e.get(o)??o)}function aA(t){return t==null||t===""}function sA(t,e,n){if(typeof e!="string")return""+(e??void 0);const s=t==="_splat";if(s&&(!e||/^[a-zA-Z0-9\-._~!/]*$/.test(e)))return e;let o=encodeURIComponent(e);return s&&(o=o.replaceAll("%2F","/")),n?n(o):o}function g_(t,e,n,s,o){const c=t.endsWith("/")?"/":"";let u="";for(const d of e){if(typeof d=="string"){u+=d;continue}const[f,p,y,g]=d,v=f===2,b=v&&g!==void 0?g+c:g;let w=n[p];if(!(f===3&&w==null)){if(o&&(o[p]=w,v&&(o["*"]=w)),v&&aA(w)){if(y==="/"&&!b)continue;w=""}u+=y+sA(p,w,s)+(b||"")}}return u+c||"/"}function vu(t){const e=new Map;let n,s;return{get(o){const c=e.get(o);if(c)return c.visited=!0,c.value},set(o,c){const u=e.get(o);if(u){u.value=c;return}if(e.size>=t){let f=n?.next().value;for(;!f||f.visited;)f?f.visited=!1:n=e.values(),f=n.next().value;f===s&&(n=void 0),e.delete(f.key)}const d={key:o,value:c,visited:!1};s=d,e.set(o,d)},clear(){e.clear(),n=void 0,s=void 0}}}function oc(){throw new Error("Invariant failed")}const xa=4,aw=5;function iA(t){const e=t.names;if(e)return e;const n=[];for(const s of t)typeof s!="string"&&n.push(s[1]);return t.names=n}function oA(t,e,n){const s=t.substring(e,n);if(s.charCodeAt(0)===36)return s.length===1?[2,"_splat","",void 0]:[1,s.substring(1),"",""];const o=s.indexOf("{");if(o>=0){const c=s.indexOf("}",o),u=s.charCodeAt(o+1)===45,d=o+(u?3:2);if(c>=0&&s.charCodeAt(d-1)===36&&(!u||d<c)){const f=s.substring(d,c);return[u?3:f?1:2,f||"_splat",s.substring(0,o),t.substring(e+c+1,f?n:t.length)]}}return s}function cc(t,e,n,s,o,c){let u=n;const d=e.fullPath??e.from,f=e.options,p=d.length,y=d.endsWith("/")?p-1:p,g=f?.caseSensitive??t,v=f?.params?.parse??f?.parseParams;let b,w=c?n-1:0;if(!s||d.includes("$")){b=c?.slice()??[];const E=$a(b);E&&typeof E!="string"&&E[0]===2&&(b[b.length-1]=[E[0],E[1],E[2],E[3]===void 0?void 0:E[3]+d.substring(n-(d[n-2]==="/"?2:1),y)],w=p)}for(;u<p;){const E=u,k=d.indexOf("/",E);let O=k===-1?p:k;const j=oA(d,E,O);u=O+1;let X;if(typeof j=="string"){if(!s)continue;let N=j,C;g?C=s.static??=new Map:(N=j.toLowerCase(),C=s.staticInsensitive??=new Map);const G=C.get(N);if(G)X=G;else{const Y=hs(s);X=Y,C.set(N,Y)}}else{const N=j[0];let C=j[2],G=j[3]??"";if(N===2&&(O=p,u=O+1),b&&w<O&&(w<E-1&&b.push(d.substring(w,E-1)),j[2]="/"+C,N===2&&j[3]!==void 0&&y<p&&(j[3]=G.slice(0,-1)),b.push(j),w=O),!s)continue;const Y=g&&!!(C||G);g||(C=C.toLowerCase(),G=G.toLowerCase());const ne=N===1?s.dynamic??=[]:N===3?s.optional??=[]:s.wildcard??=[],z=N!==2&&!v&&ne.find(V=>!V.parse&&V.caseSensitive===Y&&V.prefix===C&&V.suffix===G);if(z)X=z;else{const V=hs(s,N,Y,C,G);X=V,ne.push(V),ne.length===2&&o?.push(ne)}}s=X}b&&w<y&&b.push(d.substring(w,y));const S=b?.slice();if(!s)return S;if(v&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){const E=hs(s,aw);(s.pathless??=[]).push(E),s=E}const x=(e.path||!e.children)&&!e.isRoot;if(x&&y<p){const E=hs(s,xa);s.index=E,s=E}return s.parse=v??null,s.priority=f?.params?.priority??0,s.route||(s.data=S,x&&(s.route=e)),[s,u,S]}function sw(t,e){if(t.parse&&!e.parse)return-1;if(!t.parse&&e.parse)return 1;if(t.parse&&e.parse&&(t.priority||e.priority))return e.priority-t.priority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function hs(t,e=0,n,s,o){return{kind:e,depth:t?t.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:t,parse:null,priority:0,caseSensitive:n,prefix:s,suffix:o}}function cA(t,e){const n=hs(),s=[];function o(c,u,d,f){const[p,y,g]=cc(!1,c,u,d,s,f);if(c.children)for(const v of c.children)o(v,y,p,g)}for(const c of t)o(c,1,n);for(const c of s)c.sort(sw);e.masksTree=n,e.flatCache=vu(1e3)}function lA(t,e){t||="/";const n=e.flatCache.get(t);if(n!==void 0)return n;const s=zp(t,e.masksTree);return e.flatCache.set(t,s),s}function uA(t,e,n,s,o){t||="/",s||="/";const c=e?`case\0${t}`:t;let u=o.singleCache.get(c);return u||(u=hs(),cc(e,{from:t},1,u),o.singleCache.set(c,u)),zp(s,u,n)}function dA(t,e,n=!1){const s=n?t:`nofuzz\0${t}`,o=e.matchCache.get(s);if(o!==void 0)return o;t||="/";
10let c;try{c=zp(t,e.segmentTree,n)}catch(u){if(u instanceof URIError)c=null;else throw u}return c&&(c.branch=ow(c.route)),e.matchCache.set(s,c),c}function fA(t,e=!1){const n=hs(),s=[],o={},c={};let u=0;function d(f,p,y,g){if(f.init(u),f.id in o&&oc(),o[f.id]=f,u!==0&&f.path){const S=hr(f.fullPath);(!c[S]||f.fullPath.endsWith("/"))&&(c[S]=f)}u++;const[v,b,w]=cc(e,f,p,y,s,g);if(f._interpolation=w,f.children)for(const S of f.children)d(S,b,v,w)}d(t,1,n);for(const f of s)f.sort(sw);return{processedTree:{segmentTree:n,singleCache:vu(1e3),matchCache:vu(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:c}}function zp(t,e,n=!1){const s=t.split("/"),o=pA(t,s,e,n);if(!o)return null;const[c]=iw(t,s,o);return{route:o.node.route,rawParams:c}}function iw(t,e,n){const s=hA(n.node),o=n.node.data&&iA(n.node.data),c=Object.create(null);let u=n.extract?.part??0,d=n.extract?.node??0,f=n.extract?.path??0,p=n.extract?.param??0;for(;d<s.length;u++,d++,f++){const y=s[d];if(y.kind===xa)break;if(y.kind===aw){u--,f--;continue}const g=e[u],v=f;if(g&&(f+=g.length),y.kind===1||y.kind===3){const b=o[p++];if(y.kind===3&&n.skipped&1<<d){u--,f=v-1;continue}const w=y.suffix||y.prefix?g.substring(y.prefix.length,g.length-y.suffix.length):g;(w||y.kind===1)&&(c[b]=decodeURIComponent(w))}else if(y.kind===2){const b=y,w=t.substring(v+b.prefix.length,t.length-b.suffix.length),S=decodeURIComponent(w);c["*"]=S,c._splat=S;break}}return n.rawParams&&Object.assign(c,n.rawParams),[c,{part:u,node:d,path:f,param:p}]}function ow(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function hA(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function pA(t,e,n,s){if(t==="/"&&n.index)return{node:n.index,skipped:0};const o=!$a(e),c=o&&t!=="/",u=e.length-(o?1:0),d=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let f=null,p=null;for(;d.length;){const y=d.pop(),{node:g,index:v,skipped:b,statics:w,dynamics:S,optionals:x}=y;let{extract:E,rawParams:k}=y;if(g.kind===2&&g.route&&!Gl(p,y))continue;if(g.parse){if(!y_(t,e,y))continue;k=y.rawParams,E=y.extract}s&&g.route&&g.kind!==xa&&Gl(f,y)&&(f=y);const O=v===u;if(O&&(g.route&&(!c||g.kind===xa||g.kind===2)&&Gl(p,y)&&(p=y),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const j=O?void 0:e[v];let X;if(O&&g.index){const N={node:g.index,index:v,skipped:b,statics:w,dynamics:S,optionals:x,extract:E,rawParams:k};let C=!0;if(g.index.parse&&(y_(t,e,N)||(C=!1)),C){if(!S&&!x&&!b&&mA(w,u))return N;Gl(p,N)&&(p=N)}}if(g.wildcard)for(let N=g.wildcard.length-1;N>=0;N--){const C=g.wildcard[N],{prefix:G,suffix:Y}=C;if(!(G&&(O||!(C.caseSensitive?j:X??=j.toLowerCase()).startsWith(G)))){if(Y){if(O)continue;const ne=e.slice(v).join("/"),z=ne.slice(-Y.length);if((C.caseSensitive?z:z.toLowerCase())!==Y||ne.length-Y.length<G.length)continue}d.push({node:C,index:u,skipped:b,statics:w,dynamics:S,optionals:x,extract:E,rawParams:k})}}if(g.optional){const N=b|1<<g.depth+1;for(let C=g.optional.length-1;C>=0;C--){const G=g.optional[C];d.push({node:G,index:v,skipped:N,statics:w,dynamics:S,optionals:x,extract:E,rawParams:k})}if(!O)for(let C=g.optional.length-1;C>=0;C--){const G=g.optional[C],{prefix:Y,suffix:ne}=G;if(Y||ne){const z=G.caseSensitive?j:X??=j.toLowerCase();if(Y&&!z.startsWith(Y)||ne&&z.indexOf(ne,z.length-ne.length)<Y.length)continue}d.push({node:G,index:v+1,skipped:b,statics:w,dynamics:S,optionals:x+Fl(u,v),extract:E,rawParams:k})}}if(!O&&g.dynamic&&j)for(let N=g.dynamic.length-1;N>=0;N--){const C=g.dynamic[N],{prefix:G,suffix:Y}=C;if(G||Y){const ne=C.caseSensitive?j:X??=j.toLowerCase();if(G&&!ne.startsWith(G)||Y&&ne.indexOf(Y,ne.length-Y.length)<G.length)continue}d.push({node:C,index:v+1,skipped:b,statics:w,dynamics:S+Fl(u,v),optionals:x,extract:E,rawParams:k})}if(!O&&g.staticInsensitive){const N=g.staticInsensitive.get(X??=j.toLowerCase());N&&d.push({node:N,index:v+1,skipped:b,statics:w+Fl(u,v),dynamics:S,optionals:x,extract:E,rawParams:k})}if(!O&&g.static){const N=g.static.get(j);N&&d.push({node:N,index:v+1,skipped:b,statics:w+Fl(u,v),dynamics:S,optionals:x,extract:E,rawParams:k})}if(g.pathless)for(let N=g.pathless.length-1;N>=0;N--){const C=g.pathless[N];d.push({node:C,index:v,skipped:b,statics:w,dynamics:S,optionals:x,extract:E,rawParams:k})}}if(p)return p;if(s&&f){let y=f.index;for(let v=0;v<f.index;v++)y+=e[v].length;const g=y===t.length?"/":t.slice(y);return f.rawParams??=Object.create(null),f.rawParams["**"]=decodeURIComponent(g),f}return null}function Fl(t,e){return 2**(t-e-1)}function mA(t,e){return t===2**(e-1)-1}function y_(t,e,n){let s,o;try{[s,o]=iw(t,e,n)}catch{return null}if(n.rawParams=s,n.extract=o,!n.node.parse)return!0;try{if(n.node.parse(s)===!1)return null}catch{}return!0}function Gl(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===xa)>(t.node.kind===xa)||e.node.kind===xa==(t.node.kind===xa)&&e.node.depth>
10t.node.depth))):!0}function gA(){try{return sessionStorage}catch{return}}const yA="tsr-scroll-restoration-v1_3",cw=gA();function vA(){try{return JSON.parse(cw?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}const hi=vA(),v_="data-scroll-restoration-id",_A=t=>t.state.__TSR_key||t.href;function bA(t){const e=t.getAttribute(v_);if(e)return`[${v_}="${e}"]`;let n="",s=t,o;for(;o=s.parentNode;){let c=1,u=s;for(;u=u.previousElementSibling;)c++;const d=`${s.localName}:nth-child(${c})`;n=n?`${d} > ${n}`:d,s=o}return n}let Kl=!1;const du="window";function rp(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function __(t){const e=new Set;for(const n of t){if(n===du)continue;const s=rp(n);s&&e.add(s)}return e}function wA(t,e){const n=t.options.scrollRestoration,s=t._scroll;n&&(s.e=!0);const o=t.options.getScrollRestorationKey||_A,c=new Set,u=d=>{const f=hi[d]||={};for(const p of c)p===document?f[du]={scrollX,scrollY}:p.isConnected&&(f[bA(p)]={scrollX:p.scrollLeft,scrollY:p.scrollTop})};n&&!s.s&&(s.s=!0,Kl=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{Kl||c.add(d.target)},!0),t.subscribe("onBeforeLoad",d=>{d.fromLocation&&u(o(d.fromLocation)),c.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",u(o(t.stores.resolvedLocation.get()??t.stores.location.get()));try{cw?.setItem(yA,JSON.stringify(hi))}catch{}}),addEventListener("pageshow",d=>{d.persisted&&(history.scrollRestoration="manual")})),!s.r&&(s.r=!0,t.subscribe("onRendered",d=>{const f=t.options.scrollRestorationBehavior,p=t.options.scrollToTopSelectors,y=s.n,g=s.h;let v;if(c.clear(),s.n=!0,s.h=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const b=o(d.toLocation),w=d.fromLocation&&o(d.fromLocation);if(s.e&&w&&w!==b){const S=hi[w];if(S){let x=hi[b];for(const E in S){if(E===du){if(y)continue}else{const k=rp(E);if(!k||y&&p&&(v??=__(p),v.has(k)))continue}x||(x=hi[b]={}),x[E]??=S[E]}}}Kl=!0;try{const S=d.toLocation.hash,x=d.toLocation.state.__hashScrollIntoViewOptions??!0;let E=!1;if(y){!S&&p&&(v??=__(p));const k=S&&x&&g,O=s.e?hi[b]:void 0;if(O)for(const j in O){const{scrollX:X,scrollY:N}=O[j];if(j===du){if(k)continue;scrollTo({top:N,left:X,behavior:f}),E=!0}else{const C=rp(j);C&&(C.scrollLeft=X,C.scrollTop=N,v?.delete(C))}}if(!S){const j={top:0,left:0,behavior:f};if(E||scrollTo(j),v)for(const X of v)X.scrollTo(j)}}!E&&S&&x&&document.getElementById(S)?.scrollIntoView(x)}finally{Kl=!1}}))}function lw(t,e=String){let n;for(const s in t){const o=t[s];o!==void 0&&(n||=new URLSearchParams).set(s,e(o))}return n?n.toString():""}function ph(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function SA(t){const e=new URLSearchParams(t),n=Object.create(null);for(const[s,o]of e.entries()){const c=n[s];c==null?n[s]=ph(o):Array.isArray(c)?c.push(ph(o)):n[s]=[c,ph(o)]}return n}const uw=/^(?:\s|["[{\d-]|fa|nu|tr)/,RA=TA(JSON.parse),EA=AA(JSON.stringify,JSON.parse);function TA(t){const e=t===JSON.parse;return n=>{n[0]==="?"&&(n=n.substring(1));const s=SA(n);for(const o in s){const c=s[o];if(typeof c=="string"){if(e&&!uw.test(c))continue;try{s[o]=t(c)}catch{}}}return s}}function AA(t,e){const n=e===JSON.parse;function s(o){if(o&&typeof o=="object")try{return t(o)}catch{}else if(e&&typeof o=="string"){if(n&&!uw.test(o))return o;try{return e(o),t(o)}catch{}}return o}return o=>{const c=lw(o,s);return c?`?${c}`:""}}const ki="__root__";function xA(t,e,n){const s=rw(t),o=`/${s}`,c=e?o:o.toLowerCase(),u=`${c}/`,d={input:({url:f})=>{const p=e?f.pathname:f.pathname.toLowerCase();return p===c?f.pathname="/":p.startsWith(u)&&(f.pathname=f.pathname.slice(o.length)),f},output:({url:f})=>(f.pathname=Oi(`/${s}${f.pathname}`),f)};return n?{input:({url:f})=>ap(n,d.input({url:f})),output:({url:f})=>d.output({url:dw(n,f)})}:d}function ap(t,e){const n=t?.input?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function dw(t,e){const n=t?.output?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function OA(t,e){const{createMutableStore:n,createReadonlyStore:s,batch:o}=e,c=new Map,u=n("idle"),d=n(t),f=n(void 0),p=n([]),y=s(()=>p.get().map(S=>c.get(S).get())),g=s(()=>({status:u.get(),isLoading:u.get()==="pending",matches:y.get(),location:d.get(),resolvedLocation:f.get()}));function v(S){let x=c.get(S);return x||(x=n(void 0),c.set(S,x)),x}const b={status:u,location:d,resolvedLocation:f,ids:p,matches:y,by
10Route:c,__store:g,getMatchStore:v,setMatches:w};function w(S){const x=p.get(),E=S.map(k=>k.routeId);o(()=>{nA(x,E)||p.set(E);for(const k of x)E.includes(k)||c.get(k).set(()=>{});for(const k of S){const O=v(k.routeId);O.get()!==k&&O.set(k)}})}return b}var Ca="__TSR_index",b_="popstate",w_="beforeunload",kA=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function fu(t){const e=kA.exec(t);return e?"/"+t.slice(e[0].length):t}function fw(t){return/[\x00-\x1f\x7f]/.test(t)&&(t=t.replace(/[\x00-\x1f\x7f]/g,e=>` 11\r`.includes(e)?"":encodeURIComponent(e))),fu(t)}function CA(t){let e=t.getLocation();const n=new Set,s=u=>{e=t.getLocation(),n.forEach(d=>d({location:e,action:u}))},o=u=>{t.notifyOnIndexChange??!0?s(u):e=t.getLocation()},c=async({task:u,navigateOpts:d,...f})=>{if(d?.ignoreBlocker??!1){u();return}const p=t.getBlockers?.()??[],y=f.type==="PUSH"||f.type==="REPLACE";if(typeof document<"u"&&p.length&&y)for(const g of p){const v=_u(f.path,f.state);if(await g.blockerFn({currentLocation:e,nextLocation:v,action:f.type})){t.onBlocked?.();return}}u()};return{get location(){return e},get length(){return t.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,d,f)=>{const p=e.state[Ca];d=S_(p+1,d),c({task:()=>{t.pushState(u,d),s({type:"PUSH"})},navigateOpts:f,type:"PUSH",path:u,state:d})},replace:(u,d,f)=>{const p=e.state[Ca];d=S_(p,d),c({task:()=>{t.replaceState(u,d),s({type:"REPLACE"})},navigateOpts:f,type:"REPLACE",path:u,state:d})},go:(u,d)=>{c({task:()=>{t.go(u,d?.ignoreBlocker??!1),o({type:"GO",index:u})},navigateOpts:d,type:"GO"})},back:u=>{c({task:()=>{t.back(u?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{t.forward(u?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>e.state[Ca]!==0,createHref:u=>t.createHref(u),block:u=>{if(!t.setBlockers)return()=>{};const d=t.getBlockers?.()??[];return t.setBlockers([...d,u]),()=>{const f=t.getBlockers?.()??[];t.setBlockers?.(f.filter(p=>p!==u))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:s,_getBlockers:()=>t.getBlockers?.()??[]}}function S_(t,e){const n=qp();return{...e,key:n,__TSR_key:n,[Ca]:t}}function PA(t){const e=typeof document<"u"?window:void 0,n=e.history.pushState,s=e.history.replaceState;let o=[];const c=()=>o,u=C=>o=C,d=C=>fw(C),f=(()=>_u(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const C=qp();e.history.replaceState({[Ca]:0,key:C,__TSR_key:C},"")}let p=f(),y,g=!1,v=!1,b=!1,w=!1;const S=()=>p;let x;const E=()=>{x&&(N._ignoreSubscribers=!0,(x[2]?e.history.pushState:e.history.replaceState)(x[1],"",x[0]),N._ignoreSubscribers=!1,x=void 0,y=void 0)},k=(C,G,Y)=>{const ne=!!x;ne||(y=p),p=_u(G,Y),x=[p.href,Y,x?.[2]||C],ne||queueMicrotask(()=>E())},O=C=>{p=f(),N.notify({type:C})},j=async()=>{if(w=!1,v){v=!1;return}const C=f(),G=C.state[Ca]-p.state[Ca],Y=G===1,ne=G===-1,z=!Y&&!ne||g;g=!1;const V=z?"GO":ne?"BACK":"FORWARD",W=z?{type:"GO",index:G}:{type:ne?"BACK":"FORWARD"};if(b)b=!1;else{const se=c();if(typeof document<"u"&&se.length){for(const de of se)if(await de.blockerFn({currentLocation:p,nextLocation:C,action:V})){v=!0,e.history.go(-G),N.notify(W);return}}}p=f(),N.notify(W)},X=C=>{if(w){w=!1;return}let G=!1;const Y=c();if(typeof document<"u"&&Y.length)for(const ne of Y){const z=ne.enableBeforeUnload??!0;if(z===!0){G=!0;break}if(typeof z=="function"&&z()===!0){G=!0;break}}if(G)return C.preventDefault(),C.returnValue=""},N=CA({getLocation:S,getLength:()=>e.history.length,pushState:(C,G)=>k(!0,C,G),replaceState:(C,G)=>k(!1,C,G),back:C=>(C&&(b=!0,w=!0),e.history.back()),forward:C=>{C&&(b=!0,w=!0),e.history.forward()},go:(C,G)=>{g=!0,G&&(b=!0,w=!0),e.history.go(C)},createHref:C=>d(C),flush:E,destroy:()=>{e.history.pushState=n,e.history.replaceState=s,e.removeEventListener(w_,X,{capture:!0}),e.removeEventListener(b_,j)},onBlocked:()=>{y&&p!==y&&(p=y)},getBlockers:c,setBlockers:u,notifyOnIndexChange:!1});return N._ignoreNextBeforeUnload=C=>{w=!1;try{C=new URL(C,e.document.baseURI).href,w=/^https?:/.test(C)&&(!C.includes("#")||C.split("#")[0]!==e.location.href.split("#")[0])}catch{}},e.addEventListener(w_,X,{capture:!0}),e.addEventListener(b_,j),e.history.pushState=function(...C){const G=n.apply(e.history,C);return N._ignoreSubscribers||O("PUSH"),G},e.history.replaceState=function(...C){const G=s.apply(e.history,C);return N._ignoreSubscribers||O("REPLACE"),G},N}function _u(t,e){const n=fw(t),s=n.indexOf("#"),o=n.indexOf("?");if(!e){const c=qp();e={[Ca]:0,key:c,__TSR_key:c}}return{href:n,pathname:n.substring(0,s>0?o>0?Math.min(s,o):s:o>0?o:n.length),hash:s>-1?n.substring(s):"",search:o>-1?n.slice(o,s===-1?void 0:s):"",state:e}}function qp(){return(Math.random()+1).toString(36).substring(7)}function mh(t,e){return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==e||!!t.username||!!t.password}function gh(t){return t.pathname+t.search+t.hash}function R_(t){return t.options.loader||t.options.beforeLoad||t.lazyFn||t.options.component?.preload||t.options.pendingComponent?.preload}function $A(t){return t instanceof Error?{name:t.name,message:t.message}:{data:t}}function Lu(t,e){return{fromLocation:e,toLocation:t,pathChanged:e?.pathname!==t.pathname,hrefChanged:e?.href!==t.href,hashChanged:e?.hash!==t.hash}}function E_({key:t,__TSR_key:e,__TSR_index:n,__hashScrollIntoViewOptions:s,...o}){return o}function hw(t){return t.findIndex(e=>e.status==="error"||e.status==="notFound"||e._notFound)+1}function DA(t,e,n,s,o,c){s&&(e=e.slice(0,s)),o&&(n=n.slice(0,o));for(const u of e){if(c&&t._tx!==c)return;n.some(d=>d.routeId===u.routeId)||t.routesById[u.routeId].options.onLeave?.(u)}for(const u of n){if(c&&t._tx!==c)return;t.routesById[u.routeId].options[e.some(d=>d.routeId===u.routeId)?"onStay":"onEnter"]?.(u)}}var IA=class{constructor(t,e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async n=>(n(),!1),this.update=n=>{const s=this.options;this.options={...s,...n},this.isServer=this.options.isServer??f_??typeof document>"u",this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=PA()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");const o=this.options.basepath??"/",c=this.options.rewrite,u=this.basepath!==o||s?.rewrite!==c||s?.caseSensitive!==this.options.caseSensitive;if(u&&(this.basepath=o,this.rewrite=o!=="/"&&rw(o)?xA(o,this.options.caseSensitive,c):c),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||f_){this.routeTree=this.options.routeTree;let d;d=this.buildRouteTree(),this.setRoutes(d)}if(this.stores)u&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){const d=this.getStoreConfig(this);this.batch=d.batch,this.stores=OA(this.latestLocation,d),wA(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=fA(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&cA(this.options.routeMasks,n.processedTree),{...n,resolvePathCache:vu(1e3)}},this.subscribe=(n,s)=>{const o={eventType:n,fn:s};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{for(const s of this.subscribers)if(s.eventType===n.type)try{s.fn(n)}catch(o){console.error(o)}},this.parseLocation=(n,s)=>{const o=({pathname:f,search:p,hash:y,href:g},v)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(f)){const x=this.options.parseSearch(p),E=this.options.stringifySearch(x);return{href:f+E+y,publicHref:f+E+y,pathname:No(f),external:!1,searchStr:E,search:fi(s?.search,x),hash:No(y.slice(1)),state:ka(s?.state,v)}}const b=ap(this.rewrite,new URL(g,this.origin)),w=this.options.parseSearch(b.search),S=this.options.stringifySearch(w);return b.search=S,{href:b.href.replace(b.origin,""),publicHref:g,pathname:No(fu(b.pathname)),external:!!this.rewrite&&mh(b,this.origin),searchStr:S,search:fi(s?.search,w),hash:No(b.hash.slice(1)),state:ka(s?.state,v)}},c=o(n,n.state),{__tempLocation:u,__tempKey:d}=c.state;if(u&&(!d||d===this.tempLocationKey)){const f=o(u,{...u.state,__tempLocation:void 0,key:c.state.key,__TSR_key:c.state.__TSR_key});return f.maskedLocation=c,f}return c},this.matchRoutes=(n,s,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:s},o):this.matchRoutesInternal(n,s),this.getMatchedRoutes=n=>{const s=Object.create(null),o=dA(hr(n),this.processedTree,!0);return o&&Object.assign(s,o.rawParams),[o?.branch||[this.routesById.__root__],s,o?.route]},this.buildLocation=n=>{{const u=this.staticLocations.get(n);if(u)return u}let s=!1;const o=(u={})=>
11{if(u.href){const se=_u(u.href,{});u={...u,to:ap(this.rewrite,new URL(se.pathname,this.origin)).pathname,search:this.options.parseSearch(se.search),hash:se.hash.slice(1)}}const d=u._fromLocation||this._pendingLocation||this.latestLocation;let f;const p=()=>(s=!0,d),y=()=>(s=!0,f??=this.matchRoutesLightweight(d)),g=u.to?`${u.to}`:".",v=m_(g[0]==="/"?"":u.unsafeRelative==="path"?p().pathname:u.from??y()[1],g,this.options.trailingSlash,this.resolvePathCache),b=this.routesByPath[hr(v)],w=v.includes("$");let S;if(b)S=b._branch??=ow(b);else if(w)S=[];else{const[se,de,M]=this.getMatchedRoutes(v);S=se,this.options.notFoundRoute&&(!M||M.path!=="/"&&de["**"])&&(S=[...S,this.options.notFoundRoute])}const x=w?b?._interpolation??cc(!1,{fullPath:v},0):void 0;let E;for(const se of S){const de=se.options.params?.stringify??se.options.stringifyParams;if(de){const M=y()[3];if(E??=yh(u.params,M),!Xb(E))break;E===M&&(E=Object.assign(uu(),E));try{Object.assign(E,de(E))}catch{}}}E??=yh(u.params,NA(u.params,x)?y()[3]:vh);const k=n.leaveParams?v:fu(No(x?g_(v,x,E,this.pathParamsDecoder):v)),O=jA(S,n._includeValidateSearch),j=()=>{let se=y()[2];if(n._includeValidateSearch&&this.options.search?.strict){const de={};S.forEach(M=>{if(M.options.validateSearch)try{Object.assign(de,hu(M.options.validateSearch,{...de,...se}))}catch{}}),se=de}return se},X=O.length?MA(O,j(),u):u.search===!0?j():typeof u.search=="function"?u.search(j()):u.search||vh,N=this.options.stringifySearch(X),C=u.hash===!0?p().hash:typeof u.hash=="function"?u.hash(p().hash):u.hash||void 0,G=C?`#${C}`:"",Y=u.state?u.state===!0?p().state:typeof u.state=="function"?u.state(p().state):u.state:vh,ne=`${k}${N}${G}`;let z,V,W=!1;if(this.rewrite){const se=new URL(ne,this.origin),de=se.origin,M=dw(this.rewrite,se);z=gh(se),mh(M,de)?(V=M.href,W=!0):V=fu(gh(M))}else z=tA(ne),V=z;return{publicHref:V,href:z,pathname:k,search:X,searchStr:N,state:Y,hash:C??"",external:W,unmaskOnReload:u.unmaskOnReload}},c=o(n);if(n.mask)c.maskedLocation=o({from:n.from,...n.mask});else if(this.options.routeMasks){const u=lA(c.pathname,this.processedTree);if(u){const d=Object.assign(uu(),u.rawParams),{from:f,params:p,...y}=u.route,g=yh(p,d);c.maskedLocation=o({from:n.from,...y,params:g})}}return!s&&n._fromLocation&&!c.maskedLocation&&this.staticLocations.set(n,c),c},this.commitLocation=async({viewTransition:n,ignoreBlocker:s,...o})=>{const c=o.maskedLocation??o;if(c.external)return T_(this,c.publicHref,{replace:o.replace,ignoreBlocker:s});let u;const d=hr(this.latestLocation.href)===hr(o.href)&&Qn(E_(o.state),E_(this.latestLocation.state)),f=this._commitPromise;let p;const y=new Promise(g=>{p=g});if(y.resolve=()=>{p(),f?.resolve()},this._commitPromise=y,d)this.load();else{let{maskedLocation:g,hashScrollIntoView:v,...b}=o;g&&(b={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state={...b.state,__hashScrollIntoViewOptions:v??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=n,u=o.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:s}),this.history.subscribers.size||this.load({action:{type:u}})}return this._scroll.n=o.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:n,resetScroll:s,hashScrollIntoView:o,viewTransition:c,ignoreBlocker:u,...d}={})=>{const f=this.buildLocation({...d,_includeValidateSearch:!0});this._pendingLocation=f;const p=this.commitLocation({...f,viewTransition:c,replace:n,resetScroll:s,hashScrollIntoView:o,ignoreBlocker:u});return queueMicrotask(()=>{this._pendingLocation===f&&(this._pendingLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:s,href:o,publicHref:c,...u})=>{const d=o?ic(o):void 0;if(d||s){if(n!==void 0||!o){const p=this.buildLocation({to:n,...u}),y=p.maskedLocation??p;o??=y.publicHref,c??=y.publicHref}return T_(this,!d&&c?c:o,u)}return this.buildAndCommitLocation({...u,href:o,to:n,_isNavigate:!0})},this.load=async n=>{this.updateLatestLocation(),n?.action&&(this._scroll.h=n.action.type==="PUSH"||n.action.type==="REPLACE"),await GA(this,n)},this.startViewTransition=n=>
11{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document.startViewTransition=="function"){let o;if(typeof s=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const c=this.latestLocation,u=this.stores.resolvedLocation.get(),d=typeof s.types=="function"?s.types(Lu(c,u)):s.types;if(d===!1)return n();o={update:n,types:d}}else o=n;return document.startViewTransition(o).updateCallbackDone}return n()},this.invalidate=n=>{const s=this._committed,o=n?.filter,c=this._preloads,u=new Set,d=y=>{(!o||o(y))&&u.add(y.id)};s.forEach(d),this._cache.forEach(d),c?.forEach(y=>y.forEach(d)),this._tx?.[3].forEach(d);const f=[];for(const[y,g]of c??[])g.some(v=>u.has(v.id))&&(c.delete(y),f.push(y));const p=y=>{if(u.has(y.id)){const g=this.routesById[y.routeId],v={...y,invalid:!0,...(n?.forcePending||y.status==="error"||y.status==="notFound")&&R_(g)?{status:"pending",error:void 0}:void 0};return y._flight=void 0,v}return y};this._committed=s.map(p);for(const[y,g]of this._cache)u.has(y)&&(g.invalid=!0,n?.forcePending&&(g.status="pending"));for(const y of u){const g=this._flights?.get(y);this._flights?.delete(y),g&&!g[2]&&f.push(g[1])}for(const y of f)y.abort();return this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{const s=n.options;let o=n.headers.get("Location")||s.href;if(!o){const u=this.buildLocation(s);o=(u.maskedLocation??u).publicHref||"/"}let c;if(ew.test(o)||(c=ic(o))&&!this.protocolAllowlist.has(c))throw new Error("Redirect blocked: unsafe protocol");if(c==="http:"||c==="https:"){const u=new URL(o);u.pathname.startsWith("//")?o=u.href:mh(u,this.origin)||(o=gh(u),c=void 0)}return c&&(s.reloadDocument=!0),s.href=o,n.headers.set("Location",o),n},this.clearCache=n=>{const s=this._cache,o=this._preloads,c=n?.filter,u=[],d=[];for(const[p,y]of s)(!c||c(y))&&(d.push(p),u.push(y));const f=[];for(const[p,y]of o??[])(!c||y.some(c))&&(f.push(p),u.push(...y));for(const p of d)s.delete(p);for(const p of f)o.delete(p);for(const p of u){const y=p._flight;p._flight=void 0,y&&!--y[2]&&(this._flights?.get(p.id)===y&&this._flights.delete(p.id),f.push(y[1]))}for(const p of f)p.abort()},this.loadRouteChunk=Br,this.preloadRoute=n=>KA(this,n),this.matchRoute=(n,s)=>{const o={...n,to:n.to?m_(n.from||"",n.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:n.params||{},leaveParams:!0},c=this.buildLocation(o),u=this.stores.status.get()==="pending";if(s?.pending&&!u)return!1;const d=s?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),f=uA(c.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,d.pathname,this.processedTree);return!f||n.params&&!Qn(f.rawParams,n.params,!0)?!1:s?.includeSearch??!0?Qn(d.search,c.search,!0)?f.rawParams:!1:f.rawParams},this.getStoreConfig=e,t.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=rA(t.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??EA,parseSearch:t.parseSearch??RA,protocolAllowlist:t.protocolAllowlist??JT}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(t){Object.assign(this,t),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;const e=this.options.notFoundRoute;e&&(e.init(99999999999),this.routesById[e.id]!==e&&(e._interpolation=cc(!1,e,0)),this.routesById[e.id]=e)}matchRoutesInternal(t,e){const[n,s,o]=this.getMatchedRoutes(t.pathname);let c=n,u=!1;(o?o.path!=="/"&&s["**"]:hr(t.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const d=u?UA(this.options.notFoundMode,c):void 0,f=new Array(c.length),p=this._committed,y=(v,b)=>{const w=p[b];return w?.routeId===v.id?w:v===this.options.notFoundRoute?p.find(S=>S.routeId===v.id):void 0};let g;for(let v=0;v<c.length;v++){const b=c[v],w=f[v-1];let S,x,E;{const W=w?.search??t.search,se=w?._strictSearch??void 0;try{const de=hu(b.options.validateSearch,{...W})??void 0;S={...W,...de},x={...se,...de}}catch(de){let M=de;if(de instanceof bu||(M=new bu(de.message,{cause:de})),e?.throwOnError)throw M;S=W,x={},E=M}}let k="",O="";try{k=b.options.loaderDeps?.({search:S})??"",O=k&&JSON.stringify(k)||""}catch(W){if(e?.throwOnError)throw W;E??=W}const j=uu(),X=b._interpolation?g_(b.fullPath,b._interpolation,s,this.pathParamsDecoder,j):b.fullPath,N=b.id+X+O,C=y(b,v),G=this._cache.get(N)??(C?.id===N?C:void 0);g=G?._strictParams??Object.assign(j,g);let Y;if(!G)try{A_(b,g)}catch(W){if(vs(W)||Up(W)?Y=W:Y=new LA(W.message,{cause:W}),e?.throwOnError)throw Y}const ne=C?"stay":"enter";let z;if(G)z={...G,cause:ne,search:fi(C?C.search:G.search,S),_strictSearch:x,searchError:E};
11else{const W=R_(b)?"pending":"success";z={id:N,ssr:b.options.ssr,index:v,routeId:b.id,params:C?.params??g,_strictParams:g,pathname:X,updatedAt:Date.now(),search:C?fi(C.search,S):S,_strictSearch:x,searchError:E,status:W,isFetching:!1,error:void 0,paramsError:Y,context:{},abortController:e?._controller??new AbortController,cause:ne,loaderDeps:C?ka(C.loaderDeps,k):k,invalid:!1,preload:!1,staticData:b.options.staticData||{},fullPath:b.fullPath}}const V=d===b.id;z._notFound&&!V&&(z.error=void 0),z._notFound=V,f[v]=z}for(let v=0;v<f.length;v++){const b=f[v];b.params=b.cause==="stay"?fi(b.params,g):g,e?._controller&&(b.context={})}return f}matchRoutesLightweight(t){const e=$a(this.stores.ids.get()),n=e?this.stores.byRoute.get(e).get():void 0,s=n?.id,o=this.lightweightCache.get(t);if(o&&o[0]===s)return o[1];const[c,u]=this.getMatchedRoutes(t.pathname),d=$a(c),f={...t.search};for(const v of c)try{Object.assign(f,hu(v.options.validateSearch,f))}catch{}const p=n&&n.routeId===d.id&&n.pathname===t.pathname;let y;if(p)y=n.params;else{const v=u;for(const b of c)try{A_(b,v)}catch{}y=v}const g=[c,d.fullPath,f,y];return this.lightweightCache.set(t,[s,g]),g}};async function T_(t,e,{replace:n,ignoreBlocker:s}){if(!tw(e,t.protocolAllowlist)){if(!s){const o=t.history._getBlockers();for(const c of o)if(c?.blockerFn&&await c.blockerFn({currentLocation:t.history.location,nextLocation:t.history.location,action:n?"REPLACE":"PUSH"}))return}t.history._ignoreNextBeforeUnload?.(e),n?window.location.replace(e):window.location.href=e}}var bu=class extends Error{},LA=class extends Error{};function hu(t,e){if(t==null)return{};if("~standard"in t){const n=t["~standard"].validate(e);if(n instanceof Promise)throw new bu("Async validation not supported");if(n.issues)throw new bu(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function yh(t,e){if(t===void 0||t===!0)return e;const n=Object.create(null);return t===!1||t===null?n:typeof t=="function"?(Object.assign(n,e),Object.assign(n,t(n))):Object.assign(n,e,t)}function NA(t,e){return typeof t=="function"?!0:!e||t===!1||t===null?!1:t===void 0||t===!0||e.some(n=>typeof n!="string"&&!Bp.call(t,n[1]))}const vh=Object.freeze({});function jA(t,e){const n=[];for(let s=0;s<t.length;s++){const o=t[s].options;if("search"in o)o.search?.middlewares&&n.push(...o.search.middlewares);else if(o.preSearchFilters||o.postSearchFilters){const u=({search:d,next:f})=>{const p=f(o.preSearchFilters?o.preSearchFilters.reduce((y,g)=>g(y),d):d);return o.postSearchFilters?o.postSearchFilters.reduce((y,g)=>g(y),p):p};n.push(u)}const c=o.validateSearch;if(e&&c){const u=({search:d,next:f,meta:p})=>{const y=f(d);try{const g=hu(c,y);if(p&&g)for(const v in g)v in y||(p.defaulted||=new Map).set(v,g[v]);return{...y,...g}}catch{}return y};n.push(u)}}return n}function MA(t,e,n){const s=(o,c,u)=>{if(o>=t.length){if(!n.search)return{};if(n.search===!0)return c;const f=Qb(n.search,c);return u&&(u.explicit=f),f}const d=(f,p)=>{if(p){const y=u||{};return{search:s(o+1,f,y),meta:y}}return s(o+1,f,u)};return t[o]({search:c,next:d,meta:u})};return s(0,e)}function UA(t,e){if(t!=="root"){let n;for(let s=e.length-1;s>=0;s--){const o=e[s];if(o.options.notFoundComponent)return o.id;n||=o.children&&o.id}if(n)return n}return ki}function A_(t,e){const n=t.options.params?.parse??t.options.parseParams;n&&Object.assign(e,n(e))}function sp(t,e){return t.options[e]?.preload?.()}function BA(t,e){const n=sp(t,"component");let s=sp(t,"pendingComponent");return e&&(s?s=s.then(e):e()),n&&s?Promise.all([n,s]).then(()=>{}):n??s}function Br(t,e,n){const s=()=>e===!1?void 0:e?sp(t,e):BA(t,n),o=t._lazy;if(o)return o===!0?s():o.then(s);if(!t.lazyFn)return s();const c=t.lazyFn().then(u=>{{const{id:d,...f}=u.options;Object.assign(t.options,f),t._lazy=!0}},u=>{throw t._lazy=void 0,u});return t._lazy=c,c.then(s)}function Hp(t){const e=t.findIndex(n=>n.status!=="success"||n._notFound)+1;return e&&e<t.length?t.slice(0,e):t}function pw(t){let e=t.length;for(let n=0;n<e;n++){const s=t[n];if(s._assetEnd!==void 0){e=Math.min(e,Math.max(n+1,s._assetEnd));continue}if(s.status!=="success"||s._notFound){e=n+1;break}}return e<t.length?t.slice(0,e):t}const pr=0,zr=1,Nu=2,Jt=3,Da=[4];function lc(t){return typeof t[0]=="number"}function qr(t,e){return e.aborted?Promise.race([Promise.reject(e),t]):new Promise((n,s)=>{const o=()=>s(e);e.addEventListener("abort",o,{once:!0}),Promise.resolve(t).then(n,s).then(()=>e.removeEventListener("abort",o))})}function Jn(t,e){return t.routesById[e.routeId]}function uc(t,e,n){return Up(t)?[Jt,t]:vs(t)?(t.routeId||=n,[Nu,t]):e?(typeof t?.then=="function"&&(t=new Error("A Promise was thrown",{c
11ause:t})),[zr,t]):[pr,t]}function Vp(t,e){let n=uc(e,!0,t.id);if(n[0]!==zr)return n;try{t.options.onError?.(n[1])}catch(s){n=uc(s,!0,t.id)}return n}function tc(t,e,n,s,o){return o[0].signal.aborted?Da:Kp(t,e,n,Vp(n,s),o)}async function zA(t,e,n,s,o,c){const[u,d]=e,f=n[0].signal,p=!!n[3];for(let y=n[6]??0;y<s;y++){const g=d[y],v=Jn(t,g);g.abortController=n[0];const b=d[y-1]?.context??t.options.context??{},w={params:g.params,location:u,navigate:k=>t.navigate({...k,_fromLocation:u}),buildLocation:t.buildLocation,cause:p?"preload":g.cause,abortController:n[0],preload:p,matches:d,routeId:v.id};try{const k=g._ctx||=v.options.context?v.options.context({...w,deps:g.loaderDeps,context:b})||{}:void 0;g.context={...b,...k}}catch(k){return Mr(t,g),[y,tc(t,e,v,k,n)]}if(f.aborted)return[y,Da];const S=g.paramsError??g.searchError;if(S!==void 0)return Mr(t,g),[y,tc(t,e,v,S,n)];const x=v.options.beforeLoad;if(!x)continue;const E=g.status;y>=c&&(g.status="pending",n[7]?.());try{dc(t,g,"beforeLoad",n[0]);const k=x({...w,search:g.search,context:g.context,...t.options.additionalContext}),O=await(typeof k?.then=="function"?qr(k,f):k);if(f.aborted)return[y,Da];const j=Kp(t,e,v,uc(O,!1,v.id),n);if(j[0]!==pr)return Mr(t,g),[y,j];g.context={...g.context,...O}}catch(k){return Mr(t,g),[y,tc(t,e,v,k,n)]}finally{g.status=E,dc(t,g,!1,n[0])}}o()}function Fp(t,e,n){if(!(!n||--n[2])){if(t._flights?.get(e.id)===n){const s=t._tx;if(s&&!s[0].signal.aborted&&!s[3].includes(e)&&s[3].some(o=>o.id===e.id)&&s[3].some(o=>o.isFetching==="beforeLoad"))return;t._flights.delete(e.id)}return n[1]}}function Mr(t,e){const n=e._flight;e._flight=void 0,Fp(t,e,n)?.abort()}function Vt(t,e,n,s){const o=[];for(const c of e)if(!n?.includes(c)){const u=c._flight;if(c._flight=void 0,s&&u?.[2]===1&&t._flights?.get(c.id)===u&&n?.some(d=>d.id===c.id))u[2]=0;else{const d=Fp(t,c,u);d&&o.push(d)}}for(const c of o)c.abort()}function Gp(t){for(const e of t){const n=e._flight;n&&n[2]++}}function dc(t,e,n,s){if(e.isFetching=n,s&&t._tx?.[0]!==s)return;const o=t.stores.byRoute.get(e.routeId),c=o?.get();c?.id===e.id&&o.set({...c,isFetching:n})}function mw(t,e,n,s,o,c,u){const d=e[0];return{params:n.params,location:d,navigate:f=>t.navigate({...f,_fromLocation:d}),cause:u?"preload":n.cause,abortController:o,preload:u,deps:n.loaderDeps,parentMatchPromise:c,context:n.context,route:s,...t.options.additionalContext}}async function x_(t,e,n,s,o,c,u){const d=u[0],f=d.signal;if(f.aborted)return Da;if(!o)return[pr,void 0];let p=n._flight;dc(t,n,"loader",d);try{if(!p){const y=new AbortController;p=[Promise.resolve().then(()=>o(mw(t,e,n,s,y,c,!!u[3]))).then(g=>uc(g,!1,s.id),g=>uc(g,!0,s.id)).then(g=>(g[0]!==pr&&t._flights?.get(n.id)===p&&(t._flights.delete(n.id),p[2]||y.abort()),g[0]===zr&&p[2]?Vp(s,g[1]):g)),y,1],(t._flights??=new Map).set(n.id,p)}return n._flight=p,n.abortController=p[1],Kp(t,e,s,await qr(p[0],f),u)}catch(y){if(y!==f||!f.aborted)throw y;return Mr(t,n),Da}finally{dc(t,n,!1,d)}}function O_(t,e,n){e[0]!==Jt&&(t.status="success",t.error=void 0,e[0]===pr?(t.loaderData=e[1],t.invalid=!1,t.updatedAt=Date.now(),t.preload=n):t.invalid=!0)}function gw(t,e,n){const s=t._cache.get(e.id);if(s!==n||t._committed.some(c=>c.id===e.id&&c._flight===e._flight))return;const o={...e,_notFound:void 0,context:{}};o._flight&&o._flight[2]++,t._cache.set(e.id,o),s&&Mr(t,s)}function k_(t,e){return e[0]===zr||e[0]===Nu?{...t,status:e[0]===zr?"error":"notFound",error:e[1],_flight:void 0}:t}function qA(t,e,n,s,o,c,u){const d=e[1][n],f=Jn(t,d),p=!!c[3],y=t._cache.get(d.id);let g,v=!1,b;try{if(d.status==="success"&&(g=f.options.shouldReload,typeof g=="function"&&(g=g(mw(t,e,d,f,c[0],o,p))),c[0].signal.aborted&&(b=Da)),!b)if(d.status!=="success")v=!0;else{const V=p||d.preload?f.options.preloadStaleTime??t.options.defaultPreloadStaleTime??3e4:f.options.staleTime??t.options.defaultStaleTime??0;v=!!(d.invalid||g||g===void 0&&Date.now()-d.updatedAt>=V&&(c[5]||d.cause==="enter"||c[2].some(W=>W.routeId===d.routeId&&W.id!==d.id)))}}catch(V){d.invalid=!0,Mr(t,d),b=tc(t,e,f,V,c)}const w=f.options.loader,S=typeof w=="function",x=S?w:w?.handler,E=!p||f.options.preload!==!1;let k=E&&w?t._flights?.get(d.id):void 0;k===d._flight||b?k=void 0:k&&!v&&!p&&g===void 0?v=!0:v||(k=void 0);const O=!!(w&&v&&d.status==="success"&&!p&&!c[4]&&((S?void 0:w.staleReloadMode)??t.options.defaultStaleReloadMode)!=="blocking"),j=v&&E,X=j&&!O&&(d.status!=="success"||!!w),N=n>
11=u?c[7]:void 0,C=f.lazyFn&&f._lazy!==!0?N:void 0;if(j&&!w&&(d.invalid=!1,d.updatedAt=Date.now()),k&&k[2]++,X){const V=d._flight;d._flight=k,Fp(t,d,V)?.abort(),n>=u&&(d.status="pending"),N?.()}j||(d.isFetching=!1);const G=!b&&X?x_(t,e,d,f,x,o,c).then(V=>(O_(d,V,p),V[0]===pr&&(w&&!c[0].signal.aborted&&gw(t,d,y),n>=u&&(d.status="pending")),V)):Promise.resolve(b??[pr,d.loaderData]),Y=(async()=>{try{const W=Br(f,void 0,C);W&&await qr(W,c[0].signal)}catch(W){if(!e[1].some((se,de)=>de<=n&&(se.status==="error"||se.status==="notFound"||se._notFound)))return[n,tc(t,e,f,W,c)]}const V=await G;X&&V[0]===pr&&d.status==="pending"&&!c[0].signal.aborted&&(d.status="success",N?.())})();if(s.push([n,G,Y]),!O)return G.then(V=>k_(d,V));const ne={...d,status:"pending",preload:!1,_flight:k};d.invalid=!1,d.isFetching="loader";const z=x_(t,e,ne,f,x,o,c).then(V=>(d.isFetching=!1,O_(ne,V,!1),V));return(e[2]??=[]).push([n,z,Y,ne]),z.then(V=>k_(ne,V))}async function ip(t,e,n,s,o=0){const c=n?.[1][1];let u=c?.routeId?e.findIndex(d=>d.routeId===c.routeId):n?.[0]??e.length-1;u<0&&(u=0);for(let d=u;d>=0;d--){const f=Jn(t,e[d]);try{const p=Br(f,!1);p&&await qr(p,s)}catch(p){if(p===s&&s.aborted)throw p}if(f.options.notFoundComponent)return d}return c?.routeId?u:o}function gs(t,e){e[2]&&(Vt(t,e[2].map(n=>n[3])),e[2]=void 0)}async function C_(t,e,n,s){let o;try{await Promise.all(t.map(c=>c[1].then(async u=>{const d=c[0];if(!(s&&d>=await s)){if(u[0]>=Jt)throw[d,u];!o&&u[0]!==pr&&(o=[d,u],await Promise.all((n??[]).map(f=>{if(!(f[0]<=d))return f[1].then(p=>{if(p[0]===Jt)throw[f[0],p]})})))}})))}catch(c){return c}return e??o}function Kp(t,e,n,s,o,c){for(;s[0]===Jt;){const u=s[1],d=u.options;try{if((d.href||u.headers.has("Location"))&&(t.resolveRedirect(u),d.reloadDocument)||(d.reloadDocument?o[3]:o[1]>=20))return s;const f=t.buildLocation({...d,_fromLocation:e[0],_includeValidateSearch:!0}),p=f.maskedLocation??f;if(p.external){const y=u.clone();return y.options={...d},y.headers.set("Location",p.publicHref),t.resolveRedirect(y),o[3]?[Jt,y]:[Jt,y,p]}return[Jt,u,f]}catch(f){s=c?[zr,f]:Vp(n,f),c=!0}}return s}async function yw(t,e,n,s,o,c){const u=e[1];let d=await o,f=!1;const p=u.findIndex(b=>b._notFound),y=b=>b[1][0]===Nu?ip(t,u,b,s.signal):b[0];let g=p<0?u.length:p;if((d?.[1][0]??0)>=Jt)g=0;else if(d){g=d[2]??=await y(d);for(const b of n){if(b[0]>=g)break;const w=await b[1];if(w[0]!==pr&&w[0]<Jt&&!("loaderData"in u[b[0]])){d=[b[0],w],g=d[2]=await y(d);break}}}for(const b of n){if(b[0]>=g)break;const w=await b[2];if(w){d=w;break}}if((d?.[1][0]??0)>=Jt){const b=d[1];if(b[0]!==Jt||b[1].options.reloadDocument||b[2])return gs(t,e),b;f=!0,d=[0,[zr,new Error("Too many redirects")]]}const v=d?d[2]??await y(d):p;if(v>=0){const b=d?.[1],w=b?.[0],S=u[v],x=b?.[1],E=()=>{b&&(S._notFound=void 0,w===zr?S.status="error":(x.routeId=S.routeId,S.routeId===t.routeTree.id?(S.status="success",S._notFound=!0):S.status="notFound"),S.error=x,S.isFetching=!1)};E(),b||c?.();const k=Jn(t,S);try{await qr(b?Promise.resolve().then(()=>Br(k,w===zr?"errorComponent":"notFoundComponent")):Promise.all([Br(k),Br(k,"notFoundComponent")]),s.signal)}catch(O){if(O===s.signal&&s.signal.aborted)return gs(t,e),Da}b?f&&(s.abort(),await Promise.all([...n.map(O=>O[1]),...n.map(O=>O[2]),...(e[2]??[]).map(O=>O[1])]),gs(t,e),Vt(t,u),E()):S.status="success"}return e}async function Yp(t,e,n,s=0,o=e[1].length){const c=e[1];for(let u=s;u<o;u++){const d=c[u],f=Jn(t,d).options;if(f.head||f.scripts)try{const p={ssr:t.options.ssr,matches:c,match:d,params:d.params,loaderData:d.loaderData},[y,g]=await qr(Promise.all([f.head?.(p),f.scripts?.(p)]),n);d.meta=y?.meta,d.links=y?.links,d.headScripts=y?.scripts,d.styles=y?.styles,d.scripts=g}catch(p){if(p===n&&n.aborted)break;console.error(p)}if(d.status!=="success"||d._notFound)break}return e}async function vw(t,e,n,s){const o=[e,n],c=s[0].signal;let u;try{const d=t.stores.matches.get();let f=n.findIndex(E=>E._notFound);if(t.options.notFoundMode!=="root"&&f>=0){const E=await ip(t,n,void 0,c,f);n[f]._notFound=void 0,n[E]._notFound=!0,f=E}let p=f<0?n.length:f+1,y=0;for(;y<p&&y!==f;){const E=n[y],k=s[2][y],O=d[y];if(k?.id!==E.id||k.status!=="success"||E.preload||O?.id!==E.id||O.status!=="success"||(y++,k._notFound||O._notFound))break}
11const g=[],v=s[6]??0;let b=v?Promise.resolve(n[v-1]):void 0;const w=()=>{for(let E=v;E<p&&!c.aborted;E++)b=qA(t,o,E,g,b,s,y)},S=await zA(t,o,s,p,w,y);if(S){if(s[4]=!0,p=S[0],S[1][0]===Nu){const E=await ip(t,n,S,c);S[2]=E,p=Math.min(p,E+1)}else S[1][0]>=Jt&&(p=0);w()}if(!c.aborted&&!s[3]){const E=[];for(const[k,O]of t._flights??[])O[2]||(t._flights.delete(k),E.push(O[1]));for(const k of E)k.abort()}const x=yw(t,o,g,s[0],C_(g,S,o[2]),s[7]);o[2]?.length&&(o[3]=C_(o[2],void 0,void 0,x.then(E=>lc(E)?0:Hp(n).length,()=>0))),u=await x}catch(d){if(gs(t,o),d===c&&c.aborted)return Da;throw d}return lc(u)?u:Yp(t,u,c,s[6]===n.length?s[6]:0)}function op(t,e){if(t._tx!==e)return;const n=e[3],s=t.stores.matches.get();let o=t._pending;for(let c=0;c<n.length;c++){const u=n[c],d=u.status==="success"&&!u._notFound,f=s[c]?.id===u.id&&s[c]?.status==="pending";if(d&&!f)continue;const p=Jn(t,u),y=d||u.invalid?0:p.options.pendingMs??t.options.defaultPendingMs,g=p.options.pendingComponent??t.options.defaultPendingComponent;if(!g||typeof y!="number"||y===1/0){o&&(o[0]=e,o[2]=0,o[4]=!0);return}const v=p.options.pendingMinMs??t.options.defaultPendingMinMs??0;let b=!1;if(o?.[1]===u.id?(b=o[0]!==e,o[0]=e):(clearTimeout(o?.[3]),t._pending=o=void 0),o||(t._pending=o=[e,u.id,f?Date.now()+v:e[4]+y,void 0,f||void 0,g]),o[4]&&!b&&o[5]===g)return;if(o[5]=g,!o[4]){clearTimeout(o[3]);const x=o[2]-Date.now();if(x>0){o[3]=setTimeout(()=>op(t,e),x);return}o[2]=0}const w=n.map(x=>({...x,_flight:void 0}));w[c].status="pending";const S=o[4]=t.startTransition(()=>t.stores.setMatches(w),w).then(x=>(x&&t._pending===o&&o[4]===S&&!o[2]&&(o[2]=Date.now()+v),x));return}}function jo(t,e){const n=t._pending;(t._tx===e||!t._tx?.[3].some(s=>s.id===n?.[1]))&&(clearTimeout(n?.[3]),t._pending=void 0)}async function P_(t,e){const n=t._pending;if(!n)return;clearTimeout(n[3]);const s=n[2]-Date.now();if(!n[4]||s<=0||!Hp(e[3]).some(c=>c.id===n[1]))return;let o;try{await qr(new Promise(c=>{o=setTimeout(c,s)}),e[0].signal)}catch{}clearTimeout(o)}function _w(t,e){t._committed=e,t.stores.setMatches(e)}function HA(t,e,n,s){const o=t._committed,c=t._lifecycleEnd,u=t._cache;for(const y of n)y.preload=!1,s&&(y._assetEnd=void 0);const d=Hp(n).length,f=new Map;{const y=Date.now(),g=new Set;for(let v=0;v<n.length;v++){const b=n[v];(v<d||b.status==="success")&&g.add(b.id)}for(const v of[...o,...u.values()]){if(v.status!=="success"||g.has(v.id))continue;const b=Jn(t,v);!b.options.loader||y-v.updatedAt>=(v.preload?b.options.preloadGcTime??t.options.defaultPreloadGcTime??3e5:b.options.gcTime??t.options.defaultGcTime??3e5)||f.set(v.id,u.get(v.id)===v?v:{...v,_flight:void 0,isFetching:!1,context:{}})}}e[3]=[],t._cache=f;const p=t._lifecycleEnd=hw(n);_w(t,n),Vt(t,[...u.values(),...o].filter(y=>y._flight&&f.get(y.id)!==y),n),DA(t,o,n,c,p,e)}async function Yl(t,e){let n=t._tx;for(;n&&n!==e;)e=n,await n[5],n=t._tx}function bw(t,e,n){const s=n[1].options,o=n[2];if(!o)return t.navigate({...s,replace:!0,ignoreBlocker:!0});if(s.reloadDocument)return t.navigate({href:(o.maskedLocation??o).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});o._redirects=e[1]+1,t._pendingLocation=o;const c=t.commitLocation({...o,viewTransition:s.viewTransition,replace:!0,resetScroll:s.resetScroll,hashScrollIntoView:s.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{t._pendingLocation===o&&(t._pendingLocation=void 0)}),c}async function VA(t,e,n,s,o){const c=n.map(f=>({...f}));Gp(c);for(const f of s)Mr(t,c[f[0]]),c[f[0]]=f[3];const u=[e[2],c];let d;try{d=await yw(t,u,s,e[0],o)}catch(f){throw Vt(t,c),f}if(lc(d)){Vt(t,c),d[0]===Jt&&t._tx===e&&t._committed===n&&await bw(t,e,d);return}if(await Yp(t,d,e[0].signal),t._tx!==e||t._committed!==n){Vt(t,c);return}for(const f of c){const p=t._cache.get(f.id);p?._flight&&p._flight===f._flight&&(t._cache.delete(f.id),Mr(t,p))}_w(t,c),Vt(t,n,c)}async function FA(t,e,n,s,o,c){const u=await vw(t,e[2],e[3],[e[0],e[1],t._committed,void 0,o,n,c,s]);if(lc(u)){const g=u[0]===Jt&&t._tx===e;if((!g||u[1].options.reloadDocument)&&jo(t,e),Vt(t,e[3]),e[3]=[],!g)return;if(t._tx!==e){jo(t,e);return}await bw(t,e,u);return}const d=u[1];if(t._tx===e&&await P_(t,e),t._tx!==e){jo(t,e),Vt(t,d),gs(t,u);return}const f=e[2],p=Lu(f,t.stores.resolvedLocation.get()),y=u[2];await t.startViewTransition(async()=>
11{if(t._tx===e&&await P_(t,e),t._tx!==e){jo(t,e),Vt(t,d),gs(t,u);return}const g=()=>{jo(t,e),HA(t,e,d,c),t._tx===e&&(t.emit({type:"onLoad",...p}),t._tx===e&&t.emit({type:"onBeforeRouteMount",...p}))},v=await t.startTransition(g,d);if(t._tx!==e){gs(t,u);return}y?.length&&VA(t,e,d,y,u[3]).catch(console.error),t.batch(()=>{t.stores.resolvedLocation.set(f),t.stores.status.set("idle"),t._tx===e&&t.emit({type:"onResolved",...p}),v&&t._tx===e&&t.emit({type:"onRendered",...p})}),t._tx===e&&(t._commitPromise?.resolve(),t._commitPromise=void 0)})}async function GA(t,e){const n=t._tx,s=t.stores.resolvedLocation.get(),o=s??t.stores.location.get(),c=t.latestLocation,u=t._pendingLocation,d=u?.href===c.href?u._redirects??0:0,f=t._handoff,p=f?.[0](),y=new AbortController,g=t._preflight;if(t._preflight=y,p||f?.[1](),g?.abort(),!y.signal.aborted){const j=Lu(c,s);t.emit({type:"onBeforeNavigate",...j}),y.signal.aborted||t.emit({type:"onBeforeLoad",...j})}if(y.signal.aborted){await Yl(t,n);return}const v=o.href===c.href;let b=y;const w=t.matchRoutes(c,{_controller:y});Gp(w);const S=p?f[1](w):void 0;if(S?b=p:p?.abort(),y.signal.aborted){Vt(t,w),await Yl(t,n);return}t._preflight=void 0;let x;const E=()=>FA(t,O,v,()=>op(t,O),e?.sync,S),k=e?.sync?new Promise(j=>x=j):Promise.resolve().then(E),O=[b,d,c,w,Date.now(),k.then(()=>Yl(t,O))];if(t._tx=O,n){for(const j of t.stores.matches.get()){if(t._tx!==O)break;j.isFetching&&dc(t,j,!1)}n[0].abort(),Vt(t,n[3],O[3],!0)}if(t._tx!==O){Vt(t,O[3]),O[3]=[],x?.(),await Yl(t,O);return}t.batch(()=>{t.stores.status.set("pending"),t.stores.location.set(c)}),(S||!t._committed.length&&w[0]?.status!=="success"&&!w.some(j=>j._notFound))&&op(t,O),x?.(E()),await O[5]}async function KA(t,e){let n=t.buildLocation(e);for(let s=0;;s++){const o=t._committed,c=new AbortController;let u,d,f;try{try{u=t.matchRoutes(n,{_controller:c}),Gp(u),d=(t._preloads??=new Map).set(c,u),f=await vw(t,n,u,[c,s,o,!0])}finally{d&&(d=d.delete(c),Vt(t,u)),c.abort()}if(!lc(f))return f[1];if(!d||f.length<3)return;n=f[2]}catch(p){vs(p)||console.error(p);return}}}async function YA(t){const e=window.$_TSR,n=t.options.serializationAdapters;n?.length&&(e.t=new Map(n.map(z=>[z.key,z.fromSerializable])),e.buffer.forEach(z=>z())),e.initialized=!0;const s=e.router;t.ssr={manifest:s.manifest},t.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const o=s.matches,c=new AbortController,u=t._preflight;t._preflight=c,u?.abort();const d=()=>t._preflight===c;let f,p,y,g;try{if(await qr(t.options.hydrate?.(s.dehydratedData),c.signal),!d())return;const z=t.history.location;y=z.href,g=z.state,t.updateLatestLocation(),f=t.latestLocation,t.stores.location.set(f),p=t.matchRoutes(f,{_controller:c})}catch(z){if(d()&&(t._preflight=void 0),c.abort(z),z!==c.signal)throw z}if(!d())return;const v=[];let b,w=0;const S=z=>{w=Math.min(w,z+1);const V=v.splice(z);for(const W of V)Jn(t,W).options.loader&&(W.status==="success"||!W.invalid&&"loaderData"in W)&&gw(t,{...W,status:"success",error:void 0,preload:!0},t._cache.get(W.id));Vt(t,V)},x=o.length>p.length?p.findIndex(z=>z._notFound)+1:o.length;let E=!1;for(let z=0;z<x;z++){const V=p[z],W=o[z];if(typeof W.i!="string"||KT(W.i)!==V.id){b??=z;break}w=z+1;const se=Jn(t,V);if(("l"in W||W.s==="success"&&W.e===void 0&&se.options.loader)&&(V.loaderData=W.l),V.status=W.s,V.ssr=W.ssr,se.options.ssr=V.ssr,V.updatedAt=W.u,V.error=W.e,V._notFound||=W.g,V.status==="error"||V.status==="notFound"||V._notFound){E=!0,v.push(V),(V.ssr===!1||V.ssr==="data-only")&&(b??=z);break}if(V.status==="pending"){b??=z;break}v.push(V),V.ssr==="data-only"&&(b??=z)}!E&&v.length===x&&x<p.length&&(b=x);const k=v.map(async z=>{try{const V=Jn(t,z);return await(z._notFound?Promise.all([Br(V),Br(V,"notFoundComponent")]):Br(V,z.status==="error"?"errorComponent":z.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let O=0;try{for(;O<k.length&&await qr(k[O],c.signal);)O++}catch{return}if(!d())return;O<v.length&&S(O);const j=Math.max(b===v.length?v.length+1:v.length,O<k.length?O:w);for(let z=0;z<j;z++){const V=p[z],W=Jn(t,V),se=p[z-1]?.context??t.options.context??{};let de;if(W.options.context){try{de=V._ctx=W.options.context({deps:V.loaderDeps,params:V.params,context:se,location:f,navigate:M=>t.navigate({...M,_fromLocation:f}),buildLocation:t.buildLocation,cause:V.cause,abortController:c,preload:!1,matches:p,routeId:W.id})||{}}catch{if(!d())return;if(V.status!=="error"&&V.status!=="notFound"&&!V._notFound){b=Math.min(b??z,z),S(z);break}}if(!d())return}V.context={...se,...de,...v[z]&&o[z].b}}if(await Yp(t,[f,p],c.signal,0,w),!d())return;const X=b!==void 0||v.length<x,N=E&&v.length===x?p:v;let C=X?p:N,G;if(X&&b!==void 0){const z=C[b];G=z.ssr==="data-only"&&w>b+1?w:void 0,C=C.slice(),C[b]={...z,status:"pending",ssr:z.ssr==="data-only"?"data-only":!1,_assetEnd:G}}const Y=()=>{const z=t.history.location;return X&&!t._tx&&z.href===y&&z.state===g&&t._committed===N&&N.length&&!c.signal.aborted?c:void 0},ne=[Y,z=>{if(t._handoff!==ne)return;t._handoff=void 0;const V=N.length;if(!z||!Y()||N.some((de,M)=>de.id!==z[M]?.id)){c.abort();return}let W=G;if(W!==void 0){for(let de=V;de<W;de++)if(p[de]?.id!==z[de]?.id){W=de>
11b+1?de:void 0;break}}const se=N.map(de=>({...de}));W!==void 0&&(se[b]._assetEnd=W),Vt(t,z.splice(0,V,...se));for(let de=V;de<z.length;de++){const M=z[de],re=p[de];re?.id===M.id&&re._ctx&&(M._ctx=re._ctx),M.abortController=c}return V}];t._committed=N,t._lifecycleEnd=hw(N),t._handoff=ne,t._preflight=void 0,t.batch(()=>{t.stores.setMatches(C),t.stores.status.set("idle"),X||t.stores.resolvedLocation.set(t.stores.location.get())})}var WA=(t=>(t[t.AggregateError=1]="AggregateError",t[t.ArrowFunction=2]="ArrowFunction",t[t.ErrorPrototypeStack=4]="ErrorPrototypeStack",t[t.ObjectAssign=8]="ObjectAssign",t[t.BigIntTypedArray=16]="BigIntTypedArray",t[t.RegExp=32]="RegExp",t))(WA||{}),Hr=Symbol.asyncIterator,ww=Symbol.hasInstance,Ci=Symbol.isConcatSpreadable,Vr=Symbol.iterator,Sw=Symbol.match,Rw=Symbol.matchAll,Ew=Symbol.replace,Tw=Symbol.search,Aw=Symbol.species,xw=Symbol.split,Ow=Symbol.toPrimitive,Pi=Symbol.toStringTag,kw=Symbol.unscopables,Cw={[Hr]:0,[ww]:1,[Ci]:2,[Vr]:3,[Sw]:4,[Rw]:5,[Ew]:6,[Tw]:7,[Aw]:8,[xw]:9,[Ow]:10,[Pi]:11,[kw]:12},ZA={0:Hr,1:ww,2:Ci,3:Vr,4:Sw,5:Rw,6:Ew,7:Tw,8:Aw,9:xw,10:Ow,11:Pi,12:kw},A=void 0,JA={2:!0,3:!1,1:A,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},QA={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},XA={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function We(t,e,n,s,o,c,u,d,f,p,y,g){return{t,i:e,s:n,c:s,m:o,p:c,e:u,a:d,f,b:p,o:y,l:g}}function Na(t){return We(2,A,t,A,A,A,A,A,A,A,A,A)}var Pw=Na(2),$w=Na(3),e1=Na(1),t1=Na(0),n1=Na(4),r1=Na(5),a1=Na(6),s1=Na(7);function i1(t){switch(t){case'"':return'\\"';case"\\":return"\\\\";case` 12`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return A}}function ja(t){let e="",n=0,s;for(let o=0,c=t.length;o<c;o++)s=i1(t[o]),s&&(e+=t.slice(n,o)+s,n=o+1);return n===0?e=t:e+=t.slice(n),e}function o1(t){switch(t){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return` 13`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return t}}function Ma(t){return t.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,o1)}var Wl="__SEROVAL_REFS__",Dw=new Map,Ai=new Map;function Iw(t){return Dw.has(t)}function c1(t){return Ai.has(t)}function l1(t){if(Iw(t))return Dw.get(t);throw new B1(t)}function u1(t){if(c1(t))return Ai.get(t);throw new z1(t)}typeof globalThis<"u"?Object.defineProperty(globalThis,Wl,{value:Ai,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Wl,{value:Ai,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Wl,{value:Ai,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Wl,{value:Ai,configurable:!0,writable:!1,enumerable:!1});function Wp(t){return t instanceof EvalError?1:t instanceof RangeError?2:t instanceof ReferenceError?3:t instanceof SyntaxError?4:t instanceof TypeError?5:t instanceof URIError?6:0}function d1(t){let e=QA[Wp(t)];return t.name!==e?{name:t.name}:t.constructor.name!==e?{name:t.constructor.name}:{}}function Lw(t,e){let n=d1(t),s=Object.getOwnPropertyNames(t);for(let o=0,c=s.length,u;o<c;o++)u=s[o],u!=="name"&&u!=="message"&&(u==="stack"?e&4&&(n=n||{},n[u]=t[u]):(n=n||{},n[u]=t[u]));return n}function Nw(t){return Object.isFrozen(t)?3:Object.isSealed(t)?2:Object.isExtensible(t)?0:1}function f1(t){switch(t){case Number.POSITIVE_INFINITY:return r1;case Number.NEGATIVE_INFINITY:return a1}return t!==t?s1:Object.is(t,-0)?n1:We(0,A,t,A,A,A,A,A,A,A,A,A)}function jw(t){return We(1,A,ja(t),A,A,A,A,A,A,A,A,A)}function h1(t){return We(3,A,""+t,A,A,A,A,A,A,A,A,A)}function p1(t){return We(4,t,A,A,A,A,A,A,A,A,A,A)}function m1(t,e){let n=e.valueOf();return We(5,t,n!==n?"":e.toISOString(),A,A,A,A,A,A,A,A,A)}function g1(t,e){return We(6,t,A,ja(e.source),e.flags,A,A,A,A,A,A,A)}function y1(t,e){return We(17,t,Cw[e],A,A,A,A,A,A,A,A,A)}function v1(t,e){return We(18,t,ja(l1(e)),A,A,A,A,A,A,A,A,A)}function _1(t,e,n){return We(25,t,n,ja(e),A,A,A,A,A,A,A,A)}function b1(t,e,n){return We(9,t,A,A,A,A,A,n,A,A,Nw(e),A)}function w1(t,e){return We(21,t,A,A,A,A,A,A,e,A,A,A)}function S1(t,e,n){return We(15,t,A,e.constructor.name,A,A,A,A,n,e.byteOffset,A,e.length)}function R1(t,e,n){return We(16,t,A,e.constructor.name,A,A,A,A,n,e.byteOffset,A,e.length)}function E1(t,e,n){return We(20,t,A,A,A,A,A,A,n,e.byteOffset,A,e.byteLength)}function T1(t,e,n){return We(13,t,Wp(e),A,ja(e.message),n,A,A,A,A,A,A)}function A1(t,e,n){return We(14,t,Wp(e),A,ja(e.message),n,A,A,A,A,A,A)}function x1(t,e){return We(7,t,A,A,A,A,A,e,A,A,A,A)}function O1(t,e){return We(28,A,A,A,A,A,A,[t,e],A,A,A,A)}function k1(t,e){return We(30,A,A,A,A,A,A,[t,e],A,A,A,A)}function C1(t,e,n){return We(31,t,A,A,A,A,A,n,e,A,A,A)}function P1(t,e){return We(32,t,A,A,A,A,A,A,e,A,A,A)}function $1(t,e){return We(33,t,A,A,A,A,A,A,e,A,A,A)}function D1(t,e){return We(34,t,A,A,A,A,A,A,e,A,A,A)}function I1(t,e,n,s){return We(35,t,n,A,A,A,A,e,A,A,A,s)}
13var L1={parsing:1,serialization:2,deserialization:3};function N1(t){return`Seroval Error (step: ${L1[t]})`}var j1=(t,e)=>N1(t),Mw=class extends Error{constructor(t,e){super(j1(t)),this.cause=e}},$_=class extends Mw{constructor(t){super("parsing",t)}},M1=class extends Mw{constructor(t){super("deserialization",t)}};function Gr(t){return`Seroval Error (specific: ${t})`}var ju=class extends Error{constructor(t){super(Gr(1)),this.value=t}},Uw=class extends Error{constructor(t){super(Gr(2))}},U1=class extends Error{constructor(t){super(Gr(3))}},Ac=class extends Error{constructor(t){super(Gr(4))}},B1=class extends Error{constructor(t){super(Gr(5)),this.value=t}},z1=class extends Error{constructor(t){super(Gr(6))}},q1=class extends Error{constructor(t){super(Gr(7))}},Kr=class extends Error{constructor(t){super(Gr(8))}},Bw=class extends Error{constructor(t){super(Gr(9))}},H1=class{constructor(t,e){this.value=t,this.replacement=e}},Mu=()=>{let t={p:0,s:0,f:0};return t.p=new Promise((e,n)=>{t.s=e,t.f=n}),t},V1=(t,e)=>{t.s(e),t.p.s=1,t.p.v=e},F1=(t,e)=>{t.f(e),t.p.s=2,t.p.v=e};Mu.toString();V1.toString();F1.toString();var G1=()=>{let t=[],e=[],n=!0,s=!1,o=0,c=(f,p,y)=>{for(y=0;y<o;y++)e[y]&&e[y][p](f)},u=(f,p,y,g)=>{for(p=0,y=t.length;p<y;p++)g=t[p],!n&&p===y-1?f[s?"return":"throw"](g):f.next(g)},d=(f,p)=>(n&&(p=o++,e[p]=f),u(f),()=>{n&&(e[p]=e[o],e[o--]=void 0)});return{__SEROVAL_STREAM__:!0,on:f=>d(f),next:f=>{n&&(t.push(f),c(f,"next"))},throw:f=>{n&&(t.push(f),c(f,"throw"),n=!1,s=!1,e.length=0)},return:f=>{n&&(t.push(f),c(f,"return"),n=!1,s=!0,e.length=0)}}},K1=t=>e=>()=>{let n=0,s={[t]:()=>s,next:()=>{if(n>e.d)return{done:!0,value:void 0};let o=n++,c=e.v[o];if(o===e.t)throw c;return{done:o===e.d,value:c}}};return s},Y1=(t,e)=>n=>()=>{let s=0,o=-1,c=!1,u=[],d=[],f=(y=0,g=d.length)=>{for(;y<g;y++)d[y].s({done:!0,value:void 0})};n.on({next:y=>{let g=d.shift();g&&g.s({done:!1,value:y}),u.push(y)},throw:y=>{let g=d.shift();g&&g.f(y),f(),o=u.length,c=!0,u.push(y)},return:y=>{let g=d.shift();g&&g.s({done:!0,value:y}),f(),o=u.length,u.push(y)}});let p={[t]:()=>p,next:()=>{if(o===-1){let v=s++;if(v>=u.length){let b=e();return d.push(b),b.p}return{done:!1,value:u[v]}}if(s>o)return{done:!0,value:void 0};let y=s++,g=u[y];if(y!==o)return{done:!1,value:g};if(c)throw g;return{done:!0,value:g}}};return p},zw=t=>{let e=atob(t),n=e.length,s=new Uint8Array(n);for(let o=0;o<n;o++)s[o]=e.charCodeAt(o);return s.buffer};zw.toString();function W1(t){return"__SEROVAL_SEQUENCE__"in t}function qw(t,e,n){return{__SEROVAL_SEQUENCE__:!0,v:t,t:e,d:n}}function Z1(t){let e=[],n=-1,s=-1,o=t[Vr]();for(;;)try{let c=o.next();if(e.push(c.value),c.done){s=e.length-1;break}}catch(c){n=e.length,e.push(c)}return qw(e,n,s)}var J1=K1(Vr);function Q1(t){return J1(t)}var X1={},ex={},tx={0:{},1:{},2:{},3:{},4:{},5:{}};function nx(t){return"__SEROVAL_STREAM__"in t}function xc(){return G1()}function rx(t){let e=xc(),n=t[Hr]();async function s(){try{let o=await n.next();o.done?e.return(o.value):(e.next(o.value),await s())}catch(o){e.throw(o)}}return s().catch(()=>{}),e}var ax=Y1(Hr,Mu);function sx(t){return ax(t)}async function ix(t){try{return[1,await t]}catch(e){return[0,e]}}function ox(t,e){return{plugins:e.plugins,mode:t,marked:new Set,features:63^(e.disabledFeatures||0),refs:e.refs||new Map,depthLimit:e.depthLimit||1e3}}function pu(t,e){t.marked.add(e)}function cx(t,e){let n=t.refs.size;return t.refs.set(e,n),n}function Uu(t,e){let n=t.refs.get(e);return n!=null?(pu(t,n),{type:1,value:p1(n)}):{type:0,value:cx(t,e)}}function Zp(t,e){let n=Uu(t,e);return n.type===1?n:Iw(e)?{type:2,value:v1(n.value,e)}:n}function ps(t,e){let n=Zp(t,e);if(n.type!==0)return n.value;if(e in Cw)return y1(n.value,e);throw new ju(e)}function Bu(t,e){let n=Uu(t,tx[e]);return n.type===1?n.value:We(26,n.value,e,A,A,A,A,A,A,A,A,A)}function lx(t){let e=Uu(t,X1);return e.type===1?e.value:We(27,e.value,A,A,A,A,A,A,ps(t,Vr),A,A,A)}function ux(t){let e=Uu(t,ex);return e.type===1?e.value:We(29,e.value,A,A,A,A,A,[Bu(t,1),ps(t,Hr)],A,A,A,A)}function dx(t,e,n,s){return We(n?11:10,t,A,A,A,s,A,A,A,A,Nw(e),A)}function fx(t,e,n,s){return We(8,e,A,A,A,A,{k:n,v:s},A,Bu(t,0),A,A,A)}
13function hx(t,e,n){let s=new Uint8Array(n),o="";for(let c=0,u=s.length;c<u;c++)o+=String.fromCharCode(s[c]);return We(19,e,ja(btoa(o)),A,A,A,A,A,Bu(t,5),A,A,A)}function px(t,e){return{base:ox(t,e),child:void 0}}var mx=class{constructor(t,e){this._p=t,this.depth=e}parse(t){return Tt(this._p,this.depth,t)}};async function gx(t,e,n){let s=[];for(let o=0,c=n.length;o<c;o++)o in n?s[o]=await Tt(t,e,n[o]):s[o]=0;return s}async function yx(t,e,n,s){return b1(n,s,await gx(t,e,s))}async function Jp(t,e,n){let s=Object.entries(n),o=[],c=[];for(let u=0,d=s.length;u<d;u++)o.push(ja(s[u][0])),c.push(await Tt(t,e,s[u][1]));return Vr in n&&(o.push(ps(t.base,Vr)),c.push(O1(lx(t.base),await Tt(t,e,Z1(n))))),Hr in n&&(o.push(ps(t.base,Hr)),c.push(k1(ux(t.base),await Tt(t,e,rx(n))))),Pi in n&&(o.push(ps(t.base,Pi)),c.push(jw(n[Pi]))),Ci in n&&(o.push(ps(t.base,Ci)),c.push(n[Ci]?Pw:$w)),{k:o,v:c}}async function _h(t,e,n,s,o){return dx(n,s,o,await Jp(t,e,s))}async function vx(t,e,n,s){return w1(n,await Tt(t,e,s.valueOf()))}async function _x(t,e,n,s){return S1(n,s,await Tt(t,e,s.buffer))}async function bx(t,e,n,s){return R1(n,s,await Tt(t,e,s.buffer))}async function wx(t,e,n,s){return E1(n,s,await Tt(t,e,s.buffer))}async function D_(t,e,n,s){let o=Lw(s,t.base.features);return T1(n,s,o?await Jp(t,e,o):A)}async function Sx(t,e,n,s){let o=Lw(s,t.base.features);return A1(n,s,o?await Jp(t,e,o):A)}async function Rx(t,e,n,s){let o=[],c=[];for(let[u,d]of s.entries())o.push(await Tt(t,e,u)),c.push(await Tt(t,e,d));return fx(t.base,n,o,c)}async function Ex(t,e,n,s){let o=[];for(let c of s.keys())o.push(await Tt(t,e,c));return x1(n,o)}async function Hw(t,e,n,s){let o=t.base.plugins;if(o)for(let c=0,u=o.length;c<u;c++){let d=o[c];if(d.parse.async&&d.test(s))return _1(n,d.tag,await d.parse.async(s,new mx(t,e),{id:n}))}return A}async function Tx(t,e,n,s){let[o,c]=await ix(s);return We(12,n,o,A,A,A,A,A,await Tt(t,e,c),A,A,A)}function Ax(t,e,n,s,o){let c=[],u=n.on({next:d=>{pu(this.base,e),Tt(this,t,d).then(f=>{c.push(P1(e,f))},f=>{o(f),u()})},throw:d=>{pu(this.base,e),Tt(this,t,d).then(f=>{c.push($1(e,f)),s(c),u()},f=>{o(f),u()})},return:d=>{pu(this.base,e),Tt(this,t,d).then(f=>{c.push(D1(e,f)),s(c),u()},f=>{o(f),u()})}})}async function xx(t,e,n,s){return C1(n,Bu(t.base,4),await new Promise(Ax.bind(t,e,n,s)))}async function Ox(t,e,n,s){let o=[];for(let c=0,u=s.v.length;c<u;c++)o[c]=await Tt(t,e,s.v[c]);return I1(n,o,s.t,s.d)}async function kx(t,e,n,s){if(Array.isArray(s))return yx(t,e,n,s);if(nx(s))return xx(t,e,n,s);if(W1(s))return Ox(t,e,n,s);let o=s.constructor;if(o===H1)return Tt(t,e,s.replacement);let c=await Hw(t,e,n,s);if(c)return c;switch(o){case Object:return _h(t,e,n,s,!1);case A:return _h(t,e,n,s,!0);case Date:return m1(n,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return D_(t,e,n,s);case Number:case Boolean:case String:case BigInt:return vx(t,e,n,s);case ArrayBuffer:return hx(t.base,n,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return _x(t,e,n,s);case DataView:return wx(t,e,n,s);case Map:return Rx(t,e,n,s);case Set:return Ex(t,e,n,s)}if(o===Promise||s instanceof Promise)return Tx(t,e,n,s);let u=t.base.features;if(u&32&&o===RegExp)return g1(n,s);if(u&16)switch(o){case BigInt64Array:case BigUint64Array:return bx(t,e,n,s)}if(u&1&&typeof AggregateError<"u"&&(o===AggregateError||s instanceof AggregateError))return Sx(t,e,n,s);if(s instanceof Error)return D_(t,e,n,s);if(Vr in s||Hr in s)return _h(t,e,n,s,!!o);throw new ju(s)}async function Cx(t,e,n){let s=Zp(t.base,n);if(s.type!==0)return s.value;let o=await Hw(t,e,s.value,n);if(o)return o;throw new ju(n)}async function Tt(t,e,n){if(e>=t.base.depthLimit)throw new Bw(t.base.depthLimit);switch(typeof n){case"boolean":return n?Pw:$w;case"undefined":return e1;case"string":return jw(n);case"number":return f1(n);case"bigint":return h1(n);case"object":{if(n){let s=Zp(t.base,n);return s.type===0?await kx(t,e+1,s.value,n):s.value}return t1}case"symbol":return ps(t.base,n);case"function":return Cx(t,e,n);default:throw new ju(n)}}async function Px(t,e){try{return await Tt(t,0,e)}catch(n){throw n instanceof $_?n:new $_(n)}}var $x=(t=>(t[t.Vanilla=1]="Vanilla",t[t.Cross=2]="Cross",t))($x||{});function Vw(t,e){for(let n=0,s=e.length;n<s;n++){let o=e[n];
13t.has(o)||(t.add(o),o.extends&&Vw(t,o.extends))}}function Fw(t){if(t){let e=new Set;return Vw(e,t),[...e]}}function Dx(t){switch(t){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new q1(t)}}function Ix(t){switch(t){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function Lx(t){switch(t){case Hr:case Ci:case Pi:case Vr:return!0;default:return!1}}var Nx=1e6,jx=1e4,Mx=2e4;function Gw(t,e){switch(e){case 3:return Object.freeze(t);case 1:return Object.preventExtensions(t);case 2:return Object.seal(t);default:return t}}var Ux=1e3;function Bx(t,e){var n;let s=e.refs||new Map;return"types"in s||Object.assign(s,{types:new Map}),{mode:t,plugins:e.plugins,refs:s,features:(n=e.features)!=null?n:63^(e.disabledFeatures||0),depthLimit:e.depthLimit||Ux}}function zx(t){return{mode:2,base:Bx(2,t),child:A}}var qx=class{constructor(t,e){this._p=t,this.depth=e}deserialize(t){return rt(this._p,this.depth,t)}};function Kw(t,e){if(e<0||!Number.isFinite(e)||!Number.isInteger(e))throw new Kr({t:4,i:e});if(t.refs.has(e))throw new Error("Conflicted ref id: "+e)}function Hx(t,e,n){return Kw(t.base,e),t.state.marked.has(e)&&t.base.refs.set(e,n),n}function Vx(t,e,n){return Kw(t.base,e),t.base.refs.set(e,n),n}function At(t,e,n){return t.mode===1?Hx(t,e,n):Vx(t,e,n)}function cp(t,e,n){if(Object.hasOwn(e,n))return e[n];throw new Kr(t)}function Fx(t,e){return At(t,e.i,u1(Ma(e.s)))}function Gx(t,e,n){let s=n.a,o=s.length,c=At(t,n.i,new Array(o));for(let u=0,d;u<o;u++)d=s[u],d&&(c[u]=rt(t,e,d));return Gw(c,n.o),c}function I_(t,e,n){Ix(e)?t[e]=n:Object.defineProperty(t,e,{value:n,configurable:!0,enumerable:!0,writable:!0})}function Kx(t,e,n,s,o){if(typeof s=="string")I_(n,Ma(s),rt(t,e,o));else{let c=rt(t,e,s);switch(typeof c){case"string":I_(n,c,rt(t,e,o));break;case"symbol":Lx(c)&&(n[c]=rt(t,e,o));break;default:throw new Kr(s)}}}function Yw(t,e,n){t.base.refs.types.set(e,n)}function Oc(t,e,n,s){if(t.base.refs.types.get(n)!==s)throw new Kr(e)}function Ww(t,e,n,s){let o=n.k;if(o.length>0)for(let c=0,u=n.v,d=o.length;c<d;c++)Kx(t,e,s,o[c],u[c]);return s}function Yx(t,e,n){let s=At(t,n.i,n.t===10?{}:Object.create(null));return Ww(t,e,n.p,s),Gw(s,n.o),s}function Wx(t,e){return At(t,e.i,new Date(e.s))}function Zx(t,e){if(t.base.features&32){let n=Ma(e.c);if(n.length>Mx)throw new Kr(e);return At(t,e.i,new RegExp(n,e.m))}throw new Uw(e)}function Jx(t,e,n){let s=At(t,n.i,new Set);for(let o=0,c=n.a,u=c.length;o<u;o++)s.add(rt(t,e,c[o]));return s}function Qx(t,e,n){let s=At(t,n.i,new Map);for(let o=0,c=n.e.k,u=n.e.v,d=c.length;o<d;o++)s.set(rt(t,e,c[o]),rt(t,e,u[o]));return s}function Xx(t,e){if(e.s.length>Nx)throw new Kr(e);return At(t,e.i,zw(Ma(e.s)))}function eO(t,e,n){var s;let o=Dx(n.c),c=rt(t,e,n.f),u=(s=n.b)!=null?s:0;if(u<0||u>c.byteLength)throw new Kr(n);return At(t,n.i,new o(c,u,n.l))}function tO(t,e,n){var s;let o=rt(t,e,n.f),c=(s=n.b)!=null?s:0;if(c<0||c>o.byteLength)throw new Kr(n);return At(t,n.i,new DataView(o,c,n.l))}function Zw(t,e,n,s){if(n.p){let o=Ww(t,e,n.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(o))}return s}function nO(t,e,n){let s=At(t,n.i,new AggregateError([],Ma(n.m)));return Zw(t,e,n,s)}function rO(t,e,n){let s=cp(n,XA,n.s),o=At(t,n.i,new s(Ma(n.m)));return Zw(t,e,n,o)}function aO(t,e,n){let s=Mu(),o=At(t,n.i,s.p),c=rt(t,e,n.f);return n.s?s.s(c):s.f(c),o}function sO(t,e,n){return At(t,n.i,Object(rt(t,e,n.f)))}function iO(t,e,n){let s=t.base.plugins;if(s){let o=Ma(n.c);for(let c=0,u=s.length;c<u;c++){let d=s[c];if(d.tag===o)return At(t,n.i,d.deserialize(n.s,new qx(t,e),{id:n.i}))}}throw new U1(n.c)}function oO(t,e){let n=At(t,e.i,At(t,e.s,Mu()).p);return Yw(t,e.s,22),n}function cO(t,e,n){let s=t.base.refs.get(n.i);if(s)return Oc(t,n,n.i,22),s.s(rt(t,e,n.a[1])),A;throw new Ac("Promise")}function lO(t,e,n){let s=t.base.refs.get(n.i);if(s)return Oc(t,n,n.i,22),s.f(rt(t,e,n.a[1])),A;throw new Ac("Promise")}function uO(t,e,n){rt(t,e,n.a[0]);let s=rt(t,e,n.a[1]);return Q1(s)}function dO(t,e,n){rt(t,e,n.a[0]);let s=rt(t,e,n.a[1]);return sx(s)}function fO(t,e,n){let s=At(t,n.i,xc());Yw(t,n.i,31);let o=n.a,c=o.length;if(c)for(let u=0;u<c;u++)rt(t,e,o[u]);return s}function hO(t,e,n){let s=t.base.refs.get(n.i);if(s)return Oc(t,n,n.i,31),s.next(rt(t,e,n.f)),A;throw new Ac("Stream")}function pO(t,e,n){let s=t.base.refs.get(n.i);if(s)return Oc(t,n,n.i,31),s.throw(rt(t,e,n.f)),A;throw new Ac("Stream")}function mO(t,e,n){let s=t.base.refs.get(n.i);if(s)return Oc(t,n,n.i,31),s.return(rt(t,e,n.f)),A;throw new Ac("Stream")}function gO(t,e,n){return rt(t,e,n.f),A}function yO(t,e,n){return rt(t,e,n.a[1]),A}function vO(t,e,n){let s=At(t,n.i,qw([],n.s,n.l));for(let o=0,c=n.a.length;o<c;
13o++)s.v[o]=rt(t,e,n.a[o]);return s}function rt(t,e,n){if(e>t.base.depthLimit)throw new Bw(t.base.depthLimit);switch(e+=1,n.t){case 2:return cp(n,JA,n.s);case 0:return Number(n.s);case 1:return Ma(String(n.s));case 3:if(String(n.s).length>jx)throw new Kr(n);return BigInt(n.s);case 4:return t.base.refs.get(n.i);case 18:return Fx(t,n);case 9:return Gx(t,e,n);case 10:case 11:return Yx(t,e,n);case 5:return Wx(t,n);case 6:return Zx(t,n);case 7:return Jx(t,e,n);case 8:return Qx(t,e,n);case 19:return Xx(t,n);case 16:case 15:return eO(t,e,n);case 20:return tO(t,e,n);case 14:return nO(t,e,n);case 13:return rO(t,e,n);case 12:return aO(t,e,n);case 17:return cp(n,ZA,n.s);case 21:return sO(t,e,n);case 25:return iO(t,e,n);case 22:return oO(t,n);case 23:return cO(t,e,n);case 24:return lO(t,e,n);case 28:return uO(t,e,n);case 30:return dO(t,e,n);case 31:return fO(t,e,n);case 32:return hO(t,e,n);case 33:return pO(t,e,n);case 34:return mO(t,e,n);case 27:return gO(t,e,n);case 29:return yO(t,e,n);case 35:return vO(t,e,n);default:throw new Uw(n)}}function _O(t,e){try{return rt(t,0,e)}catch(n){throw new M1(n)}}var bO=()=>T;bO.toString();function wO(t,e){let n=Fw(e.plugins),s=zx({plugins:n,refs:e.refs,features:e.features,disabledFeatures:e.disabledFeatures,depthLimit:e.depthLimit});return _O(s,t)}async function SO(t,e={}){let n=Fw(e.plugins),s=px(1,{plugins:n,disabledFeatures:e.disabledFeatures});return{t:await Px(s,t),f:s.base.features,m:Array.from(s.base.marked)}}function RO(t){return{tag:"$TSR/t/"+t.key,test:t.test,parse:{sync(e,n){return{v:n.parse(t.toSerializable(e))}},async async(e,n){return{v:await n.parse(t.toSerializable(e))}},stream(e,n){return{v:n.parse(t.toSerializable(e))}}},serialize:void 0,deserialize(e,n){return t.fromSerializable(n.deserialize(e.v))}}}function Jw(t){if(Array.isArray(t))return t.flatMap(y=>Jw(y));if(typeof t!="string")return[];const e=[];let n=0,s,o,c,u,d;const f=()=>{for(;n<t.length&&/\s/.test(t.charAt(n));)n+=1;return n<t.length},p=()=>(o=t.charAt(n),o!=="="&&o!==";"&&o!==",");for(;n<t.length;){for(s=n,d=!1;f();)if(o=t.charAt(n),o===","){for(c=n,n+=1,f(),u=n;n<t.length&&p();)n+=1;n<t.length&&t.charAt(n)==="="?(d=!0,n=u,e.push(t.slice(s,c)),s=n):n=c+1}else n+=1;(!d||n>=t.length)&&e.push(t.slice(s))}return e}function EO(t){return t instanceof Headers?t:Array.isArray(t)?new Headers(t):typeof t=="object"?new Headers(t):null}function TO(...t){return t.reduce((e,n)=>{const s=EO(n);if(!s)return e;for(const[o,c]of s.entries())o==="set-cookie"?Jw(c).forEach(u=>e.append("set-cookie",u)):e.set(o,c);return e},new Headers)}const AO={tag:"$TSR/Error",test(t){return t instanceof Error},parse:{sync(t,e){return{message:e.parse(t.message)}},async async(t,e){return{message:await e.parse(t.message)}},stream(t,e){return{message:e.parse(t.message)}}},serialize(t,e){return"new Error("+e.serialize(t.message)+")"},deserialize(t,e){return new Error(e.deserialize(t.message))}};var xO=class{constructor(t,e){this.stream=t,this.hint=e?.hint??"binary"}};function Qw(t){const e=[];for(let n=0;n<t.length;n+=32768)e.push(String.fromCharCode.apply(null,t.subarray(n,n+32768)));return btoa(e.join(""))}function Xw(t){const e=atob(t),n=new Uint8Array(e.length);for(let s=0;s<e.length;s++)n[s]=e.charCodeAt(s);return n}const OO=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});function kO(t){try{return"t"+OO.decode(t)}catch{return"b"+Qw(t)}}const CO=new TextEncoder;function PO(t){const e=t.slice(1);return t[0]==="t"?CO.encode(e):Xw(e)}function $O(t,e,n){n?.throwIfAborted();const s=xc(),o=t.getReader();let c=!0;const u=()=>{c=!1,n?.removeEventListener("abort",f),o.releaseLock()},d=p=>c?(o.cancel(p).catch(()=>{}),u(),!0):!1,f=()=>{d(n.reason)&&s.throw(n.reason)};return n?.addEventListener("abort",f),(async()=>{try{for(;c;){const{done:p,value:y}=await o.read();if(!c)return;if(p){u(),s.return(void 0);return}s.next(e(y))}}catch(p){d(p)&&s.throw(p)}})(),[s,d]}function DO(t,e){let n,s=!1;return new ReadableStream({start(o){const c=t.on({next(u){if(!s)try{o.enqueue(e(u))}catch(d){s=!0;const f=n;n=void 0,f?.(),o.error(d)}},throw(u){s||(s=!0,n=void 0,o.error(u))},return(){s||(s=!0,n=void 0,o.close())}});s?c():n=c},cancel(){const o=n;n=void 0,o?.()}})}function eS(t){return{tag:"tss/RawStream",test:e=>e instanceof xO,parse:{async:async(e,n)=>{const s=await n.parse(e.hint==="text"),[o]=$O(e.stream,e.hint==="text"?kO:Qw,t);return{text:s,stream:await n.parse(o)}}},serialize:void 0,deserialize:void 0}}const IO=eS(),LO={tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(t,e){return DO(e.deserialize(t.stream),e.deserialize(t.text)?PO:Xw)}};var Ea={},tS=t=>new ReadableStream({start:e=>{t.on({next:n=>{try{e.enqueue(n)}catch{}},throw:n=>{e.error(n)},return:()=>{try{e.close()}catch{}}})}}),NO={tag:"seroval-plugins/web/ReadableStreamFactory",test(t){return t===Ea},parse:{sync(){return Ea},async async(){return await Promise.resolve(Ea)},stream(){return Ea}},serialize(){return tS.toString()},deserialize(){return Ea}};async function nS(t,e){try{let n=await e.read();n.done?(t.return(n.value),e.releaseLock()):(t.next(n.value),await nS(t,e))}catch(n){t.throw(n)}}function jO(t){t.cancel().catch(()=>{}),t.releaseLock()}function L_(t){let e=xc(),n=t.getReader(),s=jO.bind(null,n);return nS(e,n).catch(s),[e,s]}var MO={tag:"seroval/plugins/web/ReadableStream",extends:[NO],test(t){return typeof ReadableStream>"u"?!1:t instanceof ReadableStream},parse:{sync(t,e){return{factory:e.parse(Ea),stream:e.parse(xc())}},async async(t,e){return{factory:await e.parse(Ea),stream:await e.parse(L_(t)[0])}},stream(t,e){let[n,s]=L_(t);return e.addCleanup(s),{factory:e.parse(Ea),stream:e.parse(n)}}},serialize(t,e){return"("+e.serialize(t.factory)+")("+e.serialize(t.stream)+")"},deserialize(t,e){let n=e.deserialize(t.stream);return tS(n)}},UO=MO;function rS(t){return[AO,t?eS(t):IO,UO]}const BO=rS();[...BO];function zO(t){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(e,n){return t(n.deserialize(e.streamId))}}}function qO(t){return[...Mp()?.serializationAdapters?.map(RO)??[],...t]}function aS(t){return qO(rS(t))}
13var N_=new TextDecoder,ir=new Uint8Array,HO=new ByteLengthQueuingStrategy({highWaterMark:0});function VO(t){const e=t.getReader(),n=new Map;let s=0,o,c;const u=()=>{o?.(),o=void 0},d=(g,v)=>{const b=g[1];g[1]=!1,b&&(v===1?b.close():b.error(v[0]))},f=new ReadableStream({start(g){c=g},pull:u,cancel(g){const v=[g===void 0?new Error("Framed response cancelled"):g];s=v,u(),e.cancel(g).catch(()=>{});for(const b of n.values())d(b,v)}});function p(g){const v=n.get(g);if(v)return v;if(n.size>=1024)throw new Error("Too many raw streams");let b;const w=[new ReadableStream({start(S){b=S},cancel(){w[1]!==!1&&(w[1]=null)}},HO),b];return n.set(g,w),s!==0&&d(w,s),w}function y(g){if(g===0||g>>>0!==g)throw new RangeError("Invalid raw stream ID");return p(g)[0]}return(async()=>{let g=ir,v=0;async function b(){for(;v===g.byteLength;){g=ir,v=0;const S=await e.read();if(s!==0||S.done)return!1;g=S.value}return!0}async function w(S,x){if(S===0)return ir;if(!await b()){if(x)return;throw new Error("Incomplete frame")}if(g.byteLength-v>=S){const O=g.subarray(v,v+S);return v+=S,v===g.byteLength&&(g=ir,v=0),O}const E=new Uint8Array(S);let k=0;for(;k<S;){if(!await b())throw new Error("Incomplete frame");const O=Math.min(S-k,g.byteLength-v);E.set(g.subarray(v,v+O),k),v+=O,k+=O}return v===g.byteLength&&(g=ir,v=0),E}try{for(;s===0;){let S=await w(9,!0);if(s!==0)return;if(!S){for(const X of n.values())if(X[1])throw new Error("Incomplete raw stream");s=1,c.close();return}const x=S[0],E=(S[1]<<24|S[2]<<16|S[3]<<8|S[4])>>>0,k=(S[5]<<24|S[6]<<16|S[7]<<8|S[8])>>>0;if(S=ir,x>3||x===0!=(E===0)||k>16777216||x===2&&k!==0)throw new Error("Invalid frame");const O=x===0?void 0:p(E);if(O?.[1]===!1)throw new Error("Raw stream already ended");let j=await w(k);if(s!==0)return;if(!O){const X=N_.decode(j);for(j=ir,c.enqueue(X);s===0&&c.desiredSize<=0;)await new Promise(N=>{o=N});continue}if(x===1){const X=O[1];if(X){if(-X.desiredSize>134217728){X.error(new Error(`Raw stream ${E} has too many unread bytes`)),O[1]=null,j=ir;continue}const N=j.byteLength*4<j.buffer.byteLength?j.slice():j;j=ir,X.enqueue(N)}}else d(O,x===2?1:[new Error(N_.decode(j))])}}catch(S){if(s===0){const x=[S];s=x,e.cancel(S).catch(()=>{}),c.error(S);for(const E of n.values())d(E,x)}}finally{g=ir,e.releaseLock()}})(),[f,y]}const dr=Symbol.for("TSR_DEFERRED_PROMISE");function FO(t,e){const n=t;return n[dr]||(n[dr]={status:"pending"},n.then(s=>{n[dr].status="success",n[dr].data=s}).catch(s=>{n[dr].status="error",n[dr].error={data:$A(s),__isServerError:!0}})),n}const GO="Error preloading route! âï¸";function sS(t,e){if(t)return typeof t=="string"?t:t[e]}function KO(t){return t?.scriptFormat??"module"}function YO(t,e,n){const s=WO(e),o=sS(n,"script")??s.crossOrigin;return{...KO(t)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:s.href,...o?{crossOrigin:o}:{}}}function WO(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function Zl(t,e){if(e.length===0)return;if(e.length===1){t.push(e[0]);return}const n=new Set;for(const s of e){const o=JSON.stringify(s);n.has(o)||(n.add(o),t.push(s))}}function ZO(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function JO(t,e,n,s){const o=pw(t),c=[],u=[];for(const d of o)for(const f of Array.isArray(d.scripts)?d.scripts:[]){if(!f)continue;const{children:p,...y}=f;c.push({tag:"script",attrs:{...y,...s,nonce:n},children:p})}if(e)for(const d of o)for(const f of e.routes[d.routeId]?.scripts??[])u.push({tag:"script",attrs:{...f.attrs,nonce:n},children:f.children});return[c,u]}function QO([t,e],n){return[...t,...e]}var iS=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;const n=this.options,s=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=ki:this.parentRoute||oc();let o=s?ki:n?.path;o&&o!=="/"&&(o=nw(o));const c=n?.id||o,u=s?ki:Oi((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(c??""));o==="__root__"&&(o="/");const d=u==="__root__"?"/":o===void 0?this.parentRoute.fullPath:Oi(this.parentRoute.fullPath+"/"+o);this._path=o,this._id=u,this._fullPath=d,this._to=hr(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e=="object"&&e!==null&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>be({from:this.fullPath,...e}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},XO=class extends iS{constructor(t){super(t)}};var fc;function lp(t,e,n){try{return wO(t,e)}catch(s){throw cS(n),s}}async function oS(t){t.length>0&&(await Promise.allSettled(t),t.length=0)}function cS(t){for(const e of t)e.catch(()=>{});t.length=0}var ek=Object.prototype.hasOwnProperty;function lS(t){for(const e in t)if(ek.call(t,e))return!0;return!1}async function tk(t,e,n){fc||(fc=aS());const s=e[0],o=s.fetch??n,c=s.data instanceof FormData,u=new Headers(s.headers);if(u.set("x-tsr-serverFn","true"),c||u.set("accept",`${GT}, application/x-ndjson, application/json`),s.method==="GET"){if(c)throw new Error("FormData is not supported with GET requests");const f=await uS(s);if(f!==void 0){const p=lw({payload:f});t.includes("?")?t+=`&${p}`:t+=`?${p}`}}let d;
13return s.method==="POST"&&(d=await nk(s),typeof d=="string"&&u.set("content-type","application/json")),rk(()=>o(t,{method:s.method,headers:u,signal:s.signal,body:d}))}async function uS(t){let e;return t.data!==void 0&&(e={data:t.data}),t.context&&lS(t.context)&&((e??={}).context=t.context),e?dS(e,t.signal):void 0}async function dS(t,e){e?.throwIfAborted();let n;try{n=await SO(t,{plugins:e?aS(e):fc})}finally{e?.throwIfAborted()}return JSON.stringify(n)}async function nk(t){if(t.data instanceof FormData){let e;return t.context&&lS(t.context)&&(e=await dS(t.context,t.signal)),e!==void 0&&t.data.set(FT,e),t.data}return uS(t)}async function rk(t){let e;try{e=await t()}catch(s){if(s instanceof Response)e=s;else throw s}if(e.headers.get("x-tss-raw")==="true")return e;const n=e.headers.get("content-type");if(n||oc(),e.headers.get("x-tss-serialized")){let s;if(n.includes("application/x-tss-framed")){const o=/;\s*v=(\d+)/.exec(n)?.[1];if(o&&+o!=1)throw new Error(`Unsupported framed protocol version ${o}`);if(!e.body)throw new Error("No response body for framed response");const[c,u]=VO(e.body);s=await ak(c,[zO(u),...fc])}else if(n.includes("application/json")){const o=await e.json(),c=[];s=lp(o,{plugins:fc},c),await oS(c)}if(s||oc(),s instanceof Error)throw s;return s}if(n.includes("application/json")){const s=await e.json(),o=Jb(s);if(o)throw o;if(vs(s))throw s;return s}if(!e.ok)throw new Error(await e.text());return e}async function ak(t,e){const n=t.getReader(),s={refs:new Map,plugins:e},o=d=>{n.cancel(d).catch(()=>{})};let c;const u=[];try{const d=await n.read();if(d.done)throw new Error("Stream ended before first object");c=lp(JSON.parse(d.value),s,u)}catch(d){throw o(d),n.releaseLock(),d}return(async()=>{const d=[];try{for(;;){const f=await n.read();if(f.done)return;lp(JSON.parse(f.value),s,d),cS(d)}}catch(f){o(f),console.error("Stream processing error:",f)}finally{n.releaseLock()}})(),await oS(u),c}function Ft(t){const e="/_serverFn/"+t;return Object.assign((...o)=>{const c=Mp()?.serverFns?.fetch;return tk(e,o,c??fetch)},{url:e,serverFnMeta:{id:t},[np]:!0})}var sk={key:"$TSS/serverfn",test:t=>typeof t!="function"||!(np in t)?!1:!!t[np],toSerializable:({serverFnMeta:t})=>({functionId:t.id}),fromSerializable:({functionId:t})=>Ft(t)},wu=ue.use,fS=ue.useLayoutEffect;function ik({promise:t}){if(wu)return wu(t);const e=FO(t);if(e[dr].status==="pending")throw e;if(e[dr].status==="error")throw e[dr].error;return e[dr].data}function ok(t){const e=ae.jsx(ck,{...t});return t.fallback?ae.jsx(ue.Suspense,{fallback:t.fallback,children:e}):e}function ck(t){const e=ik(t);return t.children(e)}var Qp=class extends ue.Component{constructor(...t){super(...t),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(t,e){const n=t.getResetKey();return e.error&&e.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(t){return{error:[t]}}componentDidCatch(t,e){this.props.onCatch?.(t,e)}render(){const t=this.state.error;return t?ue.createElement(this.props.errorComponent??lk,{error:t[0],reset:this.reset}):this.props.children}};function lk({error:t}){const[e,n]=ue.useState(!1);return ae.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[ae.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[ae.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),ae.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(s=>!s),children:e?"Hide Error":"Show Error"})]}),ae.jsx("div",{style:{height:".25rem"}}),e?ae.jsx("div",{children:ae.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t?.message?ae.jsx("code",{children:t.message}):null})}):null]})}var j_=()=>!0,uk=()=>!1;function dk({children:t,fallback:e=null}){return ae.jsx(ce.Fragment,{children:Xp()?t:e})}function Xp(t=!0){return ce.useSyncExternalStore(fk,j_,t?uk:j_)}function fk(){return()=>{}}var hS=ue.createContext(null);function Ut(t){return ue.useContext(hS)}var em=ue.createContext(void 0),hk=ue.createContext(void 0);function pk({update:t,notify:e,unwatched:n}){return{link:s,unlink:o,propagate:c,checkDirty:u,shallowPropagate:d};function s(p,y,g){const v=y.depsTail;if(v!==void 0&&v.dep===p)return;const b=v!==void 0?v.nextDep:y.deps;if(b!==void 0&&b.dep===p){b.version=g,y.depsTail=b;return}const w=p.subsTail;if(w!==void 0&&w.version===g&&w.sub===y)return;const S=y.depsTail=p.subsTail={version:g,dep:p,sub:y,prevDep:v,nextDep:b,prevSub:w,nextSub:void 0};b!==void 0&&(b.prevDep=S),v!==void 0?v.nextDep=S:y.deps=S,w!==void 0?w.nextSub=S:p.subs=S}function o(p,y=p.sub){const g=p.dep,v=p.prevDep,b=p.nextDep,w=p.nextSub,S=p.prevSub;return b!==void 0?b.prevDep=v:y.depsTail=v,v!==void 0?v.nextDep=b:y.deps=b,w!==void 0?w.prevSub=S:g.subsTail=S,S!==void 0?S.nextSub=w:(g.subs=w)===void 0&&n(g),b}function c(p){let y=p.nextSub,g;e:do{const v=p.sub;let b=v.flags;if(b&60?b&12?b&4?!(b&48)&&f(p,v)?(v.flags=b|40,b&=1):b=0:v.flags=b&-9|32:b=0:v.flags=b|32,b&2&&e(v),b&1){const w=v.subs;if(w!==void 0){const S=(p=w).nextSub;S!==void 0&&(g={value:y,prev:g},y=S);continue}}if((p=y)!==void 0){y=p.nextSub;continue}for(;g!==void 0;)if(p=g.value,g=g.prev,p!==void 0){y=p.nextSub;continue e}break}while(!0)}function u(p,y){let g,v=0,b=!1;e:do{const w=p.dep,S=w.flags;if(y.flags&16)b=!0;else if((S&17)===17){if(t(w)){const x=w.subs;x.nextSub!==void 0&&d(x),b=!0}}else if((S&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(g={value:p,prev:g}),p=w.deps,y=w,++v;continue}if(!b){const x=p.nextDep;if(x!==void 0){p=x;continue}}for(;v--;){const x=y.subs,E=x.nextSub!==void 0;if(E?(p=g.value,g=g.prev):p=x,b){if(t(y)){E&&d(x),y=p.sub;continue}b=!1}else y.flags&=-33;y=p.sub;const k=p.nextDep;if(k!==void 0){p=k;continue e}}return b}while(!0)}function d(p){do{const y=p.sub,g=y.flags;(g&48)===32&&(y.flags=g|16,(g&6)===2&&e(y))}while((p=p.nextSub)!==void 0)}function f(p,y){let g=y.depsTail;for(;g!==void 0;){if(g===p)return!0;g=g.prevDep}return!1}}function mk(t,e,n){const s=typeof t=="object",o=s?t:void 0;return{next:(s?t.next:t)?.bind(o),error:(s?t.error:e)?.bind(o),c
13omplete:(s?t.complete:n)?.bind(o)}}const up=[];let mu=0;const{link:M_,unlink:gk,propagate:yk,checkDirty:pS,shallowPropagate:U_}=pk({update(t){return t._update()},notify(t){up[dp++]=t,t.flags&=-3},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=17,Su(t))}});let Jl=0,dp=0,Kn,fp=0;function vk(t){try{++fp,t()}finally{--fp||mS()}}function Su(t){const e=t.depsTail;let n=e!==void 0?e.nextDep:t.deps;for(;n!==void 0;)n=gk(n,t)}function mS(){if(!(fp>0)){for(;Jl<dp;){const t=up[Jl];up[Jl++]=void 0,t.notify()}Jl=0,dp=0}}function B_(t,e){const n=typeof t=="function",s=t,o={_snapshot:n?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?0:1,get(){return Kn!==void 0&&M_(o,Kn,mu),o._snapshot},subscribe(c){const u=mk(c),d={current:!1},f=_k(()=>{o.get(),d.current?(Kn=void 0,u.next?.(o._snapshot)):d.current=!0});return{unsubscribe:()=>{f.stop()}}},_update(c){const u=Kn,d=e?.compare??Object.is;if(n)Kn=o,++mu,o.depsTail=void 0;else if(c===void 0)return!1;n&&(o.flags=5);try{const f=o._snapshot,p=typeof c=="function"?c(f):c===void 0&&n?s(f):c;return f===void 0||!d(f,p)?(o._snapshot=p,!0):!1}finally{Kn=u,n&&(o.flags&=-5),Su(o)}}};return n?(o.flags=17,o.get=function(){const c=o.flags;if(c&16||c&32&&pS(o.deps,o)){if(o._update()){const u=o.subs;u!==void 0&&U_(u)}}else c&32&&(o.flags=c&-33);return Kn!==void 0&&M_(o,Kn,mu),o._snapshot}):o.set=function(c){if(o._update(c)){const u=o.subs;u!==void 0&&(yk(u),U_(u),mS())}},o}function _k(t){const e=()=>{const s=Kn;Kn=n,++mu,n.depsTail=void 0,n.flags=6;try{return t()}finally{Kn=s,n.flags&=-5,Su(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const s=this.flags;s&16||s&32&&pS(this.deps,this)?e():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Su(this)}};return e(),n}var bh={exports:{}},wh={},Sh={exports:{}},Rh={};var z_;function bk(){if(z_)return Rh;z_=1;var t=Tc();function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:e,s=t.useState,o=t.useEffect,c=t.useLayoutEffect,u=t.useDebugValue;function d(g,v){var b=v(),w=s({inst:{value:b,getSnapshot:v}}),S=w[0].inst,x=w[1];return c(function(){S.value=b,S.getSnapshot=v,f(S)&&x({inst:S})},[g,b,v]),o(function(){return f(S)&&x({inst:S}),g(function(){f(S)&&x({inst:S})})},[g]),u(b),b}function f(g){var v=g.getSnapshot;g=g.value;try{var b=v();return!n(g,b)}catch{return!0}}function p(g,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return Rh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:y,Rh}var q_;function wk(){return q_||(q_=1,Sh.exports=bk()),Sh.exports}var H_;function Sk(){if(H_)return wh;H_=1;var t=Tc(),e=wk();function n(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var s=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,c=t.useRef,u=t.useEffect,d=t.useMemo,f=t.useDebugValue;return wh.useSyncExternalStoreWithSelector=function(p,y,g,v,b){var w=c(null);if(w.current===null){var S={hasValue:!1,value:null};w.current=S}else S=w.current;w=d(function(){function E(N){if(!k){if(k=!0,O=N,N=v(N),b!==void 0&&S.hasValue){var C=S.value;if(b(C,N))return j=C}return j=N}if(C=j,s(O,N))return C;var G=v(N);return b!==void 0&&b(C,G)?(O=N,C):(O=N,j=G)}var k=!1,O,j,X=g===void 0?null:g;return[function(){return E(y())},X===null?void 0:function(){return E(X())}]},[y,g,v,b]);var x=o(p,w[0],w[1]);return u(function(){S.hasValue=!0,S.value=x},[x]),f(x),x},wh}var V_;function Rk(){return V_||(V_=1,bh.exports=Sk()),bh.exports}var Ek=Rk();function Tk(t,e){return t===e}function Xn(t,e=s=>s,n){const s=n?.compare??Tk,o=ue.useCallback(u=>{const{unsubscribe:d}=t.subscribe(u);return d},[t]),c=ue.useCallback(()=>t.get(),[t]);return Ek.useSyncExternalStoreWithSelector(o,c,c,e,s)}var F_={};function gS(t,e){const n=ue.useRef();return s=>{const o=t?.select?t.select(s):s;return t?.structuralSharing??e.options.defaultStructuralSharing?n.current=ka(n.current,o):o}}function bs(t){const e=Ut(),n=ue.useContext(t.from?hk:em),s=t.from??n,o=e.stores.getMatchStore(s),c=gS(t,e),u=Xn(o,d=>d?c(d):F_);
13if(u!==F_)return u;(t.shouldThrow??!0)&&oc()}function yS(t){return bs({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function vS(t){const{select:e,...n}=t;return bs({...n,select:s=>e?e(s.loaderDeps):s.loaderDeps})}function _S(t){return bs({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const n=t.strict===!1?e.params:e._strictParams;return t.select?t.select(n):n}})}function bS(t){return bs({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function wS(t){const e=Ut();return ue.useCallback(n=>e.navigate({...n,from:n.from??t?.from}),[t?.from,e])}function SS(t){return bs({...t,select:e=>t.select?t.select(e.context):e.context})}function Ak(...t){const e=ue.useRef(t),n=e.current;return t.forEach((s,o)=>{Qn(n[o],s,!1,!0)||(n[o]=s)}),e.current}function Ql(t,e){t.preloadRoute(e).catch(n=>{console.warn(n),console.warn(GO)})}var xk={compare:(t,e)=>t[0]===e[0]&&t[1]===e[1]};function Ok(t,e){const n=typeof t=="string"&&ic(t);if(n)return e.has(n)?t:null}function kk(t,e,n,s,o){const c=p_(t.pathname,s),u=p_(e.pathname,s);return(n?.exact?c!==u:!(c.startsWith(u)&&(c.length===u.length||c[u.length]==="/")))||(n?.includeSearch??!0)&&!Qn(t.search,e.search,!n?.exact,n?.explicitUndefined)?!1:n?.includeHash?o&&t.hash===e.hash:!0}function Ck(t,e,n){const s=Ut(),o=ue.useRef(null),c=ue.useCallback(pe=>{if(o.current=pe,typeof e=="function")return e(pe);e&&(e.current=pe)},[e]),{activeOptions:u,to:d,preload:f,preloadDelay:p,hashScrollIntoView:y,replace:g,startTransition:v,resetScroll:b,viewTransition:w,ignoreBlocker:S,disabled:x,target:E,onClick:k,onBlur:O,onFocus:j,onMouseEnter:X,onMouseLeave:N,onTouchStart:C}=t,G=Xp(!!u?.includeHash),[Y,ne,z]=Ak(t.search,t.params,u),[V,W]=ue.useMemo(()=>[t,{...t}],[s,t.from,t._fromLocation,t.hash,t.to,Y,ne,t.state,t.mask,t.unsafeRelative]),se=ue.useMemo(()=>{const pe=Ok(d,s.protocolAllowlist);if(pe!==void 0){const Rt=[pe??void 0];return()=>Rt}let me,Me;return Rt=>{V._fromLocation||(W._fromLocation=Rt);const Sn=s.buildLocation(W),Bt=Lk(Sn,s,x);return(!me||me[0]!==Bt)&&(me=[Bt,!(x||Bt&&!ic(Bt))&&void 0],Me=[Bt,!0]),me[1]!==void 0&&kk(Rt,Sn,z,s.basepath,G)?Me:me}},[z,x,G,V,W,s,d]),[de,M]=Xn(s.stores.location,se,xk),re=M===void 0&&de,ye=x||de===void 0,Ne=ue.useRef(!1),Ae=t.reloadDocument||re||ye?!1:f??s.options.defaultPreload,$=p??s.options.defaultPreloadDelay??0,J=ue.useCallback(pe=>{const me=pe?.isIntersecting;if(!(me??Ae==="intent")){me===!1&&Eh(o);return}if(!$){Ql(s,V);return}nc.has(o)||nc.set(o,setTimeout(()=>{nc.delete(o),Ql(s,V)},$))},[s,V,o,Ae,$]);ue.useEffect(()=>{if(!Ae)return;Ae==="render"&&!Ne.current&&(Ne.current=!0,Ql(s,V));let pe=!0,me;return Ae==="viewport"&&o.current&&typeof IntersectionObserver=="function"&&(me=new IntersectionObserver(Me=>{pe&&J(Me.pop())},{rootMargin:"100px"}),me.observe(o.current)),()=>{pe=!1,me?.disconnect(),Eh(o)}},[s,V,Ae,J,o]);const Q=Dk(t,n);if(Q.ref=e?c:o,re)return Q.href=re,Q;const ie=pe=>{const me=E??pe.currentTarget.getAttribute("target");!ye&&!(pe.metaKey||pe.altKey||pe.ctrlKey||pe.shiftKey)&&!pe.defaultPrevented&&(!me||me==="_self")&&pe.button===0&&(pe.preventDefault(),s.navigate({...V,replace:g,resetScroll:b,hashScrollIntoView:y,startTransition:v,viewTransition:w,ignoreBlocker:S}))},fe=()=>{Ae==="intent"&&Ql(s,V)},Ee=()=>{Ae==="intent"&&Eh(o)};return Q.onClick=pi(k,ie),Q.onBlur=pi(O,Ee),Q.onFocus=pi(j,J),Q.onMouseEnter=pi(X,J),Q.onMouseLeave=pi(N,Ee),Q.onTouchStart=pi(C,fe),Ik(Q,t,M,de,ye,n)}var Pk={},$k={className:"active"},RS=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","_fromLocation","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function Dk(t,e){const n={};for(const s in t)RS.has(s)||s==="type"&&e!==void 0||s==="disabled"&&e==="a"||(n[s]=t[s]);return n}function Ik(t,e,n,s,o,c){const{activeProps:u,inactiveProps:d,className:f,style:p,target:y}=e,g=Qb(n?u:d,{})??(n?$k:Pk);Object.assign(t,g),t.href=s,c!=="a"&&(t.disabled=o),t.target=y;const v=g.style;(p||v)&&(t.style=p&&v?{...p,...v}:p||v);const b=g.className;return(f||b)&&(t.className=f?b?`${f} ${b}`:f:b),o&&(t.role="link",t["aria-disabled"]=!0),n&&(t["data-status"]="active",t["aria-current"]="page"),t}var nc=new WeakMap,Eh=t=>{clearTimeout(nc.get(t)),nc.delete(t)},pi=(t,e)=>t?n=>n.defaultPrevented||(t(n),n.defaultPrevented||e(n)):e;function Lk(t,e,n){if(n)return;const s=t.maskedLocation??t,o=s.external?s.publicHref:e.history.createHref(s.publicHref)||"/";if(!((s.external||o!==s.publicHref)&&tw(o,e.protocolAllowlist)))return o}var zu=ue.memo(ue.forwardRef((t,e)=>{const n=t._asChild||"a",s=Ck(t,e,n),o=typeof t.children=="function"?t.children({isActive:s["data-status"]==="active"}):t.children;return ue.createElement(n,s,o)}),Nk);function Nk(t,e){let n=0;for(const s in e)if(n++,t[s]!==e[s]&&(!RS.has(s)||!Qn(t[s],e[s],!1,!0)))return!1;for(const s in t)n--;return n===0}var jk=class extends iS{constructor(e){super(e),this.useMatch=n=>bs({...n,from:this.id}),this.useRouteContext=n=>SS({...n,from:this.id}),this.useSearch=n=>bS({...n,from:this.id}),this.useParams=n=>_S({...n,from:this.id}),this.useLoaderDeps=n=>vS({...n,from:this.id}),this.useLoaderData=n=>yS({...n,from:this.id}),this.useNavigate=()=>wS({from:this.fullPath}),this.Link=ce.forwardRef((n,s)=>ae.jsx(zu,{ref:s,from:this.fullPath,...n}))}};function Mk(t){return new jk(t)}function Uk(){return t=>zk(t)}var Bk=class extends XO{constructor(t){super(t),this.useMatch=e=>bs({...e,from:this.id}),this.useRouteContext=e=>SS({...e,from:this.id}),this.useSearch=e=>bS({...e,from:this.id}),this.useParams=e=>_S({...e,from:this.id}),this.useLoaderDeps=e=>vS({...e,from:this.id}),this.useLoaderData=e=>yS({...e,from:this.id}),this.useNavigate=()=>wS({from:this.fullPath}
13),this.Link=ce.forwardRef((e,n)=>ae.jsx(zu,{ref:n,from:this.fullPath,...e}))}};function zk(t){return new Bk(t)}function U(t){return e=>{const n=Mk(e);return n.isRoot=!1,n}}function D(t,e){let n,s,o;const c=()=>(n||(o=void 0,n=t().then(d=>{n=void 0,u.preload=void 0,s=d[e??"default"]}).catch(d=>{n=void 0,o=d})),n),u=function(f){if(o){if(YT(o)&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${o.message}`;if(!sessionStorage.getItem(p))throw sessionStorage.setItem(p,"1"),window.location.reload(),new Promise(()=>{})}throw o}if(!s)if(wu)wu(c());else throw c();return ue.createElement(s,f)};return u.preload=c,u}function qk(t){const e=Ut(),n=`not-found-${Xn(e.stores.location,s=>s.pathname)}-${Xn(e.stores.status)}`;return ae.jsx(Qp,{getResetKey:()=>n,onCatch:(s,o)=>{if(vs(s))t.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(vs(s))return t.fallback?.(s);throw s},children:t.children})}function Hk(){return ae.jsx("p",{children:"Not Found"})}function ES(t,e,n){return e.options.notFoundComponent?ae.jsx(e.options.notFoundComponent,{...n}):t.options.defaultNotFoundComponent?ae.jsx(t.options.defaultNotFoundComponent,{...n}):ae.jsx(Hk,{})}function qu(t,e){const n=e?.options.pendingComponent??t.options.defaultPendingComponent;return n?ae.jsx(n,{}):null}var Vk=(t,e)=>t[0]===e[0]&&t[1]===e[1],TS=(t,e,n)=>!e.isRoot||e.options.shellComponent||e.options.wrapInSuspense||n===!1||n==="data-only"||!t.ssr,AS=ue.memo(function({routeId:e}){const n=Ut();return ae.jsx(Fk,{router:n,match:Xn(n.stores.getMatchStore(e))})});function Fk({router:t,match:e}){const n=t.routesById[e.routeId],s=qu(t,n),o=n.options.errorComponent??t.options.defaultErrorComponent,c=n.options.onCatch??t.options.defaultOnCatch,u=n.isRoot?n.options.notFoundComponent??t.options.notFoundRoute?.options.component:n.options.notFoundComponent,d=e.ssr===!1||e.ssr==="data-only",f=TS(t,n,e.ssr)&&(n.options.wrapInSuspense??s??(n.options.errorComponent?.preload||d));let p=ae.jsx(Gk,{match:e});d&&(p=ae.jsx(dk,{fallback:s,children:p})),u&&(p=ae.jsx(qk,{fallback:v=>{if(v.routeId??=e.routeId,v.routeId!==e.routeId)throw v;return ue.createElement(u,v)},children:p})),o&&(p=ae.jsx(Qp,{getResetKey:()=>e,errorComponent:o,onCatch:(v,b)=>{if(vs(v))throw v.routeId??=e.routeId,v;c?.(v,b)},children:p})),f&&(p=ae.jsx(ue.Suspense,{fallback:s,children:p}));const y=null,g=n.isRoot?n.options.shellComponent:void 0;return ae.jsx(em.Provider,{value:e.routeId,children:g?ae.jsxs(g,{children:[p,y]}):ae.jsxs(ae.Fragment,{children:[p,y]})})}var Gk=ue.memo(function({match:e}){const n=Ut(),s=e.routeId,o=n.routesById[s],c=ue.useMemo(()=>{const d=(o.options.remountDeps??n.options.defaultRemountDeps)?.({routeId:s,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return d?JSON.stringify(d):void 0},[s,e.loaderDeps,e._strictParams,e._strictSearch,o.options.remountDeps,n.options.defaultRemountDeps]),u=ue.useMemo(()=>{const d=o.options.component??n.options.defaultComponent;return d?ae.jsx(d,{},c):ae.jsx(xS,{})},[c,o.options.component,n.options.defaultComponent]);if(e.status==="pending"){if(n.ssr&&!TS(n,o,e.ssr))return u;if(n._tx)throw n._tx[5];return qu(n,o)}if(e.status==="notFound")return ES(n,o,e.error);if(e.status==="error")throw e.error;return u}),xS=ue.memo(function(){const e=Ut(),n=ue.useContext(em);let s,o,c;{const d=e.stores.getMatchStore(n);[s,o]=Xn(d,f=>[!!f._notFound,f.error],{compare:Vk}),c=Xn(e.stores.ids,f=>f[f.indexOf(n)+1])}if(s)return ES(e,e.routesById[n],o);if(!c)return null;const u=ae.jsx(AS,{routeId:c});return n===ki?ae.jsx(ue.Suspense,{fallback:qu(e),children:u}):u});function OS(t,e){const n=t[1];t.length=0,n?.(e)}function Kk({t}){const e=Ut(),n=e._rendered??=[];return e.startTransition=(s,o)=>new Promise(c=>{OS(n,!1),n.push(o,c),t(e),ue.startTransition(s)}),fS(()=>{const s=e.history.subscribe(e.load);e.updateLatestLocation();const o=e.latestLocation,c=e.buildLocation({to:o.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(hr(o.publicHref)!==hr(c.publicHref))return e.commitLocation({...c,replace:!0,ignoreBlocker:!0}),s;const u=e.stores.resolvedLocation.get();return u?.href===o.href&&u.state.__TSR_key===o.state.__TSR_key?n.push(e.stores.matches.get(),d=>{d&&e.emit({type:"onRendered",...Lu(u,u)})}):e._tx||e.load({sync:!0}).catch(console.error),s},[e,e.history]),null}function Yk(){const t=Ut(),e=t.routesById[ki],n=qu(t,e),s=ae.jsxs(ae.Fragment,{children:[ae.jsx(Kk,{t:ue.useState()[1]}),t.ssr?ae.jsx(G_,{}):ae.jsx(ue.Suspense,{fallback:n,children:ae.jsx(G_,{})})]});return t.options.InnerWrap?ae.jsx(t.options.InnerWrap,{children:s}):s}function G_(){const t=Ut(),e=t._rendered,n=Xn(t.stores.matches,u=>e[0]??u),s=n[0],o=s?.routeId;fS(()=>{e[0]===n&&OS(e,!0)},[e,n]);const c=o?ae.jsx(AS,{routeId:o}):null;return t.options.disableGlobalCatchBoundary?c:ae.jsx(Qp,{getResetKey:()=>s,onCatch:void 0,children:c})}var Wk=t=>({createMutableStore:B_,createReadonlyStore:B_,batch:vk}),Zk=t=>new Jk(t),Jk=class extends IA{constructor(t){super(t,Wk)}};function Qk({router:t,children:e,...n}
13){Xb(n)&&t.update({...t.options,...n,context:{...t.options.context,...n.context}});const s=ae.jsx(hS.Provider,{value:t,children:e});return t.options.Wrap?ae.jsx(t.options.Wrap,{children:s}):s}function Xk({router:t,...e}){return ae.jsx(Qk,{router:t,...e,children:ae.jsx(Yk,{})})}function eC(t){const e=Ut();return Xn(e.stores.location,gS(t,e))}function K_(t,e){if(e)for(const[n,s]of Object.entries(e))n!=="suppressHydrationWarning"&&s!==void 0&&s!==!1&&t.setAttribute(n,typeof s=="boolean"?"":String(s))}function kS(t){const{attrs:e,children:n,nonce:s,preventScriptHoist:o}=t,c=ue.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(t.tag){case"title":return ae.jsx("title",{...e,suppressHydrationWarning:!0,children:n});case"meta":return ae.jsx("meta",{...e,suppressHydrationWarning:!0});case"link":return ae.jsx("link",{...e,precedence:e?.precedence??(e?.rel==="stylesheet"?"default":void 0),nonce:s,suppressHydrationWarning:!0});case"style":return t.inlineCss,ae.jsx("style",{...e,dangerouslySetInnerHTML:c,nonce:s});case"script":return ae.jsx(tC,{attrs:e,preventScriptHoist:o,children:n});default:return null}}function tC({attrs:t,children:e,preventScriptHoist:n}){Ut();const s=Xp(),o=ue.useMemo(()=>e===void 0?void 0:{__html:e},[e]),c=typeof t?.type=="string"&&t.type!==""&&t.type!=="text/javascript"&&t.type!=="module";if(ue.useEffect(()=>{if(!c){if(t?.src){const u=document.createElement("a");u.href=t.src;const d=u.href;for(const p of document.scripts)if(p.src===d)return;const f=document.createElement("script");return K_(f,t),document.head.appendChild(f),()=>f.remove()}if(typeof e=="string"){const u=typeof t?.type=="string"?t.type:"text/javascript",d=typeof t?.nonce=="string"?t.nonce:void 0;for(const p of document.scripts){if(p.hasAttribute("src"))continue;const y=p.getAttribute("type")??"text/javascript",g=p.getAttribute("nonce")??void 0;if(p.textContent===e&&y===u&&g===d)return}const f=document.createElement("script");return f.textContent=e,K_(f,t),document.head.appendChild(f),()=>f.remove()}}},[t,e,c]),c&&typeof e=="string")return ae.jsx("script",{...t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:o});if(!s){if(t?.src)return ae.jsx("script",{...t,suppressHydrationWarning:!0});if(typeof e=="string")return ae.jsx("script",{...t,dangerouslySetInnerHTML:o,suppressHydrationWarning:!0})}return null}function nC(t,e,n,s){n=pw(n);const o=n.map(S=>S.meta).filter(S=>S!==void 0),c=[],u={};let d;for(let S=o.length-1;S>=0;S--){const x=o[S];for(let E=x.length-1;E>=0;E--){const k=x[E];if(k)if(k.title)d||(d={tag:"title",children:k.title});else if("script:ld+json"in k)try{const O=JSON.stringify(k["script:ld+json"]);c.push({tag:"script",attrs:{type:"application/ld+json"},children:eA(O)})}catch{}else{const O=k.name??k.property;if(O){if(u[O])continue;u[O]=!0}c.push({tag:"meta",attrs:{...k,nonce:e}})}}}d&&c.push(d),e&&c.push({tag:"meta",attrs:{property:"csp-nonce",content:e}}),c.reverse();const f=n.flatMap(S=>S.links??[]).filter(S=>S!==void 0).map(S=>({tag:"link",attrs:{...S,nonce:e}})),p=t.ssr?.manifest,y=[];p&&(n.forEach(S=>{p.routes[S.routeId]?.css?.forEach(x=>{const E=ZO(x);y.push({tag:"link",attrs:{rel:"stylesheet",...E,crossOrigin:sS(s,"stylesheet")??E.crossOrigin,suppressHydrationWarning:!0,nonce:e}})})}),p.inlineStyle&&y.push({tag:"style",attrs:{...p.inlineStyle.attrs,nonce:e},children:p.inlineStyle.children,inlineCss:!0}));const g=[];p&&n.forEach(S=>{p.routes[S.routeId]?.preloads?.forEach(x=>{g.push({tag:"link",attrs:{...YO(p,x,s),nonce:e}})})});const v=n.flatMap(S=>S.styles??[]).filter(S=>S!==void 0).map(({children:S,...x})=>({tag:"style",attrs:{...x,nonce:e},children:S})),b=n.flatMap(S=>S.headScripts??[]).filter(S=>S!==void 0).map(({children:S,...x})=>({tag:"script",attrs:{...x,nonce:e},children:S})),w=[];return Zl(w,c),w.push(...g),Zl(w,f),w.push(...y),Zl(w,v),Zl(w,b),w}var rC=t=>{const e=Ut(),n=e.options.ssr?.nonce,s=ue.useCallback(o=>nC(e,n,o,t),[t,n,e]);return Xn(e.stores.matches,s,{compare:Qn})};function aC(t){const e=rC(t.assetCrossOrigin),n=Ut().options.ssr?.nonce;return ae.jsx(ae.Fragment,{children:e.map(s=>ue.createElement(kS,{...s,key:`tsr-meta-${JSON.stringify(s)}`,nonce:n}))})}var sC={suppressHydrationWarning:!0},iC=()=>{const t=Ut(),e=t.options.ssr?.nonce,n=o=>{const c=JO(o,t.ssr?.manifest,e,sC);for(const u of c[1])if(typeof u.attrs?.src=="string"){const d=u;d.preventScriptHoist=!0}return c},s=o=>QO(n(o));return oC(Xn(t.stores.matches,s,{compare:Qn}))};function oC(t){return ae.jsx(ae.Fragment,{children:t.map((e,n)=>ue.createElement(kS,{...e,key:`tsr-scripts-${e.tag}-${n}`}))})}function Y_(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"}function hp(t,e){const n=Object.create(null);
13if(t)for(const s of Object.keys(t))Y_(s)&&(n[s]=t[s]);if(e&&typeof e=="object")for(const s of Object.keys(e))Y_(s)&&(n[s]=e[s]);return n}function CS(t){return Object.create(null)}var PS=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},Pt=(t,e)=>{const n=e||t||{};typeof n.method>"u"&&(n.method="GET");const s=u=>Pt(void 0,{...n,validator:u,inputValidator:u});return Object.assign(u=>Pt(void 0,{...n,...u}),{options:n,middleware:u=>{const d=[...n.middleware||[]];u.forEach(p=>{d_ in p?p.options.middleware&&d.push(...p.options.middleware):d.push(p)});const f=Pt(void 0,{...n,middleware:d});return f[d_]=!0,f},validator:s,inputValidator:s,handler:(...u)=>{const[d,f]=u,p={...n,extractedFn:d,serverFn:f},y=[...p.middleware||[],uC(p)];return d.method=n.method,Object.assign(async g=>{const v=await W_(y,"client",{...d,...p,data:g?.data,headers:g?.headers,signal:g?.signal,fetch:g?.fetch,context:CS()}),b=Jb(v.error);if(b)throw b;if(v.error)throw v.error;return v.result},{...d,method:n.method,__executeServer:async g=>{const v=PS(),b=v.contextAfterGlobalMiddlewares;return await W_(y,"server",{...d,data:g.data,method:g.method??n.method,serverFnMeta:d.serverFnMeta,context:hp(g.context,b),request:v.request}).then(w=>({result:w.result,error:w.error,context:w.sendContext}))}})}})};async function W_(t,e,n){let s=cC([...Mp()?.functionMiddleware||[],...t]);if(e==="server"){const c=PS();c?.executedRequestMiddlewares&&(s=s.filter(u=>!c.executedRequestMiddlewares.has(u)))}const o=async c=>{const u=s.shift();if(!u)return c;try{let d="validator"in u.options?u.options.validator:void 0;!d&&"inputValidator"in u.options&&(d=u.options.inputValidator),d&&e==="server"&&(c.data=await lC(d,c.data));let f;if(e==="client"?"client"in u.options&&(f=u.options.client):"server"in u.options&&(f=u.options.server),f){const y=await f({...c,next:async(g={})=>{const v=await o({...c,...g,context:hp(c.context,g.context),sendContext:hp(c.sendContext,g.sendContext),headers:TO(c.headers,g.headers),_callSiteFetch:c._callSiteFetch,fetch:c._callSiteFetch??g.fetch??c.fetch,result:g.result!==void 0?g.result:g instanceof Response?g:c.result,error:g.error??c.error});if(v.error)throw v.error;return v}});if(Up(y))return{...c,error:y};if(y instanceof Response)return{...c,result:y};if(!y)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return y}return o(c)}catch(d){return{...c,error:d}}};return o({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||CS(),_callSiteFetch:n.fetch})}function cC(t,e=100){const n=new Set,s=[],o=(c,u)=>{if(u>e)throw new Error(`Middleware nesting depth exceeded maximum of ${e}. Check for circular references.`);
13c.forEach(d=>{d.options.middleware&&o(d.options.middleware,u+1),n.has(d)||(n.add(d),s.push(d))})};return o(t,0),s}async function lC(t,e){if(t==null)return{};if("~standard"in t){const n=await t["~standard"].validate(e);if(n.issues)throw new Error(JSON.stringify(n.issues,void 0,2));return n.value}if("parse"in t)return t.parse(e);if(typeof t=="function")return t(e);throw new Error("Invalid validator type!")}function uC(t){return{"~types":void 0,options:{inputValidator:t.validator??t.inputValidator,client:async({next:e,sendContext:n,fetch:s,...o})=>{const c={...o,context:n,fetch:s};return e(await t.extractedFn?.(c))},server:async({next:e,...n})=>{const s=await t.serverFn?.(n);return e({...n,result:s})}}}}var Ur=(t,e)=>{const n={type:"request",...e||t},s=o=>Ur({},Object.assign(n,{validator:o,inputValidator:o}));return{options:n,middleware:o=>Ur({},Object.assign(n,{middleware:o})),validator:s,inputValidator:s,client:o=>Ur({},Object.assign(n,{client:o})),server:o=>Ur({},Object.assign(n,{server:o}))}};function $S(t,e){for(let n=0,s=e.length;n<s;n++){const o=e[n];t.has(o)||(t.add(o),o.extends&&$S(t,o.extends))}}var dC=t=>({getOptions:async()=>{const e=await t();if(e.serializationAdapters){const n=new Set;$S(n,e.serializationAdapters),e.serializationAdapters=Array.from(n)}return e},createMiddleware:Ur});function fC(t,e,n,s){function o(c){return c instanceof n?c:new n(function(u){u(c)})}return new(n||(n=Promise))(function(c,u){function d(y){try{p(s.next(y))}catch(g){u(g)}}function f(y){try{p(s.throw(y))}catch(g){u(g)}}function p(y){y.done?c(y.value):o(y.value).then(d,f)}p((s=s.apply(t,e||[])).next())})}const hC=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class tm extends Error{constructor(e,n="FunctionsError",s){super(e),this.name=n,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class pC extends tm{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Z_ extends tm{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class J_ extends tm{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var pp;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(pp||(pp={}));class mC{constructor(e,{headers:n={},customFetch:s,region:o=pp.Any}={}){this.url=e,this.headers=n,this.region=o,this.fetch=hC(s)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return fC(this,arguments,void 0,function*(n,s={}){var o;let c,u;try{const{headers:d,method:f,body:p,signal:y,timeout:g}=s;let v={},{region:b}=s;b||(b=this.region);const w=new URL(`${this.url}/${n}`);b&&b!=="any"&&(v["x-region"]=b,w.searchParams.set("forceFunctionRegion",b));let S;p&&(d&&!Object.prototype.hasOwnProperty.call(d,"Content-Type")||!d)?typeof Blob<"u"&&p instanceof Blob||p instanceof ArrayBuffer?(v["Content-Type"]="application/octet-stream",S=p):typeof p=="string"?(v["Content-Type"]="text/plain",S=p):typeof FormData<"u"&&p instanceof FormData?S=p:(v["Content-Type"]="application/json",S=JSON.stringify(p)):p&&typeof p!="string"&&!(typeof Blob<"u"&&p instanceof Blob)&&!(p instanceof ArrayBuffer)&&!(typeof FormData<"u"&&p instanceof FormData)?S=JSON.stringify(p):S=p;let x=y;g&&(u=new AbortController,c=setTimeout(()=>u.abort(),g),y?(x=u.signal,y.addEventListener("abort",()=>u.abort())):x=u.signal);const E=yield this.fetch(w.toString(),{method:f||"POST",headers:Object.assign(Object.assign(Object.assign({},v),this.headers),d),body:S,signal:x}).catch(X=>{throw new pC(X)}),k=E.headers.get("x-relay-error");if(k&&k==="true")throw new Z_(E);if(!E.ok)throw new J_(E);let O=((o=E.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),j;return O==="application/json"?j=yield E.json():O==="application/octet-stream"||O==="application/pdf"?j=yield E.blob():O==="text/event-stream"?j=E:O==="multipart/form-data"?j=yield E.formData():j=yield E.text(),{data:j,error:null,response:E}}
13catch(d){return{data:null,error:d,response:d instanceof J_||d instanceof Z_?d.context:void 0}}finally{c&&clearTimeout(c)}})}}const DS=3,Q_=t=>Math.min(1e3*2**t,3e4),gC=[520,503],IS=["GET","HEAD","OPTIONS"];var yC=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function X_(t,e){return new Promise(n=>{if(e?.aborted){n();return}const s=setTimeout(()=>{e?.removeEventListener("abort",o),n()},t);function o(){clearTimeout(s),n()}e?.addEventListener("abort",o)})}function vC(t,e,n,s){return!(!s||n>=DS||!IS.includes(t)||!gC.includes(e))}var _C=class{constructor(t){var e,n,s,o,c;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(s=t.shouldStripNulls)!==null&&s!==void 0?s:!1,this.urlLengthLimit=(o=t.urlLengthLimit)!==null&&o!==void 0?o:8e3,this.retryEnabled=(c=t.retry)!==null&&c!==void 0?c:!0,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}retry(t){return this.retryEnabled=t,this}then(t,e){var n=this;if(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"),this.shouldStripNulls){const u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const s=this.fetch;let c=(async()=>{let u=0;for(;;){const p=new Headers(n.headers);u>0&&p.set("X-Retry-Count",String(u));let y;try{y=await s(n.url.toString(),{method:n.method,headers:p,body:JSON.stringify(n.body,(g,v)=>typeof v=="bigint"?v.toString():v),signal:n.signal})}catch(g){if(g?.name==="AbortError"||g?.code==="ABORT_ERR"||!IS.includes(n.method))throw g;if(n.retryEnabled&&u<DS){const v=Q_(u);u++,await X_(v,n.signal);continue}throw g}if(vC(n.method,y.status,u,n.retryEnabled)){var d,f;const g=(d=(f=y.headers)===null||f===void 0?void 0:f.get("Retry-After"))!==null&&d!==void 0?d:null,v=g!==null?Math.max(0,parseInt(g,10)||0)*1e3:Q_(u);await y.text(),u++,await X_(v,n.signal);continue}return await n.processResponse(y)}})();return this.shouldThrowOnError||(c=c.catch(u=>{var d;let f="",p="",y="";const g=u?.cause;if(g){var v,b,w,S;const k=(v=g?.message)!==null&&v!==void 0?v:"",O=(b=g?.code)!==null&&b!==void 0?b:"";f=`${(w=u?.name)!==null&&w!==void 0?w:"FetchError"}: ${u?.message}`,f+=` 14 15Caused by: ${(S=g?.name)!==null&&S!==void 0?S:"Error"}: ${k}`,O&&(f+=` (${O})`),g?.stack&&(f+=` 16${g.stack}`)}else{var x;f=(x=u?.stack)!==null&&x!==void 0?x:""}const E=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(y="",p="Request was aborted (timeout or manual cancellation)",E>this.urlLengthLimit&&(p+=`. Note: Your request URL is ${E} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(g?.name==="HeadersOverflowError"||g?.code==="UND_ERR_HEADERS_OVERFLOW")&&(y="",p="HTTP headers exceeded server limits (typically 16KB)",E>this.urlLengthLimit&&(p+=`. Your request URL is ${E} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(d=u?.
16name)!==null&&d!==void 0?d:"FetchError"}: ${u?.message}`,details:f,hint:p,code:y},data:null,count:null,status:0,statusText:""}})),c.then(t,e)}async processResponse(t){var e=this;let n=null,s=null,o=null,c=t.status,u=t.statusText;if(t.ok){var d,f;if(e.method!=="HEAD"){var p;const v=await t.text();v===""||(e.headers.get("Accept")==="text/csv"||e.headers.get("Accept")&&(!((p=e.headers.get("Accept"))===null||p===void 0)&&p.includes("application/vnd.pgrst.plan+text"))?s=v:s=JSON.parse(v))}const y=(d=e.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),g=(f=t.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");y&&g&&g.length>1&&(o=parseInt(g[1])),e.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(n={code:"PGRST116",details:`Results contain ${s.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,o=null,c=406,u="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const y=await t.text();try{n=JSON.parse(y),Array.isArray(n)&&t.status===404&&(s=[],n=null,c=200,u="OK")}catch{t.status===404&&y===""?(c=204,u="No Content"):n={message:y}}if(n&&e.shouldThrowOnError)throw new yC(n)}return{success:n===null,error:n,data:s,count:o,status:c,statusText:u}}returns(){return this}overrideTypes(){return this}},bC=class extends _C{select(t){let e=!1;const n=(t??"*").split("").map(s=>/\s/.test(s)&&!e?"":(s==='"'&&(e=!e),s)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:n,foreignTable:s,referencedTable:o=s}={}){const c=o?`${o}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const s=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,e,{foreignTable:n,referencedTable:s=n}={}){const o=typeof s>"u"?"offset":`${s}.offset`,c=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(c,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:s=!1,wal:o=!1,format:c="text"}={}){var u;const d=[t?"analyze":null,e?"verbose":null,n?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),f=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${f}"; options=${d};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const e0=new RegExp("[,()]");var wi=class extends bC{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const n=Array.from(new Set(e)).map(s=>typeof s=="string"&&e0.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(s=>typeof s=="string"&&e0.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:n,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const c=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${o}fts${c}.${e}`),this}match(t){return Object.entries(t).filter(([e,n])=>
16n!==void 0).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const s=n?`${n}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},wC=class{constructor(t,{headers:e={},schema:n,fetch:s,urlLengthLimit:o=8e3,retry:c}){this.url=t,this.headers=new Headers(e),this.schema=n,this.fetch=s,this.urlLengthLimit=o,this.retry=c}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:n=!1,count:s}=e??{},o=n?"HEAD":"GET";let c=!1;const u=(t??"*").split("").map(p=>/\s/.test(p)&&!c?"":(p==='"'&&(c=!c),p)).join(""),{url:d,headers:f}=this.cloneRequestState();return d.searchParams.set("select",u),s&&f.append("Prefer",`count=${s}`),new wi({method:o,url:d,headers:f,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:n=!0}={}){var s;const o="POST",{url:c,headers:u}=this.cloneRequestState();if(e&&u.append("Prefer",`count=${e}`),n||u.append("Prefer","missing=default"),Array.isArray(t)){const d=t.reduce((f,p)=>f.concat(Object.keys(p)),[]);if(d.length>0){const f=[...new Set(d)].map(p=>`"${p}"`);c.searchParams.set("columns",f.join(","))}}return new wi({method:o,url:c,headers:u,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,ignoreDuplicates:n=!1,count:s,defaultToNull:o=!0}={}){var c;const u="POST",{url:d,headers:f}=this.cloneRequestState();if(f.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),e!==void 0&&d.searchParams.set("on_conflict",e),s&&f.append("Prefer",`count=${s}`),o||f.append("Prefer","missing=default"),Array.isArray(t)){const p=t.reduce((y,g)=>y.concat(Object.keys(g)),[]);if(p.length>0){const y=[...new Set(p)].map(g=>`"${g}"`);d.searchParams.set("columns",y.join(","))}}return new wi({method:u,url:d,headers:f,schema:this.schema,body:t,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:e}={}){var n;const s="PATCH",{url:o,headers:c}=this.cloneRequestState();return e&&c.append("Prefer",`count=${e}`),new wi({method:s,url:o,headers:c,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const n="DELETE",{url:s,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new wi({method:n,url:s,headers:o,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function hc(t){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hc(t)}function SC(t,e){if(hc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e);if(hc(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function RC(t){var e=SC(t,"string");return hc(e)=="symbol"?e:e+""}function EC(t,e,n){return(e=RC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function t0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,s)}return n}function Xl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?t0(Object(n),!0).forEach(function(s){EC(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t0(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var TC=class LS{constructor(e,{headers:n={},schema:s,fetch:o,timeout:c,urlLengthLimit:u=8e3,retry:d}={}){this.url=e,this.headers=new Headers(n),this.schemaName=s,this.urlLengthLimit=u;const f=o??globalThis.fetch;c!==void 0&&c>0?this.fetch=(p,y)=>{const g=new AbortController,v=setTimeout(()=>g.abort(),c),b=y?.signal;if(b){if(b.aborted)return clearTimeout(v),f(p,y);const w=()=>{clearTimeout(v),g.abort()};return b.addEventListener("abort",w,{once:!0}),f(p,Xl(Xl({},y),{},{signal:g.signal})).finally(()=>{clearTimeout(v),b.removeEventListener("abort",w)})}return f(p,Xl(Xl({},y),{},{signal:g.signal})).finally(()=>clearTimeout(v))}:this.fetch=f,this.retry=d}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new wC(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(e){return new LS(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,n={}
16,{head:s=!1,get:o=!1,count:c}={}){var u;let d;const f=new URL(`${this.url}/rpc/${e}`);let p;const y=b=>b!==null&&typeof b=="object"&&(!Array.isArray(b)||b.some(y)),g=s&&Object.values(n).some(y);g?(d="POST",p=n):s||o?(d=s?"HEAD":"GET",Object.entries(n).filter(([b,w])=>w!==void 0).map(([b,w])=>[b,Array.isArray(w)?`{${w.join(",")}}`:`${w}`]).forEach(([b,w])=>{f.searchParams.append(b,w)})):(d="POST",p=n);const v=new Headers(this.headers);return g?v.set("Prefer",c?`count=${c},return=minimal`:"return=minimal"):c&&v.set("Prefer",`count=${c}`),new wi({method:d,url:f,headers:v,schema:this.schemaName,body:p,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class AC{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const s=typeof global<"u"?global:void 0;if(s&&typeof s.WebSocket<"u")return{type:"native",wsConstructor:s.WebSocket};if(typeof globalThis<"u"&&typeof n.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"&&n.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.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."};const o=globalThis.process;if(o){const c=o.versions;if(c&&c.node){const u=c.node,d=parseInt(u.replace(/^v/,"").split(".")[0]);return d>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${d} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${d} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 17import ws from "ws" 18new 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 e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=` 19 20Suggested solution: ${e.workaround}`),new Error(n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const xC="2.105.4",OC=`realtime-js/${xC}`,kC="1.0.0",NS="2.0.0",CC=NS,PC=1e4,$C=100,Ta={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},jS={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},mp={connecting:"connecting",closing:"closing",closed:"closed"};class DC{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let s=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,s;const o=(s=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&s!==void 0?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(e){var n,s;const o=(s=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&s!==void 0?s:{},u=new TextEncoder().encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(e,n,s){var o,c;const u=e.topic,d=(o=e.ref)!==null&&o!==void 0?o:"",f=(c=e.join_ref)!==null&&c!==void 0?c:"",p=e.payload.event,y=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},g=Object.keys(y).length===0?"":JSON.stringify(y);if(f.length>255)throw new Error(`joinRef length ${f.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`ref length ${d.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(p.length>255)throw new Error(`userEvent length ${p.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`metadata length ${g.length} exceeds maximum of 255`);const v=this.USER_BROADCAST_PUSH_META_LENGTH+f.length+d.length+u.length+p.length+g.length,b=new ArrayBuffer(this.HEADER_LENGTH+v);let w=new DataView(b),S=0;w.setUint8(S++,this.KINDS.userBroadcastPush),w.setUint8(S++,f.length),w.setUint8(S++,d.length),w.setUint8(S++,u.length),w.setUint8(S++,p.length),w.setUint8(S++,g.length),w.setUint8(S++,n),Array.from(f,E=>
20w.setUint8(S++,E.charCodeAt(0))),Array.from(d,E=>w.setUint8(S++,E.charCodeAt(0))),Array.from(u,E=>w.setUint8(S++,E.charCodeAt(0))),Array.from(p,E=>w.setUint8(S++,E.charCodeAt(0))),Array.from(g,E=>w.setUint8(S++,E.charCodeAt(0)));var x=new Uint8Array(b.byteLength+s.byteLength);return x.set(new Uint8Array(b),0),x.set(new Uint8Array(s),b.byteLength),x.buffer}decode(e,n){if(this._isArrayBuffer(e)){let s=this._binaryDecode(e);return n(s)}if(typeof e=="string"){const s=JSON.parse(e),[o,c,u,d,f]=s;return n({join_ref:o,ref:c,topic:u,event:d,payload:f})}return n({})}_binaryDecode(e){const n=new DataView(e),s=n.getUint8(0),o=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,n,o)}_decodeUserBroadcast(e,n,s){const o=n.getUint8(1),c=n.getUint8(2),u=n.getUint8(3),d=n.getUint8(4);let f=this.HEADER_LENGTH+4;const p=s.decode(e.slice(f,f+o));f=f+o;const y=s.decode(e.slice(f,f+c));f=f+c;const g=s.decode(e.slice(f,f+u));f=f+u;const v=e.slice(f,e.byteLength),b=d===this.JSON_ENCODING?JSON.parse(s.decode(v)):v,w={type:this.BROADCAST_EVENT,event:y,payload:b};return u>0&&(w.meta=JSON.parse(g)),{join_ref:null,ref:null,topic:p,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([s])=>n.includes(s)))}}var at;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(at||(at={}));const n0=(t,e,n={})=>{var s;const o=(s=n.skipTypes)!==null&&s!==void 0?s:[];return e?Object.keys(e).reduce((c,u)=>(c[u]=IC(u,t,e,o),c),{}):{}},IC=(t,e,n,s)=>{const o=e.find(d=>d.name===t),c=o?.type,u=n[t];return c&&!s.includes(c)?MS(c,u):gp(u)},MS=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return MC(e,n)}switch(t){case at.bool:return LC(e);case at.float4:case at.float8:case at.int2:case at.int4:case at.int8:case at.numeric:case at.oid:return NC(e);case at.json:case at.jsonb:return jC(e);case at.timestamp:return UC(e);case at.abstime:case at.date:case at.daterange:case at.int4range:case at.int8range:case at.money:case at.reltime:case at.text:case at.time:case at.timestamptz:case at.timetz:case at.tsrange:case at.tstzrange:return gp(e);default:return gp(e)}},gp=t=>t,LC=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},NC=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},jC=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},MC=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,s=t[n];if(t[0]==="{"&&s==="}"){let c;const u=t.slice(1,n);try{c=JSON.parse("["+u+"]")}catch{c=u?u.split(","):[]}return c.map(d=>MS(e,d))}return t},UC=t=>typeof t=="string"?t.replace(" ","T"):t,US=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};var rc=t=>typeof t=="function"?t:function(){return t},BC=typeof self<"u"?self:null,Si=typeof window<"u"?window:null,ur=BC||Si||globalThis,zC="2.0.0",qC=1e4,HC=1e3,fr={connecting:0,open:1,closing:2,closed:3},ln={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Nr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},yp={longpoll:"longpoll",websocket:"websocket"},VC={complete:4},vp="base64url.bearer.phx.",eu=class{constructor(t,e,n,s){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 20
20oks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,this.reset(),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()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:t,response:e,_ref:n}){this.recHooks.filter(s=>s.status===t).forEach(s=>s.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},BS=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},FC=class{constructor(t,e,n){this.state=ln.closed,this.topic=t,this.params=rc(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new eu(this,Nr.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new BS(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=ln.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",s=>{this.state=ln.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=ln.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=ln.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new eu(this,Nr.leave,rc({}),this.timeout).send(),this.state=ln.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Nr.reply,(s,o)=>{this.trigger(this.replyEventName(o),s)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ln.closed,this.bindings=[]}onClose(t){this.on(Nr.close,t)}onError(t){return this.on(Nr.error,e=>t(e))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){this.bindings=this.bindings.filter(n=>!(n.event===t&&(typeof e>"u"||e===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new eu(this,t,function(){return e},n);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=ln.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Nr.close,"leave")},n=new eu(this,Nr.leave,rc({}),t);return n.receive("ok",()=>e()).receive("timeout",()=>e()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}filterBindings(t,e,n){return!0}isMember(t,e,n,s){return this.topic!==t?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=ln.joining,this.joinPush.resend(t))}trigger(t,e,n,s){let o=this.onMessage(t,e,n,s);if(e&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let c=this.bindings.filter(u=>u.event===t&&this.filterBindings(u,e,n));for(let u=0;u<c.length;u++)c[u].callback(o,n,s||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===ln.closed}isErrored(){return this.state===ln.errored}isJoined(){return this.state===ln.joined}isJoining(){return this.state===ln.joining}isLeaving(){return this.state===ln.leaving}},Ru=class{static request(t,e,n,s,o,c,u){if(ur.XDomainRequest){let d=new ur.XDomainRequest;return this.xdomainRequest(d,t,e,s,o,c,u)}else if(ur.XMLHttpRequest){let d=new ur.XMLHttpRequest;return this.xhrRequest(d,t,e,n,s,o,c,u)}else{if(ur.fetch&&ur.AbortController)return this.fetchRequest(t,e,n,s,o,c,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,n,s,o,c,u){let d={method:t,headers:n,body:s},f=null;return o&&(f=new AbortController,setTimeout(()=>f.abort(),o),d.signal=f.signal),ur.fetch(e,d).then(p=>p.text()).then(p=>this.parseJSON(p)).then(p=>u&&u(p)).catch(p=>{p.name==="AbortError"&&c?c():u&&u(null)}),f}static xdomainRequest(t,e,n,s,o,c,u){return t.timeout=o,t.open(e,n),t.onload=()=>{let d=this.parseJSON(t.responseText);u&&u(d)},c&&(t.ontimeout=c),t.onprogress=()=>{},t.send(s),t}static xhrRequest(t,e,n,s,o,c,u,d){t.open(e,n,!0),t.timeout=c;for(let[f,p]of Object.entries(s))t.setRequestHeader(f,p);return t.onerror=()=>d&&d(null),t.onreadystatechange=()=>{if(t.readyState===VC.complete&&d){let f=this.parseJSON(t.responseText);d(f)}},u&&(t.ontimeout=u),t.send(o),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=e?`${e}[${s}]`:s,c=t[s];typeof c=="object"?n.push(this.serialize(c,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(c))}return n.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},GC=t=>{let e="",n=new Uint8Array(t),s=n.byteLength;for(let o=0;o<s;o++)e+=String.fromCharCode(n[o]);return btoa(e)},mi=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(vp)&&(this.authToken=atob(e[1].slice(vp.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=fr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+yp.websocket),"$1/"+yp.longpoll)}endpointURL(){return Ru.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,n){this.close(t,e,n),this.readyState=fr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===fr.open||this.readyState===fr.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:n,token:s,messages:o}=e;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else n=0;switch(n){case 200:o.forEach(c=>{setTimeout(()=>this.onmessage({data:c}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=fr.open,this.onopen({}),this.poll();break;
20case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(t){typeof t!="string"&&(t=GC(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(` 21`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,n){for(let o of this.reqs)o.abort();this.readyState=fr.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(t,e,n,s,o){let c,u=()=>{this.reqs.delete(c),s()};c=Ru.request(t,this.endpointURL(),e,n,this.timeout,u,d=>{this.reqs.delete(c),this.isActive()&&o(d)}),this.reqs.add(c)}},KC=class Qo{constructor(e,n={}){let s=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(s.state,o=>{let{onJoin:c,onLeave:u,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Qo.syncState(this.state,o,c,u),this.pendingDiffs.forEach(f=>{this.state=Qo.syncDiff(this.state,f,c,u)}),this.pendingDiffs=[],d()}),this.channel.on(s.diff,o=>{let{onJoin:c,onLeave:u,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=Qo.syncDiff(this.state,o,c,u),d())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Qo.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,n,s,o){let c=this.clone(e),u={},d={};return this.map(c,(f,p)=>{n[f]||(d[f]=p)}),this.map(n,(f,p)=>{let y=c[f];if(y){let g=p.metas.map(S=>S.phx_ref),v=y.metas.map(S=>S.phx_ref),b=p.metas.filter(S=>v.indexOf(S.phx_ref)<0),w=y.metas.filter(S=>g.indexOf(S.phx_ref)<0);b.length>0&&(u[f]=p,u[f].metas=b),w.length>0&&(d[f]=this.clone(y),d[f].metas=w)}else u[f]=p}),this.syncDiff(c,{joins:u,leaves:d},s,o)}static syncDiff(e,n,s,o){let{joins:c,leaves:u}=this.clone(n);return s||(s=function(){}),o||(o=function(){}),this.map(c,(d,f)=>{let p=e[d];if(e[d]=this.clone(f),p){let y=e[d].metas.map(v=>v.phx_ref),g=p.metas.filter(v=>y.indexOf(v.phx_ref)<0);e[d].metas.unshift(...g)}s(d,p,f)}),this.map(u,(d,f)=>{let p=e[d];if(!p)return;let y=f.metas.map(g=>g.phx_ref);p.metas=p.metas.filter(g=>y.indexOf(g.phx_ref)<0),o(d,p,f),p.metas.length===0&&delete e[d]}),e}static list(e,n){return n||(n=function(s,o){return o}),this.map(e,(s,o)=>n(s,o))}static map(e,n){return Object.getOwnPropertyNames(e).map(s=>n(s,e[s]))}static clone(e){return JSON.parse(JSON.stringify(e))}},tu={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,s,o,c,u]=JSON.parse(t);return e({join_ref:n,ref:s,topic:o,event:c,payload:u})}},binaryEncode(t){let{join_ref:e,ref:n,event:s,topic:o,payload:c}=t,u=this.META_LENGTH+e.length+n.length+o.length+s.length,d=new ArrayBuffer(this.HEADER_LENGTH+u),f=new DataView(d),p=0;f.setUint8(p++,this.KINDS.push),f.setUint8(p++,e.length),f.setUint8(p++,n.length),f.setUint8(p++,o.length),f.setUint8(p++,s.length),Array.from(e,g=>f.setUint8(p++,g.charCodeAt(0))),Array.from(n,g=>f.setUint8(p++,g.charCodeAt(0))),Array.from(o,g=>f.setUint8(p++,g.charCodeAt(0))),Array.from(s,g=>f.setUint8(p++,g.charCodeAt(0)));var y=new Uint8Array(d.byteLength+c.byteLength);return y.set(new Uint8Array(d),0),y.set(new Uint8Array(c),d.byteLength),y.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,s);case this.KINDS.reply:return this.decodeReply(t,e,s);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,s)}},decodePush(t,e,n){let s=e.getUint8(1),o=e.getUint8(2),c=e.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,d=n.decode(t.slice(u,u+s));u=u+s;let f=n.decode(t.slice(u,u+o));u=u+o;let p=n.decode(t.slice(u,u+c));u=u+c;let y=t.slice(u,t.byteLength);return{join_ref:d,ref:null,topic:f,event:p,payload:y}},decodeReply(t,e,n){let s=e.getUint8(1),o=e.getUint8(2),c=e.getUint8(3),u=e.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,f=n.decode(t.slice(d,d+s));d=d+s;let p=n.decode(t.slice(d,d+o));d=d+o;let y=n.decode(t.slice(d,d+c));d=d+c;let g=n.decode(t.slice(d,d+u));d=d+u;let v=t.slice(d,t.byteLength),b={status:g,response:v};return{join_ref:f,ref:p,topic:y,event:Nr.reply,payload:b}},decodeBroadcast(t,e,n){let s=e.getUint8(1),o=e.getUint8(2),c=this.HEADER_LENGTH+2,u=n.decode(t.slice(c,c+s));c=c+s;
21let d=n.decode(t.slice(c,c+o));c=c+o;let f=t.slice(c,t.byteLength);return{join_ref:null,ref:null,topic:u,event:d,payload:f}}},YC=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||qC,this.transport=e.transport||ur.WebSocket||mi,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=ur&&ur.sessionStorage}catch{}this.sessionStore=e.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=tu.encode.bind(tu),this.defaultDecoder=tu.decode.bind(tu),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==mi?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;Si&&Si.addEventListener&&(Si.addEventListener("pagehide",o=>{this.conn&&(this.disconnect(),s=this.connectClock)}),Si.addEventListener("pageshow",o=>{s===this.connectClock&&(s=null,this.connect())}),Si.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=e.autoSendHeartbeat??!0,this.heartbeatCallback=e.heartbeatCallback??(()=>{}),this.rejoinAfterMs=o=>e.rejoinAfterMs?e.rejoinAfterMs(o):[1e3,2e3,5e3][o-1]||1e4,this.reconnectAfterMs=o=>e.reconnectAfterMs?e.reconnectAfterMs(o):[10,50,100,150,200,250,500,1e3,2e3][o-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(o,c,u)=>{console.log(`${o}: ${c}`,u)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=rc(e.params||{}),this.endPoint=`${t}/${yp.websocket}`,this.vsn=e.vsn||zC,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new BS(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{e.beforeReconnect&&await e.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return mi}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Ru.appendParams(Ru.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,n)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=rc(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==mi?this.connectWithF
vendor: 4,353 bytes, line 21
21allback(mi,this.longPollFallbackMs):this.transportConnect())}log(t,e,n){this.logger&&this.logger(t,e,n)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let s=this.onMessage(o=>{o.ref===e&&(this.off([s]),t(Date.now()-n))});return!0}transportName(t){return t===mi?"LongPoll":t.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${vp}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let n=!1,s=!0,o,c,u=this.transportName(t),d=f=>{this.log("transport",`falling back to ${u}...`,f),this.off([o,c]),s=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return d("memorized");this.fallbackTimer=setTimeout(d,e),c=this.onError(f=>{this.log("transport","error",f),s&&!n&&(clearTimeout(this.fallbackTimer),d(f))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!s){let f=this.transportName(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${f}`,"true"),this.log("transport",`established ${f} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(d,e),this.ping(f=>{this.log("transport","connected to primary after",f),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),HC,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();const s=this.conn;this.waitForBufferDone(s,()=>{e?s.close(e,n||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e,n=1){if(n===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,n+1)},150*n)}waitForSocketClosed(t,e,n=1){if(n===5||t.readyState===fr.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,n+1)},150*n)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(t),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport","error",t);let e=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",t,e,n),(e===this.transport||n>0)&&this.triggerChanError(t)}
21triggerChanError(t){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Nr.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case fr.connecting:return"connecting";case fr.open:return"open";case fr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([n])=>t.indexOf(n)===-1)}channel(t,e={}){let n=new FC(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:s,ref:o,join_ref:c}=t;this.log("push",`${e} ${n} (${c}, ${o})`,s)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:n,event:s,payload:o,ref:c,join_ref:u}=e;if(c&&c===this.pendingHeartbeatRef){const d=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(o.status==="ok"?"ok":"error",d)}catch(f){this.log("error","error in heartbeat callback",f)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${o.status||""} ${n} ${s} ${c&&"("+c+")"||""}`.trim(),o);for(let d=0;d<this.channels.length;d++){const f=this.channels[d];f.isMember(n,s,o,u)&&f.trigger(s,o,c,u)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([n,s])=>{try{s(...e)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}leaveOpenTopic(t){let e=this.channels.find(n=>n.topic===t&&(n.isJoined()||n.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class ac{constructor(e,n){const s=ZC(n);this.presence=new KC(e.getChannel(),s),this.presence.onJoin((o,c,u)=>{const d=ac.onJoinPayload(o,c,u);e.getChannel().trigger("presence",d)}),this.presence.onLeave((o,c,u)=>{const d=ac.onLeavePayload(o,c,u);e.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return ac.transformState(this.presence.state)}static transformState(e){return e=WC(e),Object.getOwnPropertyNames(e).reduce((n,s)=>{const o=e[s];return n[s]=gu(o),n},{})}static onJoinPayload(e,n,s){const o=r0(n),c=gu(s);return{event:"join",key:e,currentPresences:o,newPresences:c}}static onLeavePayload(e,n,s){const o=r0(n),c=gu(s);return{event:"leave",key:e,currentPresences:o,leftPresences:c}}}function gu(t){return t.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function WC(t){return JSON.parse(JSON.stringify(t))}function ZC(t){return t?.events&&{events:t.events}}function r0(t){return t?.metas?gu(t):[]}var a0;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(a0||(a0={}));class JC{get state(){return this.presenceAdapter.state}constructor(e,n){this.channel=e,this.presenceAdapter=new ac(this.channel.channelAdapter,n)}}function QC(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const e=t;
21if(typeof e.code=="number"){const n=typeof e.reason=="string"&&e.reason?` (${e.reason})`:"";return new Error(`socket closed: ${e.code}${n}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class XC{constructor(e,n,s){const o=e2(s);this.channel=e.getSocket().channel(n,o),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,n){return this.channel.on(e,n)}off(e,n){this.channel.off(e,n)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,n,s){let o;try{o=this.channel.push(e,n,s)}catch{throw new Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>$C){const c=this.channel.pushBuffer.shift();c.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${c.event}`,c.payload())}return o}updateJoinPayload(e){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),e)}canPush(){return this.socket.isConnected()&&this.state===Ta.joined}isJoined(){return this.state===Ta.joined}isJoining(){return this.state===Ta.joining}isClosed(){return this.state===Ta.closed}isLeaving(){return this.state===Ta.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function e2(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}var s0;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(s0||(s0={}));var xi;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(xi||(xi={}));var jr;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(jr||(jr={}));class sc{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,n={config:{}},s){var o,c;if(this.topic=e,this.params=n,this.socket=s,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new XC(this.socket.socketAdapter,e,this.params),this.presence=new JC(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=US(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((c=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||c===void 0)&&c.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,n=this.timeout){var s,o,c;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:d,private:f}}=this.params,p=(o=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(b=>b.filter))!==null&&o!==void 0?o:[],y=!!this.bindings[xi.PRESENCE]&&this.bindings[xi.PRESENCE].length>0||((c=this.params.config.presence)===null||c===void 0?void 0:c.enabled)===!0,g={},v={broadcast:u,presence:Object.assign(Object.assign({},d),{enabled:y}),postgres_changes:p,private:f};this.socket.accessTokenValue&&(g.access_token=this.socket.accessTokenValue),this._onError(b=>{e?.(jr.CHANNEL_ERROR,QC(b))}),this._onClose(()=>e?.(jr.CLOSED)),this.updateJoinPayload(Object.assign({config:v},g)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:b})=>{if(this.socket._isManualToken()||this.socket.setAuth(),b===void 0){e?.(jr.SUBSCRIBED);return}this._updatePostgresBindings(b,e)}).receive("error",b=>{this.state=Ta.errored;const w=Object.values(b).join(", ")||"error";e?.(jr.CHANNEL_ERROR,new Error(w,{cause:b}))}).receive("timeout",()=>{e?.(jr.TIMED_OUT)})}return this}_updatePostgresBindings(e,n){var s;const o=this.bindings.postgres_changes,c=(s=o?.length)!==null&&s!==void 0?s:0,u=[];for(let d=0;d<c;d++){const f=o[d],{filter:{event:p,schema:y,table:g,filter:v}}=f,b=e&&e[d];if(b&&b.event===p&&sc.isFilterValueEqual(b.schema,y)&&sc.isFilterValueEqual(b.table,g)&&sc.isFilterValueEqual(b.filter,v))u.push(Object.assign(Object.assign({},f),{id:b.id}));else{this.unsubscribe(),this.state=Ta.errored,n?.(jr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=Ta.errored&&n&&n(jr.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,s){const o=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),c=e===xi.PRESENCE||e===xi.POSTGRES_CHANGES;if(o&&c)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,n,s)}async httpSend(e,n,s={}){var o;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const c={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(c.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:c,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:n,private:this.private}]})},d=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(o=s.timeout)!==null&&o!==void 0?o:this.timeout);if(d.status===202)return{success:!0};let f=d.statusText;
21try{const p=await d.json();f=p.error||p.message||f}catch{}return Promise.reject(new Error(f))}async send(e,n={}){var s,o;if(!this.channelAdapter.canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:c,payload:u}=e,d={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(d.Authorization=`Bearer ${this.socket.accessTokenValue}`);const f={method:"POST",headers:d,body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:u,private:this.private}]})};try{const p=await this._fetchWithTimeout(this.broadcastEndpointURL,f,(s=n.timeout)!==null&&s!==void 0?s:this.timeout);return await((o=p.body)===null||o===void 0?void 0:o.cancel()),p.ok?"ok":"error"}catch(p){return p instanceof Error&&p.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var u,d,f;const p=this.channelAdapter.push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((f=(d=(u=this.params)===null||u===void 0?void 0:u.config)===null||d===void 0?void 0:d.broadcast)===null||f===void 0)&&f.ack)&&c("ok"),p.receive("ok",()=>c("ok")),p.receive("error",()=>c("error")),p.receive("timeout",()=>c("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,n,s){const o=new AbortController,c=setTimeout(()=>o.abort(),s),u=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:o.signal}));return clearTimeout(c),u}_on(e,n,s){const o=e.toLocaleLowerCase(),c=this.channelAdapter.on(e,s),u={type:o,filter:n,callback:s,ref:c};return this.bindings[o]?this.bindings[o].push(u):this.bindings[o]=[u],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,n,s)=>{var o,c,u,d,f,p,y;const g=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(g,s))return!1;const v=(o=this.bindings[g])===null||o===void 0?void 0:o.find(b=>b.ref===e.ref);if(!v)return!0;if(["broadcast","presence","postgres_changes"].includes(g))if("id"in v){const b=v.id,w=(c=v.filter)===null||c===void 0?void 0:c.event;return b&&((u=n.ids)===null||u===void 0?void 0:u.includes(b))&&(w==="*"||w?.toLocaleLowerCase()===((d=n.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const b=(p=(f=v?.filter)===null||f===void 0?void 0:f.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return b==="*"||b===((y=n?.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return v.type.toLocaleLowerCase()===g})}_notThisChannelEvent(e,n){const{close:s,error:o,leave:c,join:u}=jS;return n&&[s,o,c,u].includes(e)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,n,s)=>{if(typeof n=="object"&&"ids"in n){const o=n.data,{schema:c,table:u,commit_timestamp:d,type:f,errors:p}=o;return Object.assign(Object.assign({},{schema:c,table:u,commit_timestamp:d,eventType:f,new:{},old:{},errors:p}),this._getPayloadRecords(o))}return n})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in e.bindings)for(const s of e.bindings[n])this._on(s.type,s.filter,s.callback)}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=n0(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=n0(e.columns,e.old_record)),n}}class t2{constructor(e,n){this.socket=new YC(e,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,n,s,o=1e4){return new Promise(c=>{setTimeout(()=>c("timeout"),o),this.socket.disconnect(()=>{e(),c("ok")},n,s)})}push(e){this.socket.push(e)}log(e,n,s){this.socket.log(e,n,s)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==mp.connecting}isDisconnecting(){return this.socket.connectionState()==mp.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const i0={HEARTBEAT_INTERVAL:25e3},n2=[1e3,2e3,5e3,1e4],r2=1e4;function a2(){const t=new Map;return{get length(){return t.size},clear(){t.clear()},getItem(e){return t.has(e)?t.get(e):null},key(e){var n;return(n=Array.from(t.keys())[e])!==null&&n!==void 0?n:null},removeItem(e){t.delete(e)},setItem(e,n){t.set(e,String(n))}}}function s2(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return a2()}const i2=` 22 addEventListener("message", (e) => { 23 if (e.data.event === "start") { 24 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 25 } 26 });`;class o2{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,n){var s;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
26,this.ref=0,this.serializer=new DC,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=c=>c?(...u)=>c(...u):(...u)=>fetch(...u),!(!((s=n?.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const o=this._initializeOptions(n);this.socketAdapter=new t2(e,o),this.httpEndpoint=US(e),this.fetch=this._resolveFetch(n?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const n=e.message;throw n.includes("Node.js")?new Error(`${n} 27 28To use Realtime in Node.js, you need to provide a WebSocket implementation: 29 30Option 1: Use Node.js 22+ which has native WebSocket support 31Option 2: Install and provide the "ws" package: 32 33 npm install ws 34 35 import ws from "ws" 36 const client = new RealtimeClient(url, { 37 ...options, 38 transport: ws 39 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,n)}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return n==="ok"&&e.teardown(),n}async removeAllChannels(){const e=this.channels.map(async s=>{const o=await s.unsubscribe();return s.teardown(),o}),n=await Promise.all(e);return await this.disconnect(),n}log(e,n,s){this.socketAdapter.log(e,n,s)}connectionState(){return this.socketAdapter.connectionState()||mp.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,n={config:{}}){const s=`realtime:${e}`,o=this.getChannels().find(c=>c.topic===s);if(o)return o;{const c=new sc(`realtime:${e}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(c),c}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
39this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e=null){let n,s=!1;if(e)n=e,s=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(o){this.log("error","Error fetching access token from callback",o),n=this.accessTokenValue}else n=this.accessTokenValue;s?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(o=>{const c={access_token:n,version:OC};n&&o.updateJoinPayload(c),o.joinedOnce&&o.channelAdapter.isJoined()&&o.channelAdapter.push(jS.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(n,s)=>{n=="sent"&&this._setAuthSafely(),e&&e(n,s)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let n;if(e)n=e;else{const s=new Blob([i2],{type:"application/javascript"});n=URL.createObjectURL(s)}return n}_initializeOptions(e){var n,s,o,c,u,d,f,p,y,g,v,b;this.worker=(n=e?.worker)!==null&&n!==void 0?n:!1,this.accessToken=(s=e?.accessToken)!==null&&s!==void 0?s:null;const w={};w.timeout=(o=e?.timeout)!==null&&o!==void 0?o:PC,w.heartbeatIntervalMs=(c=e?.heartbeatIntervalMs)!==null&&c!==void 0?c:i0.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=e?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((d=e?.heartbeatIntervalMs)!==null&&d!==void 0?d:i0.HEARTBEAT_INTERVAL),w.transport=(f=e?.transport)!==null&&f!==void 0?f:AC.getWebSocketConstructor(),w.params=e?.params,w.logger=e?.logger,w.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),w.sessionStorage=(p=e?.sessionStorage)!==null&&p!==void 0?p:s2(),w.reconnectAfterMs=(y=e?.reconnectAfterMs)!==null&&y!==void 0?y:(k=>n2[k-1]||r2);let S,x;const E=(g=e?.vsn)!==null&&g!==void 0?g:CC;switch(E){case kC:S=(k,O)=>O(JSON.stringify(k)),x=(k,O)=>O(JSON.parse(k));break;case NS:S=this.serializer.encode.bind(this.serializer),x=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${w.vsn}`)}if(w.vsn=E,w.encode=(v=e?.encode)!==null&&v!==void 0?v:S,w.decode=(b=e?.decode)!==null&&b!==void 0?b:x,w.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,w.params=Object.assign(Object.assign({},w.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e?.workerUrl,w.autoSendHeartbeat=!this.worker}return w}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
39var pc=class extends Error{constructor(t,e){super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&e.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function c2(t,e,n){const s=new URL(e,t);if(n)for(const[o,c]of Object.entries(n))c!==void 0&&s.searchParams.set(o,c);return s.toString()}async function l2(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function u2(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:s,query:o,body:c,headers:u}){const d=c2(t.baseUrl,s,o),f=await l2(t.auth),p=await e(d,{method:n,headers:{...c?{"Content-Type":"application/json"}:{},...f,...u},body:c?JSON.stringify(c):void 0}),y=await p.text(),g=(p.headers.get("content-type")||"").includes("application/json"),v=g&&y?JSON.parse(y):y;if(!p.ok){const b=g?v:void 0,w=b?.error;throw new pc(w?.message??`Request failed with status ${p.status}`,{status:p.status,icebergType:w?.type,icebergCode:w?.code,details:b})}return{status:p.status,headers:p.headers,data:v}}}}function nu(t){return t.join("�")}var d2=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:nu(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(s=>({namespace:s}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${nu(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${nu(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${nu(t.namespace)}`}),!0}catch(e){if(e instanceof pc&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof pc&&n.status===409)return;throw n}}};function gi(t){return t.join("�")}var f2=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${gi(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${gi(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${gi(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${gi(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(e?.purge??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${gi(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${gi(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof pc&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof pc&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},h2=class{constructor(t){let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=u2({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new d2(this.client,e),this.tableOps=new f2(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
39async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};function mc(t){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mc(t)}function p2(t,e){if(mc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e);if(mc(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function m2(t){var e=p2(t,"string");return mc(e)=="symbol"?e:e+""}function g2(t,e,n){return(e=m2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,s)}return n}function Oe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o0(Object(n),!0).forEach(function(s){g2(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o0(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}var Hu=class extends Error{constructor(t,e="storage",n,s){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Vu(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var _p=class extends Hu{constructor(t,e,n,s="storage"){super(t,s,e,n),this.name=s==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=n}toJSON(){return Oe({},super.toJSON())}},zS=class extends Hu{constructor(t,e,n="storage"){super(t,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};function Eu(t,e,n){const s=Oe({},t),o=e.toLowerCase();for(const c of Object.keys(s))c.toLowerCase()===o&&delete s[c];return s[o]=n,s}function y2(t){const e={};for(const[n,s]of Object.entries(t))e[n.toLowerCase()]=s;return e}const v2=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),_2=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},bp=t=>{if(Array.isArray(t))return t.map(n=>bp(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,s])=>{const o=n.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));e[o]=bp(s)}),e},b2=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),c0=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null){const n=e.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(t)},w2=async(t,e,n,s)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const o=t;let c=parseInt(String(o.status),10);Number.isFinite(c)||(c=500),o.json().then(u=>{const d=u?.statusCode||u?.code||c+"";e(new _p(c0(u),c,d,s))}).catch(()=>{const u=c+"";e(new _p(o.statusText||`HTTP ${c} error`,c,u,s))})}else e(new zS(c0(t),t,s))},S2=(t,e,n,s)=>{const o={method:t,headers:e?.headers||{}};if(t==="GET"||t==="HEAD"||!s)return Oe(Oe({},o),n);if(_2(s)){var c;const u=e?.headers||{};let d;for(const[f,p]of Object.entries(u))f.toLowerCase()==="content-type"&&(d=p);o.headers=Eu(u,"Content-Type",(c=d)!==null&&c!==void 0?c:"application/json"),o.body=JSON.stringify(s)}else o.body=s;return e?.duplex&&(o.duplex=e.duplex),Oe(Oe({},o),n)};async function Mo(t,e,n,s,o,c,u){return new Promise((d,f)=>{t(n,S2(e,s,o,c)).then(p=>{if(!p.ok)throw p;if(s?.noResolveJson)return p;if(u==="vectors"){const y=p.headers.get("content-type");if(p.headers.get("content-length")==="0"||p.status===204)return{};if(!y||!y.includes("application/json"))return{}}return p.json()}).then(p=>
39d(p)).catch(p=>w2(p,f,s,u))})}function qS(t="storage"){return{get:async(e,n,s,o)=>Mo(e,"GET",n,s,o,void 0,t),post:async(e,n,s,o,c)=>Mo(e,"POST",n,o,c,s,t),put:async(e,n,s,o,c)=>Mo(e,"PUT",n,o,c,s,t),head:async(e,n,s,o)=>Mo(e,"HEAD",n,Oe(Oe({},s),{},{noResolveJson:!0}),o,void 0,t),remove:async(e,n,s,o,c)=>Mo(e,"DELETE",n,o,c,s,t)}}const R2=qS("storage"),{get:gc,post:Yn,put:wp,head:E2,remove:nm}=R2,bn=qS("vectors");var ji=class{constructor(t,e={},n,s="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=y2(e),this.fetch=v2(n),this.namespace=s}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=Eu(this.headers,t,e),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Vu(n))return{data:null,error:n};throw n}}},T2=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Vu(e))return{data:null,error:e};throw e}}};let HS;HS=Symbol.toStringTag;var A2=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[HS]="BlobDownloadBuilder",this.promise=null}asStream(){return new T2(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Vu(e))return{data:null,error:e};throw e}}};const x2={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},l0={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var O2=class extends ji{constructor(t,e={},n,s){super(t,e,s,"storage"),this.bucketId=n}async uploadOrUpdate(t,e,n,s){var o=this;return o.handleOperation(async()=>{let c;const u=Oe(Oe({},l0),s);let d=Oe(Oe({},o.headers),t==="POST"&&{"x-upsert":String(u.upsert)});const f=u.metadata;if(typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),f&&c.append("metadata",o.encodeMetadata(f)),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),f&&!c.has("metadata")&&c.append("metadata",o.encodeMetadata(f))):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,f&&(d["x-metadata"]=o.toBase64(o.encodeMetadata(f))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),s?.headers)for(const[v,b]of Object.entries(s.headers))d=Eu(d,v,b);const p=o._removeEmptyFolders(e),y=o._getFinalPath(p),g=await(t=="PUT"?wp:Yn)(o.fetch,`${o.url}/object/${y}`,c,Oe({headers:d},u?.duplex?{duplex:u.duplex}:{}));return{path:p,id:g.Id,fullPath:g.Key}})}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,s){var o=this;const c=o._removeEmptyFolders(t),u=o._getFinalPath(c),d=new URL(o.url+`/object/upload/sign/${u}`);return d.searchParams.set("token",e),o.handleOperation(async()=>{let f;const p=Oe(Oe({},l0),s);let y=Oe(Oe({},o.headers),{"x-upsert":String(p.upsert)});const g=p.metadata;if(typeof Blob<"u"&&n instanceof Blob?(f=new FormData,f.append("cacheControl",p.cacheControl),g&&f.append("metadata",o.encodeMetadata(g)),f.append("",n)):typeof FormData<"u"&&n instanceof FormData?(f=n,f.has("cacheControl")||f.append("cacheControl",p.cacheControl),g&&!f.has("metadata")&&f.append("metadata",o.encodeMetadata(g))):(f=n,y["cache-control"]=`max-age=${p.cacheControl}`,y["content-type"]=p.contentType,g&&(y["x-metadata"]=o.toBase64(o.encodeMetadata(g))),(typeof ReadableStream<"u"&&f instanceof ReadableStream||f&&typeof f=="object"&&"pipe"in f&&typeof f.pipe=="function")&&!p.duplex&&(p.duplex="half")),s?.headers)for(const[v,b]of Object.entries(s.headers))y=Eu(y,v,b);return{path:c,fullPath:(await wp(o.fetch,d.toString(),f,Oe({headers:y},p?.duplex?{duplex:p.duplex}:{}))).Key}})}async createSignedUploadUrl(t,e){var n=this;return n.handleOperation(async()=>{let s=n._getFinalPath(t);const o=Oe({},n.headers);e?.upsert&&(o["x-upsert"]="true");const c=await Yn(n.fetch,`${n.url}/object/upload/sign/${s}`,{},{headers:o}),u=new URL(n.url+c.url),d=u.searchParams.get("token");if(!d)throw new Hu("No token returned by API");return{signedUrl:u.toString(),path:t,token:d}})}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var s=this;return s.handleOperation(async()=>await Yn(s.fetch,`${s.url}/object/move`,{bucketId:s.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n?.destinationBucket},{headers:s.headers}))}async copy(t,e,n){var s=this;return s.handleOperation(async()=>({path:(await Yn(s.fetch,`${s.url}/object/copy`,{bucketId:s.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n?.destinationBucket},{headers:s.headers})).Key}))}async createSignedUrl(t,e,n){var s=this;return s.handleOperation(async()=>{let o=s._getFinalPath(t);const c=typeof n?.transform=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let u=await Yn(s.fetch,`${s.url}/object/sign/${o}
39`,Oe({expiresIn:e},c?{transform:n.transform}:{}),{headers:s.headers});const d=new URLSearchParams;n?.download&&d.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&d.set("cacheNonce",String(n.cacheNonce));const f=d.toString();return{signedUrl:encodeURI(`${s.url}${u.signedURL}${f?`&${f}`:""}`)}})}async createSignedUrls(t,e,n){var s=this;return s.handleOperation(async()=>{const o=await Yn(s.fetch,`${s.url}/object/sign/${s.bucketId}`,{expiresIn:e,paths:t},{headers:s.headers}),c=new URLSearchParams;n?.download&&c.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&c.set("cacheNonce",String(n.cacheNonce));const u=c.toString();return o.map(d=>Oe(Oe({},d),{},{signedUrl:d.signedURL?encodeURI(`${s.url}${d.signedURL}${u?`&${u}`:""}`):null}))})}download(t,e,n){const s=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",o=new URLSearchParams;e?.transform&&this.applyTransformOptsToQuery(o,e.transform),e?.cacheNonce!=null&&o.set("cacheNonce",String(e.cacheNonce));const c=o.toString(),u=this._getFinalPath(t),d=()=>gc(this.fetch,`${this.url}/${s}/${u}${c?`?${c}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new A2(d,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);return e.handleOperation(async()=>bp(await gc(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})))}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await E2(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(o){if(e.shouldThrowOnError)throw o;if(Vu(o)){var s;const c=o instanceof _p?o.status:o instanceof zS?(s=o.originalError)===null||s===void 0?void 0:s.status:void 0;if(c!==void 0&&[400,404].includes(c))return{data:!1,error:o}}throw o}}getPublicUrl(t,e){const n=this._getFinalPath(t),s=new URLSearchParams;e?.download&&s.set("download",e.download===!0?"":e.download),e?.transform&&this.applyTransformOptsToQuery(s,e.transform),e?.cacheNonce!=null&&s.set("cacheNonce",String(e.cacheNonce));const o=s.toString(),c=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${c}/public/${n}`)+(o?`?${o}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await nm(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,n){var s=this;return s.handleOperation(async()=>{const o=Oe(Oe(Oe({},x2),e),{},{prefix:t||""});return await Yn(s.fetch,`${s.url}/object/list/${s.bucketId}`,o,{headers:s.headers},n)})}async listV2(t,e){var n=this;return n.handleOperation(async()=>{const s=Oe({},t);return await Yn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,s,{headers:n.headers},e)})}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,"/")}applyTransformOptsToQuery(t,e){return e.width&&t.set("width",e.width.toString()),e.height&&t.set("height",e.height.toString()),e.resize&&t.set("resize",e.resize),e.format&&t.set("format",e.format),e.quality&&t.set("quality",e.quality.toString()),t}};const k2="2.105.4",kc={"X-Client-Info":`storage-js/${k2}`};var C2=class extends ji{constructor(t,e={},n,s){const o=new URL(t);s?.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase."));const c=o.href.replace(/\/$/,""),u=Oe(Oe({},kc),e);super(c,u,n,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=e.listBucketOptionsToQueryString(t);return await gc(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await gc(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var n=this;return n.handleOperation(async()=>await Yn(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async updateBucket(t,e){var n=this;return n.handleOperation(async()=>await wp(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await Yn(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await nm(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},P2=class extends ji{constructor(t,e={},n){const s=t.replace(/\/$/,""),o=Oe(Oe({},kc),e);super(s,o,n,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await Yn(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const n=new URLSearchParams;t?.limit!==void 0&&n.set("limit",t.limit.toString()),t?.offset!==void 0&&n.set("offset",t.offset.toString()),t?.sortColumn&&n.set("sortColumn",t.sortColumn),t?.sortOrder&&n.set("sortOrder",t.sortOrder),t?.search&&n.set("search",t.search);const s=n.toString(),o=s?`${e.url}/bucket?${s}`:`${e.url}/bucket`;return await gc(e.fetch,o,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await nm(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!b2(t))throw new Hu("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new h2({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),s=this.shouldThrowOnError;return new Proxy(n,{get(o,c){const u=o[c];return typeof u!="function"?u:async(...d)=>{try{return{data:await u.apply(o,d),error:null}}catch(f){if(s)throw f;return{data:null,error:f}}}}})}},$2=class extends ji{constructor(t,e={},n){const s=t.replace(/\/$/,""),o=Oe(Oe({},kc),{},{"Content-Type":"application/json"},e);super(s,o,n,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var n=this;return n.handleOperation(async()=>await bn.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var n=this;return n.handleOperation(async()=>await bn.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{})}},D2=class extends ji{constructor(t,e={},n){const s=t.replace(/\/$/,""),o=Oe(Oe({},kc),{},{"Content-Type":"application/json"},e);super(s,o,n,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
39if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},I2=class extends ji{constructor(t,e={},n){const s=t.replace(/\/$/,""),o=Oe(Oe({},kc),{},{"Content-Type":"application/json"},e);super(s,o,n,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await bn.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},L2=class extends I2{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new N2(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},N2=class extends $2{constructor(t,e,n,s){super(t,e,s),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,Oe(Oe({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,Oe(Oe({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new j2(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},j2=class extends D2{constructor(t,e,n,s,o){super(t,e,o),this.vectorBucketName=n,this.indexName=s}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,Oe(Oe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,Oe(Oe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,Oe(Oe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,Oe(Oe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,Oe(Oe({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},M2=class extends C2{constructor(t,e={},n,s){super(t,e,n,s)}from(t){return new O2(this.url,this.headers,t,this.fetch)}get vectors(){return new L2(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new P2(this.url+"/iceberg",this.headers,this.fetch)}};function Fu(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(t);o<s.length;o++)e.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(t,s[o])&&(n[s[o]]=t[s[o]]);return n}const VS="2.105.4",Ri=30*1e3,Sp=3,Th=Sp*Ri,U2="http://localhost:9999",B2="supabase.auth.token",z2={"X-Client-Info":`gotrue-js/${VS}`},Rp="X-Supabase-Api-Version",FS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},q2=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,H2=600*1e3;
39class yc extends Error{constructor(e,n,s){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function le(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class V2 extends yc{constructor(e,n,s){super(e,n,s),this.name="AuthApiError",this.status=n,this.code=s}}function F2(t){return le(t)&&t.name==="AuthApiError"}class Zn extends yc{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class Yr extends yc{constructor(e,n,s,o){super(e,s,o),this.name=n,this.status=s}}class Ct extends Yr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function ru(t){return le(t)&&t.name==="AuthSessionMissingError"}class yi extends Yr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class au extends Yr{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class su extends Yr{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function G2(t){return le(t)&&t.name==="AuthImplicitGrantRedirectError"}class u0 extends Yr{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class K2 extends Yr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Ep extends Yr{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Ah(t){return le(t)&&t.name==="AuthRetryableFetchError"}class d0 extends Yr{constructor(e,n,s){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Tp extends Yr{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),f0=` 40\r=`.split(""),Y2=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<f0.length;e+=1)t[f0[e].charCodeAt(0)]=-2;for(let e=0;e<Tu.length;e+=1)t[Tu[e].charCodeAt(0)]=e;return t})();function h0(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;n(Tu[s]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;n(Tu[s]),e.queuedBits-=6}}function GS(t,e,n){const s=Y2[t];if(s>-1)for(e.queue=e.queue<<6|s,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function p0(t){const e=[],n=u=>{e.push(String.fromCodePoint(u))},s={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},c=u=>{J2(u,s,n)};for(let u=0;u<t.length;u+=1)GS(t.charCodeAt(u),o,c);return e.join("")}function W2(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function Z2(t,e){for(let n=0;n<t.length;n+=1){let s=t.charCodeAt(n);if(s>55295&&s<=56319){const o=(s-55296)*1024&65535;s=(t.charCodeAt(n+1)-56320&65535|o)+65536,n+=1}W2(s,e)}}function J2(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let s=1;s<6;s+=1)if((t>>7-s&1)===0){e.utf8seq=s;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function $i(t){const e=[],n={queue:0,queuedBits:0},s=o=>{e.push(o)};for(let o=0;o<t.length;o+=1)GS(t.charCodeAt(o),n,s);return new Uint8Array(e)}function Q2(t){const e=[];return Z2(t,n=>e.push(n)),new Uint8Array(e)}function ms(t){const e=[],n={queue:0,queuedBits:0},s=o=>{e.push(o)};return t.forEach(o=>
40h0(o,n,s)),h0(null,n,s),e.join("")}function X2(t){return Math.round(Date.now()/1e3)+t}function eP(){return Symbol("auth-callback")}const Mt=()=>typeof window<"u"&&typeof document<"u",us={tested:!1,writable:!1},KS=()=>{if(!Mt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(us.tested)return us.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),us.tested=!0,us.writable=!0}catch{us.tested=!0,us.writable=!1}return us.writable};function tP(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((o,c)=>{e[c]=o})}catch{}return n.searchParams.forEach((s,o)=>{e[o]=s}),e}const YS=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),nP=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Ei=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},ds=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return null}},jt=async(t,e)=>{await t.removeItem(e)};class Gu{constructor(){this.promise=new Gu.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}Gu.promiseConstructor=Promise;function iu(t){const e=t.split(".");if(e.length!==3)throw new Tp("Invalid JWT structure");for(let s=0;s<e.length;s++)if(!q2.test(e[s]))throw new Tp("JWT not in base64url format");return{header:JSON.parse(p0(e[0])),payload:JSON.parse(p0(e[1])),signature:$i(e[2]),raw:{header:e[0],payload:e[1]}}}async function rP(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function aP(t,e){return new Promise((s,o)=>{(async()=>{for(let c=0;c<1/0;c++)try{const u=await t(c);if(!e(c,null,u)){s(u);return}}catch(u){if(!e(c,u)){o(u);return}}})()})}function sP(t){return("0"+t.toString(16)).substr(-2)}function iP(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=n.length;let o="";for(let c=0;c<56;c++)o+=n.charAt(Math.floor(Math.random()*s));return o}return crypto.getRandomValues(e),Array.from(e,sP).join("")}async function oP(t){const n=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(s);return Array.from(o).map(c=>String.fromCharCode(c)).join("")}async function cP(t){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."),t;const n=await oP(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function vi(t,e,n=!1){const s=iP();let o=s;n&&(o+="/recovery"),await Ei(t,`${e}-code-verifier`,o);const c=await cP(s);return[c,s===c?"plain":"s256"]}const lP=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function uP(t){const e=t.headers.get(Rp);if(!e||!e.match(lP))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function dP(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function fP(t){switch(t){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 hP=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Lr(t){if(!hP.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Gn(t){if(!t.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function xh(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const s=n.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="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 "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function pP(t,e){return new Proxy(t,{get:(n,s,o)=>
40{if(s==="__isInsecureUserWarningProxy")return!0;if(typeof s=="symbol"){const c=s.toString();if(c==="Symbol(Symbol.toPrimitive)"||c==="Symbol(Symbol.toStringTag)"||c==="Symbol(util.inspect.custom)"||c==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,s,o)}return!e.value&&typeof s=="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."),e.value=!0),Reflect.get(n,s,o)}})}function m0(t){return JSON.parse(JSON.stringify(t))}const fs=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error}return JSON.stringify(t)},mP=[502,503,504,520,521,522,523,524,530];async function g0(t){var e;if(!nP(t))throw new Ep(fs(t),0);if(mP.includes(t.status))throw new Ep(fs(t),t.status);let n;try{n=await t.json()}catch(c){throw new Zn(fs(c),c)}let s;const o=uP(t);if(o&&o.getTime()>=FS["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?s=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(s=n.error_code),s){if(s==="weak_password")throw new d0(fs(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(s==="session_not_found")throw new Ct}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((c,u)=>c&&typeof u=="string",!0))throw new d0(fs(n),t.status,n.weak_password.reasons);throw new V2(fs(n),t.status||500,s)}const gP=(t,e,n,s)=>{const o={method:t,headers:e?.headers||{}};return t==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),o.body=JSON.stringify(s),Object.assign(Object.assign({},o),n))};async function ve(t,e,n,s){var o;const c=Object.assign({},s?.headers);c[Rp]||(c[Rp]=FS["2024-01-01"].name),s?.jwt&&(c.Authorization=`Bearer ${s.jwt}`);const u=(o=s?.query)!==null&&o!==void 0?o:{};s?.redirectTo&&(u.redirect_to=s.redirectTo);const d=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",f=await yP(t,e,n+d,{headers:c,noResolveJson:s?.noResolveJson},{},s?.body);return s?.xform?s?.xform(f):{data:Object.assign({},f),error:null}}async function yP(t,e,n,s,o,c){const u=gP(e,s,o,c);let d;try{d=await t(n,Object.assign({},u))}catch(f){throw console.error(f),new Ep(fs(f),0)}if(d.ok||await g0(d),s?.noResolveJson)return d;try{return await d.json()}catch(f){await g0(f)}}function Dn(t){var e;let n=null;bP(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=X2(t.expires_in)));const s=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:s},error:null}}function y0(t){const e=Dn(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,s)=>n&&typeof s=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Aa(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function vP(t){return{data:t,error:null}}function _P(t){const{action_link:e,email_otp:n,hashed_token:s,redirect_to:o,verification_type:c}=t,u=Fu(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:e,email_otp:n,hashed_token:s,redirect_to:o,verification_type:c},f=Object.assign({},u);return{data:{properties:d,user:f},error:null}}function v0(t){return t}function bP(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const Oh=["global","local","others"];class wP{constructor({url:e="",headers:n={},fetch:s,experimental:o}){this.url=e,this.headers=n,this.fetch=YS(s),this.experimental=o??{},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)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(e,n=Oh[0]){if(Oh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Oh.join(", ")}`);try{return await ve(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(s){if(le(s))return{data:null,error:s};throw s}}async inviteUserByEmail(e,n={}){try{return await ve(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Aa})}catch(s){if(le(s))return{data:{user:null},error:s};throw s}}async generateLink(e){try{const{options:n}=e,s=Fu(e,["options"]),o=Object.assign(Object.assign({},s),n);return"newEmail"in s&&(o.new_email=s?.newEmail,delete o.newEmail),await ve(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:_P,redirectTo:n?.redirectTo})}catch(n){if(le(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await ve(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Aa})}catch(n){if(le(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,s,o,c,u,d,f;try{const p={nextPage:null,lastPage:0,total:0},y=await ve(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(n=e?.page)===null||n===void 0?void 0:n.toString())!==null&&s!==void 0?s:"",per_page:(c=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&c!==void 0?c:""},xform:v0});if(y.error)throw y.error;const g=await y.json(),v=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,b=(f=(d=y.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&f!==void 0?f:[];return b.length>0&&(b.forEach(w=>{const S=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);p[`${x}Page`]=S}),p.total=parseInt(v)),{data:Object.assign(Object.assign({},g),p),error:null}}catch(p){if(le(p))return{data:{users:[]},error:p};throw p}}async getUserById(e){Lr(e);try{return await ve(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Aa})}catch(n){if(le(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){Lr(e);try{return await ve(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:Aa})}catch(s){if(le(s))return{data:{user:null},error:s};throw s}}async deleteUser(e,n=!1){Lr(e);
40try{return await ve(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:Aa})}catch(s){if(le(s))return{data:{user:null},error:s};throw s}}async _listFactors(e){Lr(e.userId);try{const{data:n,error:s}=await ve(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:n,error:s}}catch(n){if(le(n))return{data:null,error:n};throw n}}async _deleteFactor(e){Lr(e.userId),Lr(e.id);try{return{data:await ve(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(le(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,s,o,c,u,d,f;try{const p={nextPage:null,lastPage:0,total:0},y=await ve(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(n=e?.page)===null||n===void 0?void 0:n.toString())!==null&&s!==void 0?s:"",per_page:(c=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&c!==void 0?c:""},xform:v0});if(y.error)throw y.error;const g=await y.json(),v=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,b=(f=(d=y.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&f!==void 0?f:[];return b.length>0&&(b.forEach(w=>{const S=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);p[`${x}Page`]=S}),p.total=parseInt(v)),{data:Object.assign(Object.assign({},g),p),error:null}}catch(p){if(le(p))return{data:{clients:[]},error:p};throw p}}async _createOAuthClient(e){try{return await ve(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(le(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await ve(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(le(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await ve(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(le(s))return{data:null,error:s};throw s}}async _deleteOAuthClient(e){try{return await ve(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(le(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await ve(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(le(n))return{data:null,error:n};throw n}}async _listCustomProviders(e){try{const n={};return e?.type&&(n.type=e.type),await ve(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:s=>{var o;return{data:{providers:(o=s?.providers)!==null&&o!==void 0?o:[]},error:null}}})}catch(n){if(le(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(e){try{return await ve(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(le(n))return{data:null,error:n};throw n}}async _getCustomProvider(e){try{return await ve(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(le(n))return{data:null,error:n};throw n}}async _updateCustomProvider(e,n){try{return await ve(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:n,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(le(s))return{data:null,error:s};throw s}}async _deleteCustomProvider(e){try{return await ve(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(le(n))return{data:null,error:n};throw n}}async _adminListPasskeys(e){Gn(this.experimental),Lr(e.userId);try{return await ve(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(le(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(e){Gn(this.experimental),Lr(e.userId),Lr(e.passkeyId);
40try{return await ve(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(le(n))return{data:null,error:n};throw n}}}function _0(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}const or={debug:!!(globalThis&&KS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class WS extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class b0 extends WS{}async function SP(t,e,n){or.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const s=new globalThis.AbortController;let o;e>0&&(o=setTimeout(()=>{s.abort(),or.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e)),await Promise.resolve();try{return await globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:s.signal},async c=>{if(c){clearTimeout(o),or.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,c.name);try{return await n()}finally{or.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,c.name)}}else{if(e===0)throw or.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new b0(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(or.debug)try{const u=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(u,null," "))}catch(u){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",u)}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"),clearTimeout(o),await n()}})}catch(c){if(e>0&&clearTimeout(o),c!==null&&typeof c=="object"&&"name"in c&&c.name==="AbortError"&&e>0){if(s.signal.aborted)return or.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",t),console.warn(`@supabase/gotrue-js: Lock "${t}" was not released within ${e}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,{mode:"exclusive",steal:!0},async u=>{if(u){or.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",t,u.name);try{return await n()}finally{or.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",t,u.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw or.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",t),new b0(`Lock "${t}" was released because another request stole it`)}throw c}}function RP(){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 ZS(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function EP(t){return parseInt(t,16)}function TP(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,s=>s.toString(16).padStart(2,"0")).join("")}function AP(t){var e;const{chainId:n,domain:s,expirationTime:o,issuedAt:c=new Date,nonce:u,notBefore:d,requestId:f,resources:p,scheme:y,uri:g,version:v}=t;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!s)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!g)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(v!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${v}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(` 41`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const b=ZS(t.address),w=y?`${y}://${s}`:s,S=t.statement?`${t.statement} 42`:"",x=`${w} wants you to sign in with your Ethereum account: 43${b} 44 45${S}`;let E=`URI: ${g} 46Version: ${v} 47Chain ID: ${n}${u?` 48Nonce: ${u}`:""} 49Issued At: ${c.toISOString()}`;
49if(o&&(E+=` 50Expiration Time: ${o.toISOString()}`),d&&(E+=` 51Not Before: ${d.toISOString()}`),f&&(E+=` 52Request ID: ${f}`),p){let k=` 53Resources:`;for(const O of p){if(!O||typeof O!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${O}`);k+=` 54- ${O}`}E+=k}return`${x} 55${E}`}class wt extends Error{constructor({message:e,code:n,cause:s,name:o}){var c;super(e,{cause:s}),this.__isWebAuthnError=!0,this.name=(c=o??(s instanceof Error?s.name:void 0))!==null&&c!==void 0?c:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Au extends wt{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function xP({error:t,options:e}){var n,s,o;const{publicKey:c}=e;if(!c)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new wt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=c.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new wt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((s=c.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new wt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((o=c.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new wt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new wt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new wt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return c.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new wt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new wt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const u=window.location.hostname;
55if(JS(u)){if(c.rp.id!==u)return new wt({message:`The RP ID "${c.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new wt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new wt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new wt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new wt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function OP({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new wt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new wt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const s=window.location.hostname;if(JS(s)){if(n.rpId!==s)return new wt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new wt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new wt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new wt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class kP{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const Ap=new kP;function w0(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:n,excludeCredentials:s}=t,o=Fu(t,["challenge","user","excludeCredentials"]),c=$i(e).buffer,u=Object.assign(Object.assign({},n),{id:$i(n.id).buffer}),d=Object.assign(Object.assign({},o),{challenge:c,user:u});if(s&&s.length>0){d.excludeCredentials=new Array(s.length);for(let f=0;f<s.length;f++){const p=s[f];d.excludeCredentials[f]=Object.assign(Object.assign({},p),{id:$i(p.id).buffer,type:p.type||"public-key",transports:p.transports})}}return d}function S0(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:n}=t,s=Fu(t,["challenge","allowCredentials"]),o=$i(e).buffer,c=Object.assign(Object.assign({},s),{challenge:o});if(n&&n.length>0){c.allowCredentials=new Array(n.length);for(let u=0;u<n.length;u++){const d=n[u];c.allowCredentials[u]=Object.assign(Object.assign({},d),{id:$i(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return c}function R0(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:ms(new Uint8Array(t.response.attestationObject)),clientDataJSON:ms(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function E0(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,s=t.getClientExtensionResults(),o=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:ms(new Uint8Array(o.authenticatorData)),clientDataJSON:ms(new Uint8Array(o.clientDataJSON)),signature:ms(new Uint8Array(o.signature)),userHandle:o.userHandle?ms(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:s,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function JS(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function xu(){var t,e;return!!(Mt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.get)=="function")}async function QS(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Au("Browser returned unexpected credential type",e)}:{data:null,error:new Au("Empty credential response",e)}}catch(e){return{data:null,error:xP({error:e,options:t})}}}async function XS(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Au("Browser returned unexpected credential type",e)}:{data:null,error:new Au("Empty credential response",e)}}catch(e){return{data:null,error:OP({error:e,options:t})}}}const CP={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},PP={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Ou(...t){const e=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),n=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),s={};
55for(const o of t)if(o)for(const c in o){const u=o[c];if(u!==void 0)if(Array.isArray(u))s[c]=u;else if(n(u))s[c]=u;else if(e(u)){const d=s[c];e(d)?s[c]=Ou(d,u):s[c]=Ou(u)}else s[c]=u}return s}function $P(t,e){return Ou(CP,t,e||{})}function DP(t,e){return Ou(PP,t,e||{})}class IP{constructor(e){this.client=e,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(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:n,friendlyName:s,signal:o},c){var u;try{const{data:d,error:f}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!d)return{data:null,error:f};const p=o??Ap.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:y}=d.webauthn.credential_options.publicKey;if(!y.name){const g=s;if(g)y.name=`${y.id}:${g}`;else{const b=(await this.client.getUser()).data.user,w=((u=b?.user_metadata)===null||u===void 0?void 0:u.name)||b?.email||b?.id||"User";y.name=`${y.id}:${w}`}}y.displayName||(y.displayName=y.name)}switch(d.webauthn.type){case"create":{const y=$P(d.webauthn.credential_options.publicKey,c?.create),{data:g,error:v}=await QS({publicKey:y,signal:p});return g?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:g}},error:null}:{data:null,error:v}}case"request":{const y=DP(d.webauthn.credential_options.publicKey,c?.request),{data:g,error:v}=await XS(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:y,signal:p}));return g?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:g}},error:null}:{data:null,error:v}}}}catch(d){return le(d)?{data:null,error:d}:{data:null,error:new Zn("Unexpected error in challenge",d)}}}async _verify({challengeId:e,factorId:n,webauthn:s}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:s})}async _authenticate({factorId:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},c){if(!n)return{data:null,error:new yc("rpId is required for WebAuthn authentication")};try{if(!xu())return{data:null,error:new Zn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:s},signal:o},{request:c});if(!u)return{data:null,error:d};const{webauthn:f}=u;return this._verify({factorId:e,challengeId:u.challengeId,webauthn:{type:f.type,rpId:n,rpOrigins:s,credential_response:f.credential_response}})}catch(u){return le(u)?{data:null,error:u}:{data:null,error:new Zn("Unexpected error in authenticate",u)}}}async _register({friendlyName:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},c){if(!n)return{data:null,error:new yc("rpId is required for WebAuthn registration")};try{if(!xu())return{data:null,error:new Zn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this._enroll({friendlyName:e});if(!u)return await this.client.mfa.listFactors().then(y=>{var g;return(g=y.data)===null||g===void 0?void 0:g.all.find(v=>v.factor_type==="webauthn"&&v.friendly_name===e&&v.status!=="unverified")}).then(y=>y?this.client.mfa.unenroll({factorId:y?.id}):void 0),{data:null,error:d};const{data:f,error:p}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:n,rpOrigins:s},signal:o},{create:c});return f?this._verify({factorId:u.id,challengeId:f.challengeId,webauthn:{rpId:n,rpOrigins:s,type:f.webauthn.type,credential_response:f.webauthn.credential_response}}):{data:null,error:p}}catch(u){return le(u)?{data:null,error:u}:{data:null,error:new Zn("Unexpected error in register",u)}}}}RP();const LP={url:U2,storageKey:B2,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:z2,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function T0(t,e,n){return await n()}const _i={};class vc{get jwks(){var e,n;return(n=(e=_i[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){_i[this.storageKey]=Object.assign(Object.assign({},_i[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=_i[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){_i[this.storageKey]=Object.assign(Object.assign({},_i[this.storageKey]),{cachedAt:e})}constructor(e){var n,s,o,c;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=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 u=Object.assign(Object.assign({},LP),e);if(this.storageKey=u.storageKey,this.instanceID=(n=vc.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,vc.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!u.debug,typeof u.debug=="function"&&(this.logger=u.debug),this.instanceID>0&&Mt()){const d=`${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(d),this.logDebugMessages&&console.trace(d)}if(this.persistSession=u.persistSession,this.autoRefreshToken=u.autoRefreshToken,this.experimental=(s=u.experimental)!==null&&s!==void 0?s:{},this.admin=new wP({url:u.url,headers:u.headers,fetch:u.fetch,experimental:this.experimental}),this.url=u.url,this.headers=u.headers,this.fetch=YS(u.fetch),this.lock=u.lock||T0,this.detectSessionInUrl=u.detectSessionInUrl,this.flowType=u.flowType,this.hasCustomAuthorizationHeader=u.hasCu
55stomAuthorizationHeader,this.throwOnError=u.throwOnError,this.lockAcquireTimeout=u.lockAcquireTimeout,u.lock?this.lock=u.lock:this.persistSession&&Mt()&&(!((o=globalThis?.navigator)===null||o===void 0)&&o.locks)?this.lock=SP:this.lock=T0,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 IP(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(u.storage?this.storage=u.storage:KS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=_0(this.memoryStorage)),u.userStorage&&(this.userStorage=u.userStorage)):(this.memoryStorage={},this.storage=_0(this.memoryStorage)),Mt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(d){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",d)}(c=this.broadcastChannel)===null||c===void 0||c.addEventListener("message",async d=>{this._debug("received broadcast notification from other tab or client",d);try{await this._notifyAllSubscribers(d.data.event,d.data.session,!1)}catch(f){this._debug("#broadcastChannel","error",f)}})}u.skipAutoInitialize||this.initialize().catch(d=>{this._debug("#initialize()","error",d)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${VS}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let n={},s="none";if(Mt()&&(n=tP(window.location.href),this._isImplicitGrantCallback(n)?s="implicit":await this._isPKCECallback(n)&&(s="pkce")),Mt()&&this.detectSessionInUrl&&s!=="none"){const{data:o,error:c}=await this._getSessionFromURL(n,s);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),G2(c)){const f=(e=c.details)===null||e===void 0?void 0:e.code;if(f==="identity_already_exists"||f==="identity_not_found"||f==="single_identity_not_deletable")return{error:c}}return{error:c}}const{session:u,redirectType:d}=o;return this._debug("#_initialize()","detected session in URL",u,"redirect type",d),await this._saveSession(u),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return le(n)?this._returnResult({error:n}):this._returnResult({error:new Zn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,s,o;try{const c=await ve(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(n=e?.options)===null||n===void 0?void 0:n.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(o=e?.options)===null||o===void 0?void 0:o.captchaToken}},xform:Dn}),{data:u,error:d}=c;if(d||!u)return this._returnResult({data:{user:null,session:null},error:d});const f=u.session,p=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:p,session:f},error:null})}catch(c){if(le(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signUp(e){var n,s,o;try{let c;if("email"in e){const{email:y,password:g,options:v}=e;let b=null,w=null;this.flowType==="pkce"&&([b,w]=await vi(this.storage,this.storageKey)),c=await ve(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:v?.emailRedirectTo,body:{email:y,password:g,data:(n=v?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:v?.captchaToken},code_challenge:b,code_challenge_method:w},xform:Dn})}else if("phone"in e){const{phone:y,password:g,options:v}=e;c=await ve(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:y,password:g,data:(s=v?.data)!==null&&s!==void 0?s:{},channel:(o=v?.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:v?.captchaToken}},xform:Dn})}else throw new au("You must provide either an email or phone number and a password");const{data:u,error:d}=c;if(d||!u)return await jt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:d});const f=u.session,p=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",f)),this._returnResult({data:{user:p,session:f},error:null})}catch(c){if(await jt(this.storage,`${this.storageKey}-code-verifier`),le(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signInWithPassword(e){try{let n;if("email"in e){const{email:c,password:u,options:d}=e;n=await ve(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:y0})}else if("phone"in e){const{phone:c,password:u,options:d}=e;n=await ve(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:y0})}else throw new au("You must provide either an email or phone number and a password");const{data:s,error:o}=n;
55if(o)return this._returnResult({data:{user:null,session:null},error:o});if(!s||!s.session||!s.user){const c=new yi;return this._returnResult({data:{user:null,session:null},error:c})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:o})}catch(n){if(le(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,s,o,c;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(s=e.options)===null||s===void 0?void 0:s.scopes,queryParams:(o=e.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(c=e.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,s,o,c,u,d,f,p,y,g,v;let b,w;if("message"in e)b=e.message,w=e.signature;else{const{chain:S,wallet:x,statement:E,options:k}=e;let O;if(Mt())if(typeof x=="object")O=x;else{const Y=window;if("ethereum"in Y&&typeof Y.ethereum=="object"&&"request"in Y.ethereum&&typeof Y.ethereum.request=="function")O=Y.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"||!k?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");O=x}const j=new URL((n=k?.url)!==null&&n!==void 0?n:window.location.href),X=await O.request({method:"eth_requestAccounts"}).then(Y=>Y).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!X||X.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const N=ZS(X[0]);let C=(s=k?.signInWithEthereum)===null||s===void 0?void 0:s.chainId;if(!C){const Y=await O.request({method:"eth_chainId"});C=EP(Y)}const G={domain:j.host,address:N,statement:E,uri:j.href,version:"1",chainId:C,nonce:(o=k?.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(u=(c=k?.signInWithEthereum)===null||c===void 0?void 0:c.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(d=k?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(f=k?.signInWithEthereum)===null||f===void 0?void 0:f.notBefore,requestId:(p=k?.signInWithEthereum)===null||p===void 0?void 0:p.requestId,resources:(y=k?.signInWithEthereum)===null||y===void 0?void 0:y.resources};b=AP(G),w=await O.request({method:"personal_sign",params:[TP(b),N]})}try{const{data:S,error:x}=await ve(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:b,signature:w},!((g=e.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(v=e.options)===null||v===void 0?void 0:v.captchaToken}}:null),xform:Dn});if(x)throw x;if(!S||!S.session||!S.user){const E=new yi;return this._returnResult({data:{user:null,session:null},error:E})}return S.session&&(await this._saveSession(S.session),await this._notifyAllSubscribers("SIGNED_IN",S.session)),this._returnResult({data:Object.assign({},S),error:x})}catch(S){if(le(S))return this._returnResult({data:{user:null,session:null},error:S});throw S}}async signInWithSolana(e){var n,s,o,c,u,d,f,p,y,g,v,b;let w,S;if("message"in e)w=e.message,S=e.signature;else{const{chain:x,wallet:E,statement:k,options:O}=e;let j;if(Mt())if(typeof E=="object")j=E;else{const N=window;if("solana"in N&&typeof N.solana=="object"&&("signIn"in N.solana&&typeof N.solana.signIn=="function"||"signMessage"in N.solana&&typeof N.solana.signMessage=="function"))j=N.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 E!="object"||!O?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=E}const X=new URL((n=O?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in j&&j.signIn){const N=await j.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},O?.signInWithSolana),{version:"1",domain:X.host,uri:X.href}),k?{statement:k}:null));let C;if(Array.isArray(N)&&N[0]&&typeof N[0]=="object")C=N[0];else if(N&&typeof N=="object"&&"signedMessage"in N&&"signature"in N)C=N;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)w=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),S=C.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in j)||typeof j.signMessage!="function"||!("publicKey"in j)||typeof j!="object"||!j.publicKey||!("toBase58"in j.publicKey)||typeof j.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${X.host} wants you to sign in with your Solana account:`,j.publicKey.toBase58(),...k?["",k,""]:[""],"Version: 1",`URI: ${X.href}`,`Issued At: ${(o=(s=O?.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((c=O?.signInWithSolana)===null||c===void 0)&&c.notBefore?[`Not Before: ${O.signInWithSolana.notBefore}`]:[],...!((u=O?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${O.signInWithSolana.expirationTime}`]:[],...!((d=O?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${O.signInWithSolana.chainId}`]:[],...!((f=O?.signInWithSolana)===null||f===void 0)&&f.nonce?[`Nonce: ${O.signInWithSolana.nonce}`]:[],...!((p=O?.signInWithSolana)===null||p===void 0)&&p.requestId?[`Request ID: ${O.signInWithSolana.requestId}`]:[],...!((g=(y=O?.signInWithSolana)===null||y===void 0?void 0:y.resources)===null||g===void 0)&&g.length?["Resources",...O.signInWithSolana.resources.map(C=>
55`- ${C}`)]:[]].join(` 56`);const N=await j.signMessage(new TextEncoder().encode(w),"utf8");if(!N||!(N instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");S=N}}try{const{data:x,error:E}=await ve(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:ms(S)},!((v=e.options)===null||v===void 0)&&v.captchaToken?{gotrue_meta_security:{captcha_token:(b=e.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:Dn});if(E)throw E;if(!x||!x.session||!x.user){const k=new yi;return this._returnResult({data:{user:null,session:null},error:k})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:E})}catch(x){if(le(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(e){const n=await ds(this.storage,`${this.storageKey}-code-verifier`),[s,o]=(n??"").split("/");try{if(!s&&this.flowType==="pkce")throw new K2;const{data:c,error:u}=await ve(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:s},xform:Dn});if(await jt(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!c||!c.session||!c.user){const d=new yi;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers(o==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c.session)),this._returnResult({data:Object.assign(Object.assign({},c),{redirectType:o??null}),error:u})}catch(c){if(await jt(this.storage,`${this.storageKey}-code-verifier`),le(c))return this._returnResult({data:{user:null,session:null,redirectType:null},error:c});throw c}}async signInWithIdToken(e){try{const{options:n,provider:s,token:o,access_token:c,nonce:u}=e,d=await ve(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:o,access_token:c,nonce:u,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:Dn}),{data:f,error:p}=d;if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!f||!f.session||!f.user){const y=new yi;return this._returnResult({data:{user:null,session:null},error:y})}return f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("SIGNED_IN",f.session)),this._returnResult({data:f,error:p})}catch(n){if(le(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,s,o,c,u;try{if("email"in e){const{email:d,options:f}=e;let p=null,y=null;this.flowType==="pkce"&&([p,y]=await vi(this.storage,this.storageKey));const{error:g}=await ve(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(n=f?.data)!==null&&n!==void 0?n:{},create_user:(s=f?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},code_challenge:p,code_challenge_method:y},redirectTo:f?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:g})}if("phone"in e){const{phone:d,options:f}=e,{data:p,error:y}=await ve(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(o=f?.data)!==null&&o!==void 0?o:{},create_user:(c=f?.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:f?.captchaToken},channel:(u=f?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:p?.message_id},error:y})}throw new au("You must provide either an email or phone number.")}catch(d){if(await jt(this.storage,`${this.storageKey}-code-verifier`),le(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(e){var n,s;try{let o,c;"options"in e&&(o=(n=e.options)===null||n===void 0?void 0:n.redirectTo,c=(s=e.options)===null||s===void 0?void 0:s.captchaToken);const{data:u,error:d}=await ve(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:c}}),redirectTo:o,xform:Dn});if(d)throw d;if(!u)throw new Error("An error occurred on token verification.");const f=u.session,p=u.user;return f?.access_token&&(await this._saveSession(f),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",f)),this._returnResult({data:{user:p,session:f},error:null})}catch(o){if(le(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithSSO(e){var n,s,o,c,u;try{let d=null,f=null;this.flowType==="pkce"&&([d,f]=await vi(this.storage,this.storageKey));const p=await ve(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&s!==void 0?s:void 0}),!((o=e?.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:d,code_challenge_method:f}),headers:this.headers,xform:vP});return!((c=p.data)===null||c===void 0)&&c.url&&Mt()&&!(!((u=e.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(p.data.url),this._returnResult(p)}catch(d){if(await jt(this.storage,`${this.storageKey}-code-verifier`),le(d))return this._returnResult({data:null,error:d});throw d}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:s}=e;if(s)throw s;if(!n)throw new Ct;const{error:o}=await ve(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:o})})}catch(e){if(le(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:s,type:o,options:c}=e,{error:u}=await ve(this.fetch,"POST",n,{headers:this.headers,body:{email:s,type:o,gotrue_meta_security:{captcha_token:c?.captchaToken}},redirectTo:c?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:u})}else if("phone"in e){const{phone:s,type:o,options:c}=e,{data:u,error:d}=await ve(this.fetch,"POST",n,{headers:this.headers,body:{phone:s,type:o,gotrue_meta_security:{captcha_token:c?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:d})}throw new au("You must provide either an email or phone number and a type")}catch(n){if(le(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await s,await n()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=n();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(n)}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 e=null;const n=await ds(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
56id"),await this._removeSession())),!e)return{data:{session:null},error:null};const s=e.expires_at?e.expires_at*1e3-Date.now()<Th:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",e.expires_at),!s){if(this.userStorage){const u=await ds(this.userStorage,this.storageKey+"-user");u?.user?e.user=u.user:e.user=xh()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};e.user=pP(e.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:o,error:c}=await this._callRefreshToken(e.refresh_token);return c?this._returnResult({data:{session:null},error:c}):this._returnResult({data:{session:o},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await ve(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Aa}):await this._useSession(async n=>{var s,o,c;const{data:u,error:d}=n;if(d)throw d;return!(!((s=u.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ct}:await ve(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(o=u.session)===null||o===void 0?void 0:o.access_token)!==null&&c!==void 0?c:void 0,xform:Aa})})}catch(n){if(le(n))return ru(n)&&(await this._removeSession(),await jt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async s=>{const{data:o,error:c}=s;if(c)throw c;if(!o.session)throw new Ct;const u=o.session;let d=null,f=null;this.flowType==="pkce"&&e.email!=null&&([d,f]=await vi(this.storage,this.storageKey));const{data:p,error:y}=await ve(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:d,code_challenge_method:f}),jwt:u.access_token,xform:Aa});if(y)throw y;return u.user=p.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(s){if(await jt(this.storage,`${this.storageKey}-code-verifier`),le(s))return this._returnResult({data:{user:null},error:s});throw s}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Ct;const n=Date.now()/1e3;let s=n,o=!0,c=null;const{payload:u}=iu(e.access_token);if(u.exp&&(s=u.exp,o=s<=n),o){const{data:d,error:f}=await this._callRefreshToken(e.refresh_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});if(!d)return{data:{user:null,session:null},error:null};c=d}else{const{data:d,error:f}=await this._getUser(e.access_token);if(f)return this._returnResult({data:{user:null,session:null},error:f});c={access_token:e.access_token,refresh_token:e.refresh_token,user:d.user,token_type:"bearer",expires_in:s-n,expires_at:s},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return this._returnResult({data:{user:c.user,session:c},error:null})}catch(n){if(le(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var s;if(!e){const{data:u,error:d}=n;if(d)throw d;e=(s=u.session)!==null&&s!==void 0?s:void 0}if(!e?.refresh_token)throw new Ct;const{data:o,error:c}=await this._callRefreshToken(e.refresh_token);return c?this._returnResult({data:{user:null,session:null},error:c}):o?this._returnResult({data:{user:o.user,session:o},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(le(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(e,n){var s;try{if(!Mt())throw new su("No browser detected.");
56if(e.error||e.error_description||e.error_code)throw new su(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new u0("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new su("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new u0("No code detected.");const{data:O,error:j}=await this._exchangeCodeForSession(e.code);if(j)throw j;const X=new URL(window.location.href);return X.searchParams.delete("code"),window.history.replaceState(window.history.state,"",X.toString()),{data:{session:O.session,redirectType:(s=O.redirectType)!==null&&s!==void 0?s:null},error:null}}const{provider_token:o,provider_refresh_token:c,access_token:u,refresh_token:d,expires_in:f,expires_at:p,token_type:y}=e;if(!u||!f||!d||!y)throw new su("No session defined in URL");const g=Math.round(Date.now()/1e3),v=parseInt(f);let b=g+v;p&&(b=parseInt(p));const w=b-g;w*1e3<=Ri&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${w}s, should have been closer to ${v}s`);const S=b-v;g-S>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",S,b,g):g-S<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",S,b,g);const{data:x,error:E}=await this._getUser(u);if(E)throw E;const k={provider_token:o,provider_refresh_token:c,access_token:u,expires_in:v,expires_at:b,refresh_token:d,token_type:y,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:k,redirectType:e.type},error:null})}catch(o){if(le(o))return this._returnResult({data:{session:null,redirectType:null},error:o});throw o}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await ds(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var s;const{data:o,error:c}=n;if(c&&!ru(c))return this._returnResult({error:c});const u=(s=o.session)===null||s===void 0?void 0:s.access_token;if(u){const{error:d}=await this.admin.signOut(u,e);if(d&&!(F2(d)&&(d.status===404||d.status===401||d.status===403)||ru(d)))return this._returnResult({error:d})}return e!=="others"&&(await this._removeSession(),await jt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const n=eP(),s={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,s),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:s}}}async _emitInitialSession(e){return await this._useSession(async n=>{var s,o;try{const{data:{session:c},error:u}=n;if(u)throw u;await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",e,"session",c)}catch(c){await((o=this.stateChangeEmitters.get(e))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",c),ru(c)?console.warn(c):console.error(c)}})}async resetPasswordForEmail(e,n={}){let s=null,o=null;this.flowType==="pkce"&&([s,o]=await vi(this.storage,this.storageKey,!0));try{return await ve(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:s,code_challenge_method:o,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(c){if(await jt(this.storage,`${this.storageKey}-code-verifier`),le(c))return this._returnResult({data:null,error:c});throw c}}async getUserIdentities(){var e;try{const{data:n,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;try{const{data:s,error:o}=await this._useSession(async c=>{var u,d,f,p,y;const{data:g,error:v}=c;if(v)throw v;const b=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(u=e.options)===null||u===void 0?void 0:u.redirectTo,scopes:(d=e.options)===null||d===void 0?void 0:d.scopes,queryParams:(f=e.options)===null||f===void 0?void 0:f.queryParams,skipBrowserRedirect:!0});return await ve(this.fetch,"GET",b,{headers:this.headers,jwt:(y=(p=g.session)===null||p===void 0?void 0:p.access_token)!==null&&y!==void 0?y:void 0})});if(o)throw o;return Mt()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:e.provider,url:s?.url},error:null})}catch(s){if(le(s))return this._returnResult({data:{provider:e.provider,url:null},error:s});throw s}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var s;try{const{error:o,data:{session:c}}=n;
56if(o)throw o;const{options:u,provider:d,token:f,access_token:p,nonce:y}=e,g=await ve(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(s=c?.access_token)!==null&&s!==void 0?s:void 0,body:{provider:d,id_token:f,access_token:p,nonce:y,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:Dn}),{data:v,error:b}=g;return b?this._returnResult({data:{user:null,session:null},error:b}):!v||!v.session||!v.user?this._returnResult({data:{user:null,session:null},error:new yi}):(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("USER_UPDATED",v.session)),this._returnResult({data:v,error:b}))}catch(o){if(await jt(this.storage,`${this.storageKey}-code-verifier`),le(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var s,o;const{data:c,error:u}=n;if(u)throw u;return await ve(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(o=(s=c.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0})})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const s=Date.now();return await aP(async o=>(o>0&&await rP(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await ve(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Dn})),(o,c)=>{const u=200*Math.pow(2,o);return c&&Ah(c)&&Date.now()+u-s<Ri})}catch(s){if(this._debug(n,"error",s),le(s))return this._returnResult({data:{session:null,user:null},error:s});throw s}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const s=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",s),Mt()&&!n.skipBrowserRedirect&&window.location.assign(s),{data:{provider:e,url:s},error:null}}async _recoverAndRefresh(){var e,n;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const o=await ds(this.storage,this.storageKey);if(o&&this.userStorage){let u=await ds(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:o.user},await Ei(this.userStorage,this.storageKey+"-user",u)),o.user=(e=u?.user)!==null&&e!==void 0?e:xh()}else if(o&&!o.user&&!o.user){const u=await ds(this.storage,this.storageKey+"-user");u&&u?.user?(o.user=u.user,await jt(this.storage,this.storageKey+"-user"),await Ei(this.storage,this.storageKey,o)):o.user=xh()}if(this._debug(s,"session from storage",o),!this._isValidSession(o)){this._debug(s,"session is not valid"),o!==null&&await this._removeSession();return}const c=((n=o.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Th;if(this._debug(s,`session has${c?"":" not"} expired with margin of ${Th}s`),c){if(this.autoRefreshToken&&o.refresh_token){const{error:u}=await this._callRefreshToken(o.refresh_token);u&&(console.error(u),Ah(u)||(this._debug(s,"refresh failed with a non-retryable error, removing the session",u),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:d}=await this._getUser(o.access_token);!d&&u?.user?(o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(s,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(s,"error",o),console.error(o);return}finally{this._debug(s,"end")}}async _callRefreshToken(e){var n,s;if(!e)throw new Ct;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new Gu;const{data:c,error:u}=await this._refreshAccessToken(e);if(u)throw u;if(!c.session)throw new Ct;await this._saveSession(c.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",c.session);const d={data:c.session,error:null};return this.refreshingDeferred.resolve(d),d}catch(c){if(this._debug(o,"error",c),le(c)){const u={data:null,error:c};return Ah(c)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(u),u}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(c),c}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(e,n,s=!0){const o=`#_notifyAllSubscribers(${e})`;this._debug(o,"begin",n,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:e,session:n});const c=[],u=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(e,n)}catch(f){c.push(f)}});if(await Promise.all(u),c.length>0){for(let d=0;d<c.length;d+=1)console.error(c[d]);throw c[0]}}finally{this._debug(o,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await jt(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},e),s=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&n.user&&await Ei(this.userStorage,this.storageKey+"-user",{user:n.user});const o=Object.assign({},n);delete o.user;const c=m0(o);await Ei(this.storage,this.storageKey,c)}else{const o=m0(n);await Ei(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await jt(this.storage,this.storageKey),await jt(this.storage,this.storageKey+"-code-verifier"),await jt(this.storage,this.storageKey+"-user"),this.userStorage&&await jt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Mt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",e)}
56catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Ri);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}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 e=Date.now();try{return await this._useSession(async n=>{const{data:{session:s}}=n;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((s.expires_at*1e3-e)/Ri);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${Ri}ms, refresh threshold is ${Sp} ticks`),o<=Sp&&await this._callRefreshToken(s.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e instanceof WS)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Mt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"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(e,n,s){const o=[`provider=${encodeURIComponent(n)}`];if(s?.redirectTo&&o.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s?.scopes&&o.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[c,u]=await vi(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(u)}`});o.push(d.toString())}if(s?.queryParams){const c=new URLSearchParams(s.queryParams);o.push(c.toString())}return s?.skipBrowserRedirect&&o.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${e}?${o.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var s;const{data:o,error:c}=n;return c?this._returnResult({data:null,error:c}):await ve(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(s=o?.session)===null||s===void 0?void 0:s.access_token})})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){try{return await this._useSession(async n=>{var s,o;const{data:c,error:u}=n;if(u)return this._returnResult({data:null,error:u});const d=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:f,error:p}=await ve(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(s=c?.session)===null||s===void 0?void 0:s.access_token});return p?this._returnResult({data:null,error:p}):(e.factorType==="totp"&&f.type==="totp"&&(!((o=f?.totp)===null||o===void 0)&&o.qr_code)&&(f.totp.qr_code=`data:image/svg+xml;utf-8,${f.totp.qr_code}`),this._returnResult({data:f,error:null}))})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var s;const{data:o,error:c}=n;if(c)return this._returnResult({data:null,error:c});const u=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?R0(e.webauthn.credential_response):E0(e.webauthn.credential_response)})}:{code:e.code}),{data:d,error:f}=await ve(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:u,headers:this.headers,jwt:(s=o?.session)===null||s===void 0?void 0:s.access_token});return f?this._returnResult({data:null,error:f}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+d.expires_in},d)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",d),this._returnResult({data:d,error:f}))})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var s;const{data:o,error:c}=n;if(c)return this._returnResult({data:null,error:c});const u=await ve(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(s=o?.session)===null||s===void 0?void 0:s.access_token});if(u.error)return u;const{data:d}=u;if(d.type!=="webauthn")return{data:d,error:null};switch(d.webauthn.type){case"create":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:w0(d.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},d),{webauthn:Object.assign(Object.assign({},d.webauthn),{credential_options:Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:S0(d.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(e){const{data:n,error:s}=await this._challenge({factorId:e.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;const{data:{user:n},error:s}=await this.getUser();if(s)return{data:null,error:s};const o={all:[],phone:[],totp:[],webauthn:[]};for(const c of(e=n?.factors)!==null&&e!==void 0?e:[])o.all.push(c),c.status==="verified"&&o[c.factor_type].push(c);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(e){var n,s,o,c;if(e)try{const{payload:b}=iu(e);let w=null;b.aal&&(w=b.aal);let S=w;const{data:{user:x},error:E}=await this.getUser(e);if(E)return this._returnResult({data:null,error:E});((s=(n=x?.factors)===null||n===void 0?void 0:n.filter(j=>j.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(S="aal2");const O=b.amr||[];return{data:{currentLevel:w,nextLevel:S,currentAuthenticationMethods:O},error:null}}catch(b){if(le(b))return this._returnResult({data:null,error:b});throw b}const{data:{session:u},error:d}
56=await this.getSession();if(d)return this._returnResult({data:null,error:d});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:f}=iu(u.access_token);let p=null;f.aal&&(p=f.aal);let y=p;((c=(o=u.user.factors)===null||o===void 0?void 0:o.filter(b=>b.status==="verified"))!==null&&c!==void 0?c:[]).length>0&&(y="aal2");const v=f.amr||[];return{data:{currentLevel:p,nextLevel:y,currentAuthenticationMethods:v},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;return o?this._returnResult({data:null,error:o}):s?await ve(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:s.access_token,xform:c=>({data:c,error:null})}):this._returnResult({data:null,error:new Ct})})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async s=>{const{data:{session:o},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!o)return this._returnResult({data:null,error:new Ct});const u=await ve(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&Mt()&&!n?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(le(s))return this._returnResult({data:null,error:s});throw s}}async _denyAuthorization(e,n){try{return await this._useSession(async s=>{const{data:{session:o},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!o)return this._returnResult({data:null,error:new Ct});const u=await ve(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&Mt()&&!n?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(le(s))return this._returnResult({data:null,error:s});throw s}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:s}=e;return s?this._returnResult({data:null,error:s}):n?await ve(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new Ct})})}catch(e){if(le(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;return o?this._returnResult({data:null,error:o}):s?(await ve(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:s.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ct})})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let s=n.keys.find(d=>d.kid===e);if(s)return s;const o=Date.now();if(s=this.jwks.keys.find(d=>d.kid===e),s&&this.jwks_cached_at+H2>o)return s;const{data:c,error:u}=await ve(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!c.keys||c.keys.length===0||(this.jwks=c,this.jwks_cached_at=o,s=c.keys.find(d=>d.kid===e),!s)?null:s}async getClaims(e,n={}){try{let s=e;if(!s){const{data:b,error:w}
56=await this.getSession();if(w||!b.session)return this._returnResult({data:null,error:w});s=b.session.access_token}const{header:o,payload:c,signature:u,raw:{header:d,payload:f}}=iu(s);n?.allowExpired||dP(c.exp);const p=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!p){const{error:b}=await this.getUser(s);if(b)throw b;return{data:{claims:c,header:o,signature:u},error:null}}const y=fP(o.alg),g=await crypto.subtle.importKey("jwk",p,y,!0,["verify"]);if(!await crypto.subtle.verify(y,g,u,Q2(`${d}.${f}`)))throw new Tp("Invalid JWT signature");return{data:{claims:c,header:o,signature:u},error:null}}catch(s){if(le(s))return this._returnResult({data:null,error:s});throw s}}async signInWithPasskey(e){var n,s,o;Gn(this.experimental);try{if(!xu())return this._returnResult({data:null,error:new Zn("Browser does not support WebAuthn",null)});const{data:c,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(n=e?.options)===null||n===void 0?void 0:n.captchaToken}});if(u||!c)return this._returnResult({data:null,error:u});const d=S0(c.options),f=(o=(s=e?.options)===null||s===void 0?void 0:s.signal)!==null&&o!==void 0?o:Ap.createNewAbortSignal(),{data:p,error:y}=await XS({publicKey:d,signal:f});if(y||!p)return this._returnResult({data:null,error:y??new Zn("WebAuthn ceremony failed",null)});const g=E0(p);return this._verifyPasskeyAuthentication({challengeId:c.challenge_id,credential:g})}catch(c){if(le(c))return this._returnResult({data:null,error:c});throw c}}async registerPasskey(e){var n,s;Gn(this.experimental);try{if(!xu())return this._returnResult({data:null,error:new Zn("Browser does not support WebAuthn",null)});const{data:o,error:c}=await this._startPasskeyRegistration();if(c||!o)return this._returnResult({data:null,error:c});const u=w0(o.options),d=(s=(n=e?.options)===null||n===void 0?void 0:n.signal)!==null&&s!==void 0?s:Ap.createNewAbortSignal(),{data:f,error:p}=await QS({publicKey:u,signal:d});if(p||!f)return this._returnResult({data:null,error:p??new Zn("WebAuthn ceremony failed",null)});const y=R0(f);return this._verifyPasskeyRegistration({challengeId:o.challenge_id,credential:y})}catch(o){if(le(o))return this._returnResult({data:null,error:o});throw o}}async _startPasskeyRegistration(){Gn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:s}=e;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new Ct});const{data:o,error:c}=await ve(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:o,error:null})})}catch(e){if(le(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){Gn(this.experimental);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 Ct});const{data:c,error:u}=await ve(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(e){var n;Gn(this.experimental);try{const{data:s,error:o}=await ve(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=e?.options)===null||n===void 0?void 0:n.captchaToken}}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:s,error:null})}catch(s){if(le(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyAuthentication(e){Gn(this.experimental);try{const{data:n,error:s}=await ve(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:Dn});return s?this._returnResult({data:null,error:s}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){Gn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:n},error:s}=e;if(s)return this._returnResult({data:null,error:s});if(!n)return this._returnResult({data:null,error:new Ct});const{data:o,error:c}=await ve(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:u=>({data:u,error:null})});return c?this._returnResult({data:null,error:c}):this._returnResult({data:o,error:null})})}catch(e){if(le(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){Gn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:s},error:o}=n;
56if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new Ct});const{data:c,error:u}=await ve(this.fetch,"PATCH",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:e.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(e){Gn(this.experimental);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 Ct});const{error:c}=await ve(this.fetch,"DELETE",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return c?this._returnResult({data:null,error:c}):this._returnResult({data:null,error:null})})}catch(n){if(le(n))return this._returnResult({data:null,error:n});throw n}}}vc.nextInstanceID={};const NP=vc,jP="2.105.4";let Xo="";typeof Deno<"u"?Xo="deno":typeof document<"u"?Xo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Xo="react-native":Xo="node";const MP={"X-Client-Info":`supabase-js-${Xo}/${jP}`},UP={headers:MP},BP={schema:"public"},zP={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},qP={};function _c(t){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_c(t)}function HP(t,e){if(_c(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e);if(_c(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function VP(t){var e=HP(t,"string");return _c(e)=="symbol"?e:e+""}function FP(t,e,n){return(e=VP(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,s)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?A0(Object(n),!0).forEach(function(s){FP(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A0(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}const GP=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),KP=()=>Headers,YP=(t,e,n)=>{const s=GP(n),o=KP();return async(c,u)=>{var d;const f=(d=await e())!==null&&d!==void 0?d:t;let p=new o(u?.headers);return p.has("apikey")||p.set("apikey",t),p.has("Authorization")||p.set("Authorization",`Bearer ${f}`),s(c,pt(pt({},u),{},{headers:p}))}};function WP(t){return t.endsWith("/")?t:t+"/"}function ZP(t,e){var n,s;const{db:o,auth:c,realtime:u,global:d}=t,{db:f,auth:p,realtime:y,global:g}=e,v={db:pt(pt({},f),o),auth:pt(pt({},p),c),realtime:pt(pt({},y),u),storage:{},global:pt(pt(pt({},g),d),{},{headers:pt(pt({},(n=g?.headers)!==null&&n!==void 0?n:{}),(s=d?.headers)!==null&&s!==void 0?s:{})}),accessToken:async()=>""};return t.accessToken?v.accessToken=t.accessToken:delete v.accessToken,v}function JP(t){const e=t?.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(WP(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var QP=class extends NP{constructor(t){super(t)}},XP=class{constructor(t,e,n){var s,o;this.supabaseUrl=t,this.supabaseKey=e;const c=JP(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const u=`sb-${c.hostname.split(".")[0]}-auth-token`,d={db:BP,realtime:qP,auth:pt(pt({},zP),{},{storageKey:u}),global:UP},f=ZP(n??{},d);if(this.storageKey=(s=f.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=f.global.headers)!==null&&o!==void 0?o:{},f.accessToken)this.accessToken=f.accessToken,this.auth=new Proxy({},{get:(y,g)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(g)} is not possible`)}});else{var p;this.auth=this._initSupabaseAuthClient((p=f.auth)!==null&&p!==void 0?p:{},this.headers,f.global.fetch)}this.fetch=YP(e,this._getAccessToken.bind(this),f.global.fetch),this.realtime=this._initRealtimeClient(pt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},f.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(y=>this.realtime.setAuth(y)).catch(y=>console.warn("Failed to set initial Realtime auth token:",y)),this.rest=new TC(new URL("rest/v1",c).href,{headers:this.headers,schema:f.db.schema,fetch:this.fetch,timeout:f.db.timeout,urlLengthLimit:f.db.urlLengthLimit}),this.storage=new M2(this.storageUrl.href,this.headers,this.fetch,n?.storage),f.accessToken||this._listenForAuthEvents()}get functions(){return new mC(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,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:s}=await t.auth.getSession();return(e=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:s,userStorage:o,storageKey:c,flowType:u,lock:d,debug:f,throwOnError:p,experimental:y,lockAcquireTimeout:g,skipAutoInitialize:v},b,w){const S={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new QP({url:this.authUrl.href,headers:pt(pt({},S),b),storageKey:c,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:s,userStorage:o,flowType:u,lock:d,debug:f,throwOnError:p,experimental:y,fetch:w,lockAcquireTimeout:g,skipAutoInitialize:v,hasCustomAuthorizationHeader:Object.keys(this.headers).some(x=>x.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new o2(this.realtimeUrl.href,pt(pt({},t),{},{params:pt(pt({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e?.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const e$=(t,e,n)=>
56new XP(t,e,n);function t$(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const n=e.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}t$()&&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 Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function n$(){if(typeof window>"u")return;const t=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(x=>t===x||t.endsWith("."+x)),s="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",o=n?t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+s+")(?:-dev)?(?=\\.|$)","i"))?.[1]??t.match(new RegExp("^("+s+")(?=[.-])","i"))?.[1]:void 0,c=window.parent&&window.parent!==window;if(!o||!c)return localStorage;const u=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),d=u?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,f=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),p=f&&d.test(f)?[f]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],y="lovable-preview-auth:result",g=2e3,v=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),b=(x,E,k)=>new Promise(O=>{const j=v();let X=!1,N;const C=ne=>{X||(X=!0,clearTimeout(N),window.removeEventListener("message",G),O(ne))},G=ne=>{if(p.indexOf(ne.origin)<0)return;const z=ne.data;z&&z.type===y&&z.requestId===j&&C(z)};window.addEventListener("message",G);const Y={type:x,requestId:j,projectId:o,key:E};k!==void 0&&(Y.value=k);for(const ne of p)window.parent.postMessage(Y,ne);N=setTimeout(()=>C(null),g)});let w=!0;const S=250;return{getItem:async x=>{let E=await b("lovable-preview-auth:get",x);return!E&&w&&(await new Promise(k=>setTimeout(k,S)),E=await b("lovable-preview-auth:get",x)),w=!1,E&&E.ok&&typeof E.value=="string"?E.value===""?(localStorage.removeItem(x),null):E.value:localStorage.getItem(x)},setItem:(x,E)=>(localStorage.setItem(x,E),b("lovable-preview-auth:set",x,E).then(k=>{k&&k.ok&&typeof k.value=="string"&&localStorage.getItem(x)===E&&(k.value===""?localStorage.removeItem(x):localStorage.setItem(x,k.value))})),removeItem:x=>(localStorage.removeItem(x),b("lovable-preview-auth:remove",x).then(()=>{}))}}function r$(){return e$("https://bfqrrqttyenteljlsbav.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJmcXJycXR0eWVudGVsamxzYmF2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Nzg5ODI3NDksImV4cCI6MjA5NDU1ODc0OX0.3g_8Tb6Ab50tDeOuv4p8_svXPzNAdx5qrrb5gHZi4c0",{auth:{storage:n$(),persistSession:!0,autoRefreshToken:!0}})}let kh;const _e=new Proxy({},{get(t,e,n){return kh||(kh=r$()),Reflect.get(kh,e,n)}}),a$=Ur({type:"function"}).client(async({next:t})=>{const{data:e}=await _e.auth.getSession(),n=e.session?.access_token;return t({headers:n?{Authorization:`Bearer ${n}`}:{}})}),s$=Ur(),i$=Ur(),x0=dC(()=>({requestMiddleware:[i$,s$],functionMiddleware:[a$]}));var Ku=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},o$=class extends Ku{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},eR=new o$,c$={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},l$=class{#e=c$;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},xp=new l$;function u$(t){setTimeout(t,0)}var d$=typeof window>"u"||"Deno"in globalThis;function Wn(){}function f$(t,e){return typeof t=="function"?t(e):t}function h$(t){return typeof t=="number"&&t>=0&&t!==1/0}function p$(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Op(t,e){return typeof t=="function"?t(e):t}function m$(t,e){return typeof t=="function"?t(e):t}function O0(t,e){const{type:n="all",exact:s,fetchStatus:o,predicate:c,queryKey:u,stale:d}=t;if(u){if(s){if(e.queryHash!==rm(u,e.options))return!1}else if(!wc(e.queryKey,u))return!1}if(n!=="all"){const f=e.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||o&&o!==e.state.fetchStatus||c&&!c(e))}function k0(t,e){const{exact:n,status:s,predicate:o,mutationKey:c}=t;if(c){if(!e.options.mutationKey)return!1;if(n){if(bc(e.options.mutationKey)!==bc(c))return!1}else if(!wc(e.options.mutationKey,c))return!1}return!(s&&e.state.status!==s||o&&!o(e))}function rm(t,e){return(e?.queryKeyHashFn||bc)(t)}function bc(t){return JSON.stringify(t,(e,n)=>kp(n)?Object.keys(n).sort().reduce((s,o)=>(s[o]=n[o],s),{}):n)}function wc(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>wc(t[n],e[n])):!1}var g$=Object.prototype.hasOwnProperty;function tR(t,e,n=0){if(t===e)return t;if(n>500)return e;const s=C0(t)&&C0(e);if(!s&&!(kp(t)&&kp(e)))return e;const c=(s?t:Object.keys(t)).length,u=s?e:Object.keys(e),d=u.length,f=s?new Array(d):{};let p=0;for(let y=0;y<d;y++){const g=s?y:u[y],v=t[g],b=e[g];if(v===b){f[g]=v,(s?y<c:g$.call(t,g))&&p++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){f[g]=b;continue}const w=tR(v,b,n+1);f[g]=w,w===v&&p++}return c===d&&p===c?t:f}function fz(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function C0(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function kp(t){if(!P0(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!P0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function P0(t){return Object.prototype.toString.call(t)==="[object Object]"}function y$(t){return new Promise(e=>{xp.setTimeout(e,t)})}function v$(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?tR(t,e):e}function _$(t,e,n=0){const s=[...t,e];return n&&s.length>n?s.slice(1):s}function b$(t,e,n=0){const s=[e,...t];return n&&s.length>n?s.slice(0,-1):s}var am=Symbol();function nR(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===am?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function hz(t,e){return typeof t=="function"?t(...e):!!t}function w$(t,e,n){let s=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=e(),s||(s=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),t}var rR=(()=>{let t=()=>d$;return{isServer(){return t()},setIsServer(e){t=e}}})();function S$(){let t,e;const n=new Promise((o,c)=>{t=o,e=c});n.status="pending",n.catch(()=>{});function s(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{s({status:"fulfilled",value:o}),t(o)},n.reject=o=>{s({status:"rejected",reason:o}),e(o)},n}var R$=u$;function E$(){let t=[],e=0,n=d=>{d()},s=d=>{d()},o=R$;const c=d=>{e?t.push(d):o(()=>{n(d)})},u=()=>{const d=t;t=[],d.length&&o(()=>{s(()=>{d.forEach(f=>{n(f)})})})};return{batch:d=>{let f;e++;try{f=d()}finally{e--,e||u()}return f},batchCalls:d=>(...f)=>{c(()=>{d(...f)})},schedule:c,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{o=d}}}var Zt=E$(),T$=class extends Ku{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n
vendor: 20,142 bytes, line 56
56)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},ku=new T$;function A$(t){return Math.min(1e3*2**t,3e4)}function aR(t){return(t??"online")==="online"?ku.isOnline():!0}var Cp=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function sR(t){let e=!1,n=0,s;const o=S$(),c=()=>o.status!=="pending",u=S=>{if(!c()){const x=new Cp(S);v(x),t.onCancel?.(x)}},d=()=>{e=!0},f=()=>{e=!1},p=()=>eR.isFocused()&&(t.networkMode==="always"||ku.isOnline())&&t.canRun(),y=()=>aR(t.networkMode)&&t.canRun(),g=S=>{c()||(s?.(),o.resolve(S))},v=S=>{c()||(s?.(),o.reject(S))},b=()=>new Promise(S=>{s=x=>{(c()||p())&&S(x)},t.onPause?.()}).then(()=>{s=void 0,c()||t.onContinue?.()}),w=()=>{if(c())return;let S;const x=n===0?t.initialPromise:void 0;try{S=x??t.fn()}catch(E){S=Promise.reject(E)}Promise.resolve(S).then(g).catch(E=>{if(c())return;const k=t.retry??(rR.isServer()?0:3),O=t.retryDelay??A$,j=typeof O=="function"?O(n,E):O,X=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,E);if(e||!X){v(E);return}n++,t.onFail?.(n,E),y$(j).then(()=>p()?void 0:b()).then(()=>{e?v(E):w()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(s?.(),o),cancelRetry:d,continueRetry:f,canStart:y,start:()=>(y()?w():b().then(w),o)}}var iR=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),h$(this.gcTime)&&(this.#e=xp.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(rR.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(xp.clearTimeout(this.#e),this.#e=void 0)}};function x$(t){return{onFetch:(e,n)=>{const s=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,c=e.state.data?.pages||[],u=e.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const p=async()=>{let y=!1;const g=w=>{w$(w,()=>e.signal,()=>y=!0)},v=nR(e.options,e.fetchOptions),b=async(w,S,x)=>{if(y)return Promise.reject(e.signal.reason);if(S==null&&w.pages.length)return Promise.resolve(w);const k=(()=>{const N={client:e.client,queryKey:e.queryKey,pageParam:S,direction:x?"backward":"forward",meta:e.options.meta};return g(N),N})(),O=await v(k),{maxPages:j}=e.options,X=x?b$:_$;return{pages:X(w.pages,O,j),pageParams:X(w.pageParams,S,j)}};if(o&&c.length){const w=o==="backward",S=w?O$:$0,x={pages:c,pageParams:u},E=S(s,x);d=await b(x,E,w)}else{const w=t??c.length;do{const S=f===0?u[0]??s.initialPageParam:$0(s,d);if(f>0&&S==null)break;d=await b(d,S),f++}while(f<w)}return d};e.options.persister?e.fetchFn=()=>e.options.persister?.(p,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=p}}}function $0(t,{pages:e,pageParams:n}){const s=e.length-1;return e.length>0?t.getNextPageParam(e[s],e,n[s],n):void 0}function O$(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var k$=class extends iR{#e;#t;#n;#a;#s;#r;#c;#i;constructor(t){super(),this.#i=!1,this.#c=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#s=t.client,this.#a=this.#s.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=I0(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#c,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=I0(this.options);e.data!==void 0&&(this.setState(D0(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(t,e){const n=v$(this.state.data,t,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t){this.#o({type:"setState",state:t})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(Wn).catch(Wn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>m$(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===am||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Op(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:!p$(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#i||this.#l()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#i=!0,n.signal)})},o=()=>{const f=nR(this.options,e),y=(()=>{const g={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#i=!1,this.options.persister?this.options.persister(f,y,this):f(y)},u=(()=>{const f={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return s(f),f})();(this.#e==="infinite"?x$(this.options.pages):this.options.behavior)?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#r=sR({initialPromise:e?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof Cp&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(f,p)=>{this.#o({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#r.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#a.config.onSuccess?.(f,this),this.#a.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Cp){if(f.silent)return this.#r.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#a.config.onError?.(f,this),this.#a.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(t){const e=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,...C$(n.data,this.options),fetchMeta:t.meta??null};case"success":const s={...n,...D0(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?s:void 0,s;case"error":const o=t.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Zt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:t})})}};function C$(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:aR(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function D0(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function I0(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,s=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var P$=class extends iR{#e;#t;#n;#a;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||$$(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=sR({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#s({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#s({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",o=!this.#a.canStart();try{if(s)e();else{this.#s({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);const u=await this.options.onMutate?.(t,n);u!==this.state.context&&this.#s({type:"pending",context:u,variables:t,isPaused:o})}const c=await this.#a.start();return await this.#n.config.onSuccess?.(c,t,this.state.context,this,n),await this.options.onSuccess?.(c,t,this.state.context,n),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(c,null,t,this.state.context,n),this.#s({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,t,this.state.context,this,n)}catch(u){Promise.reject(u)}try{await this.options.onError?.(c,t,this.state.context,n)}catch(u){Promise.reject(u)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,n)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,c,t,this.state.context,n)}catch(u){Promise.reject(u)}throw this.#s({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#s(t){const e=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=e(this.state),Zt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function $$(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var D$=class extends Ku{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,n){const s=new P$({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(s),s}add(t){this.#e.add(t);const e=ou(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=ou(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=ou(t);if(typeof e=="string"){const s=this.#t.get(e)?.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){const e=ou(t);return typeof e=="string"?this.#t.get(e)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>k0(e,n))}findAll(t={}){return this.getAll().filter(e=>k0(t,e))}notify(t){Zt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Zt.batch(()=>Promise.all(t.map(e=>e.continue().catch(Wn))))}};function ou(t){return t.options.scope?.id}var I$=class extends Ku{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const s=e.queryKey,o=e.queryHash??rm(s,e);let c=this.get(o);return c||(c=new k$({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>O0(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>O0(t,n)):e}notify(t){Zt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},L$=class{#e;#t;#n;#a;#s;#r;#c;#i;constructor(t={}){this.#e=t.queryCache||new I$,this.#t=t.mutationCache||new D$,this.#n=t.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#c=eR.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ku.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#c?.(),this.#c=void 0,this.#i?.(),this.#i=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=this.#e.build(this,e),s=n.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Op(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const s=n.data;return[e,s]})}setQueryData(t,e,n){const s=this.defaultQueryOptions({queryKey:t}),c=this.#e.get(s.queryHash)?.state.data,u=f$(e,c);if(u!==void 0)return this.#e.build(this,s).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return Zt.batch(()=>this.#e.findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Zt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e;return Zt.batch(()=>(n.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},s=Zt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(n)));return Promise.all(s).then(Wn).catch(Wn)}invalidateQueries(t,e={}){return Zt.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},s=Zt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,n);return n.throwOnError||(c=c.catch(Wn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Wn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(Op(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Wn).catch(Wn)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Wn).catch(Wn)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return ku.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#a.set(bc(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#a.values()],n={};return e.forEach(s=>{wc(t,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(t,e){this.#s.set(bc(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#s.values()],n={};return e.forEach(s=>{wc(t,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=rm(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===am&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},oR=ue.createContext(void 0),N$=t=>{const e=ue.useContext(oR);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},j$=({client:t,children:e})=>(ue.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),ae.jsx(oR.Provider,{value:t,children:e}));const M$="/assets/styles-Dcxuq6lf.css";var U$=Zb();const B$=jp(U$);function z$(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const q$=t=>{switch(t){case"success":return F$;case"info":return K$;case"warning":return G$;case"error":return Y$;default:return null}},H$=Array(12).fill(0),V$=({visible:t,className:e})=>ce.createElement("div",{className:["sonner-loading-wrapper",e].filter(
vendor: 6,040 bytes, line 56
56Boolean).join(" "),"data-visible":t},ce.createElement("div",{className:"sonner-spinner"},H$.map((n,s)=>ce.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),F$=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.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"})),G$=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ce.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"})),K$=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.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"})),Y$=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.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"})),W$=ce.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"},ce.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ce.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Z$=()=>{const[t,e]=ce.useState(document.hidden);return ce.useEffect(()=>{const n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t};let Pp=1;class J${constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;const{message:s,...o}=e,c=typeof e?.id=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:Pp++,u=this.toasts.find(f=>f.id===c),d=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),u?this.toasts=this.toasts.map(f=>f.id===c?(this.publish({...f,...e,id:c,title:s}),{...f,...e,id:c,dismissible:d,title:s}):f):this.addToast({title:s,...o,dismissible:d,id:c}),c},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:e,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(s=>s({id:n.id,dismiss:!0}))}),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let s;n.loading!==void 0&&(s=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(e instanceof Function?e():e);let c=s!==void 0,u;const d=o.then(async p=>{if(u=["resolve",p],ce.isValidElement(p))c=!1,this.create({id:s,type:"default",message:p});else if(X$(p)&&!p.ok){c=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${p.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${p.status}`):n.description,w=typeof g=="object"&&!ce.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:v,...w})}else if(p instanceof Error){c=!1;const g=typeof n.error=="function"?await n.error(p):n.error,v=typeof n.description=="function"?await n.description(p):n.description,w=typeof g=="object"&&!ce.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:v,...w})}else if(n.success!==void 0){c=!1;const g=typeof n.success=="function"?await n.success(p):n.success,v=typeof n.description=="function"?await n.description(p):n.description,w=typeof g=="object"&&!ce.isValidElement(g)?g:{message:g};this.create({id:s,type:"success",description:v,...w})}}).catch(async p=>{if(u=["reject",p],n.error!==void 0){c=!1;const y=typeof n.error=="function"?await n.error(p):n.error,g=typeof n.description=="function"?await n.description(p):n.description,b=typeof y=="object"&&!ce.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:g,...b})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((p,y)=>d.then(()=>u[0]==="reject"?y(u[1]):p(u[1])).catch(y));return typeof s!="string"&&typeof s!="number"?{unwrap:f}:Object.assign(s,{unwrap:f})},this.custom=(e,n)=>{const s=n?.id||Pp++;return this.create({jsx:e(s),id:s,...n}),s},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const un=new J$,Q$=(t,e)=>{const n=e?.id||Pp++;return un.addToast({title:t,...e,id:n}),n},X$=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",eD=Q$,tD=()=>un.toasts,nD=()=>un.getActiveToasts(),rD=Object.assign(eD,{success:un.success,info:un.info,warning:un.warning,error:un.error,custom:un.custom,message:un.message,promise:un.promise,dismiss:un.dismiss,loading:un.loading},{getHistory:tD,getToasts:nD});z$
vendor: 14,873 bytes, line 56
56("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left: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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function
vendor: 2,455 bytes, line 56
56cu(t){return t.label!==void 0}const aD=3,sD="24px",iD="16px",L0=4e3,oD=356,cD=14,lD=45,uD=200;function cr(...t){return t.filter(Boolean).join(" ")}function dD(t){const[e,n]=t.split("-"),s=[];return e&&s.push(e),n&&s.push(n),s}const fD=t=>{var e,n,s,o,c,u,d,f,p;const{invert:y,toast:g,unstyled:v,interacting:b,setHeights:w,visibleToasts:S,heights:x,index:E,toasts:k,expanded:O,removeToast:j,defaultRichColors:X,closeButton:N,style:C,cancelButtonStyle:G,actionButtonStyle:Y,className:ne="",descriptionClassName:z="",duration:V,position:W,gap:se,expandByDefault:de,classNames:M,icons:re,closeButtonAriaLabel:ye="Close toast"}=t,[Ne,Ae]=ce.useState(null),[$,J]=ce.useState(null),[Q,ie]=ce.useState(!1),[fe,Ee]=ce.useState(!1),[pe,me]=ce.useState(!1),[Me,Rt]=ce.useState(!1),[Sn,Bt]=ce.useState(!1),[Cc,Bn]=ce.useState(0),[Mi,Es]=ce.useState(0),za=ce.useRef(g.duration||V||L0),Ui=ce.useRef(null),fn=ce.useRef(null),Bi=E===0,zi=E+1<=S,Gt=g.type,Wr=g.dismissible!==!1,Kt=g.className||"",Wu=g.descriptionClassName||"",qa=ce.useMemo(()=>x.findIndex(Ce=>Ce.toastId===g.id)||0,[x,g.id]),Pc=ce.useMemo(()=>{var Ce;return(Ce=g.closeButton)!=null?Ce:N},[g.closeButton,N]),Ha=ce.useMemo(()=>g.duration||V||L0,[g.duration,V]),qi=ce.useRef(0),gr=ce.useRef(0),$c=ce.useRef(0),Zr=ce.useRef(null),[Va,Yt]=W.split("-"),zn=ce.useMemo(()=>x.reduce((Ce,lt,xt)=>xt>=qa?Ce:Ce+lt.height,0),[x,qa]),zt=Z$(),Zu=g.invert||y,Hi=Gt==="loading";gr.current=ce.useMemo(()=>qa*se+zn,[qa,zn]),ce.useEffect(()=>{za.current=Ha},[Ha]),ce.useEffect(()=>{ie(!0)},[]),ce.useEffect(()=>{const Ce=fn.current;if(Ce){const lt=Ce.getBoundingClientRect().height;return Es(lt),w(xt=>[{toastId:g.id,height:lt,position:g.position},...xt]),()=>w(xt=>xt.filter(qt=>qt.toastId!==g.id))}},[w,g.id]),ce.useLayoutEffect(()=>{if(!Q)return;const Ce=fn.current,lt=Ce.style.height;Ce.style.height="auto";const xt=Ce.getBoundingClientRect().height;Ce.style.height=lt,Es(xt),w(qt=>qt.find(dt=>dt.toastId===g.id)?qt.map(dt=>dt.toastId===g.id?{...dt,height:xt}:dt):[{toastId:g.id,height:xt,position:g.position},...qt])},[Q,g.title,g.description,w,g.id,g.jsx,g.action,g.cancel]);const er=ce.useCallback(()=>{Ee(!0),Bn(gr.current),w(Ce=>Ce.filter(lt=>lt.toastId!==g.id)),setTimeout(()=>{j(g)},uD)},[g,j,w,gr]);ce.useEffect(()=>{if(g.promise&&Gt==="loading"||g.duration===1/0||g.type==="loading")return;let Ce;return O||b||zt?(()=>{if($c.current<qi.current){const qt=new Date().getTime()-qi.current;za.current=za.current-qt}
vendor: 6,536 bytes, line 56
56$c.current=new Date().getTime()})():za.current!==1/0&&(qi.current=new Date().getTime(),Ce=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),er()},za.current)),()=>clearTimeout(Ce)},[O,b,g,Gt,zt,er]),ce.useEffect(()=>{g.delete&&(er(),g.onDismiss==null||g.onDismiss.call(g,g))},[er,g.delete]);function Ts(){var Ce;if(re?.loading){var lt;return ce.createElement("div",{className:cr(M?.loader,g==null||(lt=g.classNames)==null?void 0:lt.loader,"sonner-loader"),"data-visible":Gt==="loading"},re.loading)}return ce.createElement(V$,{className:cr(M?.loader,g==null||(Ce=g.classNames)==null?void 0:Ce.loader),visible:Gt==="loading"})}const As=g.icon||re?.[Gt]||q$(Gt);var Fa,tr;return ce.createElement("li",{tabIndex:0,ref:fn,className:cr(ne,Kt,M?.toast,g==null||(e=g.classNames)==null?void 0:e.toast,M?.default,M?.[Gt],g==null||(n=g.classNames)==null?void 0:n[Gt]),"data-sonner-toast":"","data-rich-colors":(Fa=g.richColors)!=null?Fa:X,"data-styled":!(g.jsx||g.unstyled||v),"data-mounted":Q,"data-promise":!!g.promise,"data-swiped":Sn,"data-removed":fe,"data-visible":zi,"data-y-position":Va,"data-x-position":Yt,"data-index":E,"data-front":Bi,"data-swiping":pe,"data-dismissible":Wr,"data-type":Gt,"data-invert":Zu,"data-swipe-out":Me,"data-swipe-direction":$,"data-expanded":!!(O||de&&Q),"data-testid":g.testId,style:{"--index":E,"--toasts-before":E,"--z-index":k.length-E,"--offset":`${fe?Cc:gr.current}px`,"--initial-height":de?"auto":`${Mi}px`,...C,...g.style},onDragEnd:()=>{me(!1),Ae(null),Zr.current=null},onPointerDown:Ce=>{Ce.button!==2&&(Hi||!Wr||(Ui.current=new Date,Bn(gr.current),Ce.target.setPointerCapture(Ce.pointerId),Ce.target.tagName!=="BUTTON"&&(me(!0),Zr.current={x:Ce.clientX,y:Ce.clientY})))},onPointerUp:()=>{var Ce,lt,xt;if(Me||!Wr)return;Zr.current=null;const qt=Number(((Ce=fn.current)==null?void 0:Ce.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Jr=Number(((lt=fn.current)==null?void 0:lt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),dt=new Date().getTime()-((xt=Ui.current)==null?void 0:xt.getTime()),Qt=Ne==="x"?qt:Jr,Ga=Math.abs(Qt)/dt;if(Math.abs(Qt)>=lD||Ga>.11){Bn(gr.current),g.onDismiss==null||g.onDismiss.call(g,g),J(Ne==="x"?qt>0?"right":"left":Jr>0?"down":"up"),er(),Rt(!0);return}else{var Xt,en;(Xt=fn.current)==null||Xt.style.setProperty("--swipe-amount-x","0px"),(en=fn.current)==null||en.style.setProperty("--swipe-amount-y","0px")}Bt(!1),me(!1),Ae(null)},onPointerMove:Ce=>{var lt,xt,qt;if(!Zr.current||!Wr||((lt=window.getSelection())==null?void 0:lt.toString().length)>0)return;const dt=Ce.clientY-Zr.current.y,Qt=Ce.clientX-Zr.current.x;var Ga;const Xt=(Ga=t.swipeDirections)!=null?Ga:dD(W);!Ne&&(Math.abs(Qt)>1||Math.abs(dt)>1)&&Ae(Math.abs(Qt)>Math.abs(dt)?"x":"y");let en={x:0,y:0};const xs=qn=>1/(1.5+Math.abs(qn)/20);if(Ne==="y"){if(Xt.includes("top")||Xt.includes("bottom"))if(Xt.includes("top")&&dt<0||Xt.includes("bottom")&&dt>0)en.y=dt;else{const qn=dt*xs(dt);en.y=Math.abs(qn)<Math.abs(dt)?qn:dt}}else if(Ne==="x"&&(Xt.includes("left")||Xt.includes("right")))if(Xt.includes("left")&&Qt<0||Xt.includes("right")&&Qt>0)en.x=Qt;else{const qn=Qt*xs(Qt);en.x=Math.abs(qn)<Math.abs(Qt)?qn:Qt}(Math.abs(en.x)>0||Math.abs(en.y)>0)&&Bt(!0),(xt=fn.current)==null||xt.style.setProperty("--swipe-amount-x",`${en.x}px`),(qt=fn.current)==null||qt.style.setProperty("--swipe-amount-y",`${en.y}px`)}},Pc&&!g.jsx&&Gt!=="loading"?ce.createElement("button",{"aria-label":ye,"data-disabled":Hi,"data-close-button":!0,onClick:Hi||!Wr?()=>{}:()=>{er(),g.onDismiss==null||g.onDismiss.call(g,g)},className:cr(M?.closeButton,g==null||(s=g.classNames)==null?void 0:s.closeButton)},(tr=re?.close)!=null?tr:W$):null,(Gt||g.icon||g.promise)&&g.icon!==null&&(re?.[Gt]!==null||g.icon)?ce.createElement("div",{"data-icon":"",className:cr(M?.icon,g==null||(o=g.classNames)==null?void 0:o.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Ts():null,g.type!=="loading"?As:null):null,ce.createElement("div",{"data-content":"",className:cr(M?.content,g==null||(c=g.classNames)==null?void 0:c.content)},ce.createElement("div",{"data-title":"",className:cr(M?.title,g==null||(u=g.classNames)==null?void 0:u.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?ce.createElement("div",{"data-description":"",className:cr(z,Wu,M?.description,g==null||(d=g.classNames)==null?void 0:d.description)},typeof g.description=="function"?g.description():g.description):null),ce.isValidElement(g.cancel)?g.cancel:g.cancel&&cu(g.cancel)?ce.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||G,onClick:Ce=>{cu(g.cancel)&&Wr&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Ce),er())},className:cr(M?.cancelButton,g==null||(f=g.classNames)==null?void 0:f.cancelButton)},g.cancel.label):null,ce.isValidElement(g.action)?g.action:g.action&&cu(g.action)?ce.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||Y,onClick:Ce=>{cu(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Ce),!Ce.defaultPrevented&&er())},className:cr(M?.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function N0(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function hD(t,e){const n={};return[t,e].forEach((s,o)=>{const c=o===1,u=c?"--mobile-offset":"--offset",d=c?iD:sD;function f(p){["top","right","bottom","left"].forEach(y=>{n[`${u}-${y}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?f(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?n[`${u}-${p}`]=d:n[`${u}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):f(d)}),n}const pD=ce.forwardRef(function(e,n){const{id:s,invert:o,position:c="bottom-right",hotkey:u=["altKey","KeyT"],expand:d,closeButton:f,className:p,offset:y,mobileOffset:g,theme:v="light",richColors:b,duration:w,style:S,visibleToasts:x=aD,toastOptions:E,dir:k=N0(),gap:O=cD,icons:j,containerAriaLabel:X="Notifications"}=e,[N,C]=ce.useState([]),G=ce.useMemo(()=>s?N.filter(Q=>Q.toasterId===s):N.filter(Q=>!Q.toasterId),[N,s]),Y=ce.useMemo(()=>Array.from(new Set([c].concat(G.filter(Q=>Q.position).map(Q=>Q.position)))),[G,c]),[ne,z]=ce.useState([]),[V,W]=ce.useState(!1),[se,de]=ce.useState(!1),[M,re]=ce.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
56k":"light"),ye=ce.useRef(null),Ne=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),Ae=ce.useRef(null),$=ce.useRef(!1),J=ce.useCallback(Q=>{C(ie=>{var fe;return(fe=ie.find(Ee=>Ee.id===Q.id))!=null&&fe.delete||un.dismiss(Q.id),ie.filter(({id:Ee})=>Ee!==Q.id)})},[]);return ce.useEffect(()=>un.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{C(ie=>ie.map(fe=>fe.id===Q.id?{...fe,delete:!0}:fe))});return}setTimeout(()=>{B$.flushSync(()=>{C(ie=>{const fe=ie.findIndex(Ee=>Ee.id===Q.id);return fe!==-1?[...ie.slice(0,fe),{...ie[fe],...Q},...ie.slice(fe+1)]:[Q,...ie]})})})}),[N]),ce.useEffect(()=>{if(v!=="system"){re(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?re("dark"):re("light")),typeof window>"u")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:ie})=>{re(ie?"dark":"light")})}catch{Q.addListener(({matches:fe})=>{try{re(fe?"dark":"light")}catch(Ee){console.error(Ee)}})}},[v]),ce.useEffect(()=>{N.length<=1&&W(!1)},[N]),ce.useEffect(()=>{const Q=ie=>{var fe;if(u.every(me=>ie[me]||ie.code===me)){var pe;W(!0),(pe=ye.current)==null||pe.focus()}ie.code==="Escape"&&(document.activeElement===ye.current||(fe=ye.current)!=null&&fe.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[u]),ce.useEffect(()=>{if(ye.current)return()=>{Ae.current&&(Ae.current.focus({preventScroll:!0}),Ae.current=null,$.current=!1)}},[ye.current]),ce.createElement("section",{ref:n,"aria-label":`${X} ${Ne}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Y.map((Q,ie)=>{var fe;const[Ee,pe]=Q.split("-");return G.length?ce.createElement("ol",{key:Q,dir:k==="auto"?N0():k,tabIndex:-1,ref:ye,className:p,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":Ee,"data-x-position":pe,style:{"--front-toast-height":`${((fe=ne[0])==null?void 0:fe.height)||0}px`,"--width":`${oD}px`,"--gap":`${O}px`,...S,...hD(y,g)},onBlur:me=>{$.current&&!me.currentTarget.contains(me.relatedTarget)&&($.current=!1,Ae.current&&(Ae.current.focus({preventScroll:!0}),Ae.current=null))},onFocus:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||$.current||($.current=!0,Ae.current=me.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{se||W(!1)},onDragEnd:()=>W(!1),onPointerDown:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||de(!0)},onPointerUp:()=>de(!1)},G.filter(me=>!me.position&&ie===0||me.position===Q).map((me,Me)=>{var Rt,Sn;return ce.createElement(fD,{key:me.id,icons:j,index:Me,toast:me,defaultRichColors:b,duration:(Rt=E?.duration)!=null?Rt:w,className:E?.className,descriptionClassName:E?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(Sn=E?.closeButton)!=null?Sn:f,interacting:se,position:Q,style:E?.style,unstyled:E?.unstyled,classNames:E?.classNames,cancelButtonStyle:E?.cancelButtonStyle,actionButtonStyle:E?.actionButtonStyle,closeButtonAriaLabel:E?.closeButtonAriaLabel,removeToast:J,toasts:G.filter(Bt=>Bt.position==me.position),heights:ne.filter(Bt=>Bt.position==me.position),setHeights:z,expandByDefault:d,gap:O,expanded:V,swipeDirections:e.swipeDirections})})):null}))}),mD=({...t})=>ae.jsx(pD,{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"}},...t});const cR=(...t)=>t.filter((e,n,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===n).join(" ").trim();const gD=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const yD=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,s)=>s?s.toUpperCase():n.toLowerCase());const j0=t=>{const e=yD(t);return e.charAt(0).toUpperCase()+e.slice(1)};var vD={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"};const _D=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const bD=ue.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:u,...d},f)=>ue.createElement("svg",{ref:f,...vD,width:e,height:e,stroke:t,strokeWidth:s?Number(n)*24/Number(e):n,className:cR("lucide",o),...!c&&!_D(d)&&{"aria-hidden":"true"},...d},[...u.map(([p,y])=>
56ue.createElement(p,y)),...Array.isArray(c)?c:[c]]));const Ln=(t,e)=>{const n=ue.forwardRef(({className:s,...o},c)=>ue.createElement(bD,{ref:c,iconNode:e,className:cR(`lucide-${gD(j0(t))}`,`lucide-${t}`,s),...o}));return n.displayName=j0(t),n};const wD=[["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"}]],SD=Ln("briefcase",wD);const RD=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],ED=Ln("building-2",RD);const TD=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],M0=Ln("calculator",TD);const AD=[["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"}]],xD=Ln("calendar",AD);const OD=[["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"}]],kD=Ln("circle-question-mark",OD);const CD=[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]],PD=Ln("cookie",CD);const $D=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],DD=Ln("credit-card",$D);const ID=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],LD=Ln("file-text",ID);const ND=[["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"}]],jD=Ln("graduation-cap",ND);const MD=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],UD=Ln("search",MD);const BD=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],zD=Ln("triangle-alert",BD);const qD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],HD=Ln("x",qD),U0="ra_cookie_consent_v1";function VD(){const t=eC(),[e,n]=ue.useState(!1);ue.useEffect(()=>{if(!(typeof window>"u"))try{localStorage.getItem(U0)||n(!0)}catch{}},[]);function s(c){try{localStorage.setItem(U0,c)}catch{}n(!1)}const o=t.pathname==="/login"||t.pathname==="/staff-access"||t.pathname.startsWith("/portal")||t.pathname.startsWith("/workforce")||t.pathname.startsWith("/admin")||t.pathname.startsWith("/service");return!e||o?null:ae.jsx("div",{className:"fixed bottom-3 left-3 right-3 max-w-[calc(100vw-1.5rem)] md:bottom-6 md:left-auto md:right-6 md:w-full md:max-w-md z-[60] animate-in fade-in slide-in-from-bottom-4",children:ae.jsx("div",{className:"glass-strong rounded-2xl p-4 sm:p-5 border border-white/10 shadow-[0_20px_60px_-20px_var(--royal)]",children:ae.jsxs("div",{className:"flex min-w-0 items-start gap-3",children:[ae.jsx("div",{className:"h-9 w-9 rounded-lg bg-gold/15 flex items-center justify-center flex-shrink-0",children:ae.jsx(PD,{className:"h-4 w-4 text-gold"})}),ae.jsxs("div",{className:"flex-1 min-w-0",children:[ae.jsx("p",{className:"text-sm font-medium text-foreground",children:"We value your privacy"}),ae.jsxs("p",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:["We use cookies and session storage to secure your portal session, remember preferences, and improve our service. See our"," ",ae.jsx(zu,{to:"/privacy",className:"text-gold hover:underline",children:"Privacy Policy"}),"."]}),ae.jsxs("div",{className:"flex flex-wrap gap-2 mt-3",children:[ae.jsx("button",{onClick:()=>
56s("accepted"),className:"text-xs px-3 py-1.5 rounded-md bg-royal text-primary-foreground hover:opacity-90 transition",children:"Accept all"}),ae.jsx("button",{onClick:()=>s("essential"),className:"text-xs px-3 py-1.5 rounded-md border border-white/10 text-muted-foreground hover:text-foreground hover:border-white/20 transition",children:"Essential only"})]})]}),ae.jsx("button",{"aria-label":"Dismiss",onClick:()=>s("essential"),className:"text-muted-foreground/60 hover:text-foreground transition",children:ae.jsx(HD,{className:"h-4 w-4"})})]})})})}function FD(t){return/Edg\//.test(t)?"Microsoft Edge":/OPR\//.test(t)?"Opera":/Firefox\//.test(t)?"Firefox":/Chrome\//.test(t)?"Chrome":/Safari\//.test(t)?"Safari":"Browser"}function GD(t){return/Windows/.test(t)?"Windows":/Mac OS X/.test(t)?"macOS":/Android/.test(t)?"Android":/iPhone|iPad|iPod/.test(t)?"iOS":/Linux/.test(t)?"Linux":"Unknown OS"}async function KD(){if(typeof window>"u"||typeof navigator>"u")return null;const t=navigator.userAgent,e=FD(t),n=GD(t),s=[t,navigator.language,`${window.screen.width}x${window.screen.height}x${window.devicePixelRatio}`,Intl.DateTimeFormat().resolvedOptions().timeZone,String(navigator.hardwareConcurrency??"")].join("|"),o=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(s));return{fingerprint:Array.from(new Uint8Array(o)).map(u=>u.toString(16).padStart(2,"0")).join("").slice(0,40),deviceName:`${e} on ${n}`,browser:e,operatingSystem:n}}const dn=Ur({type:"function"}),pz=Pt({method:"POST"}).middleware([dn]).handler(Ft("1371d0fcad6762389dae791f3bbcaaa14a912e87f16f432cc209b91e4be093a1")),mz=Pt({method:"POST"}).middleware([dn]).handler(Ft("cc514b0f3871a0d3b0b1e80f32632e25013ad3cf1eb291586130cfea4cd2b7ed"));Pt({method:"POST"}).middleware([dn]).handler(Ft("3d3e4a18260c3396b60af5d00f47dbc15c2503caf335f0d2ad4384af7d89cec7"));const YD=Pt({method:"POST"}).middleware([dn]).handler(Ft("53f641dd71b76c84d9eed52162198404c66c7ed3d21511507b825d7c9043b6ee")),gz=Pt({method:"POST"}).middleware([dn]).handler(Ft("602331df785410888025b33fb21bcd3e95fce8338afd0180f18076c9d668496a")),yz=Pt({method:"POST"}).middleware([dn]).handler(Ft("016b59c86af141d51f6f2af95b7bd91537640e7c0a84ec5378dc08f32eee04e6")),vz=Pt({method:"POST"}).middleware([dn]).handler(Ft("65adc71c9880fd0816863b6c2748784881ff2034e3343d716b640c759656646c"));var bi={},Ch,B0;function WD(){return B0||(B0=1,Ch=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Ch}var Ph={},Sa={},z0;function ws(){if(z0)return Sa;z0=1;let t;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Sa.getSymbolSize=function(s){if(!s)throw new Error('"version" cannot be null or undefined');if(s<1||s>40)throw new Error('"version" should be in range from 1 to 40');return s*4+17},Sa.getSymbolTotalCodewords=function(s){return e[s]},Sa.getBCHDigit=function(n){let s=0;for(;n!==0;)s++,n>>>=1;return s},Sa.setToSJISFunction=function(s){if(typeof s!="function")throw new Error('"toSJISFunc" is not a valid function.');t=s},Sa.isKanjiModeEnabled=function(){return typeof t<"u"},Sa.toSJIS=function(s){return t(s)},Sa}var $h={},q0;function sm(){return q0||(q0=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},t.from=function(s,o){if(t.isValid(s))return s;try{return e(s)}catch{return o}}})($h)),$h}var Dh,H0;function ZD(){if(H0)return Dh;H0=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let s=0;s<n;s++)this.putBit((e>>>n-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Dh=t,Dh}var Ih,V0;function JD(){if(V0)return Ih;V0=1;function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return t.prototype.set=function(e,n,s,o){const c=e*this.size+n;this.data[c]=s,o&&(this.reservedBit[c]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,s){this.data[e*this.size+n]^=s},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},Ih=t,Ih}var Lh={},F0;function QD(){return F0||(F0=1,(function(t){const e=ws().getSymbolSize;t.getRowColCoords=function(s){if(s===1)return[];const o=Math.floor(s/7)+2,c=e(s),u=c===145?26:Math.ceil((c-13)/(2*o-2))*2,d=[c-7];for(let f=1;f<o-1;f++)d[f]=d[f-1]-u;return d.push(6),d.reverse()},t.getPositions=function(s){const o=[],c=t.getRowColCoords(s),u=c.length;for(let d=0;d<u;d++)for(let f=0;f<u;f++)d===0&&f===0||d===0&&f===u-1||d===u-1&&f===0||o.push([c[d],c[f]]);return o}})(Lh)),Lh}var Nh={},G0;function XD(){if(G0)return Nh;G0=1;const t=ws().getSymbolSize,e=7;return Nh.getPositions=function(s){const o=t(s);return[[0,0],[o-e,0],[0,o-e]]},Nh}var jh={},K0;function eI(){return K0||(K0=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},t.from=function(o){return t.isValid(o)?parseInt(o,10):void 0},t.getPenaltyN1=function(o){const c=o.size;let u=0,d=0,f=0,p=null,y=null;for(let g=0;g<c;g++){d=f=0,p=y=null;for(let v=0;v<c;v++){let b=o.get(g,v);b===p?d++:(d>=5&&(u+=e.N1+(d-5)),p=b,d=1),b=o.get(v,g),b===y?f++:(f>=5&&(u+=e.N1+(f-5)),y=b,f=1)}d>=5&&(u+=e.N1+(d-5)),f>=5&&(u+=e.N1+(f-5))}return u},t.getPenaltyN2=function(o){const c=o.size;let u=0;for(let d=0;d<c-1;d++)for(let f=0;f<c-1;f++){const p=o.get(d,f)+o.get(d,f+1)+o.get(d+1,f)+o.get(d+1,f+1);(p===4||p===0)&&u++}return u*e.N2},t.getPenaltyN3=function(o){const c=o.size;let u=0,d=0,f=0;for(let p=0;p<c;p++){d=f=0;for(let y=0;y<c;y++)d=d<<1&2047|o.get(p,y),y>=10&&(d===1488||d===93)&&u++,f=f<<1&2047|o.get(y,p),y>=10&&(f===1488||f===93)&&u++}return u*e.N3},t.getPenaltyN4=function(o){let c=0;const u=o.data.length;for(let f=0;f<u;f++)c+=o.data[f];return Math.abs(Math.ceil(c*100/u/5)-10)*e.N4};function n(s,o,c){switch(s){case t.Patterns.PATTERN000:return(o+c)%2===0;case t.Patterns.PATTERN001:return o%2===0;case t.Patterns.PATTERN010:return c%3===0;case t.Patterns.PATTERN011:return(o+c)%3===0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(c/3))%2===0;case t.Patterns.PATTERN101:return o*c%2+o*c%3===0;case t.Patterns.PATTERN110:return(o*c%2+o*c%3)%2===0;case t.Patterns.PATTERN111:return(o*c%3+(o+c)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}t.applyMask=function(o,c){const u=c.size;
vendor: 16,777 bytes, lines 56-62
56for(let d=0;d<u;d++)for(let f=0;f<u;f++)c.isReserved(f,d)||c.xor(f,d,n(o,f,d))},t.getBestMask=function(o,c){const u=Object.keys(t.Patterns).length;let d=0,f=1/0;for(let p=0;p<u;p++){c(p),t.applyMask(p,o);const y=t.getPenaltyN1(o)+t.getPenaltyN2(o)+t.getPenaltyN3(o)+t.getPenaltyN4(o);t.applyMask(p,o),y<f&&(f=y,d=p)}return d}})(jh)),jh}var lu={},Y0;function lR(){if(Y0)return lu;Y0=1;const t=sm(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return lu.getBlocksCount=function(o,c){switch(c){case t.L:return e[(o-1)*4+0];case t.M:return e[(o-1)*4+1];case t.Q:return e[(o-1)*4+2];case t.H:return e[(o-1)*4+3];default:return}},lu.getTotalCodewordsCount=function(o,c){switch(c){case t.L:return n[(o-1)*4+0];case t.M:return n[(o-1)*4+1];case t.Q:return n[(o-1)*4+2];case t.H:return n[(o-1)*4+3];default:return}},lu}var Mh={},Uo={},W0;function tI(){if(W0)return Uo;W0=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let s=1;for(let o=0;o<255;o++)t[o]=s,e[s]=o,s<<=1,s&256&&(s^=285);for(let o=255;o<512;o++)t[o]=t[o-255]})(),Uo.log=function(s){if(s<1)throw new Error("log("+s+")");return e[s]},Uo.exp=function(s){return t[s]},Uo.mul=function(s,o){return s===0||o===0?0:t[e[s]+e[o]]},Uo}var Z0;function nI(){return Z0||(Z0=1,(function(t){const e=tI();t.mul=function(s,o){const c=new Uint8Array(s.length+o.length-1);for(let u=0;u<s.length;u++)for(let d=0;d<o.length;d++)c[u+d]^=e.mul(s[u],o[d]);return c},t.mod=function(s,o){let c=new Uint8Array(s);for(;c.length-o.length>=0;){const u=c[0];for(let f=0;f<o.length;f++)c[f]^=e.mul(o[f],u);let d=0;for(;d<c.length&&c[d]===0;)d++;c=c.slice(d)}return c},t.generateECPolynomial=function(s){let o=new Uint8Array([1]);for(let c=0;c<s;c++)o=t.mul(o,new Uint8Array([1,e.exp(c)]));return o}})(Mh)),Mh}var Uh,J0;function rI(){if(J0)return Uh;J0=1;const t=nI();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(s){this.degree=s,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(s){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(s.length+this.degree);o.set(s);const c=t.mod(o,this.genPoly),u=this.degree-c.length;if(u>0){const d=new Uint8Array(this.degree);return d.set(c,u),d}return c},Uh=e,Uh}var Bh={},zh={},qh={},Q0;function uR(){return Q0||(Q0=1,qh.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),qh}var lr={},X0;function dR(){if(X0)return lr;X0=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const s="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r 57]))+`;lr.KANJI=new RegExp(n,"g"),lr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),lr.BYTE=new RegExp(s,"g"),lr.NUMERIC=new RegExp(t,"g"),lr.ALPHANUMERIC=new RegExp(e,"g");const o=new RegExp("^"+n+"$"),c=new RegExp("^"+t+"$"),u=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return lr.testKanji=function(f){return o.test(f)},lr.testNumeric=function(f){return c.test(f)},lr.testAlphanumeric=function(f){return u.test(f)},lr}var eb;function Ss(){return eb||(eb=1,(function(t){const e=uR(),n=dR();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(c,u){if(!c.ccBits)throw new Error("Invalid mode: "+c);if(!e.isValid(u))throw new Error("Invalid version: "+u);return u>=1&&u<10?c.ccBits[0]:u<27?c.ccBits[1]:c.ccBits[2]},t.getBestModeForData=function(c){return n.testNumeric(c)?t.NUMERIC:n.testAlphanumeric(c)?t.ALPHANUMERIC:n.testKanji(c)?t.KANJI:t.BYTE},t.toString=function(c){if(c&&c.id)return c.id;throw new Error("Invalid mode")},t.isValid=function(c){return c&&c.bit&&c.ccBits};function s(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+o)}}t.from=function(c,u){if(t.isValid(c))return c;try{return s(c)}catch{return u}}})(zh)),zh}var tb;function aI(){return tb||(tb=1,(function(t){const e=ws(),n=lR(),s=sm(),o=Ss(),c=uR(),u=7973,d=e.getBCHDigit(u);function f(v,b,w){for(let S=1;S<=40;S++)if(b<=t.getCapacity(S,w,v))return S}function p(v,b){return o.getCharCountIndicator(v,b)+4}function y(v,b){let w=0;return v.forEach(function(S){const x=p(S.mode,b);w+=x+S.getBitsLength()}),w}function g(v,b){for(let w=1;w<=40;w++)if(y(v,w)<=t.getCapacity(w,b,o.MIXED))return w}t.from=function(b,w){return c.isValid(b)?parseInt(b,10):w},t.getCapacity=function(b,w,S){if(!c.isValid(b))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=o.BYTE);const x=e.getSymbolTotalCodewords(b),E=n.getTotalCodewordsCount(b,w),k=(x-E)*8;if(S===o.MIXED)return k;const O=k-p(S,b);switch(S){case o.NUMERIC:return Math.floor(O/10*3);case o.ALPHANUMERIC:return Math.floor(O/11*2);case o.KANJI:return Math.floor(O/13);case o.BYTE:default:return Math.floor(O/8)}},t.getBestVersionForData=function(b,w){let S;const x=s.from(w,s.M);if(Array.isArray(b)){if(b.length>1)return g(b,x);if(b.length===0)return 1;S=b[0]}else S=b;return f(S.mode,S.getLength(),x)},t.getEncodedBits=function(b){if(!c.isValid(b)||b<7)throw new Error("Invalid QR Code version");let w=b<<12;for(;e.getBCHDigit(w)-d>=0;)w^=u<<e.getBCHDigit(w)-d;return b<<12|w}})(Bh)),Bh}var Hh={},nb;function sI(){if(nb)return Hh;nb=1;const t=ws(),e=1335,n=21522,s=t.getBCHDigit(e);return Hh.getEncodedBits=function(c,u){const d=c.bit<<3|u;let f=d<<10;for(;t.getBCHDigit(f)-s>=0;)f^=e<<t.getBCHDigit(f)-s;return(d<<10|f)^n},Hh}var Vh={},Fh,rb;function iI(){if(rb)return Fh;rb=1;const t=Ss();function e(n){this.mode=t.NUMERIC,this.data=n.toString()}return e.getBitsLength=function(s){return 10*Math.floor(s/3)+(s%3?s%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(s){let o,c,u;for(o=0;o+3<=this.data.length;o+=3)c=this.data.substr(o,3),u=parseInt(c,10),s.put(u,10);const d=this.data.length-o;d>0&&(c=this.data.substr(o),u=parseInt(c,10),s.put(u,d*3+1))},Fh=e,Fh}var Gh,ab;function oI(){if(ab)return Gh;ab=1;const t=Ss(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(s){this.mode=t.ALPHANUMERIC,this.data=s}return n.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(o){let c;for(c=0;c+2<=this.data.length;c+=2){let u=e.indexOf(this.data[c])*45;u+=e.indexOf(this.data[c+1]),o.put(u,11)}this.data.length%2&&o.put(e.indexOf(this.data[c]),6)},Gh=n,Gh}var Kh,sb;function cI(){if(sb)return Kh;sb=1;const t=Ss();function e(n){this.mode=t.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return e.getBitsLength=function(s){return s*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(n){for(let s=0,o=this.data.length;s<o;s++)n.put(this.data[s],8)},Kh=e,Kh}var Yh,ib;function lI(){if(ib)return Yh;ib=1;const t=Ss(),e=ws();function n(s){this.mode=t.KANJI,this.data=s}return n.getBitsLength=function(o){return o*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(s){let o;for(o=0;o<this.data.length;o++){let c=e.toSJIS(this.data[o]);if(c>=33088&&c<=40956)c-=33088;else if(c>=57408&&c<=60351)c-=49472;else throw new Error("Invalid SJIS character: "+this.data[o]+` 58Make sure your charset is UTF-8`);c=(c>>>8&255)*192+(c&255),s.put(c,13)}},Yh=n,Yh}var Wh={exports:{}},ob;function uI(){return ob||(ob=1,(function(t){var e={single_source_shortest_paths:function(n,s,o){var c={},u={};u[s]=0;var d=e.PriorityQueue.make();d.push(s,0);for(var f,p,y,g,v,b,w,S,x;!d.empty();){f=d.pop(),p=f.value,g=f.cost,v=n[p]||{};for(y in v)v.hasOwnProperty(y)&&(b=v[y],w=g+b,S=u[y],x=typeof u[y]>"u",(x||S>w)&&(u[y]=w,d.push(y,w),c[y]=p))}if(typeof o<"u"&&typeof u[o]>"u"){var E=["Could not find a path from ",s," to ",o,"."].join("");throw new Error(E)}return c},extract_shortest_path_from_predecessor_list:function(n,s){for(var o=[],c=s;c;)o.push(c),n[c],c=n[c];return o.reverse(),o},find_path:function(n,s,o){var c=e.single_source_shortest_paths(n,s,o);return e.extract_shortest_path_from_predecessor_list(c,o)},PriorityQueue:{make:function(n){var s=e.PriorityQueue,o={},c;n=n||{};for(c in s)s.hasOwnProperty(c)&&(o[c]=s[c]);return o.queue=[],o.sorter=n.sorter||s.default_sorter,o},default_sorter:function(n,s){return n.cost-s.cost},push:function(n,s){var o={value:n,cost:s};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Wh)),Wh.exports}var cb;function dI(){return cb||(cb=1,(function(t){const e=Ss(),n=iI(),s=oI(),o=cI(),c=lI(),u=dR(),d=ws(),f=uI();function p(E){return unescape(encodeURIComponent(E)).length}function y(E,k,O){const j=[];let X;for(;(X=E.exec(O))!==null;)j.push({data:X[0],index:X.index,mode:k,length:X[0].length});return j}function g(E){const k=y(u.NUMERIC,e.NUMERIC,E),O=y(u.ALPHANUMERIC,e.ALPHANUMERIC,E);let j,X;return d.isKanjiModeEnabled()?(j=y(u.BYTE,e.BYTE,E),X=y(u.KANJI,e.KANJI,E)):(j=y(u.BYTE_KANJI,e.BYTE,E),X=[]),k.concat(O,j,X).sort(function(C,G){return C.index-G.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function v(E,k){switch(k){case e.NUMERIC:return n.getBitsLength(E);case e.ALPHANUMERIC:return s.getBitsLength(E);case e.KANJI:return c.getBitsLength(E);case e.BYTE:return o.getBitsLength(E)}}function b(E){return E.reduce(function(k,O){const j=k.length-1>=0?k[k.length-1]:null;return j&&j.mode===O.mode?(k[k.length-1].data+=O.data,k):(k.push(O),k)},[])}function w(E){const k=[];for(let O=0;O<E.length;O++){const j=E[O];switch(j.mode){case e.NUMERIC:k.push([j,{data:j.data,mode:e.ALPHANUMERIC,length:j.length},{data:j.data,mode:e.BYTE,length:j.length}]);break;case e.ALPHANUMERIC:k.push([j,{data:j.data,mode:e.BYTE,length:j.length}]);break;case e.KANJI:k.push([j,{data:j.data,mode:e.BYTE,length:p(j.data)}]);break;case e.BYTE:k.push([{data:j.data,mode:e.BYTE,length:p(j.data)}])}}return k}function S(E,k){const O={},j={start:{}};let X=["start"];for(let N=0;N<E.length;N++){const C=E[N],G=[];for(let Y=0;Y<C.length;Y++){const ne=C[Y],z=""+N+Y;G.push(z),O[z]={node:ne,lastCount:0},j[z]={};for(let V=0;V<X.length;V++){const W=X[V];O[W]&&O[W].node.mode===ne.mode?(j[W][z]=v(O[W].lastCount+ne.length,ne.mode)-v(O[W].lastCount,ne.mode),O[W].lastCount+=ne.length):(O[W]&&(O[W].lastCount=ne.length),j[W][z]=v(ne.length,ne.mode)+4+e.getCharCountIndicator(ne.mode,k))}}X=G}for(let N=0;N<X.length;N++)j[X[N]].end=0;return{map:j,table:O}}function x(E,k){let O;const j=e.getBestModeForData(E);if(O=e.from(k,j),O!==e.BYTE&&O.bit<j.bit)throw new Error('"'+E+'" cannot be encoded with mode '+e.toString(O)+`. 59 Suggested mode is: `+e.toString(j));switch(O===e.KANJI&&!d.isKanjiModeEnabled()&&(O=e.BYTE),O){case e.NUMERIC:return new n(E);case e.ALPHANUMERIC:return new s(E);case e.KANJI:return new c(E);case e.BYTE:return new o(E)}}t.fromArray=function(k){return k.reduce(function(O,j){return typeof j=="string"?O.push(x(j,null)):j.data&&O.push(x(j.data,j.mode)),O},[])},t.fromString=function(k,O){const j=g(k,d.isKanjiModeEnabled()),X=w(j),N=S(X,O),C=f.find_path(N.map,"start","end"),G=[];for(let Y=1;Y<C.length-1;Y++)G.push(N.table[C[Y]].node);return t.fromArray(b(G))},t.rawSplit=function(k){return t.fromArray(g(k,d.isKanjiModeEnabled()))}})(Vh)),Vh}var lb;function fI(){if(lb)return Ph;lb=1;const t=ws(),e=sm(),n=ZD(),s=JD(),o=QD(),c=XD(),u=eI(),d=lR(),f=rI(),p=aI(),y=sI(),g=Ss(),v=dI();function b(N,C){const G=N.size,Y=c.getPositions(C);for(let ne=0;ne<Y.length;ne++){const z=Y[ne][0],V=Y[ne][1];for(let W=-1;W<=7;W++)if(!(z+W<=-1||G<=z+W))for(let se=-1;se<=7;se++)V+se<=-1||G<=V+se||(W>=0&&W<=6&&(se===0||se===6)||se>=0&&se<=6&&(W===0||W===6)||W>=2&&W<=4&&se>=2&&se<=4?N.set(z+W,V+se,!0,!0):N.set(z+W,V+se,!1,!0))}}function w(N){const C=N.size;for(let G=8;G<C-8;G++){const Y=G%2===0;N.set(G,6,Y,!0),N.set(6,G,Y,!0)}}function S(N,C){const G=o.getPositions(C);for(let Y=0;Y<G.length;Y++){const ne=G[Y][0],z=G[Y][1];for(let V=-2;V<=2;V++)for(let W=-2;W<=2;W++)V===-2||V===2||W===-2||W===2||V===0&&W===0?N.set(ne+V,z+W,!0,!0):N.set(ne+V,z+W,!1,!0)}}function x(N,C){const G=N.size,Y=p.getEncodedBits(C);let ne,z,V;for(let W=0;W<18;W++)ne=Math.floor(W/3),z=W%3+G-8-3,V=(Y>>W&1)===1,N.set(ne,z,V,!0),N.set(z,ne,V,!0)}function E(N,C,G){const Y=N.size,ne=y.getEncodedBits(C,G);let z,V;for(z=0;z<15;z++)V=(ne>>z&1)===1,z<6?N.set(z,8,V,!0):z<8?N.set(z+1,8,V,!0):N.set(Y-15+z,8,V,!0),z<8?N.set(8,Y-z-1,V,!0):z<9?N.set(8,15-z-1+1,V,!0):N.set(8,15-z-1,V,!0);N.set(Y-8,8,1,!0)}function k(N,C){const G=N.size;let Y=-1,ne=G-1,z=7,V=0;for(let W=G-1;W>0;W-=2)for(W===6&&W--;;){for(let se=0;se<2;se++)if(!N.isReserved(ne,W-se)){let de=!1;V<C.length&&(de=(C[V]>>>z&1)===1),N.set(ne,W-se,de),z--,z===-1&&(V++,z=7)}if(ne+=Y,ne<0||G<=ne){ne-=Y,Y=-Y;break}}}function O(N,C,G){const Y=new n;G.forEach(function(se){Y.put(se.mode.bit,4),Y.put(se.getLength(),g.getCharCountIndicator(se.mode,N)),se.write(Y)});const ne=t.getSymbolTotalCodewords(N),z=d.getTotalCodewordsCount(N,C),V=(ne-z)*8;for(Y.getLengthInBits()+4<=V&&Y.put(0,4);Y.getLengthInBits()%8!==0;)Y.putBit(0);const W=(V-Y.getLengthInBits())/8;for(let se=0;se<W;se++)Y.put(se%2?17:236,8);return j(Y,N,C)}function j(N,C,G){const Y=t.getSymbolTotalCodewords(C),ne=d.getTotalCodewordsCount(C,G),z=Y-ne,V=d.getBlocksCount(C,G),W=Y%V,se=V-W,de=Math.floor(Y/V),M=Math.floor(z/V),re=M+1,ye=de-M,Ne=new f(ye);let Ae=0;const $=new Array(V),J=new Array(V);let Q=0;const ie=new Uint8Array(N.buffer);for(let Me=0;Me<V;Me++){const Rt=Me<se?M:re;$[Me]=ie.slice(Ae,Ae+Rt),J[Me]=Ne.encode($[Me]),Ae+=Rt,Q=Math.max(Q,Rt)}const fe=new Uint8Array(Y);let Ee=0,pe,me;for(pe=0;pe<Q;pe++)for(me=0;me<V;me++)pe<$[me].length&&(fe[Ee++]=$[me][pe]);for(pe=0;pe<ye;pe++)for(me=0;me<V;me++)fe[Ee++]=J[me][pe];return fe}function X(N,C,G,Y){let ne;if(Array.isArray(N))ne=v.fromArray(N);else if(typeof N=="string"){let de=C;if(!de){const M=v.rawSplit(N);de=p.getBestVersionForData(M,G)}ne=v.fromString(N,de||40)}else throw new Error("Invalid data");const z=p.getBestVersionForData(ne,G);if(!z)throw new Error("The amount of data is too big to be stored in a QR Code");if(!C)C=z;else if(C<z)throw new Error(` 60The chosen QR Code version cannot contain this amount of data. 61Minimum version required to store current data is: `+z+`. 62`);const V=O(C,G,ne),W=t.getSymbolSize(C),se=new s(W);return b(se,C),w(se),S(se,C),E(se,G,0),C>=7&&x(se,C),k(se,V),isNaN(Y)&&(Y=u.getBestMask(se,E.bind(null,se,G))),u.applyMask(Y,se),E(se,G,Y),{modules:se,version:C,errorCorrectionLevel:G,maskPattern:Y,segments:ne}}return Ph.create=function(C,G){if(typeof C>"u"||C==="")throw new Error("No input text");let Y=e.M,ne,z;return typeof G<"u"&&(Y=e.from(G.errorCorrectionLevel,e.M),ne=p.from(G.version),z=u.from(G.maskPattern),G.toSJISFunc&&t.setToSJISFunction(G.toSJISFunc)),X(C,ne,Y,z)},Ph}var Zh={},Jh={},ub;function fR(){return ub||(ub=1,(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="str
62ing")throw new Error("Color should be defined as hex string");let s=n.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+n);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(c){return[c,c]}))),s.length===6&&s.push("F","F");const o=parseInt(s.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+s.slice(0,6).join("")}}t.getOptions=function(s){s||(s={}),s.color||(s.color={});const o=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,c=s.width&&s.width>=21?s.width:void 0,u=s.scale||4;return{width:c,scale:c?4:u,margin:o,color:{dark:e(s.color.dark||"#000000ff"),light:e(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},t.getScale=function(s,o){return o.width&&o.width>=s+o.margin*2?o.width/(s+o.margin*2):o.scale},t.getImageWidth=function(s,o){const c=t.getScale(s,o);return Math.floor((s+o.margin*2)*c)},t.qrToImageData=function(s,o,c){const u=o.modules.size,d=o.modules.data,f=t.getScale(u,c),p=Math.floor((u+c.margin*2)*f),y=c.margin*f,g=[c.color.light,c.color.dark];for(let v=0;v<p;v++)for(let b=0;b<p;b++){let w=(v*p+b)*4,S=c.color.light;if(v>=y&&b>=y&&v<p-y&&b<p-y){const x=Math.floor((v-y)/f),E=Math.floor((b-y)/f);S=g[d[x*u+E]?1:0]}s[w++]=S.r,s[w++]=S.g,s[w++]=S.b,s[w]=S.a}}})(Jh)),Jh}var db;function hI(){return db||(db=1,(function(t){const e=fR();function n(o,c,u){o.clearRect(0,0,c.width,c.height),c.style||(c.style={}),c.height=u,c.width=u,c.style.height=u+"px",c.style.width=u+"px"}function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(c,u,d){let f=d,p=u;typeof f>"u"&&(!u||!u.getContext)&&(f=u,u=void 0),u||(p=s()),f=e.getOptions(f);const y=e.getImageWidth(c.modules.size,f),g=p.getContext("2d"),v=g.createImageData(y,y);return e.qrToImageData(v.data,c,f),n(g,p,y),g.putImageData(v,0,0),p},t.renderToDataURL=function(c,u,d){let f=d;typeof f>"u"&&(!u||!u.getContext)&&(f=u,u=void 0),f||(f={});const p=t.render(c,u,f),y=f.type||"image/png",g=f.rendererOpts||{};return p.toDataURL(y,g.quality)}})(Zh)),Zh}var Qh={},fb;function pI(){if(fb)return Qh;fb=1;const t=fR();function e(o,c){const u=o.a/255,d=c+'="'+o.hex+'"';return u<1?d+" "+c+'-opacity="'+u.toFixed(2).slice(1)+'"':d}function n(o,c,u){let d=o+c;return typeof u<"u"&&(d+=" "+u),d}function s(o,c,u){let d="",f=0,p=!1,y=0;for(let g=0;g<o.length;g++){const v=Math.floor(g%c),b=Math.floor(g/c);!v&&!p&&(p=!0),o[g]?(y++,g>0&&v>0&&o[g-1]||(d+=p?n("M",v+u,.5+b+u):n("m",f,0),f=0,p=!1),v+1<c&&o[g+1]||(d+=n("h",y),y=0)):f++}return d}return Qh.render=function(c,u,d){const f=t.getOptions(u),p=c.modules.size,y=c.modules.data,g=p+f.margin*2,v=f.color.light.a?"<path "+e(f.color.light,"fill")+' d="M0 0h'+g+"v"+g+'H0z"/>':"",b="<path "+e(f.color.dark,"stroke")+' d="'+s(y,p,f.margin)+'"/>',w='viewBox="0 0 '+g+" "+g+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(f.width?'width="'+f.width+'" height="'+f.width+'" ':"")+w+' shape-rendering="crispEdges">'+v+b+`</svg> 63`;return typeof d=="function"&&d(null,x),x},Qh}var hb;function mI(){if(hb)return bi;hb=1;const t=WD(),e=fI(),n=hI(),s=pI();function o(c,u,d,f,p){const y=[].slice.call(arguments,1),g=y.length,v=typeof y[g-1]=="function";if(!v&&!t())throw new Error("Callback required as last argument");if(v){if(g<2)throw new Error("Too few arguments provided");g===2?(p=d,d=u,u=f=void 0):g===3&&(u.getContext&&typeof p>"u"?(p=f,f=void 0):(p=f,f=d,d=u,u=void 0))}else{if(g<1)throw new Error("Too few arguments provided");return g===1?(d=u,u=f=void 0):g===2&&!u.getContext&&(f=d,d=u,u=void 0),new Promise(function(b,w){try{const S=e.create(d,f);b(c(S,u,f))}catch(S){w(S)}})}try{const b=e.create(d,f);p(null,c(b,u,f))}catch(b){p(b)}}return bi.create=e.create,bi.toCanvas=o.bind(null,n.render),bi.toDataURL=o.bind(null,n.renderToDataURL),bi.toString=o.bind(null,function(c,u,d){return s.render(c,d)}),bi}var gI=mI();const yI=jp(gI),pb="Ross & Associates Tax Office",vI="https://rossandassociates-taxoffice.com",_I=1e4,im="tax-office.pending-portal";function _z(t){const e=t.startsWith("/")?t:`/${t}`;return`${vI}${e}`}async function In(t,e=_I){let n;try{return await Promise.race([Promise.resolve(t),new Promise((s,o)=>{n=setTimeout(()=>
63o(new Error("The secure session check took too long.")),e)})])}finally{n&&clearTimeout(n)}}function bz(t){return t==="client"?"/portal/security":t==="employee"?"/workforce/security":t==="customer_service"?"/service/security":"/admin/security"}function wz(){if(typeof window>"u")return null;const t=window.sessionStorage.getItem(im);return t?.startsWith("/")&&!t.startsWith("//")?t:null}function Sz(t){typeof window<"u"&&t.startsWith("/")&&!t.startsWith("//")&&window.sessionStorage.setItem(im,t)}function Rz(){typeof window<"u"&&window.sessionStorage.removeItem(im)}function bI(t,e){const n=`${pb}:${e.trim().toLowerCase()}`,s=new URLSearchParams({secret:t,issuer:pb,algorithm:"SHA1",digits:"6",period:"30"});return`otpauth://totp/${encodeURIComponent(n)}?${s.toString()}`}function Ez(t,e){return yI.toDataURL(bI(t,e),{errorCorrectionLevel:"M",margin:2,width:256,color:{dark:"#101A3C",light:"#FFFFFF"}})}function Tz(t,e=12e4){const n=[];for(const s of t){const o=n.at(-1),c=o&&Math.abs(new Date(o.created_at).getTime()-new Date(s.created_at).getTime())<=e;o&&c&&o.provider===s.provider?o.count+=1:n.push({...s,count:1})}return n}const hR=ue.createContext(null),mb=["founder","admin","office_manager","workforce","staff","preparer","verified_preparer","customer_service","trainee","w2_employee","contractor_1099","office_partner","client"],pR=["workforce","staff","preparer","verified_preparer","trainee","w2_employee","contractor_1099","office_partner"];function wI(t){return[...t].sort((e,n)=>mb.indexOf(e)-mb.indexOf(n))}function gb(t,e){return t.includes("founder")?"/founder-vault":t.some(n=>n==="admin"||n==="office_manager")?"/admin":t.some(n=>pR.includes(n))?"/workforce/onboarding":t.includes("customer_service")?"/service":"/portal"}function SI({children:t}){const[e,n]=ue.useState(null),[s,o]=ue.useState([]),[c,u]=ue.useState(!0),[d,f]=ue.useState(!1),[p,y]=ue.useState(null),g=ue.useRef(null),v=Ut(),b=N$();ue.useEffect(()=>{let k=!0;const{data:{subscription:O}}=_e.auth.onAuthStateChange((j,X)=>{if(!k)return;n(X),u(!1),y(null),(j==="SIGNED_IN"||j==="SIGNED_OUT"||j==="USER_UPDATED")&&(v.invalidate(),j!=="SIGNED_OUT"&&b.invalidateQueries());const N=j==="SIGNED_IN"&&X?.user&&g.current?.userId===X.user.id&&Date.now()-g.current.at<12e4;j==="SIGNED_IN"&&X?.user&&!N&&(g.current={userId:X.user.id,at:Date.now()},setTimeout(()=>{_e.from("login_events").insert({user_id:X.user.id,user_agent:typeof navigator<"u"?navigator.userAgent.
63slice(0,500):null,provider:X.user.app_metadata?.provider??"email"}).then(()=>{},()=>{}),(async()=>{try{const C=await KD();if(!C)return;(await YD({data:{fingerprint:C.fingerprint,deviceName:C.deviceName,browser:C.browser,operatingSystem:C.operatingSystem}}))?.isNew&&rD.info(`New sign-in from ${C.deviceName}. Review it in your Security Center.`)}catch{}})()},0))});return In(_e.auth.getSession()).then(({data:j})=>{k&&(f(!!j.session?.user),n(X=>X??j.session),u(!1))}).catch(()=>{k&&(y("We could not verify your secure session in time."),f(!1),u(!1))}),()=>{k=!1,O.unsubscribe()}},[v,b]);const w=ue.useCallback(async k=>{f(!0),y(null);try{const{data:O,error:j}=await In(_e.from("user_roles").select("role").eq("user_id",k));if(j)throw j;const X=wI((O??[]).map(N=>N.role));return o(X),X}catch{throw y("Your secure role assignments could not be verified. No access was changed."),new Error("Your secure role assignments could not be verified.")}finally{f(!1)}},[]),S=ue.useCallback(async()=>{u(!0),y(null);try{const{data:k,error:O}=await In(_e.auth.refreshSession());if(O)throw O;const j=k.session;if(!j?.user)throw new Error("Your secure session is no longer available.");n(j);const X=await w(j.user.id);return await b.invalidateQueries({refetchType:"active"}),await v.invalidate({sync:!0}),{roles:X,landingPath:gb(X,j.user.email)}}catch(k){throw y("Your latest account changes were saved, but this screen could not refresh securely. Retry the secure check."),k}finally{u(!1)}},[w,b,v]);ue.useEffect(()=>{const k=e?.user?.id;if(!k){o([]),f(!1);return}w(k)},[e?.user?.id,w]);const x=ue.useCallback(async()=>{u(!0),y(null);try{const{data:k,error:O}=await In(_e.auth.getSession());if(O)throw O;n(k.session),k.session?.user?await w(k.session.user.id):o([])}catch{y("We still could not verify your session. You can retry or sign out safely.")}finally{u(!1)}},[w]);ue.useEffect(()=>{if(typeof window>"u")return;const k=()=>{e?.user&&x()};return window.addEventListener("online",k),()=>window.removeEventListener("online",k)},[e?.user?.id,x]);const E=ue.useMemo(()=>{const k=G=>s.includes(G),O=G=>G.some(Y=>s.includes(Y)),j=k("founder"),X=O(["admin","founder","office_manager"]),N=O(pR),C=gb(s,e?.user?.email);return e?.user,{user:e?.user??null,session:e,roles:s,loading:c,rolesLoading:d,authError:p,isAuthenticated:!!e,isAdmin:X,isFounder:j,isWorkforce:N,isClient:k("client"),landingPath:C,has:k,hasAny:O,retryAuth:x,synchronizeSession:S,signOut:async()=>{await b.cancelQueries(),b.clear(),await _e.auth.signOut()}}},[e,s,c,d,p,b,x,S]);return ae.jsx(hR.Provider,{value:E,children:t})}function Az(){const t=ue.useContext(hR);if(!t)throw new Error("useAuth must be used within <AuthProvider>");return t}function RI(){return ae.jsx("div",{className:"flex min-h-screen items-center justify-center bg-hero px-4 relative grain",children:ae.jsxs("div",{className:"max-w-md text-center relative",children:[ae.jsx("h1",{className:"font-display text-9xl font-light text-gradient-gold",children:"404"}),ae.jsx("h2",{className:"mt-4 text-2xl text-foreground",children:"Page not found"}),ae.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"This page may have moved, or the link may be outdated."}),ae.jsx(zu,{to:"/",className:"inline-flex mt-8 items-center justify-center rounded-md bg-royal px-6 py-3 text-sm font-medium text-primary-foreground shadow-glow",children:"Return Home"})]})})}function EI({error:t,reset:e}){console.error(t);const n=Ut();return ae.jsx("div",{className:"flex min-h-screen items-center justify-center bg-hero px-4",children:ae.jsxs("div",{className:"max-w-md text-center glass-strong rounded-2xl p-10",children:[ae.jsx("h1",{className:"font-display text-2xl",children:"Something went wrong"}),ae.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:t.message||"Please try again."}),ae.jsxs("div",{className:"mt-6 flex justify-center gap-2",children:[ae.jsx("button",{onClick:()=>{n.invalidate(),e?.()},className:"rounded-md bg-royal px-5 py-2 text-sm text-primary-foreground",children:"Try again"}),ae.jsx("a",{href:"/",className:"rounded-md border border-white/10 px-5 py-2 text-sm",children:"Home"})]})]})})}const Pe=Uk()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Ross & Associates Tax Office"},{name:"description",content:"Premium tax preparation, IRS resolution, bookkeeping, and business advisory services. Trusted nationwide."},{name:"google-site-verification",content:"4OZjtp5N7vHrjprB1Imj1bn9OVULdFZf0s6_gsADYbw"},{name:"author",content:"Ross & Associates Tax Office"},{property:"og:site_name",content:"Ross & Associates Tax Office"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{property:"og:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/7058d278-0fb1-42b1-9001-be620453611c"},{name:"twitter:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/7058d278-0fb1-42b1-9001-be620453611c"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"Ross & Associates Tax Office",url:"https://www.rossandassociates-taxoffice.com/",logo:"https://www.rossandassociates-taxoffice.com/tax-office-logo.png",telephone:"+1-725-324-7787"})},{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"Ross & Associates Tax Office",url:"https://www.rossandassociates-taxoffice.com/"})}],links:[{rel:"icon",type:"image/jpeg",href:"/favicon-tax.jpg"},{rel:"apple-touch-icon",type:"image/jpeg",sizes:"180x180",href:"/apple-touch-icon.jpg"},{rel:"manifest",href:"/site.webmanifest"},{rel:"stylesheet",href:M$}
63,{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap"}]}),shellComponent:TI,component:AI,notFoundComponent:RI,errorComponent:EI});function TI({children:t}){return ae.jsxs("html",{lang:"en",className:"dark",children:[ae.jsx("head",{children:ae.jsx(aC,{})}),ae.jsxs("body",{children:[t,ae.jsx(iC,{})]})]})}function AI(){const{queryClient:t}=Pe.useRouteContext();return ae.jsx(j$,{client:t,children:ae.jsxs(SI,{children:[ae.jsx(xS,{}),ae.jsx(mD,{}),ae.jsx(VD,{})]})})}const xI="modulepreload",OI=function(t){return"/"+t},yb={},I=function(e,n,s){let o=Promise.resolve();if(n&&n.length>0){let f=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=f(n.map(p=>{if(p=OI(p),p in yb)return;yb[p]=!0;const y=p.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":xI,y||(v.as="script"),v.crossOrigin="",v.href=p,d&&v.setAttribute("nonce",d),document.head.appendChild(v),y)return new Promise((b,w)=>{v.addEventListener("load",b),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return e().catch(c)})},kI=()=>I(()=>import("./index-Bl8BisC4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35])),CI=U()({head:()=>({meta:[{title:"Tax Preparation & IRS Assistance | Ross & Associates Tax Office"},{name:"description",content:"Professional tax preparation, prior-year returns, IRS assistance, bookkeeping, and business tax services in Las Vegas and remotely."},{property:"og:title",content:"Ross & Associates Tax Office â Professional Tax Services"},{property:"og:description",content:"Professional tax preparation, IRS assistance, bookkeeping, and business tax services from Ross & Associates Tax Office."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"ProfessionalService",name:"Ross & Associates Tax Office",url:"https://www.rossandassociates-taxoffice.com/",telephone:"+1-725-324-7787",address:{"@type":"PostalAddress",addressLocality:"Las Vegas",addressRegion:"NV",addressCountry:"US"},areaServed:"US",description:"Professional tax preparation, IRS assistance, bookkeeping, and business tax services."})}]}),component:D(kI,"component")}),PI=()=>I(()=>import("./_authenticated-QGMJTGAb.js"),__vite__mapDeps([36,37,38,17,39,40,22,7,12,13,14,15,20])),$I=U()({beforeLoad:async({location:t})=>{const{data:e}=await In(_e.auth.getSession());if(!e.session)throw t.pathname.startsWith("/workforce")?be({to:"/staff-access",search:{portal:"employee"}}):t.pathname.startsWith("/admin")||t.pathname.startsWith("/founder-vault")?be({to:"/staff-access",search:{portal:t.pathname.startsWith("/founder-vault")?"founder":"administrator"}}):t.pathname.startsWith("/service")?be({to:"/staff-access",search:{portal:"customer_service"}}):be({to:"/login",search:{portal:"client"}})},component:D(PI,"component")}),DI=()=>I(()=>import("./about-Dz28N8ZX.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,42,43,33,30,44,45,46,29,47,48,34,49,50])),II=U()({head:()=>({meta:[{title:"About â Ross & Associates Tax Office"},{name:"description",content:"Founder-led, family-built tax firm. Meet Mason H. Ross Jr. and Daisy Le Ross and the team behind Ross & Associates."},{property:"og:title",content:"About Ross & Associates Tax Office"},{property:"og:description",content:"Mason H. Ross Jr. and Daisy Le Ross built Ross & Associates to deliver enterprise-grade tax services with family-first care."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/about"}]}),component:D(DI,"component")}),LI=["founder","administrator","customer_service","employee","client"],vb=[{intent:"founder",label:"Founder / Owner Portal",audience:"Ownership",description:"Executive oversight, invitations, access policy and audit review. Owner protected â never granted by an administrator.",route:"/founder-vault",signInRoute:"/staff-access",selfRegistration:!1},{intent:"administrator",label:"Administrator Portal",audience:"Firm administration",description:"Firm operations, staff management and delegated invitations within Founder-approved limits.",route:"/admin",signInRoute:"/staff-access",selfRegistration:!1},{intent:"customer_service",label:"Customer Service Portal",audience:"Client care",description:"Assigned taxpayer support, messages, appointments and escalations.",route:"/service",signInRoute:"/staff-access",selfRegistration:!1},{intent:"employee",label:"Tax Office Staff / Employee Portal",audience:"Tax Office staff",description:"Your staff profile, assigned tools, private documents, payouts, and time & attendance.",route:"/workforce",signInRoute:"/staff-access",selfRegistration:!1},{intent:"client",label:"Taxpayer / Client Portal",audience:"Taxpayers",description:"Your documents, filing status, appointments and messages with the Tax Office.",route:"/portal",signInRoute:"/login",selfRegistration:!0}];function NI(t){return vb.find(e=>e.intent===t)??vb[4]}function mR(t){return typeof t=="string"&&LI.includes(t)}function jI(t,e,n="TAX"){return t.find(s=>
63s.portal_intent===e&&s.division_code===n)}const MI="/portal";function xz(t){return t.includes("founder")?"/founder-vault":t.some(e=>e==="admin"||e==="office_manager")?"/admin":t.some(e=>["workforce","staff","preparer","verified_preparer","trainee","w2_employee","contractor_1099","office_partner"].includes(e))?"/workforce":t.includes("customer_service")?"/service":t.includes("client")?MI:null}const Oz={draft:"Draft â not sent",pending_owner_approval:"Draft â Pending Owner Approval",approved_not_sent:"Approved â not sent",sent:"Sent â awaiting acceptance",accepted:"Accepted",revoked:"Revoked",expired:"Expired",declined:"Declined by recipient"},kz=["administrator","customer_service_representative","tax_preparer","employee","contractor","taxpayer_client","other_approved"],Cz={administrator:"Administrator",customer_service_representative:"Customer Service Representative",tax_preparer:"Tax Preparer",employee:"Employee",contractor:"Contractor",taxpayer_client:"Taxpayer / Client",other_approved:"Other Founder-approved category"},gR={administrator:{portalIntent:"administrator",forms:["Administrator acknowledgment","Confidentiality and data-handling agreement"],documents:["Government photo identification","Signed acceptable-use acknowledgment"],training:["Tax Office security and privacy briefing","Administrator responsibilities overview"],workerClassificationRequired:!0},customer_service_representative:{portalIntent:"customer_service",forms:["Client-care handbook acknowledgment","Confidentiality agreement"],documents:["Government photo identification"],training:["Taxpayer privacy briefing","Client communication standards"],workerClassificationRequired:!0},tax_preparer:{portalIntent:"employee",forms:["Preparer engagement agreement","Confidentiality agreement","Due-diligence acknowledgment"],documents:["Government photo identification","PTIN confirmation","State registration where required"],training:["Tax Office preparation standards","Due diligence and documentation","Security and privacy briefing"],workerClassificationRequired:!0},employee:{portalIntent:"employee",forms:["Employment acknowledgment","Confidentiality agreement","Time & attendance acknowledgment"],documents:["Government photo identification","Completed payroll paperwork"],training:["Tax Office orientation","Security and privacy briefing"],workerClassificationRequired:!0},contractor:{portalIntent:"employee",forms:["Independent contractor agreement","Confidentiality agreement"],documents:["Government photo identification","Form W-9","Proof of business registration where applicable"],training:["Tax Office engagement standards","Security and privacy briefing"],workerClassificationRequired:!0},taxpayer_client:{portalIntent:"client",forms:["Client intake and engagement agreement","Privacy and consent acknowledgment"],documents:["Government photo identification","Prior-year return where available","Current-year tax documents"],training:[],workerClassificationRequired:!1},other_approved:{portalIntent:"client",forms:["Founder-approved engagement acknowledgment"],documents:["Government photo identification"],training:[],workerClassificationRequired:!1}};function Pz(t){const e=gR[t];return{category:t,landingRoute:NI(e.portalIntent).route,...e}}function $z(t){return gR[t].portalIntent}function Dz(t){return t==="draft"||t==="pending_owner_approval"||t==="approved_not_sent"||t==="sent"}function Iz(t,e=new Date,n=72){if(t.status!=="sent"||!t.sent_at)return!1;const s=t.last_reminder_at??t.sent_at;return e.getTime()-new Date(s).getTime()>=n*36e5}const Lz=["w2_employee","contractor_1099","office_partner","trainee","not_applicable"],Nz={w2_employee:"W-2 employee",contractor_1099:"1099 contractor",office_partner:"Office partner",trainee:"Trainee",not_applicable:"Not applicable"},UI=["founder"];function jz(t){const e=t.actorRoles.includes("founder"),n=t.actorRoles.includes("admin")||t.actorRoles.includes("office_manager"),s=jI(t.policies,t.intent,t.divisionCode);if(!s)return{allowed:!1,reason:"No access policy is configured for that portal."};if(t.requestedRoles.some(c=>UI.includes(c))&&!e)return{allowed:!1,reason:"The Founder/Owner role can only be granted by the Founder/Owner."};if(t.intent==="founder"&&!e)return{allowed:!1,reason:"Founder/Owner invitations are owner protected."};const o=t.requestedRoles.filter(c=>!s.allowed_roles.includes(c));return o.length>0?{allowed:!1,reason:`These roles are not part of that portal: ${o.join(", ")}.`}:e&&s.invitable_by_founder?{allowed:!0,reason:"Founder/Owner authority."}:n&&s.invitable_by_admin?{allowed:!0,reason:"Delegated administrator authority."}:n?{allowed:!1,reason:"Founder policy does not delegate that portal to administrators."}:{allowed:!1,reason:"Only the Founder/Owner or a delegated administrator may invite."}}const Mz={totp:"Authenticator app (TOTP)",phone_sms:"Verified phone / SMS code",email_link:"Email verification or magic link",recovery_code:"One-time recovery code"},Uz=[{key:"lost_device",label:"Lost authenticator device",action:"Reauthenticate, then replace the factor. Privileged accounts also need owner approval."},{key:"changed_phone",label:"Changed phone number",action:"Re-verify the new number once SMS is configured. The old factor is removed and audited."},{key:"expired_code",label:"Code expired",action:"Request a new code. Expired codes are never reusable."},{key:"failed_code",label:"Incorrect code",action:"Retry. Repeated failures trigger rate limiting."},{key:"rate_limited",label:"Too many attempts",action:"Wait for the cool-down window, then try again."},{key:"provider_outage",label:"Verification provider unavailable",action:"Use your authenticator app or a recovery code. Nothing is recorded as verified."},{key:"account_lockout",label:"Account locked",action:"Owner-approved unlock with a written reason and full audit entry."},{key:"factor_replacement",label:"Replacing a factor",action:"Requires reauthentication; privileged replacements require controlled owner approval."}];function Bz(t){return t==="founder"||t==="administrator"}const BI=()=>I(()=>import("./access-CWA8GsYb.js"),__vite__mapDeps([51,12,13,14,15,3,4,52,53,34,54,29,8,21])),zI=U()({validateSearch:t=>{const e={};return mR(t.portal)&&(e.portal=t.portal),(t.verify==="1"||t.verify===!0)&&(e.verify="1"),e},head:()=>({meta:[{title:"Portal Access â Ross & Associates Tax Office"},{name:"description",content:"Choose the Ross & Associates Tax Office portal you need. Selecting a portal is navigation only â access is verified against your authorized assignments."},{property:"og:title",content:"Portal Access â Ross & Associates Tax Office"},{property:"og:description",content:"Founder, administrator, customer service, employee and taxpayer portal entry for Ross & Associates Tax Office."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}
63),component:D(BI,"component")}),qI={operational:"Operational",preview_only:"Preview only",not_configured:"Not configured",pending_policy:"Pending policy",pending_integration:"Pending integration"};function yR(t){return t==="operational"}const HI=[{key:"owner_invitation",publicStatement:"Most relationships begin with an invitation we send you, and the invitation decides what you are invited to do.",feature:"Owner and delegated-administrator invitation records with single-use expiring links",state:"operational"},{key:"client_self_registration",publicStatement:"Only a prospective taxpayer or business client can register on this website, and that registration starts a pending review.",feature:"Public client registration limited to client prospects at pending review status",state:"operational"},{key:"no_role_from_choosing",publicStatement:"Choosing or requesting a portal never gives you a role or access; our records decide that after you sign in.",feature:"Server-side portal authorization comparing account assignments against the requested portal",state:"operational"},{key:"intake_checklist",publicStatement:"You get a checklist showing what we need, why we need it, and what is still outstanding.",feature:"Case intake requirements with client-visible reasons and honest status labels",state:"operational"},{key:"secure_upload",publicStatement:"You upload documents inside your secure account rather than sending them by email or text message.",feature:"Private evidence vault with server-authorized short-lived links",state:"operational"},{key:"missing_items_and_corrections",publicStatement:"If something is missing or unclear, we mark it and explain what to re-send.",feature:"Missing-item and needs-correction requirements with written reasons",state:"operational"},{key:"case_by_case_access",publicStatement:"Our personnel can see your case only when it is assigned to them, and only the parts their duties require.",feature:"Case-by-case capability assignments, expiry and revocation",state:"operational"},{key:"masking",publicStatement:"Sensitive values are restricted, and everyday screens show only the last few digits.",feature:"Masked display of bank and identification values with permissioned reveal",state:"operational"},{key:"audit_records",publicStatement:"We keep records of who opened your information and why.",feature:"Immutable case access and audit events",state:"operational"},{key:"data_minimization",publicStatement:"We ask only for what the service or relationship you selected reasonably requires.",feature:"Service-specific checklists and workflow-justified high-risk fields",state:"operational"},{key:"bank_double_entry",publicStatement:"When a refund deposit or payment is authorized, you enter your bank details twice and certify them yourself.",feature:"Double-entry bank capture with certification and format check",state:"operational"},{key:"totp_mfa",publicStatement:"Accounts with wider access must use an authenticator app for a second verification step.",feature:"Authenticator-app (TOTP) enrollment and challenge",state:"operational"},{key:"email_verification",publicStatement:"We verify the email address an invitation was sent to before an account is created.",feature:"Invitation email verification on acceptance",state:"operational"},{key:"encryption_in_transit",publicStatement:"Information you send through your account travels over an encrypted connection.",feature:"HTTPS across every portal surface",state:"operational"},{key:"encryption_at_rest_fields",publicStatement:"The most sensitive values you enter are additionally encrypted where we store them.",feature:"Application-level field encryption for bank and identity answers",state:"not_configured",holdReason:"The encryption key has not been added yet, so this sentence is withheld from public pages."},{key:"malware_scanning",publicStatement:"Uploads are scanned before our team opens them.",feature:"Malware scanning and quarantine of uploaded files",state:"not_configured",holdReason:"No scanning service is connected yet. Uploads are held rather than opened, and the claim is withheld."},{key:"sms_notifications",publicStatement:"You can receive text-message updates.",feature:"Verified text-message provider",state:"not_configured",holdReason:"Text messaging is not configured for the Tax Office, so the public pages say email and in-account notices only."},{key:"appointments",publicStatement:"You can book and confirm appointments from your account.",feature:"Portal appointment scheduling",state:"pending_integration",holdReason:"Scheduling is described as offered by our team rather than as self-service booking until the calendar connection is verified."},{key:"retention_periods",publicStatement:"We keep your records for a stated period and then dis
63pose of them securely.",feature:"Approved retention, legal-hold and disposal schedule",state:"pending_policy",holdReason:"Retention periods await Founder, legal and compliance approval, so no period is stated publicly."},{key:"response_times",publicStatement:"We respond within a stated time.",feature:"Approved service-level commitment",state:"pending_policy",holdReason:"No response-time commitment is approved, so none is published."},{key:"support_hours",publicStatement:"Our published support hours.",feature:"Approved published support hours",state:"pending_policy",holdReason:"Hours are not confirmed for publication, so the pages ask visitors to use the contact page instead."},{key:"employment_openings",publicStatement:"Current openings and how to apply.",feature:"Published opportunity listings",state:"preview_only",holdReason:"Opportunities are described as invitation-based; no live listing is published."},{key:"staff_training_program",publicStatement:"Our personnel complete security and privacy training.",feature:"Recorded staff training assignments and completion",state:"preview_only",holdReason:"Training records exist internally but completion evidence is not yet approved for a public claim."},{key:"vendor_review",publicStatement:"We review the service providers that support our work.",feature:"Service-provider inventory with review state",state:"pending_policy",holdReason:"The provider inventory is not yet reviewed and approved, so the claim is withheld."},{key:"compliance_claim",publicStatement:"We are compliant, approved or certified by a government body or standard.",feature:"Independent verification and legal approval",state:"pending_policy",holdReason:"Never publish. Public pages say our practices are designed to support our safeguards, which is not a claim of legal compliance."},{key:"external_client_app_intake",publicStatement:"You can photograph and send your documents from a mobile app that connects straight to our office.",feature:"Verified branded TaxesToGo intake handoff with TaxSlayer ProWeb",state:"pending_integration",holdReason:"The external platform link is recorded as not verified. Public pages describe uploading inside your secure account only."},{key:"external_portal_invitation",publicStatement:"Your preparer can invite you into the tax software's own customer portal by email or text message.",feature:"Verified TaxSlayer ProWeb customer portal invitation handoff",state:"pending_integration",holdReason:"No credentials, interface or provider callback has been exercised, and text messaging is not configured."},{key:"external_status_visibility",publicStatement:"Your account shows the live status of your return in the tax preparation software.",feature:"Verified status evidence from TaxSlayer ProWeb",state:"pending_integration",holdReason:"External statuses are never inferred. Until evidence is verified, status comes from our own records only, and nothing implies filing or acceptance."},{key:"external_upload_limits",publicStatement:"Specific file size and file count limits for sending documents.",feature:"Administrator-editable TaxSlayer ProWeb limits with source and last-verified date",state:"pending_policy",holdReason:"The limits are recorded internally for preparers from the provider's current guidance and must be re-verified before any figure is published."}];function VI(t){const e=HI.find(n=>n.key===t);if(!e)throw new Error(`Unknown public capability claim: ${t}`);return e}const zz=[{key:"invited",label:"Invited",meaning:"We sent you an invitation. Nothing is active until you open it and complete the steps it lists.",audience:"any"},{key:"registration_pending",label:"Registration Pending",meaning:"You registered on this website. We have your request and it is waiting for review. It is not an acceptance.",audience:"client"},{key:"verification_required",label:"Verification Required",meaning:"We need to confirm your email address, and a second verification step where required, before going further.",audience:"any"},{key:"intake_started",label:"Intake Started",meaning:"You have begun your checklist. You can stop and come back at any time.",audience:"client"},{key:"missing_information",label:"Missing Information",meaning:"Something on your checklist is still outstanding. The item says what it is and why it is needed.",audience:"client"},{key:"submitted",label:"Submitted",meaning:"You have sent it to us. It has not been reviewed yet.",audience:"any"},{key:"under_review",label:"Under Review",meaning:"Our team is looking at what you sent.",audience:"any"},{key:"needs_correction",label:"Needs Correction",meaning:"We need a clearer or different version of something. The note explains what to re-send.",audience:"any"},{key:"ready_for_appointment",label:"Ready for Appointment",meaning:"We have enough to meet with you. Our team will arrange a time with you.",audience:"client"},{key:"active_engagement",label:"Active Engagement",meaning:"Work is underway under an agreed engagement.",audience:"client"},{key:"completed",label:"Completed",meaning:"The agreed work is finished. It does not by itself mean anything was filed or accepted anywhere.",audience:"client"},{key:"declined_closed",label:"Declined / Closed",meaning:"We are not moving forward, or the matter is closed. You can ask us why.",audience:"any"},{key:"candidate",label:"Candidate",meaning:"You are being considered. It is not an offer.",audience:"candidate"},{key:"interview_review",label:"Interview / Review",meaning:"We are reviewing your application and may speak with you.",audience:"candidate"},{key:"conditional",label:"Conditional",meaning:"Any next step depends on the conditions we tell you in writing.",audience:"candidate"},{key:"onboarding",label:"Onboarding",meaning:"You are completing the records, agreements and security steps your invitation lists.",audience:"worker"},{key:"training",label:"Training",meaning:"Required training is outstanding or in progress.",audience:"worker"},{key:"pending_approval",label:"Pending Approval",meaning:"Everything is with the Founder or Owner for a decision. Nothing is active yet.",audience:"worker"},{key:"active",label:"Active",meaning:"Access has been approved and activated for the duties assigned to you.",audience:"worker"},{key:"suspended",label:"Suspended",meaning:"Access is paused. You will be told the reason in writing.",audience:"worker"},{key:"offboarded",label:"Offboarded",meaning:"The relationship has ended and access has been removed.",audience:"worker"}],FI=[{key:"client_register",label:"Begin secure registration",audie
63nce:"New individual taxpayer",to:"/intake",lane:"client",state:"operational"},{key:"request_invitation",label:"Request an invitation",audience:"Anyone who would rather we start the process",to:"/contact",lane:"general",state:"operational"},{key:"business_intake",label:"Start business-client intake",audience:"Business client",to:"/intake",lane:"client",state:"operational"},{key:"accept_invitation",label:"Accept your invitation",audience:"Invited client â use the private link we sent you",to:"/invitation/accept",lane:"client",state:"operational"},{key:"view_opportunities",label:"View opportunities",audience:"Employment or contractor candidate",to:"/contact",lane:"general",state:"preview_only"},{key:"continue_application",label:"Continue your invited application",audience:"Invited candidate",to:"/invitation/accept",lane:"general",state:"operational"},{key:"staff_invitation",label:"Open your staff invitation",audience:"Invited employee or contractor",to:"/invitation/accept",lane:"staff",state:"operational"},{key:"staff_sign_in",label:"Staff sign in",audience:"Existing Tax Office personnel",to:"/staff-access",lane:"staff",state:"operational"},{key:"client_sign_in",label:"Client sign in",audience:"Existing client",to:"/login",lane:"client",state:"operational"},{key:"contact_us",label:"Contact the Tax Office",audience:"Anyone",to:"/contact",lane:"general",state:"operational"},{key:"report_security_concern",label:"Report a security concern",audience:"Anyone",to:"/contact",lane:"general",state:"operational"}];function GI(t){const e=FI.find(n=>n.key===t);if(!e)throw new Error(`Unknown call to action: ${t}`);return e}const Xh=["Social Security or taxpayer identification numbers","Full bank routing or account numbers","Passwords or one-time codes","Identity-verification answers","Photographs or scans of identity documents"],Nn=[{key:"how_we_work",path:"/how-we-work",navLabel:"How We Work",title:"How We Work",description:"How Ross & Associates Tax Office starts a relationship, what we ask for, who can see it, and what each status means before you send us anything.",audience:"Everyone",indexable:!0,blocks:[{heading:"Two ways a relationship starts",paragraphs:["Most relationships with our office begin with an invitation we send you. The invitation states who it is for, what it is for, and what you will be asked to complete. It is private, single-use, and expires.","Separately, a prospective taxpayer or business client may register on this website. That registration begins a pending review. It is a request, not an acceptance, and it never creates staff access of any kind."],bullets:["Only a prospective taxpayer or business client can register here.","Everyone else â employees, contractors, administrators, candidates â is invited by us.","Choosing a portal on a sign-in screen is navigation only. It never gives you a role."],claims:["owner_invitation","client_self_registration","no_role_from_choosing"]},{heading:"What happens after you begin",paragraphs:["You get a checklist. Each item says what we need and why we need it. You can stop and come back, and you will see what is still outstanding.","If something is missing or unclear, we mark it and explain what to re-send rather than leaving you guessing."],claims:["intake_checklist","missing_items_and_corrections"]},{heading:"Who can see your information",paragraphs:["Our personnel can open your case only when it is assigned to them, and only the parts their duties require. A job title alone does not open anything.","We keep records of who opened your information and why."],claims:["case_by_case_access","audit_records"]},{heading:"Who reviews your file",paragraphs:["Mason H. Ross Jr. and Daisy Le Ross bring a combined 30 years of tax-service experience. Our team refreshes its training each year from October through January so clients receive careful questions, clear explanations, and a professional review. Tax results and savings depend on each clientâs circumstances."]},{heading:"What our status words mean",paragraphs:["We use the same plain words in your account that we use here, so a status never means more than it says. Completing work does not by itself mean anything was filed or accepted anywhere, and we do not promise a filing, a refund, an approval, an engagement, or an outcome."]}],ctas:["client_register","request_invitation","client_sign_in"],affectedWorkflows:["invitations","public_registration","case_intake","lifecycle"]},{key:"new_client_process",path:"/new-client-process",navLabel:"New Client Process",title:"New Client Process",description:"Step by step: how a new individual taxpayer registers or accepts an invitation, verifies their email, completes a checklist, and follows their status.",audience:"New individual taxpayers",indexable:!0,blocks:[{heading:"Step 1 â Registration or invitation",paragraphs:["Either register on this website, or open the private invitation we sent you. Registering starts a pen
63ding review; an invitation already states what you have been invited to do."],claims:["client_self_registration","owner_invitation"]},{heading:"Step 2 â Verify it is really you",paragraphs:["We confirm the email address the invitation was sent to before an account is created, and you choose your own private password. We never send you a password."],claims:["email_verification"]},{heading:"Step 3 â Your checklist",paragraphs:["Your account lists what we need: your legal and preferred name, contact details, current and prior address and residency information, spouse or dependent details when your filing situation includes them, and the income and supporting records for the tax year.","Each item explains why it is needed. We ask only for what the service you selected reasonably requires."],claims:["intake_checklist","data_minimization"]},{heading:"Step 4 â Sending documents safely",paragraphs:["Upload documents inside your account. That is the approved method when we ask for something."],bullets:[`Never send any of the following by ordinary email, text message, public form or social media: ${Xh.join("; ")}.`],claims:["secure_upload"]},{heading:"Step 5 â Review, questions and next steps",paragraphs:["Our team reviews what you sent, asks for anything missing, and tells you when we have enough to meet with you. Scheduling is arranged with you by our team."],claims:["missing_items_and_corrections"]}],ctas:["client_register","accept_invitation","client_sign_in"],affectedWorkflows:["public_registration","invitations","case_intake"]},{key:"business_client_process",path:"/business-client-process",navLabel:"Business Client Process",title:"Business Client Process",description:"How a business client engages Ross & Associates Tax Office: authorized representatives, ownership details, business records, and separation from personal matters.",audience:"Business clients",indexable:!0,blocks:[{heading:"Business records stay separate from personal records",paragraphs:["A business engagement is its own file. If you are also an individual client of ours, the two are kept separate and are not merged."]},{heading:"Who may act for the business",paragraphs:["We need the legal business name, how the business is organised, ownership details, and who is authorized to give us instructions. We take instructions only from someone with that authority on file."],claims:["data_minimization"]},{heading:"What we ask for",paragraphs:["Your books, statements and the source records behind the figures, plus the agreements and consents for the engagement. Every item explains why it is needed."],claims:["intake_checklist"]},{heading:"One checklist, several people",paragraphs:["More than one authorized person can be recorded for a business, each with the authority you tell us about. Access follows that authority."],claims:["case_by_case_access"]}],ctas:["business_intake","request_invitation","client_sign_in"],affectedWorkflows:["case_intake","identity_directory"]},{key:"secure_handling",path:"/secure-document-handling",navLabel:"Secure Document & Information Handling",title:"Secure Document and Information Handling",description:"How Ross & Associates Tax Office asks for, protects and limits access to the documents and information you provide, in plain language.",audience:"Everyone",indexable:!0,blocks:[{heading:"How to send us things",paragraphs:["When we ask for a document or a sensitive detail, send it inside your account. Information you send through your account travels over an encrypted connection."],bullets:[`Please never send these by ordinary email, text message, public form or social media: ${Xh.join("; ")}.`],claims:["secure_upload","encryption_in_transit"]},{heading:"How little we ask for",paragraphs:["We ask only for what the service or relationship you selected reasonably requires. Some tax, identity, banking, employment or business records are requested because a specific return, verification or payment step requires that exact record â not because we collect it routinely."],claims:["data_minimization"]},{heading:"How it is shown afterwards",paragraphs:["Sensitive values are restricted. Everyday screens show only the last few digits, and a wider view requires an additional verification step, a written reason, and a record of who looked and why."],
63claims:["masking","audit_records"]},{heading:"Bank details for a refund or payment",paragraphs:["If a refund deposit or a payment is authorized for your return, you enter your bank name, account type, routing number and account number yourself â each number twice, so we can confirm it matches â and you certify that you own or are authorized to use the account and that the details are accurate. You may also be asked for a voided check or an official bank document to support them.","A format check tells us the numbers are well formed. It does not prove ownership, and we never treat it as proof.","After you save them, we show only the last four digits. We never ask for these numbers by email or text message, and we never put them in a message, a link or a file name."],claims:["bank_double_entry","masking"]},{heading:"Our safeguards, described honestly",paragraphs:["Access is restricted by role and by case assignment, wider access requires a second verification step, information travels over encrypted connections, access is recorded, and we limit what we collect. These practices are designed to support our internal information-security plan. That is not a claim of legal compliance, certification or approval by any agency, and we do not describe any system as flawless."],claims:["case_by_case_access","totp_mfa","encryption_in_transit","audit_records","data_minimization"]}],ctas:["client_sign_in","report_security_concern"],affectedWorkflows:["case_intake","evidence_vault","bank_workflow","security"]},{key:"portal_access",path:"/client-portal-access",navLabel:"Client Portal and Account Access",title:"Client Portal and Account Access",description:"What your Ross & Associates Tax Office account does, how sign-in and verification work, and what choosing a portal does and does not do.",audience:"Clients",indexable:!0,blocks:[{heading:"What your account is for",paragraphs:["Your checklist, your uploads, our requests, messages, and your current status. You see your own information only."],claims:["intake_checklist","secure_upload"]},{heading:"Signing in",paragraphs:["You create your own private password. Choosing a portal on the entry screen tells us where you are trying to go; it never grants a role or access. After you sign in, our records decide what you may open, and an attempt to reach something else is simply declined and recorded."],claims:["no_role_from_choosing"]},{heading:"Second verification step",paragraphs:["Accounts with wider access must use an authenticator app for a second step. Client accounts may be offered lighter approved options. We never ask for your password or a one-time code by email, text message or phone."],claims:["totp_mfa"]},{heading:"Saving and coming back",paragraphs:["Your progress is saved as you go. You can close the page and return later without starting again."]}],ctas:["client_sign_in","accept_invitation"],affectedWorkflows:["access_gateway","mfa","case_intake"]},{key:"opportunities",path:"/opportunities",navLabel:"Employment and Contractor Opportunities",title:"Employment and Contractor Opportunities",description:"How Ross & Associates Tax Office considers employees and contractors, from invitation and application through classification review and approval.",audience:"Employment and contractor candidates",indexable:!0,blocks:[{heading:"How we consider people",paragraphs:["Employment and contractor relationships begin with an invitation from our office. You cannot register on this website for a staff or contractor role, and no one can give themselves one.","If you would like to be considered, contact us. Being considered is not an offer, and we do not promise employment, an engagement, a timeline or an outcome."],claims:["owner_invitation","no_role_from_choosing"]},{heading:"The stages you will see",paragraphs:["Candidate, then Interview / Review, then classification review, then Conditional if we move ahead, then the records and training your invitation lists, then Pending Approval, and only then Active. Each stage is shown to you honestly, including Declined or Closed."]},{heading:"How your classification is decided",paragraphs:["Whether a relationship would be employment or a contractor engagement is reviewed and recorded by our office. It is never assumed from a job title or from what you select on a form."]}],ctas:["view_opportunities","continue_application","staff_sign_in"],affectedWorkflows:["employment_candidate","worker_onboarding","invitations"]},{key:"staff_onboarding",path:"/staff-onboarding",navLabel:"Employee and Staff Onboarding",title:"Employee and Staff Onboarding",description:"What an invited Ross & Associates Tax Office employee or contractor completes before access is approved, and what happens when a relationship ends.",audience:"Invited employees and contractors",indexable:!0,blocks:[{heading:"Your inv
63itation decides your path",paragraphs:["Your invitation records the company, the division, what you are invited to do, and the records, agreements and training assigned to you. You do not choose your role, and selecting a portal never grants one."],claims:["owner_invitation","no_role_from_choosing"]},{heading:"The steps",paragraphs:["Open your invitation, verify the email address it was sent to, create your own private password, enrol the required second verification step, complete your assigned records and training, and wait for the Founder or Owner to approve activation. Nothing is active before that approval."],claims:["email_verification","totp_mfa"]},{heading:"Access follows duties",paragraphs:["Once active, you receive access to the cases and areas your assigned duties require, and nothing more. Access can be time-limited, reviewed and revoked, and it is recorded."],claims:["case_by_case_access","audit_records"]},{heading:"Changes, suspension and offboarding",paragraphs:["Role changes, suspensions and offboarding are recorded with a written reason. When a relationship ends, access is removed."]}],ctas:["staff_invitation","staff_sign_in"],affectedWorkflows:["worker_onboarding","invitations","mfa","offboarding"]},{key:"invitations_and_mfa",path:"/invitations-and-verification",navLabel:"Invitations, Verification and MFA",title:"Invitations, Account Verification and Extra Verification Steps",description:"How Ross & Associates Tax Office invitations work, how to recognise a legitimate message from us, and what second verification steps we require.",audience:"Everyone",indexable:!0,blocks:[{heading:"What a real invitation from us looks like",paragraphs:["It is addressed to you, it names Ross & Associates Tax Office, it states what you are invited to do, and it contains a private link that works once and expires. We will never send you a password or a one-time code, and we will never ask you to reply with sensitive details."],bullets:["We never ask for your password, a one-time code, or an identity-verification answer by email, text message or phone.","If a message asks for those things, it is not from us. Please report it to us.","If your link has expired, ask us to send a new one. We can also correct the email address before you accept."],claims:["owner_invitation","email_verification"]},{heading:"Verification when you accept",paragraphs:["We confirm the email address the invitation was sent to, you create your own private password, and where a second step is required you enrol an authenticator app. Accounts with wider access must use that second step."],claims:["email_verification","totp_mfa"]},{heading:"If you lose your device or change your phone",paragraphs:["Contact us. Recovering access to an account with wider permissions requires you to verify who you are again, and a change to a verification method is recorded. We never restore access on the strength of an email request alone."],claims:["totp_mfa","audit_records"]},{heading:"Notifications you should expect",paragraphs:["Email and in-account notices about invitations, outstanding items, requests, corrections and status changes. Text-message notifications are not in use for this office. Notices never contain your sensitive values."]}],ctas:["accept_invitation","staff_invitation","report_security_concern"],affectedWorkflows:["invitations","mfa","notifications"]},{key:"privacy_summary",path:"/privacy-summary",navLabel:"Privacy and Data Use Summary",title:"Privacy and Data Use Summary",description:"A plain-language summary of what Ross & Associates Tax Office collects, why, who can see it, and how to ask about, correct or access your information.",audience:"Everyone",indexable:!0,blocks:[{heading:"What we collect and why",paragraphs:["Only what the service or relationship you selected reasonably requires: who you are, how to reach you, the records that support your return or engagement, and the consents for the work. Where a specific step requires a particular detail, we record why that step needed it."],claims:["data_minimization"]},{heading:"Who sees it",paragraphs:["Our own personnel, limited to the cases assigned to them and the parts their duties require. We do not sell your information."],
63claims:["case_by_case_access"]},{heading:"How long we keep it",paragraphs:["Records are kept for as long as the engagement and applicable requirements call for, under a retention schedule our office is finalising. When that schedule is approved we will state the periods here rather than estimate them now."],claims:["retention_periods"]},{heading:"Asking about your information",paragraphs:["You can ask us what we hold, ask us to correct something, or ask how it is used. Use the contact page, or the messages area of your account if you have one. This summary explains our practices in plain language; our full privacy and terms pages govern."]}],ctas:["contact_us","client_sign_in"],affectedWorkflows:["privacy","retention","case_intake"]},{key:"accessibility",path:"/accessibility-and-assistance",navLabel:"Accessibility and Assistance",title:"Accessibility and Assistance",description:"How to get help using Ross & Associates Tax Office pages and your account, and how to ask for an accommodation.",audience:"Everyone",indexable:!0,blocks:[{heading:"How our pages are built",paragraphs:["Plain language, descriptive headings, keyboard navigation with a visible focus outline, readable contrast, layouts that work on a phone, and error messages that say what to do next. Every upload field explains what is accepted, and your progress is saved so you can return later."]},{heading:"Working with us remotely",paragraphs:["Our services can be handled remotely through your account. If you would rather speak with someone, or need something read to you, explained differently, printed, or completed with help, tell us."]},{heading:"Asking for an accommodation",paragraphs:["Contact us and describe what would help. We will tell you what we can do. We do not state hours or response times here until they are approved for publication."],claims:["support_hours"]},{heading:"A printable summary",paragraphs:["Every process page on this site prints cleanly if you would like a paper copy of the steps."]}],ctas:["contact_us"],affectedWorkflows:["accessibility","support"]},{key:"faq",path:"/process-faq",navLabel:"Frequently Asked Questions",title:"Frequently Asked Questions About Our Process",description:"Common questions about registering, invitations, verification, documents, bank details, status words and access at Ross & Associates Tax Office.",audience:"Everyone",indexable:!0,blocks:[{heading:"Can I sign myself up as staff, a preparer or an administrator?",paragraphs:["No. Only a prospective taxpayer or business client can register here. Every other relationship begins with an invitation from our office."],claims:["client_self_registration","owner_invitation"]},{heading:"Does registering mean you have accepted me as a client?",paragraphs:["No. It starts a pending review. We will tell you where things stand, including if we are not moving forward."],claims:["client_self_registration"]},{heading:"I picked a portal on the sign-in page. Did that give me access?",paragraphs:["No. That choice is only navigation. Our records decide what you may open after you sign in."],claims:["no_role_from_choosing"]},{heading:"Why are you asking for this particular document?",paragraphs:["Because a specific step in your return, verification or payment needs that exact record. Each item on your checklist says why."],claims:["intake_checklist","data_minimization"]},{heading:"Can I email or text you my tax number, bank details or ID?",paragraphs:[`Please do not. Use your account when we ask for something. Never send these by ordinary email, text message, public form or social media: ${Xh.join("; ")}.`],claims:["secure_upload"]},{heading:"Who at your office can see my file?",paragraphs:["Only personnel assigned to your case, limited to the parts their duties require, with a record of who opened what and why."],claims:["case_by_case_access","audit_records"]},{heading:"Why do I only see the last four digits of my bank account?",paragraphs:["Because that is all anyone needs for everyday work. A wider view requires an additional verification step, a written reason and a record."],claims:["masking"]},{heading:"Will you guarantee my refund, my filing or a deadline?",paragraphs:["No. We do not promise a filing, a refund, an approval, an outcome or a response time. We tell you the status honestly at each step."]},{heading:"My invitation link expired. What now?",paragraphs:["Ask us for a new one. Links are single-use and expire on purpose. We can also correct the email address before you accept."],claims:["owner_invitation"]},{heading:"Someone asked me for a code or password claiming to be you.",paragraphs:["We never do that. Do not reply, and please report it to us."]}],ctas:["client_register","accept_invitation","contact_us","report_security_concern"],affectedWorkflows:["public_registration","invitations","case_intake","security"]},{key:"contact_and_security",path:"/support-and-security-concerns",navLabel:"Contact, Support and Security Concerns",title:"Contact, Support and Reporting a Security Concern",description:"How to reach Ross & Associates Tax Office for help, and how to report a suspected security or privacy concern.",audience:"Everyone",indexable:!0,blocks:[{heading:"Getting help",paragraphs:["Use the contact page, or the messages area of your account if you have one. Please do not include sensitive values in a first message â we will tell you where to enter them securely."],claims:["secure_upload"]},{heading:"Reporting a security or privacy concern",paragraphs:["Tell us straight away if you receive a suspicious message that appears to come from us, if you believe someone else has reached your account, if you have lost the device holding your verification app, or if you think information was sent to the wrong place."],bullets:["Use the contact page and say it is a security concern.","Do not include passwords, one-time codes or full account numbers in your report.","Keep the suspicious message so we can look at it."],claims:["audit_records"]},{heading:"What we will do",paragraphs:["We record the report, look into it, and tell you what we find and what we are doing. We do not publish a response-time commitment, and we will not claim an outcome before we know it."],claims:["response_times"]}],ctas:["report_security_concern","contact_us","client_sign_in","staff_sign_in"],affectedWorkflows:["support","security","incident_response"]}];function qz(t){const e=[],n=[];for(const s of t.blocks){const o=(s.claims??[]).map(c=>VI(c)).filter(c=>!yR(c.state));if(o.length){n.push({heading:s.heading,reason:o.map(c=>c.holdReason??qI[c.state]).join(" ")});continue}e.push(s)}return{blocks:e,held:n}}function Hz(t){const e=t.ctas.map(GI).filter(n=>yR(n.state));return{client:e.filter(n=>n.lane==="client"),staff:e.filter(n=>n.lane==="staff"),general:e.filter(n=>n.lane==="general")}}const Vz=["public website pages","frequently asked questions","invitation copy","intake instructions","portal help text","privacy summary","retention notice","accessibility content","staff scripts"],Fz="This page is prepared but not yet published. It becomes visible once the Founder approves the exact wording.",Bo=Nn.find(t=>t.key==="accessibility"),jn=Pt({method:"GET"}).handler(Ft("a0dbf92f03f27249ada514ac9719e06227fe7c68c51d9d0eb499ef636ba71eb8")),Gz=Pt({method:"GET"}).middleware([dn]).handler(Ft("a50da739686cb1654fd77135e9b5131115a73d9fdb7ce53324b9b7637530f9d2")),Kz=Pt({method:"POST"}).middleware([dn]).handler(Ft("90253100f37a6383950548f466a3918cce49445b7d3d656b0d442e3b62179879")),Yz=Pt({method:"POST"}).middleware([dn]).handler(Ft("4be35cd58e986a874a148711a5f2fafdd45249a55f0d5de2d5a37301a86831de")),Wz=Pt({method:"POST"}).middleware([dn]).handler(Ft("49554564a3796bcac2feb6d25990bb1e22c18407a74d3862c2c3fa1caaaf00aa")),Zz=Pt({method:"POST"}).middleware([dn]).handler(Ft("5bf65bedeb4c288d50d38c10e7808fe83c43e54708be1fecd30cead39d66540e")),Jz=Pt({method:"POST"}).middleware([dn]).handler(Ft("a494c8df0f0f0269738bd6fb2730bfb5fb1143a8e9945318cbffcfc8336c5fec"));Pt({method:"GET"}).middleware([dn]).handler(Ft("0a75831fac709e56b0bb3c11069f7e3263332cdc2974f5bb85f396a944de03c6"));const KI=()=>I(()=>import("./accessibility-and-assistance-Df9ZZmgx.js"),__vite__mapDeps([55,56,
631,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),YI=()=>I(()=>import("./accessibility-and-assistance-CjDnHv44.js"),__vite__mapDeps([59,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),WI=()=>I(()=>import("./accessibility-and-assistance-BpqwHCGU.js"),__vite__mapDeps([60,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),ZI=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.accessibility}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Bo.indexable;return{meta:[{title:`${Bo.title} | Ross & Associates Tax Office`},{name:"description",content:Bo.description},{property:"og:title",content:`${Bo.title} | Ross & Associates Tax Office`},{property:"og:description",content:Bo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/accessibility-and-assistance"}]:[]}},errorComponent:D(WI,"errorComponent"),notFoundComponent:D(YI,"notFoundComponent"),component:D(KI,"component")}),JI=()=>I(()=>import("./appointment-BgFdjRVN.js"),__vite__mapDeps([61,38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,62,63,64,65,66,67,68,69,70,71,47,35,72,73,74,75])),QI=U()({head:()=>({meta:[{title:"Request an Appointment or Quote â Ross & Associates Tax Office"},{name:"description",content:"Request an appointment or individualized quote from Ross & Associates Tax Office. Requested times are subject to staff confirmation."},{property:"og:title",content:"Request an Appointment or Quote | Ross & Associates Tax Office"},{property:"og:description",content:"Request an in-office, phone, or Zoom appointment and an individualized quote after scope review."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/appointment"}]}),component:D(JI,"component")}),zo=Nn.find(t=>t.key==="business_client_process"),XI=()=>I(()=>import("./business-client-process-B4kjpMjY.js"),__vite__mapDeps([76,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),eL=()=>I(()=>import("./business-client-process-Dz9d5XMm.js"),__vite__mapDeps([77,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),tL=()=>I(()=>import("./business-client-process-3EylwvfX.js"),__vite__mapDeps([78,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),nL=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.business_client_process}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&zo.indexable;return{meta:[{title:`${zo.title} | Ross & Associates Tax Office`},{name:"description",content:zo.description},{property:"og:title",content:`${zo.title} | Ross & Associates Tax Office`},{property:"og:description",content:zo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/business-client-process"}]:[]}},errorComponent:D(tL,"errorComponent"),notFoundComponent:D(eL,"notFoundComponent"),component:D(XI,"component")}),rL=()=>I(()=>import("./business-promotions-ByKde8w1.js"),__vite__mapDeps([79,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,29,34,32,46,70])),aL=U()({head:()=>({meta:[{title:"Business-to-Business Promotions â Ross & Associates Tax Office"},{name:"description",content:"Explore employer tax-service programs whose scope and individualized quote are reviewed before an engagement."},{property:"og:title",content:"Business-to-Business Promotions â Ross & Associates"},{property:"og:description",content:"Ask about a tax-service program tailored to your organization and employees."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/business-promotions"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/business-promotions"}]}),component:D(rL,"component")}),qo=Nn.find(t=>t.key==="portal_access"),sL=()=>I(()=>import("./client-portal-access-FTpnyZUW.js"),__vite__mapDeps([80,56,
631,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),iL=()=>I(()=>import("./client-portal-access-CncGoydn.js"),__vite__mapDeps([81,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),oL=()=>I(()=>import("./client-portal-access-CGcOxdGE.js"),__vite__mapDeps([82,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),cL=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.portal_access}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&qo.indexable;return{meta:[{title:`${qo.title} | Ross & Associates Tax Office`},{name:"description",content:qo.description},{property:"og:title",content:`${qo.title} | Ross & Associates Tax Office`},{property:"og:description",content:qo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/client-portal-access"}]:[]}},errorComponent:D(oL,"errorComponent"),notFoundComponent:D(iL,"notFoundComponent"),component:D(sL,"component")}),lL=()=>I(()=>import("./contact-D3sR6eG4.js"),__vite__mapDeps([83,38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,62,63,64,65,66,67,68,69,70,71,47,84,35,72,75])),uL=U()({head:()=>({meta:[{title:"Contact â Ross & Associates Tax Office"},{name:"description",content:"Call, email, or send a general inquiry to Ross & Associates Tax Office. Main office: 725.324.7787."},{property:"og:title",content:"Contact Ross & Associates"},{property:"og:description",content:"Contact Ross & Associates Tax Office for general tax-service questions and client assistance."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/contact"}]}),component:D(lL,"component")}),dL=()=>I(()=>import("./disclaimers-BxOXs7rB.js"),__vite__mapDeps([85,86,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])),fL=U()({head:()=>({meta:[{title:"Disclaimers â Ross & Associates Tax Office"},{name:"description",content:"Important disclaimers regarding tax advice, refund estimates, third-party banks, and educational content."},{property:"og:title",content:"Disclaimers â Ross & Associates"},{property:"og:description",content:"Tax advice, refund, IRS processing, and educational content disclaimers."}],links:[{rel:"canonical",href:"/disclaimers"}]}),component:D(dL,"component")}),hL=()=>I(()=>import("./downloadable-forms-M-J53YNC.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,62,88,73,74,89,90])),pL=U()({head:()=>({meta:[{title:"Forms Center â Ross & Associates Tax Office"},{name:"description",content:"Secure document center: tax checklists, W-2/W-9/1099 packets, intake forms, IRS consents, onboarding documents and more."},{property:"og:title",content:"Downloadable Forms â Ross & Associates"},{property:"og:description",content:"All the forms and checklists you need for tax season â categorized and easy to find."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/downloadable-forms"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/downloadable-forms"}]}),component:D(hL,"component")}),Ho=Nn.find(t=>t.key==="how_we_work"),mL=()=>I(()=>import("./how-we-work-B2HZs6iE.js"),__vite__mapDeps([91,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),gL=()=>I(()=>import("./how-we-work-j01FAhoY.js"),__vite__mapDeps([92,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),yL=()=>I(()=>import("./how-we-work-bdGg4b9u.js"),__vite__mapDeps([93,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),vL=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.how_we_work}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Ho.indexable;return{meta:[{title:`${Ho.title} | Ross & Associates Tax Office`},{name:"description",content:Ho.description},{property:"og:title",content:`${Ho.title} | Ross & Associates Tax Office`},{property:"og:description",content:Ho.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/how-we-work"}]:[]}},errorComponent:D(yL,"errorComponent"),notFoundComponent:D(gL,"notFoundComponent"),component:D(mL,"component")}),_L=()=>I(()=>import("./intake-CETh63EG.js"),__vite__mapDeps([94,38,12,13,14,15,62,64,63,95,2,3,4,5,6,7,8,9,10,11,16,17,18,19,20,21,22,23,24,96,35,74,89,70,53,29])),bL=U()({head:()=>({meta:[{title:"Start Filing â Ross & Associates Tax Office"},{name:"description",content:"Choose how you want to complete your taxes through Ross & Associates Tax Office, including phone, Zoom, in-office, or remote service."},{property:"og:title",content:"Start Filing â Ross & Associates Tax Office"},{property:"og:description",content:"Choose a secure intake path for in-office, phone, Zoom, or remote tax service."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/intake"}]}),component:D(_L,"component")}),Vo=Nn.find(t=>t.key==="invitations_and_mfa"),wL=()=>I(()=>import("./invitations-and-verification-BO7nb-Io.js"),__vite__mapDeps([97,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),SL=()=>I(()=>import("./invitations-and-verification-BxjrQxPJ.js"),__vite__mapDeps([98,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),RL=()=>I(()=>import("./invitations-and-verification-ChJ9xsFJ.js"),__vite__mapDeps([99,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),EL=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.invitations_and_mfa}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Vo.indexable;return{meta:[{title:`${Vo.title} | Ross & Associates Tax Office`},{name:"description",content:Vo.description},{property:"og:title",content:`${Vo.title} | Ross & Associates Tax Office`},{property:"og:description",content:Vo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/invitations-and-verification"}]:[]}},errorComponent:D(RL,"errorComponent"),notFoundComponent:D(SL,"notFoundComponent"),component:D(wL,"component")}),TL=()=>I(()=>
63import("./knowledge-CGx5yYwm.js"),__vite__mapDeps([100,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,34,29,74,43])),AL=U()({head:()=>({meta:[{title:"Resources & Knowledge Hub â Ross & Associates Tax Office"},{name:"description",content:"Tax calculators, filing-status guides, credits, BOI/compliance info, video library, IRS resource links, and the Ross & Associates Tax Academy."},{property:"og:title",content:"Resources Hub â Ross & Associates"},{property:"og:description",content:"Educational resources for individuals and businesses navigating taxes."}]}),component:D(TL,"component")}),xL=()=>I(()=>import("./login-B3Nj9DWn.js"),__vite__mapDeps([101,12,13,14,15,62,64,3,4,102,103,104,53,33,105,31,21,106,18,29,7])),OL=U()({validateSearch:t=>t.portal==="client"?{portal:"client"}:{},head:()=>({meta:[{title:"Sign in â Ross & Associates Client Portal"},{name:"description",content:"Sign in to your secure Ross & Associates client portal to manage documents, appointments, and tax filings."},{property:"og:title",content:"Client Sign In â Ross & Associates Tax Office"},{property:"og:description",content:"Private client access for Ross & Associates Tax Office documents, appointments, and filing updates."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:D(xL,"component")}),Fo=Nn.find(t=>t.key==="new_client_process"),kL=()=>I(()=>import("./new-client-process-Dg8xjiAq.js"),__vite__mapDeps([107,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),CL=()=>I(()=>import("./new-client-process-DwuKS60x.js"),__vite__mapDeps([108,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),PL=()=>I(()=>import("./new-client-process-BqBuAJZR.js"),__vite__mapDeps([109,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),$L=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.new_client_process}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Fo.indexable;return{meta:[{title:`${Fo.title} | Ross & Associates Tax Office`},{name:"description",content:Fo.description},{property:"og:title",content:`${Fo.title} | Ross & Associates Tax Office`},{property:"og:description",content:Fo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/new-client-process"}]:[]}},errorComponent:D(PL,"errorComponent"),notFoundComponent:D(CL,"notFoundComponent"),component:D(kL,"component")}),DL=()=>I(()=>import("./newsletter-DwsBGdEm.js"),__vite__mapDeps([110,38,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,65,66,67,68,69,70,62,64,71,111])),IL=U()({head:()=>({meta:[{title:"Tax Office Newsletter â Ross & Associates Tax Office"},{name:"description",content:"Join the Ross & Associates Tax Office newsletter interest list and view approved editions when available."},{property:"og:title",content:"Tax Office Newsletter â Ross & Associates Tax Office"},{property:"og:description",content:"Join the Tax Office newsletter interest list and view approved editions when available."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/newsletter"}]}),component:D(DL,"component")}),LL=()=>I(()=>import("./newsletter-unsubscribe-BSlisYY1.js"),__vite__mapDeps([112,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])),NL=U()({validateSearch:t=>({token:typeof t.token=="string"?t.token:""}),head:()=>({meta:[{title:"Newsletter Preferences â Ross & Associates Tax Office"},{name:"description",content:"Manage Ross & Associates Tax Office newsletter preferences."},{property:"og:title",content:"Newsletter Preferences â Ross & Associates Tax Office"},{property:"og:description",content:"Manage Ross & Associates Tax Office newsletter preferences."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}
63]}),component:D(LL,"component")}),Go=Nn.find(t=>t.key==="opportunities"),jL=()=>I(()=>import("./opportunities-DCKE-ue8.js"),__vite__mapDeps([113,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),ML=()=>I(()=>import("./opportunities-CIyrNjVk.js"),__vite__mapDeps([114,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),UL=()=>I(()=>import("./opportunities-CiYP02sR.js"),__vite__mapDeps([115,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),BL=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.opportunities}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Go.indexable;return{meta:[{title:`${Go.title} | Ross & Associates Tax Office`},{name:"description",content:Go.description},{property:"og:title",content:`${Go.title} | Ross & Associates Tax Office`},{property:"og:description",content:Go.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/opportunities"}]:[]}},errorComponent:D(UL,"errorComponent"),notFoundComponent:D(ML,"notFoundComponent"),component:D(jL,"component")}),zL=()=>I(()=>import("./partners-qYi_v-Rm.js"),__vite__mapDeps([116,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,42,29])),qL=U()({head:()=>({meta:[{title:"Our Partners â Ross & Associates Tax Office"},{name:"description",content:"Trusted technology, compliance, and industry partners that power the Ross & Associates Tax Office client experience."},{property:"og:title",content:"Our Partners â Ross & Associates"},{property:"og:description",content:"Industry-leading partners powering our tax preparation, security, and compliance infrastructure."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/partners"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/partners"}]}),component:D(zL,"component")}),HL=()=>I(()=>import("./pricing-CvmePc16.js"),__vite__mapDeps([117,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,47,29,31,118,32])),VL=U()({component:D(HL,"component"),head:()=>({meta:[{title:"How Individualized Quotes Work â Ross & Associates Tax Office"},{name:"description",content:"Learn how Ross & Associates Tax Office reviews your tax, bookkeeping, or compliance needs before providing a clear, individualized quote."},{property:"og:title",content:"How Individualized Quotes Work â Ross & Associates Tax Office"},{property:"og:description",content:"Your needs and scope are reviewed before a clear, individualized quote is provided."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/pricing"}]})}),FL=()=>I(()=>import("./privacy-B9NGPfWV.js"),__vite__mapDeps([119,86,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])),GL=U()({head:()=>({meta:[{title:"Privacy Policy â Ross & Associates Tax Office"},{name:"description",content:"How Ross & Associates Tax Office collects, protects, and uses client information across the website, portal, and TaxesToGo mobile app."},{property:"og:title",content:"Privacy Policy â Ross & Associates"},{property:"og:description",content:"Client confidentiality, encryption, secure document storage, and your communication preferences."}],links:[{rel:"canonical",href:"/privacy"}]}),component:D(FL,"component")}),Ko=Nn.find(t=>t.key==="privacy_summary"),KL=()=>I(()=>import("./privacy-summary-BRk6fkoW.js"),__vite__mapDeps([120,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),YL=()=>I(()=>import("./privacy-summary-DuqZPw8c.js"),__vite__mapDeps([121,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),WL=()=>I(()=>import("./privacy-summary-f-il6Rpf.js"),__vite__mapDeps([122,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),ZL=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.privacy_summary}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Ko.indexable;return{meta:[{title:`${Ko.title} | Ross & Associates Tax Office`},{name:"description",content:Ko.description},{property:"og:title",content:`${Ko.title} | Ross & Associates Tax Office`},{property:"og:description",content:Ko.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/privacy-summary"}]:[]}},errorComponent:D(WL,"errorComponent"),notFoundComponent:D(YL,"notFoundComponent"),component:D(KL,"component")}),Yo=Nn.find(t=>t.key==="faq"),JL=()=>I(()=>import("./process-faq-BcvAdzmA.js"),__vite__mapDeps([123,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),QL=()=>I(()=>import("./process-faq-oz_xWAdx.js"),__vite__mapDeps([124,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),XL=()=>I(()=>import("./process-faq-CTeX7aKw.js"),__vite__mapDeps([125,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),eN=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.faq}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Yo.indexable;return{meta:[{title:`${Yo.title} | Ross & Associates Tax Office`},{name:"description",content:Yo.description},{property:"og:title",content:`${Yo.title} | Ross & Associates Tax Office`},{property:"og:description",content:Yo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/process-faq"}]:[]}},errorComponent:D(XL,"errorComponent"),notFoundComponent:D(QL,"notFoundComponent"),component:D(JL,"component")}),tN=()=>I(()=>import("./refund-policy-COiP3T8D.js"),__vite__mapDeps([126,86,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]
63)),nN=U()({head:()=>({meta:[{title:"Service Fee Policy â Ross & Associates Tax Office"},{name:"description",content:"Professional tax preparation fee policy: when fees are earned, refund advance disclosures, and software/processing fees."},{property:"og:title",content:"Fee & Refund Policy â Ross & Associates"},{property:"og:description",content:"Transparent, professional policy on preparation, filing, software, and third-party bank product fees."}],links:[{rel:"canonical",href:"/refund-policy"}]}),component:D(tN,"component")}),rN=()=>I(()=>import("./reset-password-D04lpUbL.js"),__vite__mapDeps([127,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,102,62,64,103,104,29])),aN=U()({head:()=>({meta:[{title:"Reset password â Ross & Associates"},{name:"description",content:"Set a new password for your Ross & Associates account."},{name:"robots",content:"noindex,nofollow"}]}),component:D(rN,"component")}),Wo=Nn.find(t=>t.key==="secure_handling"),sN=()=>I(()=>import("./secure-document-handling-BBvJ75j_.js"),__vite__mapDeps([128,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),iN=()=>I(()=>import("./secure-document-handling-r1zHUK0F.js"),__vite__mapDeps([129,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),oN=()=>I(()=>import("./secure-document-handling-FjbT8ksP.js"),__vite__mapDeps([130,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),cN=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.secure_handling}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Wo.indexable;return{meta:[{title:`${Wo.title} | Ross & Associates Tax Office`},{name:"description",content:Wo.description},{property:"og:title",content:`${Wo.title} | Ross & Associates Tax Office`},{property:"og:description",content:Wo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/secure-document-handling"}]:[]}},errorComponent:D(oN,"errorComponent"),notFoundComponent:D(iN,"notFoundComponent"),component:D(sN,"component")}),lN=()=>I(()=>import("./security-Ctgymco3.js"),__vite__mapDeps([131,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,132,133,103,33,35,29])),uN=U()({head:()=>({meta:[{title:"Security & Identity Protection â Ross & Associates Tax Office"},{name:"description",content:"How Ross & Associates protects your tax information. Bank-grade encryption, multi-factor authentication, IRS-compliant handling, and identity-theft monitoring."},{property:"og:title",content:"Security & Identity Protection â Ross & Associates"},{property:"og:description",content:"Bank-grade security on every return â encryption, MFA, IRS-compliant handling, identity alerts."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/security"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/security"}]}),component:D(lN,"component")}),dN=()=>I(()=>import("./services-Bg37U0vF.js"),[]),fN=U()({component:D(dN,"component")}),hN=()=>I(()=>import("./sms-terms-L_R75zgQ.js"),__vite__mapDeps([134,86,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])),pN=U()({head:()=>({meta:[{title:"SMS Terms & Messaging Consent â Ross & Associates Tax Office"},{name:"description",content:"Text message program terms, opt-in/opt-out, and carrier disclosures for appointment reminders and tax status updates."},{property:"og:title",content:"SMS Terms â Ross & Associates"},{property:"og:description",content:"Reply STOP to opt out. Reply HELP for assistance. Msg & data rates may apply."}],links:[{rel:"canonical",href:"/sms-terms"}]}),component:D(hN,"component")}),mN=()=>I(()=>import("./staff-access-17xCOQqT.js"),__vite__mapDeps([135,136,12,13,14,15,62,64,5,6,3,4,102,103,104,53,132,21,137,106,29,7])),gN=U()({validateSearch:t=>{const e={};return mR(t.portal)&&t.portal!=="client"&&(e.portal=t.portal),(t.flow==="invite"||t.flow==="recovery")&&(e.flow=t.flow),e},head:()=>({meta:[{title:"Staff Access â Ross & Associates Tax Office"},{name:"description",content:"Private sign-in and invitation acceptance for authorized Ross & Associates Tax Office team members."},{property:"og:title",content:"Staff Access â Ross & Associates Tax Office"},{property:"og:description",content:"Private access for authorized Ross & Associates Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(mN,"component")}),Zo=Nn.find(t=>t.key==="staff_onboarding"),yN=()=>I(()=>import("./staff-onboarding-C-DED3lr.js"),__vite__mapDeps([138,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),vN=()=>I(()=>import("./staff-onboarding-WMbIes8k.js"),__vite__mapDeps([139,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),_N=()=>I(()=>
63import("./staff-onboarding-BCmAlCjX.js"),__vite__mapDeps([140,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),bN=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.staff_onboarding}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Zo.indexable;return{meta:[{title:`${Zo.title} | Ross & Associates Tax Office`},{name:"description",content:Zo.description},{property:"og:title",content:`${Zo.title} | Ross & Associates Tax Office`},{property:"og:description",content:Zo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/staff-onboarding"}]:[]}},errorComponent:D(_N,"errorComponent"),notFoundComponent:D(vN,"notFoundComponent"),component:D(yN,"component")}),Jo=Nn.find(t=>t.key==="contact_and_security"),wN=()=>I(()=>import("./support-and-security-concerns-D9G2839Z.js"),__vite__mapDeps([141,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),SN=()=>I(()=>import("./support-and-security-concerns-j0lpyAVT.js"),__vite__mapDeps([142,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),RN=()=>I(()=>import("./support-and-security-concerns-B_iOJOHA.js"),__vite__mapDeps([143,56,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,57,58,29])),EN=U()({loader:async()=>{try{const{approved:t}=await jn();return{approved:!!t.contact_and_security}}catch{return{approved:!1}}},head:({loaderData:t})=>{const e=!!t?.approved&&Jo.indexable;return{meta:[{title:`${Jo.title} | Ross & Associates Tax Office`},{name:"description",content:Jo.description},{property:"og:title",content:`${Jo.title} | Ross & Associates Tax Office`},{property:"og:description",content:Jo.description},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"},...e?[]:[{name:"robots",content:"noindex, nofollow"}]],links:e?[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/support-and-security-concerns"}]:[]}},errorComponent:D(RN,"errorComponent"),notFoundComponent:D(SN,"notFoundComponent"),component:D(wN,"component")}),TN=()=>I(()=>import("./tax-estimator-B-yH0u2w.js"),__vite__mapDeps([144,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,62,64,34,145,146,29])),AN=U()({head:()=>({meta:[{title:"Tax Refund & Withholding Estimator â Ross & Associates"},{name:"description",content:"Project your 2025 federal refund or balance due in 60 seconds. Smart W-4 withholding analysis with personalized recommendations from Ross & Associates Tax Office."},{property:"og:title",content:"Tax Refund & Withholding Estimator â Ross & Associates"},{property:"og:description",content:"Free smart estimator. See your projected refund, optimize your W-4, and book a strategy call."}]}),component:D(TN,"component")}),xN=()=>I(()=>import("./tax-knowledge-CTgwdS1g.js"),__vite__mapDeps([147,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])),ON=U()({head:()=>({meta:[{title:"Tax Knowledge Center â Ross & Associates"},{name:"description",content:"IRS help, filing guides, refund tracking, deadlines, and taxpayer education from Ross & Associates Tax Office."},{property:"og:title",content:"Tax Knowledge Center â Ross & Associates"},{property:"og:description",content:"Luxury taxpayer education ecosystem: IRS routing, filing guides, deadlines, resolution help."},{property:"og:url",content:"/tax-knowledge"}],links:[{rel:"canonical",href:"/tax-knowledge"}]}),component:D(xN,"component")}),Qz=[{to:"/tax-knowledge/irs-help",label:"IRS Help Hub",icon:kD,blurb:"Notices, transcripts, IRS contacts, account access."},{to:"/tax-knowledge/filing-guides",label:"Filing Guides",icon:LD,blurb:"Step-by-step guides by filing status and situation."},{to:"/tax-knowledge/refund-tracking",label:"Refund Tracking",icon:UD,blurb:"Where's My Refund, processing times, common delays."},{to:"/tax-knowledge/payments",label:"IRS Payment Center",icon:DD,blurb:"Pay balances, set up payment plans, EFTPS, Direct Pay."},{to:"/tax-knowledge/deadlines",label:"Tax Deadline Center",icon:xD,blurb:"2025 deadlines, extensions, estimated payment dates."},{to:"/tax-knowledge/w4-calculator",label:"W-4 & Withholding",icon:M0,blurb:"IRS Tax Withholding Estimator and W-4 guidance."},{to:"/tax-knowledge/estimated-taxes",label:"Estimated Taxes",icon:M0,blurb:"Quarterly payment schedule, safe-harbor rules."},{to:"/tax-knowledge/filing-status",label:"Filing Status Guide",icon:jD,blurb:"Single, MFJ, MFS, HoH, and qualifying surviving spouse."},{to:"/tax-knowledge/small-business",label:"Small Business Hub",icon:ED,blurb:"Entity choice, deductions, S-corp & partnership basics."}
63,{to:"/tax-knowledge/self-employment",label:"Self-Employment Hub",icon:SD,blurb:"Schedule C, SE tax, 1099 income, home office, mileage."},{to:"/tax-knowledge/resolution",label:"Tax Resolution",icon:zD,blurb:"Notices, audits, liens, installment agreements, OIC."}],kN=()=>I(()=>import("./taxes-to-go-BQVP1_C_.js"),__vite__mapDeps([148,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,66,67,149,69,150,29,35,151,152,44,89,137,75,72])),CN=U()({head:()=>({meta:[{title:"TaxesToGo â Secure Mobile Tax Filing | Ross & Associates"},{name:"description",content:"TaxesToGo is the external mobile client intake app our office uses with TaxSlayer ProWeb. Upload documents, e-sign, message your preparer, and track your refund year-round."},{property:"og:title",content:"TaxesToGo â Secure Mobile Tax Filing | Ross & Associates"},{property:"og:description",content:"Learn what TaxesToGo is, how it protects your information, and how our tax professionals guide you from upload to refund."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:D(kN,"component")}),PN=()=>I(()=>import("./taxpayer-resources-DUnF2m4o.js"),__vite__mapDeps([153,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,111,105,30,154,146,84,49,32,29,89])),$N=U()({head:()=>({meta:[{title:"Taxpayer Resources â Ross & Associates Tax Office"},{name:"description",content:"Direct official IRS links for publications, forms, tax rates, due dates, taxpayer rights, tax terms, withholding, refunds, and Tax Office appointment guidance."},{property:"og:title",content:"Taxpayer Resources â Ross & Associates Tax Office"},{property:"og:description",content:"Direct links to trusted IRS.gov tools, plus secure ways to contact Ross & Associates Tax Office."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/taxpayer-resources"}]}),component:D(PN,"component")}),DN=()=>I(()=>import("./terms-B-CYHDEK.js"),__vite__mapDeps([155,86,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])),IN=U()({head:()=>({meta:[{title:"Terms & Conditions â Ross & Associates Tax Office"},{name:"description",content:"Terms governing tax preparation services, client portal use, and remote filing with Ross & Associates Tax Office."},{property:"og:title",content:"Terms & Conditions â Ross & Associates"},{property:"og:description",content:"Service scope, client responsibilities, e-signature, payment, and limitation of liability."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"/terms"}]}),component:D(DN,"component")}),LN=()=>I(()=>import("./unsubscribe-mWbKScUa.js"),__vite__mapDeps([156,3,4,12,13,14,15,17,19,18])),NN=U()({validateSearch:t=>({token:t.token||""}),head:()=>({meta:[{title:"Unsubscribe â Ross & Associates Tax Office"},{name:"description",content:"Manage Ross & Associates Tax Office workflow notification preferences."},{property:"og:title",content:"Unsubscribe â Ross & Associates Tax Office"},{property:"og:description",content:"Manage Ross & Associates Tax Office workflow notification preferences."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(LN,"component")}),jN=()=>I(()=>import("./admin-D05Qc6SO.js"),__vite__mapDeps([157,158,12,13,14,15,3,4,32,151,25,90,159,160,6,161,34,39,162,40,163,145,164,111,104,70,16,37,38,17,22,7,11,18,19,20,21,106,165,166,29,167,89,118,10,154,5,9,168,169,8])),MN=["/admin/security","/admin/founder-security"],UN=U()({head:()=>({meta:[{title:"Tax Office Administration â Ross & Associates Tax Office"}]}),beforeLoad:async({location:t})=>{const{data:e}=await In(_e.auth.getUser());if(!e.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:n}=await In(_e.from("user_roles").select("role").eq("user_id",e.user.id)),s=(n??[]).map(o=>o.role);if(!s.includes("admin")&&!s.includes("founder")&&!s.includes("office_manager"))throw be({to:"/access",search:{portal:"administrator",verify:"1"}});if(!MN.some(o=>t.pathname.startsWith(o))){const{data:o}=await _e.auth.mfa.getAuthenticatorAssuranceLevel();if(o?.currentLevel!=="aal2")throw be({to:"/admin/security"})}},component:D(jN,"component")}),BN=()=>I(()=>import("./founder-vault-DtqBFgK5.js"),[]),zN=U()({beforeLoad:()=>{throw be({to:"/admin/vault"})},component:D(BN,"component")}),qN=()=>I(()=>import("./portal-DJzzTgSW.js"),__vite__mapDeps([170,158,12,13,14,15,3,4,32,151,25,90,159,160,6,161,34,39,162,40,163,145,164,111,104,70,16,37,38,17,22,7,11,18,19,20,21,106,165,166,29,167,89,118,10,154,5,9,168,169,8])),HN=new Set(["client","founder","admin","office_manager"]),VN=U()({head:()=>({meta:[{title:"Taxpayer Portal â Ross & Associates Tax Office"},{name:"description",content:"Private Tax Office portal for authorized taxpayers and approved oversight."},{property:"og:title",content:"Taxpayer Portal â Ross & Associates Tax Office"},{property:"og:description",content:"Private Tax Office portal for authorized taxpayers."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),beforeLoad:async()=>{const{data:t}=await In(_e.auth.getUser());if(!t.user)throw be({to:"/login",search:{portal:"client"}});const n=((await In(_e.from("user_roles").select("role").eq("user_id",t.user.id))).data??[]).map(s=>s.role);if(!n.some(s=>HN.has(s)))throw n.includes("customer_service")?be({to:"/service"}):n.some(s=>["staff","preparer","verified_preparer","workforce","w2_employee","contractor_1099","office_partner","trainee"].includes(s))?be({to:"/workforce"}):be({to:"/access",search:{portal:"client",verify:"1"}})},component:D(qN,"component")}),FN=()=>I(()=>import("./service-CdPTlDt8.js"),__vite__mapDeps([171,158,12,13,14,15,3,4,32,151,25,90,159,160,6,161,34,39,162,40,163,145,164,111,104,70,16,37,38,17,22,7,11,18,19,20,21,106,165,166,29,167,89,118,10,154,5,9,168,169,8])),GN=new Set(["customer_service","founder","admin","office_manager"]),KN=U()({head:()=>({meta:[{title:"Customer Service Portal â Ross & Associates Tax Office"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"customer_service"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id);if(!(e??[]).map(s=>s.role).some(s=>GN.has(s)))throw be({to:"/access",search:{portal:"customer_service",verify:"1"}})},component:D(FN,"component")}),YN=()=>I(()=>import("./updates-CIcxMJry.js"),__vite__mapDeps([172,173,38,12,13,14,15,11,16,17,18,19,20,174,6,27,21,106])),WN=U()({head:()=>({meta:[{title:"System Updates â Ross & Associates Tax Office"},{name:"description",content:"Plain-language Tax Office system improvements, fixes, security notes, and known limitations."},{property:"og:title",content:"System Updates â Ross & Associates Tax Office"},{property:"og:description",content:"Plain-language Tax Office system improvements, fixes, security notes, and known limitations."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(YN,"component")}),ZN=()=>I(()=>import("./workforce-DtpRmIf1.js"),__vite__mapDeps([175,158,12,13,14,15,3,4,32,151,25,90,159,160,6,161,34,39,162,40,163,145,164,111,104,70,16,37,38,17,22,7,11,18,19,20,21,106,165,166,29,167,89,118,10,154,5,9,168,169,8])),JN=new Set(["founder","admin","office_manager","staff","preparer","verified_preparer","workforce","w2_employee","contractor_1099","office_partner","trainee"]),QN=U()({head:()=>({meta:[{title:"Staff Portal â Ross & Associates Tax Office"},{name:"description",content:"Private workspace for authorized Ross & Associates Tax Office team members."},{property:"og:title",content:"Staff Portal â Ross & Associates Tax Office"},{property:"og:description",content:"Private workspace for authorized Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),beforeLoad:async({location:t})=>{const{data:e}=await In(_e.auth.getUser());if(!e.user)throw be({to:"/staff-access",search:{portal:"employee"}});const{data:n}=await In(_e.from("user_roles").select("role").eq("user_id",e.user.id)),s=(n??[]).map(c=>c.role);if(!s.some(c=>JN.has(c)))throw be({to:"/access",search:{portal:"employee",verify:"1"}});if(!s.some(c=>c==="founder"||c==="admin"||c==="office_manager")&&t.pathname!=="/workforce/onboarding"){const{data:c}=await In(_e.from("workforce_profiles").select("onboarding_completed_at").eq("user_id",e.user.id).maybeSingle());if(!c?.onboarding_completed_at)throw be({to:"/workforce/onboarding"})}},component:D(ZN,"component")});var Ye;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function n(o){throw new Error}t.assertNever=n,t.arrayToEnum=o=>{const c={};for(const u of o)c[u]=u;return c},t.getValidEnumValues=o=>{const c=t.objectKeys(o).filter(d=>typeof o[o[d]]!="number"),u={};for(const d of c)u[d]=o[d];return t.objectValues(u)},t.objectValues=o=>t.objectKeys(o).map(function(c){return o[c]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const c=[];for(const u in o)Object.prototype.hasOwnProperty.call(o,u)&&c.push(u);return c},t.find=(o,c)=>{for(const u of o)if(c(u))return u},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function s(o,c=" | "){return o.map(u=>typeof u=="string"?`'${u}'`:u).join(c)}t.joinValues=s,t.jsonStringifyReplacer=(o,c)=>typeof c=="bigint"?c.toString():c})(Ye||(Ye={}));var _b;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(_b||(_b={}));const we=Ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ra=t=>{switch(typeof t){case"undefined":return we.undefined;case"string":return we.string;case"number":return Number.isNaN(t)?we.nan:we.number;case"boolean":return we.boolean;case"function":return we.function;case"bigint":return we.bigint;case"symbol":return we.symbol;
vendor: 49,355 bytes, line 63
63case"object":return Array.isArray(t)?we.array:t===null?we.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?we.promise:typeof Map<"u"&&t instanceof Map?we.map:typeof Set<"u"&&t instanceof Set?we.set:typeof Date<"u"&&t instanceof Date?we.date:we.object;default:return we.unknown}},oe=Ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Fr extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(c){return c.message},s={_errors:[]},o=c=>{for(const u of c.issues)if(u.code==="invalid_union")u.unionErrors.map(o);else if(u.code==="invalid_return_type")o(u.returnTypeError);else if(u.code==="invalid_arguments")o(u.argumentsError);else if(u.path.length===0)s._errors.push(n(u));else{let d=s,f=0;for(;f<u.path.length;){const p=u.path[f];f===u.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(n(u))):d[p]=d[p]||{_errors:[]},d=d[p],f++}}};return o(this),s}static assert(e){if(!(e instanceof Fr))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},s=[];for(const o of this.issues)if(o.path.length>0){const c=o.path[0];n[c]=n[c]||[],n[c].push(e(o))}else s.push(e(o));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}Fr.create=t=>new Fr(t);const $p=(t,e)=>{let n;switch(t.code){case oe.invalid_type:t.received===we.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case oe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Ye.jsonStringifyReplacer)}`;break;case oe.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ye.joinValues(t.keys,", ")}`;break;case oe.invalid_union:n="Invalid input";break;case oe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ye.joinValues(t.options)}`;break;case oe.invalid_enum_value:n=`Invalid enum value. Expected ${Ye.joinValues(t.options)}, received '${t.received}'`;break;case oe.invalid_arguments:n="Invalid function arguments";break;case oe.invalid_return_type:n="Invalid function return type";break;case oe.invalid_date:n="Invalid date";break;case oe.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Ye.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case oe.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case oe.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case oe.custom:n="Invalid input";break;case oe.invalid_intersection_types:n="Intersection results could not be merged";break;case oe.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case oe.not_finite:n="Number must be finite";break;default:n=e.defaultError,Ye.assertNever(t)}return{message:n}};let XN=$p;function ej(){return XN}const tj=t=>{const{data:e,path:n,errorMaps:s,issueData:o}=t,c=[...n,...o.path||[]],u={...o,path:c};if(o.message!==void 0)return{...o,path:c,message:o.message};let d="";const f=s.filter(p=>!!p).slice().reverse();for(const p of f)d=p(u,{data:e,defaultError:d}).message;return{...o,path:c,message:d}};function he(t,e){const n=ej(),s=tj({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===$p?void 0:$p].filter(o=>!!o)});t.common.issues.push(s)}class wn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const s=[];for(const o of n){if(o.status==="aborted")return De;o.status==="dirty"&&e.dirty(),s.push(o.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,n){const s=[];for(const o of n){const c=await o.key,u=await o.value;s.push({key:c,value:u})}return wn.mergeObjectSync(e,s)}static mergeObjectSync(e,n){const s={};for(const o of n){const{key:c,value:u}=o;if(c.status==="aborted"||u.status==="aborted")return De;c.status==="dirty"&&e.dirty(),u.status==="dirty"&&e.dirty(),c.value!=="__proto__"&&(typeof u.value<"u"||o.alwaysSet)&&(s[c.value]=u.value)}return{status:e.value,value:s}}}const De=Object.freeze({status:"aborted"}),ec=t=>({status:"dirty",value:t}),Mn=t=>({status:"valid",value:t}),bb=t=>t.status==="aborted",wb=t=>t.status==="dirty",Di=t=>t.status==="valid",Cu=t=>typeof Promise<"u"&&t instanceof Promise;var Re;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Re||(Re={}));class Ia{constructor(e,n,s,o){this._cachedPath=[],this.parent=e,this.data=n,this._path=s,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Sb=(t,e)=>{if(Di(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Fr(t.common.issues);return this._error=n,this._error}}};function Ue(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:s,description:o}=t;if(e&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(u,d)=>{const{message:f}=t;return u.code==="invalid_enum_value"?{message:f??d.defaultError}:typeof d.data>"u"?{message:f??s??d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:f??n??d.defaultError}},description:o}}class Fe{get description(){return this._def.description}_getType(e){return Ra(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Ra(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new wn,ctx:{common:e.parent.common,data:e.data,parsedType:Ra(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Cu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const s=this.safeParse(e,n);if(s.success)return s.data;throw s.error}safeParse(e,n){const s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ra(e)},o=this._parseSync({data:e,path:s.path,parent:s});return Sb(s,o)}"~validate"(e){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ra(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:n});return Di(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(s=>Di(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(e,n){const s=await this.safeParseAsync(e,n);if(s.success)return s.data;throw s.error}async safeParseAsync(e,n){const s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ra(e)},o=this._parse({data:e,path:s.path,parent:s}),c=await(Cu(o)?o:Promise.resolve(o));return Sb(s,c)}refine(e,n){const s=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,c)=>{const u=e(o),d=()=>c.addIssue({code:oe.custom,...s(o)});return typeof Promise<"u"&&u instanceof Promise?u.then(f=>f?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(e,n){return this._refinement((s,o)=>e(s)?!0:(o.addIssue(typeof n=="function"?n(s,o):n),!1))}_refinement(e){return new Li({schema:this,typeName:Ie.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Pa.create(this,this._def)}nullable(){return Ni.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return mr.create(this)}promise(){return Iu.create(this,this._def)}or(e){return $u.create([this,e],this._def)}and(e){return Du.create(this,e,this._def)}transform(e){return new Li({...Ue(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Ip({...Ue(this._def),innerType:this,defaultValue:n,typeName:Ie.ZodDefault})}brand(){return new Ej({typeName:Ie.ZodBranded,type:this,...Ue(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Lp({...Ue(this._def),innerType:this,catchValue:n,typeName:Ie.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return om.create(this,e)}readonly(){return Np.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const nj=/^c[^\s-]{8,}$/i,rj=/^[0-9a-z]+$/,aj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ij=/^[a-z0-9_-]{21}$/i,oj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,lj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,uj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ep;const dj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,hj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,pj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,mj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vR="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",yj=new RegExp(`^${vR}$`);function _R(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function vj(t){return new RegExp(`^${_R(t)}$`)}function _j(t){let e=`${vR}T${_R(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function bj(t,e){return!!((e==="v4"||!e)&&dj.test(t)||(e==="v6"||!e)&&hj.test(t))}function wj(t,e){if(!oj.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function Sj(t,e){return!!((e==="v4"||!e)&&fj.test(t)||(e==="v6"||!e)&&pj.test(t))}class Oa extends Fe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==we.string){const c=this._getOrReturnCtx(e);return he(c,{code:oe.invalid_type,expected:we.string,received:c.parsedType}),De}const s=new wn;let o;for(const c of this._def.checks)if(c.kind==="min")e.data.length<c.value&&(o=this._getOrReturnCtx(e,o),he(o,{code:oe.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if(c.kind==="max")e.data.length>c.value&&(o=this._getOrReturnCtx(e,o),he(o,{code:oe.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if(c.kind==="length"){const u=e.data.length>c.value,d=e.data.length<c.value;(u||d)&&(o=this._getOrReturnCtx(e,o),u?he(o,{code:oe.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):d&&he(o,{code:oe.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),s.dirty())}else if(c.kind==="email")lj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"email",code:oe.invalid_string,message:c.message}),s.dirty());else if(c.kind==="emoji")ep||(ep=new RegExp(uj,"u")),ep.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"emoji",code:oe.invalid_string,message:c.message}),s.dirty());else if(c.kind==="uuid")sj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"uuid",code:oe.invalid_string,message:c.message}),s.dirty());else if(c.kind==="nanoid")ij.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"nanoid",code:oe.invalid_string,message:c.message}),s.dirty());else if(c.kind==="cuid")nj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"cuid",code:oe.invalid_string,message:c.message}),s.dirty());else if(c.kind==="cuid2")rj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"cuid2",code:oe.invalid_string,message:c.message}),s.dirty());else if(c.kind==="ulid")aj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"ulid",code:oe.invalid_string,message:c.message}),s.dirty());else if(c.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),he(o,{validation:"url",code:oe.invalid_string,message:c.message}),s.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"regex",code:oe.invalid_string,message:c.message}),s.dirty())):c.kind==="trim"?e.data=e.data.trim():c.kind==="includes"?e.data.includes(c.value,c.position)||(o=this._getOrReturnCtx(e,o),he(o,{code:oe.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),s.dirty()):c.kind==="toLowerCase"?e.data=e.data.toLowerCase():c.kind==="toUpperCase"?e.data=e.data.toUpperCase():c.kind==="startsWith"?e.data.startsWith(c.value)||(o=this._getOrReturnCtx(e,o),he(o,{code:oe.invalid_string,validation:{startsWith:c.value},message:c.message}),s.dirty()):c.kind==="endsWith"?e.data.endsWith(c.value)||(o=this._getOrReturnCtx(e,o),he(o,{code:oe.invalid_string,validation:{endsWith:c.value},message:c.message}),s.dirty()):c.kind==="datetime"?_j(c).test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{code:oe.invalid_string,validation:"datetime",message:c.message}),s.dirty()):c.kind==="date"?yj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{code:oe.invalid_string,validation:"date",message:c.message}),s.dirty()):c.kind==="time"?vj(c).test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{code:oe.invalid_string,validation:"time",message:c.message}),s.dirty()):c.kind==="duration"?cj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"duration",code:oe.invalid_string,message:c.message}),s.dirty()):c.kind==="ip"?bj(e.data,c.version)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"ip",code:oe.invalid_string,message:c.message}),s.dirty()):c.kind==="jwt"?wj(e.data,c.alg)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"jwt",code:oe.invalid_string,message:c.message}),s.dirty()):c.kind==="cidr"?Sj(e.data,c.version)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"cidr",code:oe.invalid_string,message:c.message}),s.dirty()):c.kind==="base64"?mj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"base64",code:oe.invalid_string,message:c.message}),s.dirty()):c.kind==="base64url"?gj.test(e.data)||(o=this._getOrReturnCtx(e,o),he(o,{validation:"base64url",code:oe.invalid_string,message:c.message}),s.dirty()):Ye.assertNever(c);return{status:s.value,value:e.data}}_regex(e,n,s){return this.refinement(o=>e.test(o),{validation:n,code:oe.invalid_string,...Re.errToObj(s)})}_addCheck(e){return new Oa({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Re.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Re.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Re.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Re.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Re.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Re.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Re.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Re.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Re.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Re.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Re.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Re.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Re.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Re.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Re.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Re.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...Re.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...Re.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...Re.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...Re.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...Re.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...Re.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...Re.errToObj(n)})}nonempty(e){return this.min(1,Re.errToObj(e))}trim(){return new Oa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Oa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Oa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Oa.create=t=>new Oa({checks:[],typeName:Ie.ZodString,coerce:t?.coerce??!1,...Ue(t)});function Rj(t,e){const n=(t.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,o=n>s?n:s,c=Number.parseInt(t.toFixed(o).replace(".","")),u=Number.parseInt(e.toFixed(o).replace(".",""));return c%u/10**o}class Sc extends Fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==we.number){const c=this._getOrReturnCtx(e);return he(c,{code:oe.invalid_type,expected:we.number,received:c.parsedType}),De}let s;const o=new wn;for(const c of this._def.checks)c.kind==="int"?Ye.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),he(s,{code:oe.invalid_type,expected:"integer",received:"float",message:c.message}),o.dirty()):c.kind==="min"?(c.inclusive?e.data<c.value:e.data<=c.value)&&(s=this._getOrReturnCtx(e,s),he(s,{code:oe.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),o.dirty()):c.kind==="max"?(c.inclusive?e.data>c.value:e.data>=c.value)&&(s=this._getOrReturnCtx(e,s),he(s,{code:oe.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),o.dirty()):c.kind==="multipleOf"?Rj(e.data,c.value)!==0&&(s=this._getOrReturnCtx(e,s),he(s,{code:oe.not_multiple_of,multipleOf:c.value,message:c.message}),o.dirty()):c.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),he(s,{code:oe.not_finite,message:c.message}),o.dirty()):Ye.assertNever(c);return{status:o.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,Re.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Re.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Re.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Re.toString(n))}setLimit(e,n,s,o){return new Sc({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:s,message:Re.toString(o)}]})}_addCheck(e){return new Sc({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Re.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Re.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Re.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Re.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Re.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Re.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:Re.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Re.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Re.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ye.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(n)&&Number.isFinite(e)}}Sc.create=t=>new Sc({checks:[],typeName:Ie.ZodNumber,coerce:t?.coerce||!1,...Ue(t)});class Rc extends Fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==we.bigint)return this._getInvalidInput(e);let s;const o=new wn;for(const c of this._def.checks)c.kind==="min"?(c.inclusive?e.data<c.value:e.data<=c.value)&&(s=this._getOrReturnCtx(e,s),he(s,{code:oe.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),o.dirty()):c.kind==="max"?(c.inclusive?e.data>c.value:e.data>=c.value)&&(s=this._getOrReturnCtx(e,s),he(s,{code:oe.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),o.dirty()):c.kind==="multipleOf"?e.data%c.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),he(s,{code:oe.not_multiple_of,multipleOf:c.value,message:c.message}),o.dirty()):Ye.assertNever(c);return{status:o.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return he(n,{code:oe.invalid_type,expected:we.bigint,received:n.parsedType}),De}gte(e,n){return this.setLimit("min",e,!0,Re.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Re.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Re.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Re.toString(n))}setLimit(e,n,s,o){return new Rc({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:s,message:Re.toString(o)}]})}_addCheck(e){return new Rc({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Re.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Re.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Re.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Re.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Re.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Rc.create=t=>new Rc({checks:[],typeName:Ie.ZodBigInt,coerce:t?.coerce??!1,...Ue(t)});class Rb extends Fe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==we.boolean){const s=this._getOrReturnCtx(e);return he(s,{code:oe.invalid_type,expected:we.boolean,received:s.parsedType}),De}return Mn(e.data)}}Rb.create=t=>new Rb({typeName:Ie.ZodBoolean,coerce:t?.coerce||!1,...Ue(t)});class Pu extends Fe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==we.date){const c=this._getOrReturnCtx(e);return he(c,{code:oe.invalid_type,expected:we.date,received:c.parsedType}),De}if(Number.isNaN(e.data.getTime())){const c=this._getOrReturnCtx(e);return he(c,{code:oe.invalid_date}),De}const s=new wn;let o;for(const c of this._def.checks)c.kind==="min"?e.data.getTime()<c.value&&(o=this._getOrReturnCtx(e,o),he(o,{code:oe.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),s.dirty()):c.kind==="max"?e.data.getTime()>c.value&&(o=this._getOrReturnCtx(e,o),he(o,{code:oe.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),s.dirty()):Ye.assertNever(c);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Pu({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:Re.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:Re.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Pu.create=t=>new Pu({checks:[],coerce:t?.coerce||!1,typeName:Ie.ZodDate,...Ue(t)});class Eb extends Fe{_parse(e){if(this._getType(e)!==we.symbol){const s=this._getOrReturnCtx(e);return he(s,{code:oe.invalid_type,expected:we.symbol,received:s.parsedType}),De}return Mn(e.data)}}Eb.create=t=>new Eb({typeName:Ie.ZodSymbol,...Ue(t)});class Tb extends Fe{_parse(e){if(this._getType(e)!==we.undefined){const s=this._getOrReturnCtx(e);return he(s,{code:oe.invalid_type,expected:we.undefined,received:s.parsedType}),De}return Mn(e.data)}}Tb.create=t=>new Tb({typeName:Ie.ZodUndefined,...Ue(t)});class Ab extends Fe{_parse(e){if(this._getType(e)!==we.null){const s=this._getOrReturnCtx(e);return he(s,{code:oe.invalid_type,expected:we.null,received:s.parsedType}),De}return Mn(e.data)}}Ab.create=t=>new Ab({typeName:Ie.ZodNull,...Ue(t)});class xb extends Fe{constructor(){super(...arguments),this._any=!0}_parse(e){return Mn(e.data)}}xb.create=t=>new xb({typeName:Ie.ZodAny,...Ue(t)});class Ob extends Fe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Mn(e.data)}}Ob.create=t=>new Ob({typeName:Ie.ZodUnknown,...Ue(t)});class La extends Fe{_parse(e){const n=this._getOrReturnCtx(e);return he(n,{code:oe.invalid_type,expected:we.never,received:n.parsedType}),De}}La.create=t=>new La({typeName:Ie.ZodNever,...Ue(t)});class kb extends Fe{_parse(e){if(this._getType(e)!==we.undefined){const s=this._getOrReturnCtx(e);return he(s,{code:oe.invalid_type,expected:we.void,received:s.parsedType}),De}return Mn(e.data)}}kb.create=t=>new kb({typeName:Ie.ZodVoid,...Ue(t)});class mr extends Fe{_parse(e){const{ctx:n,status:s}=this._processInputParams(e),o=this._def;if(n.parsedType!==we.array)return he(n,{code:oe.invalid_type,expected:we.array,received:n.parsedType}),De;if(o.exactLength!==null){const u=n.data.length>o.exactLength.value,d=n.data.length<o.exactLength.value;(u||d)&&(he(n,{code:u?oe.too_big:oe.too_small,minimum:d?o.exactLength.value:void 0,maximum:u?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),s.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(he(n,{code:oe.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(he(n,{code:oe.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((u,d)=>o.type._parseAsync(new Ia(n,u,n.path,d)))).then(u=>wn.mergeArray(s,u));const c=[...n.data].map((u,d)=>o.type._parseSync(new Ia(n,u,n.path,d)));return wn.mergeArray(s,c)}get element(){return this._def.type}min(e,n){return new mr({...this._def,minLength:{value:e,message:Re.toString(n)}})}max(e,n){return new mr({...this._def,maxLength:{value:e,message:Re.toString(n)}})}length(e,n){return new mr({...this._def,exactLength:{value:e,message:Re.toString(n)}})}nonempty(e){return this.min(1,e)}}mr.create=(t,e)=>new mr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...Ue(e)});function Ti(t){if(t instanceof St){const e={};for(const n in t.shape){const s=t.shape[n];e[n]=Pa.create(Ti(s))}return new St({...t._def,shape:()=>e})}else return t instanceof mr?new mr({...t._def,type:Ti(t.element)}):t instanceof Pa?Pa.create(Ti(t.unwrap())):t instanceof Ni?Ni.create(Ti(t.unwrap())):t instanceof _s?_s.create(t.items.map(e=>Ti(e))):t}class St extends Fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Ye.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==we.object){const p=this._getOrReturnCtx(e);return he(p,{code:oe.invalid_type,expected:we.object,received:p.parsedType}),De}const{status:s,ctx:o}=this._processInputParams(e),{shape:c,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof La&&this._def.unknownKeys==="strip"))for(const p in o.data)u.includes(p)||d.push(p);const f=[];for(const p of u){const y=c[p],g=o.data[p];f.push({key:{status:"valid",value:p},value:y._parse(new Ia(o,g,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof La){const p=this._def.unknownKeys;if(p==="passthrough")for(const y of d)f.push({key:{status:"valid",value:y},value:{status:"valid",value:o.data[y]}});else if(p==="strict")d.length>0&&(he(o,{code:oe.unrecognized_keys,keys:d}),s.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const y of d){const g=o.data[y];f.push({key:{status:"valid",value:y},value:p._parse(new Ia(o,g,o.path,y)),alwaysSet:y in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const y of f){const g=await y.key,v=await y.value;p.push({key:g,value:v,alwaysSet:y.alwaysSet})}return p}).then(p=>wn.mergeObjectSync(s,p)):wn.mergeObjectSync(s,f)}get shape(){return this._def.shape()}strict(e){return Re.errToObj,new St({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,s)=>{const o=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:Re.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new St({...this._def,unknownKeys:"strip"})}passthrough(){return new St({...this._def,unknownKeys:"passthrough"})}extend(e){return new St({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new St({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ie.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new St({...this._def,catchall:e})}pick(e){const n={};for(const s of Ye.objectKeys(e))e[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new St({...this._def,shape:()=>n})}omit(e){const n={};for(const s of Ye.objectKeys(this.shape))e[s]||(n[s]=this.shape[s]);return new St({...this._def,shape:()=>n})}deepPartial(){return Ti(this)}partial(e){const n={};for(const s of Ye.objectKeys(this.shape)){const o=this.shape[s];e&&!e[s]?n[s]=o:n[s]=o.optional()}return new St({...this._def,shape:()=>n})}required(e){const n={};for(const s of Ye.objectKeys(this.shape))if(e&&!e[s])n[s]=this.shape[s];else{let c=this.shape[s];for(;c instanceof Pa;)c=c._def.innerType;n[s]=c}return new St({...this._def,shape:()=>n})}keyof(){return bR(Ye.objectKeys(this.shape))}}St.create=(t,e)=>new St({shape:()=>t,unknownKeys:"strip",catchall:La.create(),typeName:Ie.ZodObject,...Ue(e)});St.strictCreate=(t,e)=>new St({shape:()=>t,unknownKeys:"strict",catchall:La.create(),typeName:Ie.ZodObject,...Ue(e)});St.lazycreate=(t,e)=>new St({shape:t,unknownKeys:"strip",catchall:La.create(),typeName:Ie.ZodObject,...Ue(e)});class $u extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e),s=this._def.options;function o(c){for(const d of c)if(d.result.status==="valid")return d.result;for(const d of c)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const u=c.map(d=>new Fr(d.ctx.common.issues));return he(n,{code:oe.invalid_union,unionErrors:u}),De}if(n.common.async)return Promise.all(s.map(async c=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await c._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(o);{let c;const u=[];for(const f of s){const p={...n,common:{...n.common,issues:[]},parent:null},y=f._parseSync({data:n.data,path:n.path,parent:p});if(y.status==="valid")return y;y.status==="dirty"&&!c&&(c={result:y,ctx:p}),p.common.issues.length&&u.push(p.common.issues)}if(c)return n.common.issues.push(...c.ctx.common.issues),c.result;const d=u.map(f=>new Fr(f));return he(n,{code:oe.invalid_union,unionErrors:d}),De}}get options(){return this._def.options}}$u.create=(t,e)=>new $u({options:t,typeName:Ie.ZodUnion,...Ue(e)});function Dp(t,e){const n=Ra(t),s=Ra(e);if(t===e)return{valid:!0,data:t};if(n===we.object&&s===we.object){const o=Ye.objectKeys(e),c=Ye.objectKeys(t).filter(d=>o.indexOf(d)!==-1),u={...t,...e};for(const d of c){const f=Dp(t[d],e[d]);if(!f.valid)return{valid:!1};u[d]=f.data}return{valid:!0,data:u}}else if(n===we.array&&s===we.array){if(t.length!==e.length)return{valid:!1};const o=[];for(let c=0;c<t.length;c++){const u=t[c],d=e[c],f=Dp(u,d);if(!f.valid)return{valid:!1};o.push(f.data)}return{valid:!0,data:o}}else return n===we.date&&s===we.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Du extends Fe{_parse(e){const{status:n,ctx:s}=this._processInputParams(e),o=(c,u)=>{if(bb(c)||bb(u))return De;const d=Dp(c.value,u.value);return d.valid?((wb(c)||wb(u))&&n.dirty(),{status:n.value,value:d.data}):(he(s,{code:oe.invalid_intersection_types}),De)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([c,u])=>o(c,u)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Du.create=(t,e,n)=>new Du({left:t,right:e,typeName:Ie.ZodIntersection,...Ue(n)});class _s extends Fe{_parse(e){const{status:n,ctx:s}=this._processInputParams(e);if(s.parsedType!==we.array)return he(s,{code:oe.invalid_type,expected:we.array,received:s.parsedType}),De;if(s.data.length<this._def.items.length)return he(s,{code:oe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),De;!this._def.rest&&s.data.length>this._def.items.length&&(he(s,{code:oe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const c=[...s.data].map((u,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new Ia(s,u,s.path,d)):null}).filter(u=>!!u);return s.common.async?Promise.all(c).then(u=>wn.mergeArray(n,u)):wn.mergeArray(n,c)}get items(){return this._def.items}rest(e){return new _s({...this._def,rest:e})}}_s.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _s({items:t,typeName:Ie.ZodTuple,rest:null,...Ue(e)})};class Cb extends Fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:s}=this._processInputParams(e);if(s.parsedType!==we.map)return he(s,{code:oe.invalid_type,expected:we.map,received:s.parsedType}),De;const o=this._def.keyType,c=this._def.valueType,u=[...s.data.entries()].map(([d,f],p)=>({key:o._parse(new Ia(s,d,s.path,[p,"key"])),value:c._parse(new Ia(s,f,s.path,[p,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of u){const p=await f.key,y=await f.value;if(p.status==="aborted"||y.status==="aborted")return De;(p.status==="dirty"||y.status==="dirty")&&n.dirty(),d.set(p.value,y.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const f of u){const p=f.key,y=f.value;if(p.status==="aborted"||y.status==="aborted")return De;(p.status==="dirty"||y.status==="dirty")&&n.dirty(),d.set(p.value,y.value)}return{status:n.value,value:d}}}}Cb.create=(t,e,n)=>new Cb({valueType:e,keyType:t,typeName:Ie.ZodMap,...Ue(n)});class Ec extends Fe{_parse(e){const{status:n,ctx:s}=this._processInputParams(e);if(s.parsedType!==we.set)return he(s,{code:oe.invalid_type,expected:we.set,received:s.parsedType}),De;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(he(s,{code:oe.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(he(s,{code:oe.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const c=this._def.valueType;function u(f){const p=new Set;for(const y of f){if(y.status==="aborted")return De;y.status==="dirty"&&n.dirty(),p.add(y.value)}return{status:n.value,value:p}}const d=[...s.data.values()].map((f,p)=>c._parse(new Ia(s,f,s.path,p)));return s.common.async?Promise.all(d).then(f=>u(f)):u(d)}min(e,n){return new Ec({...this._def,minSize:{value:e,message:Re.toString(n)}})}max(e,n){return new Ec({...this._def,maxSize:{value:e,message:Re.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Ec.create=(t,e)=>new Ec({valueType:t,minSize:null,maxSize:null,typeName:Ie.ZodSet,...Ue(e)});class Pb extends Fe{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Pb.create=(t,e)=>new Pb({getter:t,typeName:Ie.ZodLazy,...Ue(e)});class $b extends Fe{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return he(n,{received:n.data,code:oe.invalid_literal,expected:this._def.value}),De}return{status:"valid",value:e.data}}get value(){return this._def.value}}$b.create=(t,e)=>new $b({value:t,typeName:Ie.ZodLiteral,...Ue(e)});function bR(t,e){return new Ii({values:t,typeName:Ie.ZodEnum,...Ue(e)})}class Ii extends Fe{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),s=this._def.values;return he(n,{expected:Ye.joinValues(s),received:n.parsedType,code:oe.invalid_type}),De}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),s=this._def.values;return he(n,{received:n.data,code:oe.invalid_enum_value,options:s}),De}return Mn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return Ii.create(e,{...this._def,...n})}exclude(e,n=this._def){return Ii.create(this.options.filter(s=>!e.includes(s)),{...this._def,...n})}}Ii.create=bR;class Db extends Fe{_parse(e){const n=Ye.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==we.string&&s.parsedType!==we.number){const o=Ye.objectValues(n);return he(s,{expected:Ye.joinValues(o),received:s.parsedType,code:oe.invalid_type}),De}if(this._cache||(this._cache=new Set(Ye.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const o=Ye.objectValues(n);return he(s,{received:s.data,code:oe.invalid_enum_value,options:o}),De}return Mn(e.data)}get enum(){return this._def.values}}Db.create=(t,e)=>new Db({values:t,typeName:Ie.ZodNativeEnum,...Ue(e)});class Iu extends Fe{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==we.promise&&n.common.async===!1)return he(n,{code:oe.invalid_type,expected:we.promise,received:n.parsedType}),De;const s=n.parsedType===we.promise?n.data:Promise.resolve(n.data);return Mn(s.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Iu.create=(t,e)=>new Iu({type:t,typeName:Ie.ZodPromise,...Ue(e)});class Li extends Fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:s}=this._processInputParams(e),o=this._def.effect||null,c={addIssue:u=>{he(s,u),u.fatal?n.abort():n.dirty()},get path(){return s.path}};if(c.addIssue=c.addIssue.bind(c),o.type==="preprocess"){const u=o.transform(s.data,c);if(s.common.async)return Promise.resolve(u).then(async d=>{if(n.value==="aborted")return De;const f=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return f.status==="aborted"?De:f.status==="dirty"||n.value==="dirty"?ec(f.value):f});{if(n.value==="aborted")return De;const d=this._def.schema._parseSync({data:u,path:s.path,parent:s});return d.status==="aborted"?De:d.status==="dirty"||n.value==="dirty"?ec(d.value):d}}if(o.type==="refinement"){const u=d=>{const f=o.refinement(d,c);if(s.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?De:(d.status==="dirty"&&n.dirty(),u(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?De:(d.status==="dirty"&&n.dirty(),u(d.value).then(()=>({status:n.value,value:d.value}))))}if(o.type==="transform")if(s.common.async===!1){const u=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Di(u))return De;const d=o.transform(u.value,c);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(u=>Di(u)?Promise.resolve(o.transform(u.value,c)).then(d=>({status:n.value,value:d})):De);Ye.assertNever(o)}}Li.create=(t,e,n)=>new Li({schema:t,typeName:Ie.ZodEffects,effect:e,...Ue(n)});Li.createWithPreprocess=(t,e,n)=>new Li({schema:e,effect:{type:"preprocess",transform:t},typeName:Ie.ZodEffects,...Ue(n)});class Pa extends Fe{_parse(e){return this._getType(e)===we.undefined?Mn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pa.create=(t,e)=>new Pa({innerType:t,typeName:Ie.ZodOptional,...Ue(e)});class Ni extends Fe{_parse(e){return this._getType(e)===we.null?Mn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ni.create=(t,e)=>new Ni({innerType:t,typeName:Ie.ZodNullable,...Ue(e)});class Ip extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e);let s=n.data;return n.parsedType===we.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ip.create=(t,e)=>new Ip({innerType:t,typeName:Ie.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ue(e)});class Lp extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e),s={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Cu(o)?o.then(c=>
63({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new Fr(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Fr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Lp.create=(t,e)=>new Lp({innerType:t,typeName:Ie.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ue(e)});class Ib extends Fe{_parse(e){if(this._getType(e)!==we.nan){const s=this._getOrReturnCtx(e);return he(s,{code:oe.invalid_type,expected:we.nan,received:s.parsedType}),De}return{status:"valid",value:e.data}}}Ib.create=t=>new Ib({typeName:Ie.ZodNaN,...Ue(t)});class Ej extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class om extends Fe{_parse(e){const{status:n,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const c=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return c.status==="aborted"?De:c.status==="dirty"?(n.dirty(),ec(c.value)):this._def.out._parseAsync({data:c.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?De:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(e,n){return new om({in:e,out:n,typeName:Ie.ZodPipeline})}}class Np extends Fe{_parse(e){const n=this._def.innerType._parse(e),s=o=>(Di(o)&&(o.value=Object.freeze(o.value)),o);return Cu(n)?n.then(o=>s(o)):s(n)}unwrap(){return this._def.innerType}}Np.create=(t,e)=>new Np({innerType:t,typeName:Ie.ZodReadonly,...Ue(e)});var Ie;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Ie||(Ie={}));const ys=Oa.create;La.create;mr.create;const Yu=St.create;$u.create;Du.create;_s.create;Ii.create;Iu.create;Pa.create;Ni.create;const Tj=()=>I(()=>import("./certificates.verify-DES_oYkP.js"),__vite__mapDeps([176,3,4,43,19,21])),Aj=U()({validateSearch:Yu({code:ys().optional()}),head:()=>({meta:[{title:"Verify a Recognition Certificate â Ross & Associates Tax Office"},{name:"description",content:"Verify an issued Ross & Associates Tax Office company recognition certificate."},{property:"og:title",content:"Verify a Recognition Certificate â Ross & Associates Tax Office"},{property:"og:description",content:"Verify an issued Ross & Associates Tax Office company recognition certificate."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:D(Tj,"component")}),xj=()=>I(()=>import("./checkout.return-BHBN1oM6.js"),__vite__mapDeps([177,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])),Oj=U()({validateSearch:t=>({session_id:typeof t.session_id=="string"?t.session_id:void 0}),component:D(xj,"component")}),kj=()=>I(()=>import("./invitation.accept-C_Lnuvry.js"),__vite__mapDeps([178,12,13,14,15,3,4,52,102,62,64,103,104,29,179,20,18,21])),Cj=U()({head:()=>({meta:[{title:"Accept your invitation â Ross & Associates Tax Office"},{name:"description",content:"Accept a private single-use Ross & Associates Tax Office portal invitation and set up your secure account."},{property:"og:title",content:"Accept your invitation â Ross & Associates Tax Office"},{property:"og:description",content:"Private single-use staff invitation acceptance for Ross & Associates Tax Office."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}
63),component:D(kj,"component")}),Pj=()=>I(()=>import("./services.index-BoOxIaum.js"),__vite__mapDeps([180,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,47,118,181,146,160,96,29])),$j=U()({head:()=>({meta:[{title:"Services â Ross & Associates Tax Office"},{name:"description",content:"Individual & business tax, IRS resolution, bookkeeping, payroll, business formation, virtual tax office, and more."},{property:"og:title",content:"Tax & Financial Services â Ross & Associates"},{property:"og:description",content:"Professional tax, accounting, and advisory services for individuals and businesses."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/services"}]}),component:D(Pj,"component")}),Dj=()=>I(()=>import("./services.amended-CVsBUQOF.js"),__vite__mapDeps([182,183,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,47,29,89,35])),Ij=U()({head:()=>({meta:[{title:"Amended Tax Returns (Form 1040-X) â Ross & Associates Tax Office"},{name:"description",content:"Correct a prior-year tax return with Form 1040-X. Recover missed refunds, fix filing errors, or respond to IRS adjustments."},{property:"og:title",content:"Amended Tax Returns â Ross & Associates"},{property:"og:description",content:"File Form 1040-X to fix errors or claim missed refunds on prior-year returns."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/services/amended"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/services/amended"}]}),component:D(Dj,"component")}),Lj=()=>I(()=>import("./services.back-taxes-Dj8V8Nlq.js"),__vite__mapDeps([184,183,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,47,29,89,35,118])),Nj=U()({head:()=>({meta:[{title:"Back Taxes Assistance â Ross & Associates Tax Office"},{name:"description",content:"Catch up on unfiled or prior-year tax returns. We file back taxes, request IRS transcripts, and stop notices from escalating."},{property:"og:title",content:"Back Taxes Assistance â Ross & Associates"},{property:"og:description",content:"File prior-year returns. Stop IRS notices. Restore compliance."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/services/back-taxes"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/services/back-taxes"}]}),component:D(Lj,"component")}),jj=()=>I(()=>import("./services.business-CteAwL5g.js"),__vite__mapDeps([185,183,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,47,29,89,35])),Mj=U()({head:()=>({meta:[{title:"Business Tax Preparation â Ross & Associates Tax Office"},{name:"description",content:"LLC, S-Corp, C-Corp, partnership, and sole-proprietor tax returns prepared by authorized tax professionals, with K-1 and multi-state support when applicable."},{property:"og:title",content:"Business Tax Preparation â Ross & Associates"},{property:"og:description",content:"Comprehensive business tax filings: LLC, S-Corp, C-Corp, partnerships, multi-state."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/services/business"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/services/business"}]}),component:D(jj,"component")}),Uj=()=>I(()=>import("./services.individual-D6uLw8mM.js"),__vite__mapDeps([186,183,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,47,29,89,35])),Bj=U()({head:()=>({meta:[{title:"Individual Tax Preparation â Ross & Associates Tax Office"},{name:"description",content:"Federal and state individual tax return preparation with professional review and secure upload through the client portal or TaxesToGo."},{property:"og:title",content:"Individual Tax Preparation â Ross & Associates"},{property:"og:description",content:"Personal federal & state tax returns with maximum-refund review and secure document handling."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/services/individual"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/services/individual"}]}),component:D(Uj,"component")}),zj=()=>I(()=>import("./services.remote-CsjMtYFq.js"),__vite__mapDeps([187,183,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,47,29,89,35,181])
63),qj=U()({head:()=>({meta:[{title:"Remote Online Tax Preparation â Ross & Associates Tax Office"},{name:"description",content:"100% virtual tax preparation from anywhere in the U.S. Secure document upload, e-signature, and e-delivery via portal or TaxesToGo mobile app."},{property:"og:title",content:"Remote Online Tax Preparation â Ross & Associates"},{property:"og:description",content:"File your taxes from anywhere. Secure upload, e-sign, e-file."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/services/remote"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/services/remote"}]}),component:D(zj,"component")}),Hj=()=>I(()=>import("./services.resolution-wyJlh4ia.js"),__vite__mapDeps([188,183,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,47,29,89,35])),Vj=U()({head:()=>({meta:[{title:"Tax Resolution & IRS Assistance â Ross & Associates Tax Office"},{name:"description",content:"IRS audits, liens, levies, wage garnishments, installment agreements, and offers in compromise â handled by credentialed tax professionals."},{property:"og:title",content:"Tax Resolution & IRS Assistance â Ross & Associates"},{property:"og:description",content:"Audits, liens, levies, installment agreements, OIC. We represent you before the IRS."},{property:"og:url",content:"https://www.rossandassociates-taxoffice.com/services/resolution"},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://www.rossandassociates-taxoffice.com/services/resolution"}]}),component:D(Hj,"component")}),Fj=()=>I(()=>import("./tax-knowledge.deadlines-BW78kwD1.js"),__vite__mapDeps([189,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),Gj=U()({head:()=>({meta:[{title:"Tax Calendar Guide â Ross & Associates Tax Office"},{name:"description",content:"Tax Office guidance for finding current federal filing and payment deadlines directly from official IRS sources."},{property:"og:title",content:"Tax Calendar Guide â Ross & Associates Tax Office"},{property:"og:description",content:"Find current federal tax deadlines at the official IRS source and understand which calendar applies."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://rossandassociates-taxoffice.com/tax-knowledge/deadlines"}]}),component:D(Fj,"component")}),Kj=()=>I(()=>import("./tax-knowledge.estimated-taxes-DkoPgU8D.js"),__vite__mapDeps([191,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),Yj=U()({head:()=>({meta:[{title:"Estimated Taxes â Quarterly Payments Guide"},{name:"description",content:"How to calculate, schedule, and pay quarterly estimated taxes. Safe-harbor rules and underpayment penalties explained."},{property:"og:title",content:"Estimated Taxes â Ross & Associates"},{property:"og:description",content:"Quarterly tax payment schedule and safe-harbor rules."},{property:"og:url",content:"/tax-knowledge/estimated-taxes"}],links:[{rel:"canonical",href:"/tax-knowledge/estimated-taxes"}]}),component:D(Kj,"component")}),Wj=()=>I(()=>import("./tax-knowledge.filing-guides-DOnxBk-I.js"),__vite__mapDeps([192,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),Zj=U()({head:()=>({meta:[{title:"Filing Guides â Federal Tax Return Step-by-Step"},{name:"description",content:"Step-by-step federal tax filing guides for individuals, families, self-employed, and small business owners."},{property:"og:title",content:"Filing Guides â Ross & Associates"},{property:"og:description",content:"Filing instructions, forms, and direct IRS links."},{property:"og:url",content:"/tax-knowledge/filing-guides"}],links:[{rel:"canonical",href:"/tax-knowledge/filing-guides"}]}
63),component:D(Wj,"component")}),Jj=()=>I(()=>import("./tax-knowledge.filing-status-1Gp3OHew.js"),__vite__mapDeps([193,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),Qj=U()({head:()=>({meta:[{title:"Filing Status Guide â Single, MFJ, MFS, HoH"},{name:"description",content:"Pick the right filing status: Single, Married Filing Jointly, Married Filing Separately, Head of Household, or Qualifying Surviving Spouse."},{property:"og:title",content:"Filing Status Guide â Ross & Associates"},{property:"og:description",content:"Every IRS filing status, explained."},{property:"og:url",content:"/tax-knowledge/filing-status"}],links:[{rel:"canonical",href:"/tax-knowledge/filing-status"}]}),component:D(Jj,"component")}),Xj=()=>I(()=>import("./tax-knowledge.irs-help-CW1eHbeF.js"),__vite__mapDeps([194,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),e4=U()({head:()=>({meta:[{title:"IRS Help Hub â Notices, Transcripts & Account Access"},{name:"description",content:"Decode IRS notices, request transcripts, access your IRS online account, and reach the IRS without the wait."},{property:"og:title",content:"IRS Help Hub â Ross & Associates"},{property:"og:description",content:"Notices, transcripts, IRS online account, contact options."},{property:"og:url",content:"/tax-knowledge/irs-help"}],links:[{rel:"canonical",href:"/tax-knowledge/irs-help"}]}),component:D(Xj,"component")}),t4=()=>I(()=>import("./tax-knowledge.payments-BxmP9LsA.js"),__vite__mapDeps([195,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),n4=U()({head:()=>({meta:[{title:"IRS Payment Center â Pay Taxes & Set Up Payment Plans"},{name:"description",content:"Pay your IRS balance via Direct Pay, EFTPS, debit/credit card, or set up an installment agreement."},{property:"og:title",content:"IRS Payment Center â Ross & Associates"},{property:"og:description",content:"Pay balances and set up IRS payment plans."},{property:"og:url",content:"/tax-knowledge/payments"}],links:[{rel:"canonical",href:"/tax-knowledge/payments"}]}),component:D(t4,"component")}),r4=()=>I(()=>import("./tax-knowledge.refund-tracking-BhmvqpA0.js"),__vite__mapDeps([196,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),a4=U()({head:()=>({meta:[{title:"Where's My Refund â IRS Refund Tracking"},{name:"description",content:"Track your federal tax refund, understand processing times, and learn what to do if your refund is delayed."},{property:"og:title",content:"Refund Tracking â Ross & Associates"},{property:"og:description",content:"Check refund status and resolve common delays."},{property:"og:url",content:"/tax-knowledge/refund-tracking"}],links:[{rel:"canonical",href:"/tax-knowledge/refund-tracking"}]}),component:D(r4,"component")}),s4=()=>I(()=>import("./tax-knowledge.resolution-zkgHaMje.js"),__vite__mapDeps([197,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),i4=U()({head:()=>({meta:[{title:"Tax Resolution & IRS Notice Help"},{name:"description",content:"Respond to IRS notices, audits, liens, and levies. Installment agreements, Offer in Compromise, and penalty abatement."},{property:"og:title",content:"Tax Resolution â Ross & Associates"},{property:"og:description",content:"We resolve IRS problems â quietly and quickly."},{property:"og:url",content:"/tax-knowledge/resolution"}],links:[{rel:"canonical",href:"/tax-knowledge/resolution"}]}),component:D(s4,"component")}),o4=()=>I(()=>import("./tax-knowledge.self-employment-qVfVO6in.js"),__vite__mapDeps([198,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),c4=U()({head:()=>({meta:[{title:"Self-Employment Tax Hub â Schedule C & SE Tax"},{name:"description",content:"1099 income, Schedule C deductions, self-employment tax, home office, and quarterly estimated payments."},{property:"og:title",content:"Self-Employment Hub â Ross & Associates"},{property:"og:description",content:"Everything 1099 earners and freelancers need."},{property:"og:url",content:"/tax-knowledge/self-employment"}],links:[{rel:"canonical",href:"/tax-knowledge/self-employment"}]}),component:D(o4,"component")}),l4=()=>I(()=>import("./tax-knowledge.small-business-BftoqTeg.js"),__vite__mapDeps([199,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),u4=U()({head:()=>({meta:[{title:"Small Business Tax Hub â Entities, Deductions, Filings"},{name:"description",content:"Entity choice, payroll, deductions, and federal filing requirements for LLCs, S-corps, C-corps, and partnerships."},{property:"og:title",content:"Small Business Tax Hub â Ross & Associates"},{property:"og:description",content:"Small business federal tax essentials."},{property:"og:url",content:"/tax-knowledge/small-business"}],links:[{rel:"canonical",href:"/tax-knowledge/small-business"}]}),component:D(l4,"component")}),d4=()=>I(()=>
63import("./tax-knowledge.w4-calculator-BiDDHDKB.js"),__vite__mapDeps([200,190,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,53])),f4=U()({head:()=>({meta:[{title:"W-4 & Withholding Guide â IRS Tax Withholding Estimator"},{name:"description",content:"Use the IRS Tax Withholding Estimator and learn how to fill out Form W-4 to avoid surprise bills or oversized refunds."},{property:"og:title",content:"W-4 Withholding â Ross & Associates"},{property:"og:description",content:"Dial in your paycheck withholding."},{property:"og:url",content:"/tax-knowledge/w4-calculator"}],links:[{rel:"canonical",href:"/tax-knowledge/w4-calculator"}]}),component:D(d4,"component")}),h4=()=>I(()=>import("./admin.index-c_9yDV7W.js"),__vite__mapDeps([201,167,202,145,75,203,104,204,89,19,165,22,18,72,205,24,206,12,13,14,15,29,40,163,34,207,48,74,7,23,20,44,152,137,133,159,160,208,146])),p4=U()({head:()=>({meta:[{title:"Tax Office Administration Console â Ross & Associates Tax Office"}]}),component:D(h4,"component")}),m4=()=>I(()=>import("./admin.automations-JhS0jPq2.js"),[]),g4=U()({head:()=>({meta:[{title:"Automations â Admin"}]}),component:D(m4,"component")}),y4=()=>I(()=>import("./admin.case-workspace-hF2VFtDs.js"),__vite__mapDeps([209,173,210,38,12,13,14,15,64,63,211,8,21,104])),Lb="Secure Case Workspace â Ross & Associates Tax Office",Nb="Assigned case files with intake requirements, evidence vault status, masked bank information, audited reveals and the Tax Office information-security control record.",v4=U()({head:()=>({meta:[{title:Lb},{name:"description",content:Nb},{property:"og:title",content:Lb},{property:"og:description",content:Nb},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:D(y4,"component")}),_4=()=>I(()=>import("./admin.certificates-DvuHn-Pn.js"),__vite__mapDeps([212,173,38,12,13,14,15,213,174,214,159,88,21])),b4=U()({validateSearch:Yu({recipientId:ys().uuid().optional()}),head:()=>({meta:[{title:"Staff Recognition Certificates â Ross & Associates Tax Office"},{name:"description",content:"Private owner review for Tax Office staff recognition certificates."},{property:"og:title",content:"Staff Recognition Certificates â Ross & Associates Tax Office"},{property:"og:description",content:"Private owner review for Tax Office staff recognition certificates."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id);if(!(e??[]).some(n=>n.role==="founder"||n.role==="admin"))throw be({to:"/portal"})},component:D(_4,"component")}),w4=()=>I(()=>import("./admin.changelog-Cto_n7Gj.js"),__vite__mapDeps([215,38,173,210,12,13,14,15,62,63,216,163,164])),S4=U()({head:()=>({meta:[{title:"Continuity Archive â Development Changelog"}]}),component:D(w4,"component")}),R4=()=>I(()=>import("./admin.client-education-CVvIcrfd.js"),__vite__mapDeps([217,12,13,14,15,218])),E4=U()({head:()=>({meta:[{title:"Client Education & Campaigns (Preview) â Ross & Associates Tax Office"},{name:"description",content:"Draft client education lessons, segments, and campaigns. Nothing is sent."},{name:"robots",content:"noindex,nofollow"}]}),component:D(R4,"component")}),T4=()=>I(()=>import("./admin.clients-CDS6NMM3.js"),__vite__mapDeps([219,173,38,220,174,29])),A4=U()({head:()=>({meta:[{title:"Client Management â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id);if(!(e??[]).map(s=>s.role).some(s=>["admin","founder","office_manager","staff"].includes(s)))throw be({to:"/portal"})},component:D(T4,"component")}),x4=()=>I(()=>import("./admin.communications-E56zBH3K.js"),__vite__mapDeps([221,38,173,210,222,223,15,12,13,14,62,63,224,225,66,67,149,150,226,69,227,228,68,10,70,229,151,75,7,21,230])),O4=U()({head:()=>({meta:[{title:"Communications Center â Admin"}]}),component:D(x4,"component")}),k4=()=>I(()=>import("./admin.contacts-CFWrRJrT.js"),__vite__mapDeps([231,38,12,13,14,15,62,64,232,174,89,233])),C4=U()({head:()=>({meta:[{title:"Contacts â Admin"}]}),component:D(k4,"component")}),P4=()=>I(()=>import("./admin.credentials-C-WNiaf_.js"),__vite__mapDeps([234,12,13,14,15])),$4=U()({head:()=>({meta:[{title:"Credentials Review â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(P4,"component")}),D4=()=>I(()=>import("./admin.document-requests-DPl0WbXm.js"),__vite__mapDeps([235,12,13,14,15,62,63,118,216,17,75,230,18,19,72])),I4=U()({component:D(D4,"component")}),L4=()=>I(()=>import("./admin.email-templates-BUJcxVSb.js"),__vite__mapDeps([236,173,38,12,13,14,15,225,66,67,149,150,226,69,174,35])),N4=U()({head:()=>({meta:[{title:"Staff Email Template Preview â Ross & Associates Tax Office"},{name:"description",content:"Private founder preview of the rendered Tax Office staff access email templates."},{property:"og:title",content:"Staff Email Template Preview â Ross & Associates Tax Office"},{property:"og:description",content:"Private founder preview of the rendered Tax Office staff access email templates."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});if(!((await _e.from("user_roles").select("role").eq("user_id",t.user.id)).data??[]).some(n=>n.role==="founder"))throw be({to:"/admin"})},component:D(L4,"component")}),j4=()=>I(()=>import("./admin.external-handoff-BWr9-Oep.js"),__vite__mapDeps([237,173,210,38,12,13,14,15,62,64,63,174,18])),jb="TaxSlayer ProWeb Handoff â Ross & Associates Tax Office",Mb="Handoff status, verified evidence trail, TaxSlayer ProWeb and TaxesToGo limits, and controlled reconciliation between Ross & Associates Tax Office case records and TaxSlayer ProWeb.",M4=U()({head:()=>({meta:[{title:jb},{name:"description",content:Mb},{property:"og:title",content:jb},{property:"og:description",content:Mb},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(j4,"component")}),U4=()=>I(()=>import("./admin.forms-CpO0tj6-.js"),__vite__mapDeps([238,12,13,14,15,62,63,216,17,89,104,103,239])),B4=U()({component:D(U4,"component")}),z4=()=>I(()=>import("./admin.founder-readiness-ByP-kOSD.js"),__vite__mapDeps([240,173,38,12,13,14,15,65,66,67,68,69,70,62,64,241,174,21,106,18,242])),Ub="Daisy Founder Readiness â Ross & Associates Tax Office",q4=U()({head:()=>({meta:[{title:Ub},{name:"description",content:"Private owner review for exact-account founder onboarding and Tax Office access readiness."},{property:"og:title",content:Ub},{property:"og:description",content:"Private Tax Office founder onboarding readiness."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(z4,"component")}),H4=()=>I(()=>import("./admin.founder-security-DhSvBxS5.js"),__vite__mapDeps([243,173,210,38,224,14,15,12,13,43,21])),V4=U()({head:()=>({meta:[{title:"Founder Security Dashboard â Ross & Associates"},{name:"description",content:"Executive security governance for the ROSSNEXUS Enterprise Platform: security score, identity metrics, alerts, service health and phase certification."},{property:"og:title",content:"Founder Security Dashboard â Ross & Associates"},{property:"og:description",content:"Real-time executive view of the enterprise security posture across the Ross & Associates ecosystem."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}
63),component:D(H4,"component")}),F4=()=>I(()=>import("./admin.helpdesk-Bpgp-2Hr.js"),__vite__mapDeps([244,12,13,14,15,62,63,227,66,67,149,228,226,150,68,10,70,224,245,39,246,8,75])),G4=U()({head:()=>({meta:[{title:"Helpdesk â Admin"}]}),component:D(F4,"component")}),K4=()=>I(()=>import("./admin.identity-directory-vpRik_rX.js"),__vite__mapDeps([247,173,210,38,12,13,14,15,62,241,174,21,203,132])),Bb="Identity, Login & Recovery Directory â Ross & Associates Tax Office",zb="Canonical person records, verified branded production logins, private masked recovery methods, TEST identities, company memberships and provider authorization status.",Y4=U()({head:()=>({meta:[{title:Bb},{name:"description",content:zb},{property:"og:title",content:Bb},{property:"og:description",content:zb},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(K4,"component")}),W4=()=>I(()=>import("./admin.intake-DqkYmiqR.js"),__vite__mapDeps([248,245,66,67,13,68,15,249,250])),Z4=U()({head:()=>({meta:[{title:"Intake Methods â Admin"}]}),component:D(W4,"component")}),J4=()=>I(()=>import("./admin.intake-settings-C8bSEciV.js"),__vite__mapDeps([251,38,245,66,67,13,68,15,62,12,14,95])),Q4=U()({head:()=>({meta:[{title:"Intake Settings â Admin"}]}),component:D(J4,"component")}),X4=()=>I(()=>import("./admin.invitations-CI4rP0Xx.js"),__vite__mapDeps([252,173,210,38,12,13,14,15,62,64,63,52,54,8,203,22,18,21])),qb="Invitations & Portal Access â Ross & Associates Tax Office",Hb="Create private single-use staff invitations, review the branded invitation preview, confirm delivery, revoke access and read the complete invitation audit history.",e3=U()({head:()=>({meta:[{title:qb},{name:"description",content:Hb},{property:"og:title",content:qb},{property:"og:description",content:Hb},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:D(X4,"component")}),t3=()=>I(()=>import("./admin.lifecycle-B3v-WATR.js"),__vite__mapDeps([253,173,210,38,12,13,14,15,64,72,21,246,133])),Vb="Onboarding & Lifecycle Tracker â Ross & Associates Tax Office",Fb="Track every client, candidate, worker and privileged-access relationship by stage, outstanding requirement, responsible owner, service target, source and complete audit timeline.",n3=U()({head:()=>({meta:[{title:Vb},{name:"description",content:Fb},{property:"og:title",content:Vb},{property:"og:description",content:Fb},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:D(t3,"component")}),r3=()=>I(()=>import("./admin.newsletters-CMhQOQvr.js"),[]),a3=U()({head:()=>({meta:[{title:"Newsletter Audiences â Ross & Associates Tax Office"},{name:"description",content:"Private Tax Office newsletter audience management."},{property:"og:title",content:"Newsletter Audiences â Ross & Associates Tax Office"},{property:"og:description",content:"Private Tax Office newsletter audience management."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}]}),component:D(r3,"component")}),s3=()=>I(()=>import("./admin.onboarding-CBVIONYS.js"),__vite__mapDeps([254,38,12,13,14,15,227,66,67,149,228,226,150,68,10,70,255])),i3=U()({head:()=>({meta:[{title:"Client Onboarding â Admin"}]}),component:D(s3,"component")}),o3=()=>I(()=>import("./admin.payments-fO14HnMn.js"),__vite__mapDeps([256,12,13,14,15,249,250,257,174])),c3=U()({head:()=>({meta:[{title:"Payments & Ledger â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder")&&!n.includes("office_manager"))throw be({to:"/portal"})},component:D(o3,"component")}),l3=()=>I(()=>import("./admin.payouts-D8Vo2T2T.js"),__vite__mapDeps([258,12,13,14,15,53,160,145,146,34])),u3=U()({head:()=>({meta:[{title:"Office Analytics & Payout Center â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(l3,"component")}),d3=()=>I(()=>import("./admin.pipeline-C0aeVwv1.js"),__vite__mapDeps([259,163,20,207,90,44,205,246,72,145,18,29])),f3=U()({head:()=>({meta:[{title:"Tax Pipeline â Ross & Associates Tax Office"}]}),component:D(d3,"component")}),h3=()=>I(()=>import("./admin.public-content-Cnmzvx5P.js"),__vite__mapDeps([260,173,210,38,12,13,14,15,62,63,8,203,104,18,261])),p3=U()({component:D(h3,"component")}),m3=()=>I(()=>import("./admin.readiness-preview-B9baMDVI.js"),__vite__mapDeps([262,263])),g3=U()({head:()=>({meta:[{title:"Readiness Preview Examples â Administration"},{name:"robots",content:"noindex"}
63]}),component:D(m3,"component")}),y3=()=>I(()=>import("./admin.readiness-rules-CBLaMqdf.js"),__vite__mapDeps([264,173,38,12,13,14,15,265,263])),v3=U()({head:()=>({meta:[{title:"Readiness Rule Versions â Administration"},{name:"robots",content:"noindex"}]}),component:D(y3,"component")}),_3=()=>I(()=>import("./admin.referrals-wlRGFSCI.js"),__vite__mapDeps([266,38,267])),b3=U()({head:()=>({meta:[{title:"Referral Program â Ross & Associates Tax Office"},{name:"description",content:"Founder oversight for the Tax Office referral program: qualified referrals, tier rates, pending and paid rewards, program liability and fraud review."}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id);if(!(e??[]).some(n=>n.role==="founder"))throw be({to:"/admin"})},component:D(_3,"component")}),w3=()=>I(()=>import("./admin.search-6hPQ0Cqv.js"),__vite__mapDeps([268,62,15,249,250])),S3=U()({head:()=>({meta:[{title:"Tax Office Record Search â Ross & Associates Tax Office"}]}),component:D(w3,"component")}),R3=()=>I(()=>import("./admin.security-BxECKRaO.js"),__vite__mapDeps([269,270,173,210,38,12,13,14,15,62,64,224,52,18,58,106,21,229,65,66,67,68,69,70,271,150,228,226,102,103,104,214,272,250,88,57])),E3=U()({head:()=>({meta:[{title:"Security Center â Ross & Associates Administration"},{name:"description",content:"Enterprise account security: authenticator enrollment, recovery codes, trusted devices, session control and security audit history."},{property:"og:title",content:"Executive Security Center â Ross & Associates Tax Office"},{property:"og:description",content:"Protected account-security controls for authorized Tax Office leadership."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(R3,"component")}),T3=()=>I(()=>import("./admin.security-config-p7bsjSoM.js"),__vite__mapDeps([273,38,12,13,14,15,102,62,64,103,104,274,174,8,21])),A3=U()({head:()=>({meta:[{title:"Security Configuration â Ross & Associates Tax Office"},{name:"description",content:"Founder-only protected screen for Tax Office security alert configuration. Requires password confirmation and every view is recorded."}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id);if(!(e??[]).some(n=>n.role==="founder"))throw be({to:"/admin"})},component:D(T3,"component")}),x3=()=>I(()=>import("./admin.staff-dashboard-preview-DQK1qc-R.js"),__vite__mapDeps([275,173,38,276,12,13,14,15,5,6,3,4,277,226,67,278,137,21,43,106,29,159,160,279,280,281,84,145,282,174])),O3=U()({head:()=>({meta:[{title:"Staff Dashboard Preview â Ross & Associates Tax Office"},{name:"description",content:"Founder-only preview of the intended Tax Office staff workspace and timecard."},{property:"og:title",content:"Staff Dashboard Preview â Ross & Associates Tax Office"},{property:"og:description",content:"Founder-only preview of the intended staff workspace."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});if(!((await _e.from("user_roles").select("role").eq("user_id",t.user.id)).data??[]).some(n=>n.role==="founder"))throw be({to:"/admin"})},component:D(x3,"component")}),k3=()=>I(()=>import("./admin.staff-entry-preview-DZ_iFEUZ.js"),__vite__mapDeps([283,225,66,67,13,149,150,226,69,15,136,12,14,62,64,5,6,3,4,102,103,104,53,132,21,137,106,29,7,45,33])),C3=U()({head:()=>({meta:[{title:"Staff Entry Preview â Ross & Associates Tax Office"},{name:"description",content:"Founder-only read-only preview of the Tax Office staff access and onboarding experience."},{property:"og:title",content:"Staff Entry Preview â Ross & Associates Tax Office"},{property:"og:description",content:"Private owner review of Tax Office staff access screens."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});if(!((await _e.from("user_roles").select("role").eq("user_id",t.user.id)).data??[]).some(n=>n.role==="founder"))throw be({to:"/admin"})},component:D(k3,"component")}),P3=()=>I(()=>import("./admin.staff-journey-review-CWADRMiS.js"),__vite__mapDeps([284,173,38,136,12,13,14,15,62,64,5,6,3,4,102,103,104,53,132,21,137,106,29,7,279,280,281,84,145,43,225,66,67,149,150,226,69,282,174,45,179])),$3=U()({head:()=>({meta:[{title:"Owner Staff Journey Review â Ross & Associates Tax Office"},{name:"description",content:"Owner-controlled review of the Tax Office staff invitation, onboarding, and timecard journey."},{property:"og:title",content:"Owner Staff Journey Review â Ross & Associates Tax Office"},{property:"og:description",content:"Private owner review of the complete Tax Office staff journey."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});if(!((await _e.from("user_roles").select("role").eq("user_id",t.user.id)).data??[]).some(n=>n.role==="founder"))throw be({to:"/admin"})},component:D(P3,"component")}),D3=()=>I(()=>import("./admin.staff-program-BwT6nTW1.js"),__vite__mapDeps([285,173,210,38,12,13,14,15,21,33])),I3=U()({head:()=>({meta:[{title:"Staff Program Controls â Ross & Associates Tax Office"},{name:"description",content:"Private review of staff program, compensation, and qualification controls."},{property:"og:title",content:"Staff Program Controls â Ross & Associates Tax Office"},{property:"og:description",content:"Private Tax Office staff program controls."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});if(!((await _e.from("user_roles").select("role").eq("user_id",t.user.id)).data??[]).some(n=>n.role==="founder"||n.role==="admin"))throw be({to:"/portal"})},component:D(D3,"component")}),L3=()=>I(()=>import("./admin.tax-research-p4nXvQ1w.js"),__vite__mapDeps([286,287,173,38,288,8,21,203])),N3=U()({head:()=>({meta:[{title:"Ross & Associates Research and Compliance Assistant â Ross & Associates Tax Office"},{name:"description",content:"Internal research workspace with source and access governance."},{property:"og:title",content:"Ross & Associates Research and Compliance Assistant â Ross & Associates Tax Office"},{property:"og:description",content:"Internal research workspace with source and access governance."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(L3,"component")}),j3=()=>I(()=>import("./admin.tax-research-access-C5IMeI6V.js"),__vite__mapDeps([289,173,210,38,12,13,14,15,62,288,21])),Gb="Research and Compliance Assistant Access â Ross & Associates Tax Office",
63Kb="Grant, suspend, deny or revoke staff access to the Ross & Associates Research and Compliance Assistant.",M3=U()({head:()=>({meta:[{title:Gb},{name:"description",content:Kb},{property:"og:title",content:Gb},{property:"og:description",content:Kb},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(j3,"component")}),U3=()=>I(()=>import("./admin.tiers-C90Bh8Yl.js"),__vite__mapDeps([290,38,12,13,14,15,174,216])),B3=U()({head:()=>({meta:[{title:"Commission Tiers | Ross & Associates Tax Office"},{name:"description",content:"Authorized commission tier policy review for Ross & Associates Tax Office."},{property:"og:title",content:"Commission Tiers | Ross & Associates Tax Office"},{property:"og:description",content:"Authorized commission tier policy review for Ross & Associates Tax Office."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(U3,"component")}),z3=()=>I(()=>import("./admin.time-attendance-DyIX1G39.js"),__vite__mapDeps([291,173,210,38,279,280,12,13,14,15,3,4,281,6,84,21,145,43,292,282,174,62,64,227,66,67,149,228,226,150,68,10,70,272,214,17,293,57,22,65,69,63,233,294,26,33,106])),q3=U()({head:()=>({meta:[{title:"ROSS & ASSOCIATES TAX OFFICE ADMINISTRATION REPORT"},{name:"description",content:"Founder and administrator review of verified staff timecards."},{property:"og:title",content:"ROSS & ASSOCIATES TAX OFFICE ADMINISTRATION REPORT"},{property:"og:description",content:"Founder and administrator review of verified staff timecards."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const n=((await _e.from("user_roles").select("role").eq("user_id",t.user.id)).data??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(z3,"component")}),H3=()=>I(()=>import("./admin.timecard-registry-Cr0QCHB_.js"),__vite__mapDeps([295,173,38,64,12,13,14,15,227,66,67,149,228,226,150,68,10,70,292,281,280,282,174,62,272,214,17,293,57,22,65,69,63,21,233])),V3=U()({validateSearch:t=>Yu({memberId:ys().uuid().optional().catch(void 0),from:ys().regex(/^\d{4}-\d{2}-\d{2}$/).optional().catch(void 0),to:ys().regex(/^\d{4}-\d{2}-\d{2}$/).optional().catch(void 0)}).parse(t),head:()=>({meta:[{title:"ROSS & ASSOCIATES TAX OFFICE ADMINISTRATION REPORT"},{name:"description",content:"Report-only timecard and owner approval registry for any worker and period."},{property:"og:title",content:"ROSS & ASSOCIATES TAX OFFICE ADMINISTRATION REPORT"},{property:"og:description",content:"Report-only timecard and owner approval registry for any worker and period."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const n=((await _e.from("user_roles").select("role").eq("user_id",t.user.id)).data??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(H3,"component")}),F3=()=>I(()=>import("./admin.training-COOdN1f1.js"),[]),G3=U()({head:()=>({meta:[{title:"Training â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(F3,"component")}),K3=()=>I(()=>import("./admin.users-9UgDbnzs.js"),__vite__mapDeps([296,280,173,210,38,220,174,12,13,14,15,16,8,164,132,22,72,20,239,208])),Y3=U()({head:()=>({meta:[{title:"User Management â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(K3,"component")}),W3=()=>I(()=>import("./admin.vault-DNP5MDjR.js"),__vite__mapDeps([297,38,274,174,206,12,13,14,15,29])),Z3=U()({head:()=>({meta:[{title:"Founder Vault â Ross & Associates Tax Office"},{name:"description",content:"Private Tax Office archive: document, brand and operational history retained for c
63ontinuity and audit. Sensitive identifiers are masked."}]}),component:D(W3,"component")}),J3=()=>I(()=>import("./admin.w4-video-pilot-0AryKVy2.js"),__vite__mapDeps([298,12,13,14,15,218,4])),Q3=U()({head:()=>({meta:[{title:"W-4 Lesson Video Pilot (Preview) â Ross & Associates Tax Office"},{name:"description",content:"Internal draft of the 2026 Form W-4 lesson pilot."},{property:"og:title",content:"W-4 Lesson Video Pilot (Preview) â Ross & Associates Tax Office"},{property:"og:description",content:"Internal draft of the 2026 Form W-4 lesson pilot."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(J3,"component")}),X3=()=>I(()=>import("./admin.workforce-E-J3mU0r.js"),[]),eM=U()({component:D(X3,"component")}),tM=()=>I(()=>import("./portal.index-BXbigdKP.js"),__vite__mapDeps([299,12,13,14,15,300,169,84,19,72,29,167,202,145,75,203,104,204,89,165,151,166,111,21])),nM=U()({head:()=>({meta:[{title:"Dashboard â Client Portal"}]}),component:D(tM,"component")}),rM=()=>I(()=>import("./portal.academy-DgBvLqgI.js"),__vite__mapDeps([301,218,27,25,21,34,54,42,29,89,207,8])),aM=U()({head:()=>({meta:[{title:"Tax Academy â Ross & Associates"}]}),component:D(rM,"component")}),sM=()=>I(()=>import("./portal.appointments-bzYpr6ND.js"),__vite__mapDeps([302,12,13,14,15,62,64,216])),iM=U()({head:()=>({meta:[{title:"Appointments â Client Portal"}]}),component:D(sM,"component")}),oM=()=>I(()=>import("./portal.billing-DCxDk3Ky.js"),__vite__mapDeps([303,12,13,14,15,257,174,38,24])),cM=U()({component:D(oM,"component")}),lM=()=>I(()=>import("./portal.business-vault-B3uZYHya.js"),__vite__mapDeps([304,12,13,14,15,62,227,66,67,149,228,226,150,68,10,70,44,305,30,34,21,165,306,216,89,88,239])),uM=U()({head:()=>({meta:[{title:"Business Vault â Client Portal"}]}),component:D(lM,"component")}),dM=()=>I(()=>import("./portal.case-checklist-Df1n_H3T.js"),__vite__mapDeps([307,173,210,38,12,13,14,15,62,64,211,18,19,89,8])),Yb="My Tax Checklist â Ross & Associates Tax Office",Wb="See exactly what Ross & Associates Tax Office needs from you, why it is needed, upload documents securely, and follow your case status.",fM=U()({head:()=>({meta:[{title:Yb},{name:"description",content:Wb},{property:"og:title",content:Yb},{property:"og:description",content:Wb},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:D(dM,"component")}),hM=()=>I(()=>import("./portal.checklist-BXr6VVvg.js"),__vite__mapDeps([308,27,18,242,89,29])),pM=U()({head:()=>({meta:[{title:"Document Checklist â Client Portal"}]}),component:D(hM,"component")}),mM=()=>I(()=>import("./portal.document-center-_aAG18_k.js"),__vite__mapDeps([309,12,13,14,15,62,218,34,21,27,161,159,49,261,88])),gM=U()({head:()=>({meta:[{title:"Document Center â Ross & Associates"}]}),component:D(mM,"component")}),yM=()=>I(()=>import("./portal.documents-Da-3QDEm.js"),__vite__mapDeps([310,12,13,14,15,89,239])),vM=U()({head:()=>({meta:[{title:"Documents â Client Portal"}]}),component:D(yM,"component")}),_M=()=>I(()=>import("./portal.irs-letter-Dbbx_SWs.js"),__vite__mapDeps([311,165,164,17,89,19,18,72,137,29])),bM=U()({head:()=>({meta:[{title:"IRS Letter Assistant â Client Portal"}]}),component:D(_M,"component")}),wM=()=>I(()=>import("./portal.messages-DCoh3-Um.js"),__vite__mapDeps([312,12,13,14,15,62,75])),SM=U()({head:()=>({meta:[{title:"Messages â Client Portal"}]}),component:D(wM,"component")}),RM=()=>I(()=>import("./portal.notifications-Bs43188Y.js"),__vite__mapDeps([313,246,18,166,145,32,204,165,151,163,29,19])),EM=U()({head:()=>({meta:[{title:"Notifications â Client Portal"}]}),component:D(RM,"component")}),TM=()=>I(()=>import("./portal.onboarding-r57AXUYW.js"),__vite__mapDeps([314,38,12,13,14,15,62,64,65,66,67,68,69,70,227,149,228,226,150,10,255,34,44,89,21,75,18,242,239,17,53,29])),AM=U()({head:()=>({meta:[{title:"Tax Organizer â Client Onboarding"}]}),component:D(TM,"component")}),xM=()=>I(()=>import("./portal.profile-ChwJfWI_.js"),__vite__mapDeps([315,12,13,14,15,62,64,154,70,250])),OM=U()({head:()=>({meta:[{title:"Profile â Client Portal"}]}),component:D(xM,"component")}),kM=()=>I(()=>import("./portal.quick-upload-NvQQI6Cy.js"),__vite__mapDeps([316,165,317,89,17,18,29])),CM=U()({head:()=>({meta:[{title:"Quick Upload â Client Portal"}]}),component:D(kM,"component")}),PM=()=>I(()=>import("./portal.referrals-BG1SRp0c.js"),__vite__mapDeps([318,38,267])),$M=U()({head:()=>({meta:[{title:"Refer a Friend â Ross & Associates Tax Office"},{name:"description",content:"Your personal Ross & Associates Tax Office referral link, how a referral qualifies, your referral count and rewards progress."}]}),component:D(PM,"component")}),DM=()=>I(()=>import("./portal.refund-tracker-Bva3kULC.js"),__vite__mapDeps([319,33,27,44,145,18,29])),IM=U()({head:()=>({meta:[{title:"Refund Tracker â Client Portal"}]}),component:D(DM,"component")}),LM=()=>I(()=>import("./portal.required-documents-OKd0rjVZ.js"),__vite__mapDeps([320,12,13,14,15,118,17,230,89,18,72,19])),NM=U()({component:D(LM,"component")}),jM=12,MM=128;function Xz(t){return!t.currentPassword||!t.newPassword||!t.confirmPassword?"required":t.newPassword===t.currentPassword?"same_as_current":t.newPassword!==t.confirmPassword?"mismatch":t.newPassword.length>=jM&&t.newPassword.length<=MM&&/[a-z]/.test(t.newPassword)&&/[A-Z]/.test(t.newPassword)&&/\d/.test(t.newPassword)&&/[^A-Za-z0-9]/.test(t.newPassword)?null:"weak"}function eq(t){return t==="required"?"Complete all three password fields.":t==="same_as_current"?"Your new password must differ from your current password.":t==="mismatch"?"The new password and confirmation do n
63ot match.":"Use 12â128 characters with uppercase, lowercase, a number, and a symbol."}function tq(t){return t.includes("founder")?"Founder / Owner":t.some(e=>e==="admin"||e==="office_manager")?"Administrator":t.includes("customer_service")?"Customer Service":t.some(e=>["preparer","verified_preparer","staff","workforce","w2_employee","contractor_1099","office_partner","trainee"].includes(e))?"Tax Office Staff / Employee":"Taxpayer / Client"}function nq(t){return t.some(e=>e==="founder"||e==="admin"||e==="office_manager")}function UM(t){return t.some(e=>e==="founder"||e==="admin"||e==="office_manager")?"/admin/security":t.includes("customer_service")?"/service/security":t.some(e=>["preparer","verified_preparer","staff","workforce","w2_employee","contractor_1099","office_partner","trainee"].includes(e))?"/workforce/security":"/portal/security"}const BM=()=>I(()=>import("./portal.security-hYfKzejb.js"),__vite__mapDeps([321,270,173,210,38,12,13,14,15,62,64,224,52,18,58,106,21,229,65,66,67,68,69,70,271,150,228,226,102,103,104,214,272,250,88,57])),zM=U()({head:()=>({meta:[{title:"Security Center â Ross & Associates Client Portal"},{name:"description",content:"Manage multi-factor authentication, recovery codes, trusted devices, sessions and login history for your Ross & Associates client account."},{property:"og:title",content:"Client Security Center â Ross & Associates Tax Office"},{property:"og:description",content:"Protected account-security controls for Tax Office clients."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/login"});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(o=>o.role),s=UM(n);if(s!=="/portal/security")throw be({to:s})},component:D(BM,"component")}),qM=()=>I(()=>import("./portal.support-aB1qrDHJ.js"),__vite__mapDeps([322,12,13,14,15,62,63,227,66,67,149,228,226,150,68,10,70,271,69,224,39,216,7])),HM=U()({head:()=>({meta:[{title:"Support Center â Ross & Associates"}]}),component:D(qM,"component")}),VM=()=>I(()=>import("./portal.tax-calendar-Cx2avb1f.js"),__vite__mapDeps([323,300,169,84,19,72,29])),FM=U()({head:()=>({meta:[{title:"Tax Calendar â Client Portal"}]}),component:D(VM,"component")}),GM=()=>I(()=>import("./portal.tax-pipeline-BC0QJU2-.js"),__vite__mapDeps([324,163,29,27,72,75,18,44])),KM=U()({head:()=>({meta:[{title:"My Tax Return â Ross & Associates Tax Office"}]}),component:D(GM,"component")}),YM=()=>I(()=>import("./portal.tax-readiness-ZHcQFJPB.js"),__vite__mapDeps([325,173,38,12,13,14,15,265,263,32,21,84,29])),WM=U()({head:()=>({meta:[{title:"My Tax Readiness â Ross & Associates Tax Office"},{name:"description",content:"Your personal tax-year profile, checklist, and next steps."},{name:"robots",content:"noindex"}]}),component:D(YM,"component")}),ZM=()=>I(()=>import("./portal.vault--w6rqLNm.js"),__vite__mapDeps([326,111,10,169,145,18,165,305,21,29])),JM=U()({head:()=>({meta:[{title:"Tax Vault â Client Portal"}]}),component:D(ZM,"component")}),QM=()=>I(()=>import("./portal.withholding-estimator-DS2ZZDuf.js"),__vite__mapDeps([327,12,13,14,15,3,4,218,38,328,8,53,216,239,152,7,22,21])),XM=U()({head:()=>({meta:[{title:"Check My Paycheck Withholding (2026) â Ross & Associates Tax Office"},{name:"description",content:"Private 2026 federal income tax withholding estimate inside the secure portal."},{property:"og:title",content:"Check My Paycheck Withholding â Ross & Associates Tax Office"},{property:"og:description",content:"Private 2026 withholding estimate."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(QM,"component")}),eU=()=>I(()=>import("./service.index-BxFyx3io.js"),__vite__mapDeps([329,223,15,12,13,14,206,29,330,34,39,162,118])),tU=U()({head:()=>({meta:[{title:"Support Desk â Customer Service"}]}),component:D(eU,"component")}),nU=()=>I(()=>import("./service.appointments-CS1mAoPE.js"),__vite__mapDeps([331,223,15,224,14,330])),rU=U()({head:()=>({meta:[{title:"Scheduling & Status â Customer Service"}]}),component:D(nU,"component")}),aU=()=>I(()=>import("./service.resources-uFJA9Woa.js"),__vite__mapDeps([332,223,15])),sU=U()({head:()=>
63({meta:[{title:"Approved Scripts & Templates â Customer Service"}]}),component:D(aU,"component")}),iU=()=>I(()=>import("./service.security-B5ucaJzR.js"),__vite__mapDeps([333,270,173,210,38,12,13,14,15,62,64,224,52,18,58,106,21,229,65,66,67,68,69,70,271,150,228,226,102,103,104,214,272,250,88,57])),oU=U()({head:()=>({meta:[{title:"Security Center â Ross & Associates Customer Service"},{name:"description",content:"Manage account security for authorized Ross & Associates Tax Office Customer Service personnel."},{property:"og:title",content:"Customer Service Security Center â Ross & Associates Tax Office"},{property:"og:description",content:"Protected account-security controls for authorized Customer Service personnel."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(iU,"component")}),cU=()=>I(()=>import("./service.tax-research-Da1z2aKd.js"),__vite__mapDeps([334,287,173,38,288,8,21,203])),lU=U()({head:()=>({meta:[{title:"Ross & Associates Research and Compliance Assistant (Procedural) â Ross & Associates Tax Office"},{name:"description",content:"Internal procedural support workspace for customer service staff."},{property:"og:title",content:"Ross & Associates Research and Compliance Assistant (Procedural) â Ross & Associates Tax Office"},{property:"og:description",content:"Internal procedural support workspace for customer service staff."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(cU,"component")}),uU=()=>I(()=>import("./service.taxpayers-DPhaOzpd.js"),__vite__mapDeps([335,223,15,224,14,62,330])),dU=U()({head:()=>({meta:[{title:"My Assigned Taxpayers â Customer Service"}]}),component:D(uU,"component")}),fU=()=>I(()=>import("./service.tickets-D5CXBmdI.js"),__vite__mapDeps([336,223,15,224,14,330])),hU=U()({head:()=>({meta:[{title:"My Support Cases â Customer Service"}]}),component:D(fU,"component")}),pU=()=>I(()=>import("./workforce.index-MYTFX1cH.js"),__vite__mapDeps([337,173,38,12,13,14,15,218,276,5,6,3,4,277,226,67,278,137,21,43,106,29,159,160,282,174,338,339])),mU=U()({head:()=>({meta:[{title:"Staff Workspace â Ross & Associates Tax Office"},{name:"description",content:"Private Tax Office staff workspace: onboarding status, assigned tools and your own time records."},{property:"og:title",content:"Staff Workspace â Ross & Associates Tax Office"},{property:"og:description",content:"Private Tax Office staff workspace for authorized team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(pU,"component")}),gU=()=>I(()=>import("./workforce.availability-BohV2kqc.js"),__vite__mapDeps([340,173,210,38,12,13,14,15,62,64,245,66,67,68,341,174,339,278,58,162])),yU=U()({head:()=>({meta:[{title:"Availability & Coverage â Ross & Associates Tax Office"},{name:"description",content:"Self-selected coverage commitments for Tax Office commission professionals."},{property:"og:title",content:"Availability & Coverage â Ross & Associates Tax Office"},{property:"og:description",content:"Coverage commitments for authorized Tax Office professionals."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(gU,"component")}),vU=()=>I(()=>import("./workforce.certificates-CZtiJk63.js"),__vite__mapDeps([342,173,38,12,13,14,15,213,174,21,42,104,88,57])),_U=U()({head:()=>({meta:[{title:"My Certificates â Ross & Associates Tax Office"},{name:"description",content:"Your privately issued Tax Office recognition certificates."},{property:"og:title",content:"My Certificates â Ross & Associates Tax Office"},{property:"og:description",content:"Private issued recognition records for Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(vU,"component")}),bU=()=>I(()=>import("./workforce.credentials-PgvlWlbk.js"),__vite__mapDeps([343,173,38,12,13,14,15,174,278,21,205,72,18,89,104])),wU=U()({head:()=>({meta:[{title:"Credentials & Signed Documents â Ross & Associates Tax Office"},{name:"description",content:"Your credential and signed document records, review status and upload history."},{property:"og:title",content:"Credentials & Signed Documents â Ross & Associates Tax Office"},{property:"og:description",content:"Private credential records for authorized Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(bU,"component")}),SU=()=>I(()=>import("./workforce.demo-lab-CDlDP3FJ.js"),__vite__mapDeps([344,345,21])),RU=U()({head:()=>({meta:[{title:"Tax Demo Lab â Internal"}]}),component:D(SU,"component")}),EU=()=>I(()=>import("./workforce.desk-C7J-Fmxv.js"),__vite__mapDeps([346,173,210,38,12,13,14,15,62,64,245,66,67,68,63,339,347,277,226,278,17,317,239,8,45])),TU=U()({head:()=>({meta:[{title:"My Desk â Ross & Associates Tax Office"},{name:"description",content:"Your private Tax Office staff profile, directory visibility and assigned classification."},{property:"og:title",content:"My Desk â Ross & Associates Tax Office"},{property:"og:description",content:"Private staff profile for authorized Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(EU,"component")}),AU=()=>I(()=>import("./workforce.directory-BTba76a0.js"),__vite__mapDeps([348,173,38,339,278,34])),xU=U()({head:()=>({meta:[{title:"Staff Directory â Ross & Associates Tax Office"},{name:"description",content:"Internal directory of Tax Office team members who chose to be listed."},{property:"og:title",content:"Staff Directory â Ross & Associates Tax Office"},{property:"og:description",content:"Internal Tax Office staff directory for authorized team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(AU,"component")}),OU=()=>I(()=>import("./workforce.documents-BdQlXWcD.js"),__vite__mapDeps([349,173,210,12,13,14,15,89,8])),kU=U()({head:()=>({meta:[{title:"Employment / Engagement Documents â Ross & Associates Tax Office"},{name:"description",content:"Private place for your own W-9 or W-4, engagement or employment letter, and timecard reports."},{property:"og:title",content:"Employment / Engagement Documents â Ross & Associates Tax Office"},{property:"og:description",content:"Private staff documents for the Ross & Associates Tax Office."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(OU,"component")}),CU=()=>I(()=>import("./workforce.goals-DqZFgA0J.js"),__vite__mapDeps([350,173,210,38,12,13,14,15,62,64,341,174,48,42])),P
63U=U()({head:()=>({meta:[{title:"My Goals & Performance â Ross & Associates Tax Office"},{name:"description",content:"Your seasonal goal, standing and the Tax Office growth program."},{property:"og:title",content:"My Goals & Performance â Ross & Associates Tax Office"},{property:"og:description",content:"Seasonal goals and growth program for authorized Tax Office professionals."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(CU,"component")}),$U=()=>I(()=>import("./workforce.help-B6BbzCNb.js"),__vite__mapDeps([351,210,38,12,13,14,15,64,63,341,174,21,39])),DU=U()({head:()=>({meta:[{title:"Ask Zyiion â Ross & Associates Tax Office"},{name:"description",content:"Staff-only guidance on navigation, workflows, training and escalation."},{property:"og:title",content:"Ask Zyiion â Ross & Associates Tax Office"},{property:"og:description",content:"Staff-only guidance for authorized Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D($U,"component")}),IU=()=>I(()=>import("./workforce.integrations-DBjulSqq.js"),__vite__mapDeps([352,173,38,341,174,58])),LU=U()({head:()=>({meta:[{title:"Assigned Tools & Access Status â Ross & Associates Tax Office"},{name:"description",content:"Readiness status for assigned Tax Office tools and workspace access."},{property:"og:title",content:"Assigned Tools & Access Status â Ross & Associates Tax Office"},{property:"og:description",content:"Tool readiness status for authorized Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(IU,"component")}),NU=()=>I(()=>import("./workforce.license-C2q3HllI.js"),__vite__mapDeps([353,173,38,341,174,8,43,6,19,21])),jU=U()({head:()=>({meta:[{title:"Staff Software License â Ross & Associates Tax Office"},{name:"description",content:"Private staff license options, included tools and activation requirements."},{property:"og:title",content:"Staff Software License â Ross & Associates Tax Office"},{property:"og:description",content:"Private staff license information for authorized Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(NU,"component")}),MU=()=>I(()=>import("./workforce.mobile-app-DpYqZS4p.js"),__vite__mapDeps([354,345,21,35,88,24,207,317])),UU=U()({head:()=>({meta:[{title:"TaxesToGo Mobile App â Internal"}]}),component:D(MU,"component")}),BU=()=>I(()=>import("./workforce.onboarding-BIfl7fgD.js"),__vite__mapDeps([355,173,210,38,12,13,14,15,347,277,226,67,278,339,17,317,239,62,64,245,66,68,338,18,45,21,33,22,31,6])),zU=U()({head:()=>({meta:[{title:"Staff Onboarding â Ross & Associates Tax Office"},{name:"description",content:"Secure contact confirmation and onboarding status for invited Tax Office team members."},{property:"og:title",content:"Staff Onboarding â Ross & Associates Tax Office"},{property:"og:description",content:"Secure onboarding for invited Ross & Associates Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:D(BU,"component")}),qU=()=>I(()=>import("./workforce.payouts-BvHFu6V8.js"),__vite__mapDeps([356,173,38,12,13,14,15,341,174,57,21])),HU=U()({head:()=>({meta:[{title:"Compensation & Payouts â Ross & Associates Tax Office"},{name:"description",content:"Your compensation ledger, statement detail and dispute history."},{property:"og:title",content:"Compensation & Payouts â Ross & Associates Tax Office"},{property:"og:description",content:"Private compensation records for authorized Tax Office professionals."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(qU,"component")}),VU=()=>I(()=>import("./workforce.protax-DU1ygpn2.js"),__vite__mapDeps([357,345,21,24,306])),FU=U()({head:()=>({meta:[{title:"R&A Pro-Tax Software Solutions â Internal"}]}),component:D(VU,"component")}),GU=()=>I(()=>import("./workforce.readiness-queue-D3-Gz7LT.js"),__vite__mapDeps([358,173,38,12,13,14,15,265,263])),KU=U()({head:()=>({meta:[{title:"Readiness Review Queue â Staff Portal"},{name:"robots",content:"noindex"}
63]}),component:D(GU,"component")}),YU=()=>I(()=>import("./workforce.resources-D7UTiqiT.js"),__vite__mapDeps([359,345,21])),WU=U()({head:()=>({meta:[{title:"Internal Resources Hub â Workforce"}]}),component:D(YU,"component")}),ZU=()=>I(()=>import("./workforce.security-WnOFZdHG.js"),__vite__mapDeps([360,270,173,210,38,12,13,14,15,62,64,224,52,18,58,106,21,229,65,66,67,68,69,70,271,150,228,226,102,103,104,214,272,250,88,57])),JU=U()({head:()=>({meta:[{title:"Security Center â Ross & Associates Staff"},{name:"description",content:"Manage account security for authorized Ross & Associates Tax Office personnel."},{property:"og:title",content:"Staff Security Center â Ross & Associates Tax Office"},{property:"og:description",content:"Protected account-security controls for authorized Tax Office personnel."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(ZU,"component")}),QU=()=>I(()=>import("./workforce.tax-research-D1eRPTpg.js"),__vite__mapDeps([361,287,173,38,288,8,21,203])),XU=U()({head:()=>({meta:[{title:"Ross & Associates Research and Compliance Assistant â Ross & Associates Tax Office"},{name:"description",content:"Internal staff research and preparation support workspace."},{property:"og:title",content:"Ross & Associates Research and Compliance Assistant â Ross & Associates Tax Office"},{property:"og:description",content:"Internal staff research and preparation support workspace."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(QU,"component")}),e5=()=>I(()=>import("./workforce.time-4GXp_AdN.js"),__vite__mapDeps([362,173,210,38,12,13,14,15,62,279,280,3,4,281,6,84,21,145,43,294,282,174,363,168,106,152])),t5=U()({head:()=>({meta:[{title:"ROSS & ASSOCIATES TAX OFFICE ADMINISTRATION REPORT"},{name:"description",content:"Private staff time clock, timecard, timesheets and correction history."},{property:"og:title",content:"ROSS & ASSOCIATES TAX OFFICE ADMINISTRATION REPORT"},{property:"og:description",content:"Private staff time clock, timecard, timesheets and correction history."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(e5,"component")}),n5=()=>I(()=>import("./workforce.timecard-registry-CHplMDHI.js"),__vite__mapDeps([364,292,173,38,281,280,282,174,12,13,14,15,62,64,227,66,67,149,228,226,150,68,10,70,272,214,17,293,57,22,65,69,63,21,233])),r5=U()({validateSearch:t=>Yu({from:ys().regex(/^\d{4}-\d{2}-\d{2}$/).optional().catch(void 0),to:ys().regex(/^\d{4}-\d{2}-\d{2}$/).optional().catch(void 0)}).parse(t),head:()=>({meta:[{title:"My Timecard Reports â Ross & Associates Tax Office"},{name:"description",content:"Private, printable timecard and owner approval registry for your own recorded periods."},{property:"og:title",content:"My Timecard Reports â Ross & Associates Tax Office"},{property:"og:description",content:"Private, printable timecard and owner approval registry for your own recorded periods."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),component:D(n5,"component")}),a5=()=>I(()=>import("./workforce.training-0rmjGKt7.js"),__vite__mapDeps([365,218,58,21,24])),s5=U()({head:()=>({meta:[{title:"Training & Academy â Ross & Associates Tax Office"},{name:"description",content:"Assigned learning paths, progress and certification records for Tax Office staff."},{property:"og:title",content:"Training & Academy â Ross & Associates Tax Office"},{property:"og:description",content:"Assigned training for authorized Tax Office team members."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex,nofollow"}]}),component:D(a5,"component")}),i5=()=>I(()=>import("./workforce.training-center-BxPv3BBw.js"),__vite__mapDeps([366,345,21])),o5=U()({head:()=>({meta:[{title:"Tax Training Center â Internal"}]}),component:D(i5,"component")}),c5=()=>I(()=>import("./workforce.withholding-reviews-BHdlL9V0.js"),__vite__mapDeps([367,173,38,12,13,14,15,328])),l5=U()({head:()=>({meta:[{title:"Withholding Review Queue â Ross & Associates Tax Office"},{name:"description",content:"Staff queue for secure 2026 withholding review requests."},{name:"robots",content:"noindex,nofollow"}]}),component:D(c5,"component")}),u5=()=>I(()=>import("./admin.clients._userId-CYcpCATC.js"),__vite__mapDeps([368,173,210,38,220,174,222,53,137,166,145,208,34,89,261,369,151,75])),d5=U()({head:()=>({meta:[{title:"Client Profile â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id);if(!(e??[]).map(s=>s.role).some(s=>["admin","founder","office_manager","staff"].includes(s)))throw be({to:"/portal"})},component:D(u5,"component")}),f5=()=>I(()=>import("./admin.contacts._contactId-B1d8iSRu.js"),__vite__mapDeps([370,38,12,13,14,15,62,64,232,174,50,34,137,216,239,53,371,18])),h5=U()({head:()=>({meta:[{title:"Contact â Admin"}]}),component:D(f5,"component")}),p5=()=>I(()=>import("./admin.contacts.duplicates-9_jnD0cM.js"),__vite__mapDeps([372,38,173,210,174,12,13,14,15,223,224,249,250,21])),m5=U()({component:D(p5,"component")}),g5=()=>I(()=>import("./admin.settings.permissions-Do8969mC.js"),__vite__mapDeps([373,173,210,38,174,12,13,14,15,164,371])),y5=U()({head:()=>({meta:[{title:"Permission Matrix â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id);if(!(e??[]).map(s=>s.role).some(s=>["admin","founder"].includes(s)))throw be({to:"/portal"})},component:D(g5,"component")}),v5=()=>I(()=>import("./admin.workforce.index-DLNBd-o6.js"),__vite__mapDeps([374,173,38,12,13,14,15,220,174,277,226,67,278,62,34,17,208])),_5=U()({head:()=>({meta:[{title:"Workforce Management â Admin"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(v5,"component")}),b5=()=>I(()=>import("./admin.workforce._userId-CtamvA22.js"),__vite__mapDeps([375,173,210,38,220,174,12,13,14,15,338,277,226,67,278,53,132,293,42,369,164,216,34,208,363,239])),w5=U()({head:()=>({meta:[{title:"Worker Profile â Ross & Associates Tax Office"},{name:"description",content:"Private management profile for Tax Office worker identity, access, engagement, and reports."},{property:"og:title",content:"Worker Profile â Ross & Associates Tax Office"},{property:"og:description",content:"Private management profile for Tax Office worker identity, access, engagement, and reports."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex, nofollow"}]}),beforeLoad:async()=>{const{data:t}=await _e.auth.getUser();if(!t.user)throw be({to:"/staff-access",search:{portal:"administrator"}});const{data:e}=await _e.from("user_roles").select("role").eq("user_id",t.user.id),n=(e??[]).map(s=>s.role);if(!n.includes("admin")&&!n.includes("founder"))throw be({to:"/portal"})},component:D(b5,"component")}),S5=()=>I(()=>import("./portal.support._ticketId-D1ww5sqg.js"),__vite__mapDeps([376,12,13,14,15,63,224,53,90,164,7,75])),R5=U()({head:()=>({meta:[{title:"Ticket â Support Center"}]}),component:D(S5,"component")}),E5=()=>I(()=>import("./service.taxpayers._clientId-D3Y9hLgN.js"),__vite__mapDeps([37
637,223,15,224,14,12,13,63,330])),T5=U()({head:()=>({meta:[{title:"Taxpayer Support Record â Customer Service"}]}),component:D(E5,"component")}),A5=CI.update({id:"/",path:"/",getParentRoute:()=>Pe}),Rs=$I.update({id:"/_authenticated",getParentRoute:()=>Pe}),x5=II.update({id:"/about",path:"/about",getParentRoute:()=>Pe}),O5=zI.update({id:"/access",path:"/access",getParentRoute:()=>Pe}),k5=ZI.update({id:"/accessibility-and-assistance",path:"/accessibility-and-assistance",getParentRoute:()=>Pe}),C5=QI.update({id:"/appointment",path:"/appointment",getParentRoute:()=>Pe}),P5=nL.update({id:"/business-client-process",path:"/business-client-process",getParentRoute:()=>Pe}),$5=aL.update({id:"/business-promotions",path:"/business-promotions",getParentRoute:()=>Pe}),D5=cL.update({id:"/client-portal-access",path:"/client-portal-access",getParentRoute:()=>Pe}),I5=uL.update({id:"/contact",path:"/contact",getParentRoute:()=>Pe}),L5=fL.update({id:"/disclaimers",path:"/disclaimers",getParentRoute:()=>Pe}),N5=pL.update({id:"/downloadable-forms",path:"/downloadable-forms",getParentRoute:()=>Pe}),j5=vL.update({id:"/how-we-work",path:"/how-we-work",getParentRoute:()=>Pe}),M5=bL.update({id:"/intake",path:"/intake",getParentRoute:()=>Pe}),U5=EL.update({id:"/invitations-and-verification",path:"/invitations-and-verification",getParentRoute:()=>Pe}),B5=AL.update({id:"/knowledge",path:"/knowledge",getParentRoute:()=>Pe}),z5=OL.update({id:"/login",path:"/login",getParentRoute:()=>Pe}),q5=$L.update({id:"/new-client-process",path:"/new-client-process",getParentRoute:()=>Pe}),H5=IL.update({id:"/newsletter",path:"/newsletter",getParentRoute:()=>Pe}),V5=NL.update({id:"/newsletter-unsubscribe",path:"/newsletter-unsubscribe",getParentRoute:()=>Pe}),F5=BL.update({id:"/opportunities",path:"/opportunities",getParentRoute:()=>Pe}),G5=qL.update({id:"/partners",path:"/partners",getParentRoute:()=>Pe}),K5=VL.update({id:"/pricing",path:"/pricing",getParentRoute:()=>Pe}),Y5=GL.update({id:"/privacy",path:"/privacy",getParentRoute:()=>Pe}),W5=ZL.update({id:"/privacy-summary",path:"/privacy-summary",getParentRoute:()=>Pe}),Z5=eN.update({id:"/process-faq",path:"/process-faq",getParentRoute:()=>Pe}),J5=nN.update({id:"/refund-policy",path:"/refund-policy",getParentRoute:()=>Pe}),Q5=aN.update({id:"/reset-password",path:"/reset-password",getParentRoute:()=>Pe}),X5=cN.update({id:"/secure-document-handling",path:"/secure-document-handling",getParentRoute:()=>Pe}),e6=uN.update({id:"/security",path:"/security",getParentRoute:()=>Pe}),Ua=fN.update({id:"/services",path:"/services",getParentRoute:()=>Pe}),t6=pN.update({id:"/sms-terms",path:"/sms-terms",getParentRoute:()=>Pe}),n6=gN.update({id:"/staff-access",path:"/staff-access",getParentRoute:()=>Pe}),r6=bN.update({id:"/staff-onboarding",path:"/staff-onboarding",getParentRoute:()=>Pe}),a6=EN.update({id:"/support-and-security-concerns",path:"/support-and-security-concerns",getParentRoute:()=>Pe}),s6=AN.update({id:"/tax-estimator",path:"/tax-estimator",getParentRoute:()=>Pe}),Un=ON.update({id:"/tax-knowledge",path:"/tax-knowledge",getParentRoute:()=>Pe}),i6=CN.update({id:"/taxes-to-go",path:"/taxes-to-go",getParentRoute:()=>Pe}),o6=$N.update({id:"/taxpayer-resources",path:"/taxpayer-resources",getParentRoute:()=>Pe}),c6=IN.update({id:"/terms",path:"/terms",getParentRoute:()=>Pe}),l6=NN.update({id:"/unsubscribe",path:"/unsubscribe",getParentRoute:()=>Pe}),ke=UN.update({id:"/admin",path:"/admin",getParentRoute:()=>Rs}),u6=zN.update({id:"/founder-vault",path:"/founder-vault",getParentRoute:()=>Rs}),st=VN.update({id:"/portal",path:"/portal",getParentRoute:()=>Rs}),Ba=KN.update({id:"/service",path:"/service",getParentRoute:()=>Rs}),d6=WN.update({id:"/updates",path:"/updates",getParentRoute:()=>Rs}),it=QN.update({id:"/workforce",path:"/workforce",getParentRoute:()=>Rs}),f6=Aj.update({id:"/certificates/verify",path:"/certificates/verify",getParentRoute:()=>Pe}),h6=Oj.update({id:"/checkout/return",path:"/checkout/return",getParentRoute:()=>Pe}),p6=Cj.update({id:"/invitation/accept",path:"/invitation/accept",getParentRoute:()=>Pe}),m6=$j.update({id:"/",path:"/",getParentRoute:()=>Ua}),g6=Ij.update({id:"/amended",path:"/amended",getParentRoute:()=>Ua}),y6=Nj.update({id:"/back-taxes",path:"/back-taxes",getParentRoute:()=>Ua}),v6=Mj.update({id:"/business",path:"/business",getParentRoute:()=>Ua}
63),_6=Bj.update({id:"/individual",path:"/individual",getParentRoute:()=>Ua}),b6=qj.update({id:"/remote",path:"/remote",getParentRoute:()=>Ua}),w6=Vj.update({id:"/resolution",path:"/resolution",getParentRoute:()=>Ua}),S6=Gj.update({id:"/deadlines",path:"/deadlines",getParentRoute:()=>Un}),R6=Yj.update({id:"/estimated-taxes",path:"/estimated-taxes",getParentRoute:()=>Un}),E6=Zj.update({id:"/filing-guides",path:"/filing-guides",getParentRoute:()=>Un}),T6=Qj.update({id:"/filing-status",path:"/filing-status",getParentRoute:()=>Un}),A6=e4.update({id:"/irs-help",path:"/irs-help",getParentRoute:()=>Un}),x6=n4.update({id:"/payments",path:"/payments",getParentRoute:()=>Un}),O6=a4.update({id:"/refund-tracking",path:"/refund-tracking",getParentRoute:()=>Un}),k6=i4.update({id:"/resolution",path:"/resolution",getParentRoute:()=>Un}),C6=c4.update({id:"/self-employment",path:"/self-employment",getParentRoute:()=>Un}),P6=u4.update({id:"/small-business",path:"/small-business",getParentRoute:()=>Un}),$6=f4.update({id:"/w4-calculator",path:"/w4-calculator",getParentRoute:()=>Un}),D6=p4.update({id:"/",path:"/",getParentRoute:()=>ke}),I6=g4.update({id:"/automations",path:"/automations",getParentRoute:()=>ke}),L6=v4.update({id:"/case-workspace",path:"/case-workspace",getParentRoute:()=>ke}),N6=b4.update({id:"/certificates",path:"/certificates",getParentRoute:()=>ke}),j6=S4.update({id:"/changelog",path:"/changelog",getParentRoute:()=>ke}),M6=E4.update({id:"/client-education",path:"/client-education",getParentRoute:()=>ke}),wR=A4.update({id:"/clients",path:"/clients",getParentRoute:()=>ke}),U6=O4.update({id:"/communications",path:"/communications",getParentRoute:()=>ke}),cm=C4.update({id:"/contacts",path:"/contacts",getParentRoute:()=>ke}),B6=$4.update({id:"/credentials",path:"/credentials",getParentRoute:()=>ke}),z6=I4.update({id:"/document-requests",path:"/document-requests",getParentRoute:()=>ke}),q6=N4.update({id:"/email-templates",path:"/email-templates",getParentRoute:()=>ke}),H6=M4.update({id:"/external-handoff",path:"/external-handoff",getParentRoute:()=>ke}),V6=B4.update({id:"/forms",path:"/forms",getParentRoute:()=>ke}),F6=q4.update({id:"/founder-readiness",path:"/founder-readiness",getParentRoute:()=>ke}),G6=V4.update({id:"/founder-security",path:"/founder-security",getParentRoute:()=>ke}),K6=G4.update({id:"/helpdesk",path:"/helpdesk",getParentRoute:()=>ke}),Y6=Y4.update({id:"/identity-directory",path:"/identity-directory",getParentRoute:()=>ke}),W6=Z4.update({id:"/intake",path:"/intake",getParentRoute:()=>ke}),Z6=Q4.update({id:"/intake-settings",path:"/intake-settings",getParentRoute:()=>ke}),J6=e3.update({id:"/invitations",path:"/invitations",getParentRoute:()=>ke}),Q6=n3.update({id:"/lifecycle",path:"/lifecycle",getParentRoute:()=>ke}),X6=a3.update({id:"/newsletters",path:"/newsletters",getParentRoute:()=>ke}),e8=i3.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>ke}),t8=c3.update({id:"/payments",path:"/payments",getParentRoute:()=>ke}),n8=u3.update({id:"/payouts",path:"/payouts",getParentRoute:()=>ke}),r8=f3.update({id:"/pipeline",path:"/pipeline",getParentRoute:()=>ke}),a8=p3.update({id:"/public-content",path:"/public-content",getParentRoute:()=>ke}),s8=g3.update({id:"/readiness-preview",path:"/readiness-preview",getParentRoute:()=>ke}),i8=v3.update({id:"/readiness-rules",path:"/readiness-rules",getParentRoute:()=>ke}),o8=b3.update({id:"/referrals",path:"/referrals",getParentRoute:()=>ke}),c8=S3.update({id:"/search",path:"/search",getParentRoute:()=>ke}),l8=E3.update({id:"/security",path:"/security",getParentRoute:()=>ke}),u8=A3.update({id:"/security-config",path:"/security-config",getParentRoute:()=>ke}),d8=O3.update({id:"/staff-dashboard-preview",path:"/staff-dashboard-preview",getParentRoute:()=>ke}),f8=C3.update({id:"/staff-entry-preview",path:"/staff-entry-preview",getParentRoute:()=>ke}),h8=$3.update({id:"/staff-journey-review",path:"/staff-journey-review",getParentRoute:()=>ke}),p8=I3.update({id:"/staff-program",path:"/staff-program",getParentRoute:()=>ke}),m8=N3.update({id:"/tax-research",path:"/tax-research",getParentRoute:()=>ke}),g8=M3.update({id:"/tax-research-access",path:"/tax-research-access",getParentRoute:()=>ke}),y8=B3.update({id:"/tiers",path:"/tiers",getParentRoute:()=>ke}),v8=q3.update({id:"/time-attendance",path:"/time-attendance",getParentRoute:()=>ke}),_8=V3.update({id:"/timecard-registry",path:"/timecard-registry",getParentRoute:()=>ke}),b8=G3.update({id:"/training",path:"/training",getParentRoute:()=>ke}),w8=Y3.update({id:"/users",path:"/users",getParentRoute:()=>ke}),S8=Z3.update({id:"/vault",path:"/vault",getParentRoute:()=>ke}),R8=Q3.update({id:"/w4-video-pilot",path:"/w4-video-pilot",getParentRoute:()=>ke}),lm=eM.update({id:"/workforce",path:"/workforce",getParentRoute:()=>ke}),E8=nM.update({id:"/",path:"/",getParentRoute:()=>st}),T8=aM.update({id:"/academy",path:"/academy",getParentRoute:()=>st}),A8=iM.update({id:"/appointments",path:"/appointments",getParentRoute:()=>st}),x8=cM.update({id:"/billing",path:"/billing",getParentRoute:()=>st}),O8=uM.update({id:"/business-vault",path:"/business-vault",getParentRoute:()=>st}),k8=fM.update({id:"/case-checklist",path:"/case-checklist",getParentRoute:()=>st}),C8=pM.update({id:"/checklist",path:"/checklist",getParentRoute:()=>st}),P8=gM.update({id:"/document-center",path:"/document-center",getParentRoute:()=>st}),$8=vM.update({id:"/documents",path:"/documents",getParentRoute:()=>st}),D8=bM.update({id:"/irs-letter",path:"/irs-letter",getParentRoute:()=>st}),I8=SM.update({id:"/messages",path:"/messages",getParentRoute:()=>st}),L8=EM.update({id:"/notifications",path:"/notifications",getParentRoute:()=>st}),N8=AM.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>st}),j8=OM.update({id:"/profile",path:"/profile",getParentRoute:()=>st}),M8=CM.update({id:"/quick-upload",path:"/quick-upload",getParentRoute:()=>st}),U8=$M.update({id:"/referrals",path:"/referrals",getParentRoute:()=>st}),B8=IM.update({id:"/refund-tracker",path:"/refund-tracker",getParentRoute:()=>st}),z8=NM.update({id:"/required-documents",path:"/required-documents",getParentRoute:()=>st}),q8=zM.update({id:"/security",path:"/security",getParentRoute:()=>st}),SR=HM.update({id:"/support",path:"/support",getParentRoute:()=>st}),H8=FM.update({id:"/tax-calendar",path:"/tax-calendar",getParentRoute:()=>st}),V8=KM.update({id:"/tax-pipeline",path:"/tax-pipeline",getParentRoute:()=>st}),F8=WM.update({id:"/tax-readiness",path:"/tax-readiness",getParentRoute:()=>st}),G8=JM.update({id:"/vault",path:"/vault",getParentRoute:()=>st}),K8=XM.update({id:"/withholding-estimator",path:"/withholding-estimator",getParentRoute:()=>st}),Y8=tU.update({id:"/",path:"/",getParentRoute:()=>Ba}),W8=rU.update({id:"/appointments",path:"/appointments",getParentRoute:()=>Ba}),Z8=sU.update({id:"/resources",path:"/resources",getParentRoute:()=>Ba}),J8=oU.update({id:"/security",path:"/security",getParentRoute:()=>Ba}),Q8=lU.update({id:"/tax-research",path:"/tax-research",getParentRoute:()=>Ba}),RR=dU.update({id:"/taxpayers",path:"/taxpayers",getParentRoute:()=>Ba}),X8=hU.update({id:"/tickets",path:"/tickets",getParentRoute:()=>Ba}),eB=mU.update({id:"/",path:"/",getParentRoute:()=>it}),tB=yU.update({id:"/availability",path:"/availability",getParentRoute:()=>it}),nB=_U.update({id:"/certificates",path:"/certificates",getParentRoute:()=>it}),rB=wU.update({id:"/credentials",path:"/credentials",getParentRoute:()=>it}),aB=RU.update({id:"/demo-lab",path:"/demo-lab",getParentRoute:()=>it}),sB=TU.update({id:"/desk",path:"/desk",getParentRoute:()=>it}),iB=xU.update({id:"/directory",path:"/directory",getParentRoute:()=>it}),oB=kU.update({id:"/documents",path:"/documents",getParentRoute:()=>it}),cB=PU.update({id:"/goals",path:"/goals",getParentRoute:()=>it}),lB=DU.update({id:"/help",path:"/help",getParentRoute:()=>it}),uB=LU.update({id:"/integrations",path:"/integrations",getParentRoute:()=>it}),dB=jU.update({id:"/license",path:"/license",getParentRoute:()=>it}),fB=UU.update({id:"/mobile-app",path:"/mobile-app",getParentRoute:()=>it}),hB=zU.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>it}),pB=HU.update({id:"/payouts",path:"/payouts",getParentRoute:()=>it}),mB=FU.update({id:"/protax",path:"/protax",getParentRoute:()=>it}),gB=KU.update({id:"/readiness-queue",path:"/readiness-queue",getParentRoute:()=>it}),yB=WU.update({id:"/resources",path:"/resources",getParentRoute:()=>it}),vB=JU.update({id:"/security",path:"/security",getParentRoute:()=>it}),_B=XU.update({id:"/tax-research",path:"/tax-research",getParentRoute:()=>it}),bB=t5.update({id:"/time",path:"/time",getParentRoute:()=>it}),wB=r5.update({id:"/timecard-registry",path:"/timecard-registry",getParentRoute:()=>it}),SB=s5.update({id:"/training",path:"/training",getParentRoute:()=>it}),RB=o5.update({id:"/training-center",path:"/training-center",getParentRoute:()=>it}),EB=l5.update({id:"/withholding-reviews",path:"/withholding-reviews",getParentRoute:()=>it}),TB=d5.update({id:"/$userId",path:"/$userId",getParentRoute:()=>wR}),AB=h5.update({id:"/$contactId",path:"/$contactId",getParentRoute:()=>cm}),xB=m5.update({id:"/duplicates",path:"/duplicates",getParentRoute:()=>cm}),OB=y5.update({id:"/settings/permissions",path:"/settings/permissions",getParentRoute:()=>ke}),kB=_5.update({id:"/",path:"/",getParentRoute:()=>lm}),CB=w5.update({id:"/$userId",path:"/$userId",getParentRoute:()=>lm}),PB=R5.update({id:"/$ticketId",path:"/$ticketId",getParentRoute:()=>SR}),$B=T5.update({id:"/$clientId",path:"/$clientId",getParentRoute:()=>RR}),DB={AuthenticatedAdminClientsUserIdRoute:TB},IB=wR._addFileChildren(DB),LB={AuthenticatedAdminContactsContactIdRoute:AB,AuthenticatedAdminContactsDuplicatesRoute:xB},NB=cm._addFileChildren(LB),jB={AuthenticatedAdminWorkforceUserIdRoute:CB,AuthenticatedAdminWorkforceIndexRoute:kB},MB=lm._addFileChildren(jB),UB={AuthenticatedAdminAutomationsRoute:I6,AuthenticatedAdminCaseWorkspaceRoute:L6,AuthenticatedAdminCertificatesRoute:N6,AuthenticatedAdminChangelogRoute:j6,AuthenticatedAdminClientEducationRoute:M6,AuthenticatedAdminClientsRoute:IB,AuthenticatedAdminCommunicationsRoute:U6,AuthenticatedAdminContactsRoute:NB,AuthenticatedAdminCredentialsRoute:B6,AuthenticatedAdminDocumentRequestsRoute:z6,AuthenticatedAdminEmailTemplatesRoute:q6,AuthenticatedAdminExternalHandoffRoute:H6,AuthenticatedAdminFormsRoute:V6,AuthenticatedAdminFounderReadinessRoute:F6,AuthenticatedAdminFounderSecurityRoute:G6,AuthenticatedAdminHelpdeskRoute:K6,AuthenticatedAdminIdentityDirectoryRoute:Y6,AuthenticatedAdminIntakeRoute:W6,AuthenticatedAdminIntakeSettingsRoute:Z6,AuthenticatedAdminInvitationsRoute:J6,AuthenticatedAdminLifecycleRoute:Q6,AuthenticatedAdminNewslettersRoute:X6,AuthenticatedAdminOnboardingRoute:e8,AuthenticatedAdminPaymentsRoute:t8,AuthenticatedAdminPayoutsRoute:n8,AuthenticatedAdminPipelineRoute:r8,AuthenticatedAdminPublicContentRoute:a8,AuthenticatedAdminReadinessPreviewRoute:s8,AuthenticatedAdminReadinessRulesRoute:i8,AuthenticatedAdminReferralsRoute:o8,AuthenticatedAdminSearchRoute:c8,AuthenticatedAdminSecurityRoute:l8,AuthenticatedAdminSecurityConfigRoute:u8,AuthenticatedAdminStaffDashboardPreviewRoute:d8,AuthenticatedAdminStaffEntryPreviewRoute:f8,AuthenticatedAdminStaffJourneyReviewRoute:h8,AuthenticatedAdminStaffProgramRoute:p8,AuthenticatedAdminTaxResearchRoute:m8,AuthenticatedAdminTaxResearchAccessRoute:g8,AuthenticatedAdminTiersRoute:y8,AuthenticatedAdminTimeAttendanceRoute:v8,AuthenticatedAdminTimecardRegistryRoute:_8,AuthenticatedAdminTrainingRoute:b8,AuthenticatedAdminUsersRoute:w8,AuthenticatedAdminVaultRoute:S8,AuthenticatedAdminW4VideoPilotRoute:R8,AuthenticatedAdminWorkforceRoute:MB,AuthenticatedAdminIndexRoute:D6,AuthenticatedAdminSettingsPermissionsRoute:OB},BB=ke._addFileChildren(UB),zB={AuthenticatedPortalSupportTicketIdRoute:PB},qB=SR._addFileChildren(zB),HB={AuthenticatedPortalAcademyRoute:T8,AuthenticatedPortalAppointmentsRoute:A8,AuthenticatedPortalBillingRoute:x8,AuthenticatedPortalBusinessVaultRoute:O8,AuthenticatedPortalCaseChecklistRoute:k8,AuthenticatedPortalChecklistRoute:C8,AuthenticatedPortalDocumentCenterRoute:P8,AuthenticatedPortalDocumentsRoute:$8,AuthenticatedPortalIrsLetterRoute:D8,AuthenticatedPortalMessagesR
63oute:I8,AuthenticatedPortalNotificationsRoute:L8,AuthenticatedPortalOnboardingRoute:N8,AuthenticatedPortalProfileRoute:j8,AuthenticatedPortalQuickUploadRoute:M8,AuthenticatedPortalReferralsRoute:U8,AuthenticatedPortalRefundTrackerRoute:B8,AuthenticatedPortalRequiredDocumentsRoute:z8,AuthenticatedPortalSecurityRoute:q8,AuthenticatedPortalSupportRoute:qB,AuthenticatedPortalTaxCalendarRoute:H8,AuthenticatedPortalTaxPipelineRoute:V8,AuthenticatedPortalTaxReadinessRoute:F8,AuthenticatedPortalVaultRoute:G8,AuthenticatedPortalWithholdingEstimatorRoute:K8,AuthenticatedPortalIndexRoute:E8},VB=st._addFileChildren(HB),FB={AuthenticatedServiceTaxpayersClientIdRoute:$B},GB=RR._addFileChildren(FB),KB={AuthenticatedServiceAppointmentsRoute:W8,AuthenticatedServiceResourcesRoute:Z8,AuthenticatedServiceSecurityRoute:J8,AuthenticatedServiceTaxResearchRoute:Q8,AuthenticatedServiceTaxpayersRoute:GB,AuthenticatedServiceTicketsRoute:X8,AuthenticatedServiceIndexRoute:Y8},YB=Ba._addFileChildren(KB),WB={AuthenticatedWorkforceAvailabilityRoute:tB,AuthenticatedWorkforceCertificatesRoute:nB,AuthenticatedWorkforceCredentialsRoute:rB,AuthenticatedWorkforceDemoLabRoute:aB,AuthenticatedWorkforceDeskRoute:sB,AuthenticatedWorkforceDirectoryRoute:iB,AuthenticatedWorkforceDocumentsRoute:oB,AuthenticatedWorkforceGoalsRoute:cB,AuthenticatedWorkforceHelpRoute:lB,AuthenticatedWorkforceIntegrationsRoute:uB,AuthenticatedWorkforceLicenseRoute:dB,AuthenticatedWorkforceMobileAppRoute:fB,AuthenticatedWorkforceOnboardingRoute:hB,AuthenticatedWorkforcePayoutsRoute:pB,AuthenticatedWorkforceProtaxRoute:mB,AuthenticatedWorkforceReadinessQueueRoute:gB,AuthenticatedWorkforceResourcesRoute:yB,AuthenticatedWorkforceSecurityRoute:vB,AuthenticatedWorkforceTaxResearchRoute:_B,AuthenticatedWorkforceTimeRoute:bB,AuthenticatedWorkforceTimecardRegistryRoute:wB,AuthenticatedWorkforceTrainingRoute:SB,AuthenticatedWorkforceTrainingCenterRoute:RB,AuthenticatedWorkforceWithholdingReviewsRoute:EB,AuthenticatedWorkforceIndexRoute:eB},ZB=it._addFileChildren(WB),JB={AuthenticatedAdminRoute:BB,AuthenticatedFounderVaultRoute:u6,AuthenticatedPortalRoute:VB,AuthenticatedServiceRoute:YB,AuthenticatedUpdatesRoute:d6,AuthenticatedWorkforceRoute:ZB},QB=Rs._addFileChildren(JB),XB={ServicesAmendedRoute:g6,ServicesBackTaxesRoute:y6,ServicesBusinessRoute:v6,ServicesIndividualRoute:_6,ServicesRemoteRoute:b6,ServicesResolutionRoute:w6,ServicesIndexRoute:m6},ez=Ua._addFileChildren(XB),tz={TaxKnowledgeDeadlinesRoute:S6,TaxKnowledgeEstimatedTaxesRoute:R6,TaxKnowledgeFilingGuidesRoute:E6,TaxKnowledgeFilingStatusRoute:T6,TaxKnowledgeIrsHelpRoute:A6,TaxKnowledgePaymentsRoute:x6,TaxKnowledgeRefundTrackingRoute:O6,TaxKnowledgeResolutionRoute:k6,TaxKnowledgeSelfEmploymentRoute:C6,TaxKnowledgeSmallBusinessRoute:P6,TaxKnowledgeW4CalculatorRoute:$6},nz=Un._addFileChildren(tz),rz={IndexRoute:A5,AuthenticatedRoute:QB,AboutRoute:x5,AccessRoute:O5,AccessibilityAndAssistanceRoute:k5,AppointmentRoute:C5,BusinessClientProcessRoute:P5,BusinessPromotionsRoute:$5,ClientPortalAccessRoute:D5,ContactRoute:I5,DisclaimersRoute:L5,DownloadableFormsRoute:N5,HowWeWorkRoute:j5,IntakeRoute:M5,InvitationsAndVerificationRoute:U5,KnowledgeRoute:B5,LoginRoute:z5,NewClientProcessRoute:q5,NewsletterRoute:H5,NewsletterUnsubscribeRoute:V5,OpportunitiesRoute:F5,PartnersRoute:G5,PricingRoute:K5,PrivacyRoute:Y5,PrivacySummaryRoute:W5,ProcessFaqRoute:Z5,RefundPolicyRoute:J5,ResetPasswordRoute:Q5,SecureDocumentHandlingRoute:X5,SecurityRoute:e6,ServicesRoute:ez,SmsTermsRoute:t6,StaffAccessRoute:n6,StaffOnboardingRoute:r6,SupportAndSecurityConcernsRoute:a6,TaxEstimatorRoute:s6,TaxKnowledgeRoute:nz,TaxesToGoRoute:i6,TaxpayerResourcesRoute:o6,TermsRoute:c6,UnsubscribeRoute:l6,CertificatesVerifyRoute:f6,CheckoutReturnRoute:h6,InvitationAcceptRoute:p6},az=Pe._addFileChildren(rz),sz=()=>{const t=new L$;return Zk({routeTree:az,context:{queryClient:t},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function iz(){const t=await sz();let e;if(x0){const n=await x0.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,e=n.serializationAdapters,t.options.defaultSsr=n.defaultSsr}else e=[],window.__TSS_START_OPTIONS__={serializationAdapters:e};return e.push(sk),t.options.serializationAdapters&&e.push(...t.options.serializationAdapters),t.update({basepath:"",serializationAdapters:e}),t.stores.ids.get().length||await YA(t),t}var oz=iz;function cz(){return oz().finally(()=>window.$_TSR?.h())}var tp;function lz(){return tp||(tp=cz()),ae.jsx(ok,{promise:tp,children:t=>ae.jsx(Xk,{router:t})})}ue.startTransition(()=>{VT.hydrateRoot(document,ae.jsx(ue.StrictMode,{children:ae.jsx(lz,{})}))});export{NN as $,B$ as A,SD as B,M0 as C,zI as D,ZI as E,qI as F,jD as G,nL as H,Oz as I,cL as J,vL as K,zu as L,Mz as M,EL as N,xS as O,Bo as P,yI as Q,kz as R,OL as S,$L as T,NL as U,BL as V,ZL as W,eN as X,cN as Y,bN as Z,EN as _,ED as a,dn as a$,Aj as a0,Oj as a1,b4 as a2,V3 as a3,r5 as a4,d5 as a5,h5 as a6,w5 as a7,UD as a8,Ku as a9,Bz as aA,Up as aB,h$ as aC,ae as aD,gz as aE,yz as aF,Iz as aG,Wn as aH,Zt as aI,Yu as aJ,Pz as aK,Zz as aL,eq as aM,wz as aN,S$ as aO,NI as aP,$z as aQ,_z as aR,Gz as aS,qz as aT,Hz as aU,U$ as aV,ue as aW,vz as aX,pz as aY,v$ as aZ,wk as a_,pb as aa,zD as ab,Nz as ac,Lz as ad,HD as ae,Yz as af,Ez as ag,Dz as ah,jz as ai,Rz as aj,Jz as ak,Ft as al,Ln as am,
63Ur as an,Pt as ao,rR as ap,C$ as aq,jI as ar,eR as as,jp as at,$$ as au,KD as av,mz as aw,Tz as ax,bc as ay,Qz as az,xD as b,m$ as b0,Op as b1,Wz as b2,xz as b3,tq as b4,bz as b5,UM as b6,Sz as b7,fz as b8,nq as b9,hz as ba,ys as bb,Kz as bc,_e as bd,p$ as be,xp as bf,rD as bg,Az as bh,eC as bi,wS as bj,_S as bk,N$ as bl,Ut as bm,bS as bn,Xz as bo,In as bp,kD as c,DD as d,LD as e,Uz as f,zo as g,qo as h,Ho as i,Vo as j,Fo as k,Go as l,Ko as m,Yo as n,Wo as o,Zo as p,Jo as q,LI as r,vb as s,Fz as t,Nn as u,zz as v,Cz as w,Vz as x,uz as y,ce 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.