1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-DLnjh6B4.js","assets/menu-CtBqwlM3.js","assets/DallasIndex-zUah2D3F.js","assets/PropertyCard-CoV8ox8H.js","assets/card-CEWGQVNs.js","assets/chevron-left-DvtZF2Em.js","assets/chevron-right-DPm5p5_h.js","assets/pencil-CcuBa6yK.js","assets/copy-CQQAxWLn.js","assets/bed-FxE4NkCu.js","assets/bath-DiapEPYo.js","assets/square-D5FxFZq-.js","assets/circle-check-big-DivO8Ilb.js","assets/SEO-Bbxmr5Jt.js","assets/Properties-Bjiztxa5.js","assets/dialog-BuZaML7w.js","assets/label-KWPDDR6o.js","assets/textarea-DjfGRQys.js","assets/alert-BrT8bwpN.js","assets/upload-CLN6GQZ0.js","assets/types-rH0z_lOS.js","assets/ChatBot-CQxX2QNZ.js","assets/scroll-area-DQ90_rF7.js","assets/index-C1qZsUBS.js","assets/index-BdQq_4o_.js","assets/send-C6paqpX2.js","assets/Buildings-CXePYaXf.js","assets/table-CegLa5vQ.js","assets/search-D1vStUvY.js","assets/plus-AwcjcdUU.js","assets/table-2-DMIqLwHe.js","assets/external-link-bNWt3j0R.js","assets/Units-r95lWy4z.js","assets/select-B7PPgaBI.js","assets/index-BCUVi1iC.js","assets/chevron-up-BWo3mJh0.js","assets/check-DTrBkZyS.js","assets/tabs-CQgdg5k9.js","assets/index-Cw9H-0B0.js","assets/publicUrl-CnMRgv-4.js","assets/code-BxK3rKD9.js","assets/popover-mR6i_9f2.js","assets/AddLeadSourceDialog-DqlsIhvc.js","assets/switch-CxKjlYTx.js","assets/phoneValidation-SkAsD3ZR.js","assets/user-plus-C30jtlrg.js","assets/dateOnly-C7BiuyQN.js","assets/format-BFR86D_2.js","assets/en-US-DIpmK7ci.js","assets/LeasingMatrix-CQwoyagV.js","assets/index-BBn59FQU.js","assets/circle-CbBXkX83.js","assets/trash-2-PI7Dca8r.js","assets/link-DzupQMVR.js","assets/lock-NDTKEyhQ.js","assets/pause-BxZ_Y7Of.js","assets/sticky-note-DhVOoWoe.js","assets/tag-CQfaYbxv.js","assets/PropertyDetail-CZspnScS.js","assets/calendar-CHrZnkde.js","assets/isSameDay-CkUO99zS.js","assets/subDays-D0ex2dYD.js","assets/addDays-C00m2OJ9.js","assets/startOfMonth-QWkJ6QmE.js","assets/endOfMonth-BVHJEf4Z.js","assets/addMonths-CFb9Eeax.js","assets/differenceInCalendarMonths-BhdtaTHK.js","assets/carousel-DBm2DzQf.js","assets/arrow-left-QkFK1hLD.js","assets/map-pin-Dxkx2m-K.js","assets/Auth-SNfCkqi1.js","assets/SignDocument-SVzFJdwP.js","assets/TextLayer-y-qsqBHI.js","assets/tiny-invariant-CopsF_GD.js","assets/TextLayer-C7U9D9nZ.css","assets/typeof-QjJsDpFa.js","assets/index-BuKO38r3.js","assets/arrow-down-C03r2X7_.js","assets/Dashboard-BUyO7elV.js","assets/progress-BmOty5wa.js","assets/BarChart-B
1ab8ur4g.js","assets/index-Dh4i1-J3.js","assets/subMonths-C16OuH0G.js","assets/dollar-sign-MmBC_Q7J.js","assets/trending-up-Bb28DW6g.js","assets/percent-KLDdLjHg.js","assets/AskAvah-BZo4PLom.js","assets/circle-alert-Co191oxS.js","assets/calendar-clock-tQWCz4Al.js","assets/phone-D4TP_4nV.js","assets/index-k52osDgh.js","assets/download-bblq8UiJ.js","assets/formatDistanceToNow-DcFVzDcD.js","assets/constructNow-DRw_oMII.js","assets/endOfDay-B7Bn6eKT.js","assets/play-DBsa4Hn8.js","assets/SettingsAskAvah-SXkBfXrI.js","assets/SettingsLeadFields-8Xjg6sOF.js","assets/list-checks-BDUk5ctd.js","assets/grip-vertical-CAMgbrLH.js","assets/arrow-up-CP7dwYe3.js","assets/SettingsApiKeys-BmMBMTyW.js","assets/alert-dialog-BAqpajcf.js","assets/key-round-B82WxwwA.js","assets/ban-CMpnUf0g.js","assets/Admin-Z8lui_dr.js","assets/facebook-BwH-B-Un.js","assets/AdminSettings-C9k9_jtd.js","assets/message-circle-8We9mOMj.js","assets/link-2-TMhxv5GE.js","assets/shield-check-DVpOqk1t.js","assets/history-BFKdZUzE.js","assets/AdminTwilioErrors-BXNrF6F2.js","assets/useQuery-DSrPUx2P.js","assets/AdminAiStrategy-D4KdsAIl.js","assets/radio-group-BZIlXbWL.js","assets/AdminElAgent-ckBRdxiP.js","assets/AdminTemplates-BXwecT97.js","assets/square-pen-CQVIegRu.js","assets/AdminTemplateEdit-6V_mX0hS.js","assets/AdminTemplateMappings-DZaPl6ka.js","assets/AdminFinixKyb-BfuEMrL0.js","assets/refresh-cw-WBxDvYfQ.js","assets/triangle-alert-BA5Ine7i.js","assets/circle-x-D79C6QwS.js","assets/AdminFinixKybAudit-DZa4_O5F.js","assets/webhook-DbmvDxRo.js","assets/AdminMasterAdmins-BZxxABGY.js","assets/AdminCrmProspects-
1Fo6bBWac.js","assets/AdminCrmProspectDetail-DKJ0syEa.js","assets/save-DyvKJj-u.js","assets/AdminCrmTasks-CA0u2bLX.js","assets/checkbox-BpYDwoFr.js","assets/TeamMembers-DpAjoVPY.js","assets/CalendarConnectionDialog-C7_RgA04.js","assets/bell-Ck7Qydym.js","assets/BuildingMultiSelect-Ch1CwjTA.js","assets/OwnerProfileCard-nV4S_hbf.js","assets/Calendar-NZevQ-Y7.js","assets/timezones-CqYdavpI.js","assets/AddShowingDialog-CAaj8oU3.js","assets/index-ubGUkHgs.js","assets/clock-CGwETl5A.js","assets/ManualInquiryDialog-C_7730yx.js","assets/command--KwKF6G3.js","assets/PublicOwnerProperties-Cwgnvgah.js","assets/PublicUnit-B4ZfYw71.js","assets/maximize-B7SQV9yY.js","assets/PublicBuilding-C63n1965.js","assets/Inquiries-RObaydiW.js","assets/DeveloperSelectDialog-C5JCQKyc.js","assets/dropdown-menu-C07t_XyS.js","assets/slider-DPx5ckF2.js","assets/buildingFallback-CcItQiZn.js","assets/fileUrlUtils-CQ-oZwMm.js","assets/zoom-out-CMtRVI6I.js","assets/circle-play-d5Tog47R.js","assets/bot-CIomo6oJ.js","assets/rotate-ccw-DIGFx2U1.js","assets/mic-n0dIspaW.js","assets/building-DH8SFrWw.js","assets/file-check-DIythCvN.js","assets/SendSmsDialog-Df_1Kftl.js","assets/supabaseFunctionError-7Bu97OFW.js","assets/zap-CkCm7bEl.js","assets/message-square-text-CsVmbx1H.js","assets/image-BsWr-QAo.js","assets/file-CRAUJh9U.js","assets/chevrons-up-down-C80clkVp.js","assets/html2canvas.esm-CBrSDip1.js","assets/jspdf.es.min-Cm_dp50d.js","assets/target-DL3x5xDq.js","assets/palette-qcegSRVs.js","assets/SendToHelloSignDialog-DGDw_ojx.js","assets/flame-T9SmpF8Q.js","assets/Settings-DqLrlFOs.js","assets/plug-2-PDiHnKHg.js","assets/book-open-Bu_rha2F.js","assets/KnowledgeBase-BdidUX_R.js","assets/ContactUs-YqEecMwY.js","assets/Clients-m7mgHJYL.js","assets/gift-lxXcyFq4.js","assets/ContactInquiries-BqEpxXvm.js","assets/CitySuites-BQxpC66j.js","assets/paw-print-BCODoN2u.js","assets/car-BUkYxGas.js","assets/PlatformPitch-BUw0eu7H.js","assets/PropertyFinder-DS2DHTm_.js","assets/PublicOnboarding-UXnsajMM.js","assets/ApplicationDocumentsSection-Do75cpfG.js","assets/PublicSubApplication-JYt5Wb8i.js","assets/PublicDepositUpload-DH0aXYRu.js","assets/PublicTenantPay-Cga94hZR.js","assets/BrowseProperties-CzVfwK6m.js","assets/Analytics-CkusAI9p.js","assets/Integrations-C_lTRTJa.js","assets/phone-call-CxdBwO_l.js","assets/AIConversations-BMAc7Dli.js","assets/TextMessages-BHpHFzfr.js","assets/smsComposerKeys-PJ18yt_f.js","assets/core.esm-CRFpMMjS.js","assets/sortable.esm-BSx6QOxj.js","assets/layout-grid-DPZHKzGX.js","assets/video-Bc7c9eWH.js","assets/pasteImageUpload-DH5VhDrN.js","assets/compressImage-BAW79AlG.js","assets/NewGroupConversationDialog-uITL1sTi.js","assets/info-DshnLlbm.js","assets/calendar-plus-CtmX5Ruy.js","assets/Funnels-BT7sr-Po.js","assets/accordion-Cyw5wajd.js","assets/funnelConsent-CiJfS-qM.js","assets/FunnelWidget-D4RSzA9N.js","assets/Applications-DLZhRQvQ.js","assets/archive-4ybP4uoR.js","assets/archive-restore-CFDizHjC.js","assets/SettingsApplications-DeLcdqRR.js","assets/EngagementReport-Cq7N8s0j.js","assets/parseISO-NYw4VSKf.js","assets/ApplicationDetail-Smzjfn8b.js","assets/DepositInfoSection-5njpDQAg.js","assets/rotate-cw-C-jEcTEh.js","assets/PublicApplication-BLQy_iR1.js","assets/log-in-CZJqtY2Z.js","assets/LeadProfile-Dv-GdDii.js","assets/isPast-Bx74lBYi.js","assets/activity-BmlNLdmJ.js","assets/Tasks-B3-4Ctbo.js","assets/Campaigns-C3jG1GZD.js","assets/Realtors-Ck0aWWF3.js","assets/AgreementTemplates-BIwGuNvA.js","assets/star-
1BvwQVqu_.js","assets/Documents-BBKu0LnS.js","assets/Tenants-CXKJnXqZ.js","assets/Feedback-C0_tqb7U.js","assets/Inspections-BBDhEwSA.js","assets/Tickets-CgqChq4x.js","assets/TicketDetail-DNHkmQCK.js","assets/paperclip-G65QrBIz.js","assets/WorkOrderDialog-Z7i1mjbi.js","assets/Insurance-B6Fsey5V.js","assets/Vendors-CoPV1o-6.js","assets/VendorDetail-DivPsasw.js","assets/WorkOrders-CI_CVyft.js","assets/list-D2hQo5tU.js","assets/Amenities-kreKpmP5.js","assets/eachDayOfInterval-D0VJkmGJ.js","assets/getDay-BTksedks.js","assets/TemplateEditorPage-B_fLxlgi.js","assets/BuildingEdit-DR16_Mis.js","assets/image-plus-DoYuvK6g.js","assets/RentRoll-CuIZWLr2.js","assets/printer-CH3ccWA2.js","assets/UnitEdit-JfmrMax9.js","assets/FloorPlans-BhZO9dyo.js","assets/PublicFloorPlans-BKlba_0o.js","assets/PublicFloorPlan-mVJhOPRK.js","assets/EmailTemplates-DvL1a-RD.js","assets/EmailTemplatePreviewDialog-j4ELzhCI.js","assets/EmailTemplateEdit-LPkYPdYO.js","assets/index-CUXiLtkW.js","assets/SettingsProfile-CgoVvnFP.js","assets/SettingsTeam-BQw2fK_e.js","assets/SettingsIntegrations-DEkkOcs9.js","assets/SettingsKnowledgeBase-ei631Bci.js","assets/SettingsEmailTemplates-ByDUQ9Zx.js","assets/SettingsAgreementTemplates-BSObCxM-.js","assets/SettingsFunnels-7IssKWD9.js","assets/SettingsServiceAreas-DlMNCtXE.js","assets/SettingsSmsTemplates-504JV9Sg.js","assets/SettingsSub
1scription-DeXk1uiV.js","assets/SettingsAdwords-CbvC_Pkz.js","assets/SettingsReminders-BjLrx9z0.js","assets/SettingsTextUsage-BnQJf0uc.js","assets/PrivacyPolicy-BTYOSSHw.js","assets/Terms-DATBuaVp.js","assets/ExtensionPrivacyPolicy-D7M72oUE.js","assets/FacebookAds-Xz_9D_LB.js","assets/MessengerInbox-CgVQboJ5.js","assets/PublicBooking-DdqIaTZi.js","assets/PublicShowingBooking-CvHiRNd3.js","assets/UnitsWidget-DZn8nM-r.js","assets/FloorPlansWidget-CttKBy6y.js","assets/ExternalLeadSubmission-CSyRjFRp.js","assets/Accounting-CgszZr0I.js","assets/FinancialsRentRoll-BMmOtMhP.js","assets/financials-C1eD3tkt.js","assets/FinancialsAR-wI3qECSj.js","assets/LedgerEntryDialog-mmLzu0kI.js","assets/financialsData-sSoB4cKU.js","assets/FinancialsScheduled-DsAvjxRP.js","assets/FinancialsEpay-DRFMof-S.js","assets/FinancialsStatements-fRy9eMXK.js","assets/FinancialsIncome-C8kO16cb.js","assets/FinancialsTransactions-Bri4JD0W.js","assets/VendorLogin-mNsZJaUI.js","assets/VendorPortal-AO81-wwo.js","assets/TenantLogin-BGbs-ijB.js","assets/TenantPortal-U-LLYRXZ.js","assets/megaphone-PHI0lHj-.js","assets/Leases-CGhP9H5a.js","assets/LeasesSummaryCards-DUTmYOU5.js","assets/LeaseProposals-BngLc83g.js","assets/RenewalPipelines-CTrf6Kgg.js","assets/ResetPassword-CgiDe6e9.js","assets/RentPayments-DnAudN2_.js","assets/PaymentVerification-Cq8kIT9Q.js","assets/Help-B5UMUDID.js","assets/MaintenanceServices-Ditk-IWe.js","assets/MaintenanceTeam-DNjcf4YZ.js","assets/repeat-3QQWQRix.js","assets/MaintenanceBookings-Bdyeypj4.js","assets/email-A-1Ed8OH.js","assets/MaintenanceInvoices-_fjJ80bA.js","assets/PublicServiceBooking-C0W6JQDM.js","assets/Pricing-O7NZn3wx.js","assets/GoogleAdsLanding-341X-cT2.js","assets/Sites-BhJ3wumc.js","assets/SiteEditor-PhEYfwJ9.js","assets/WebsiteAnalyzer-CiWW9Pa8.js","assets/SiteSettings-DHzI1amC.js"])))=>i.map(i=>d[i]); 2var hA=Object.defineProperty;var Uv=e=>{throw TypeError(e)};var pA=(e,t,n)=>t in e?hA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>pA(e,typeof t!="symbol"?t+"":t,n),$f=(e,t,n)=>t.has(e)||Uv("Cannot "+n);var V=(e,t,n)=>($f(e,t,"read from private field"),n?n.call(e):t.get(e)),ge=(e,t,n)=>t.has(e)?Uv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),se=(e,t,n,r)=>($f(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ht=(e,t,n)=>($f(e,t,"access private method"),n);var Cc=(e,t,n,r)=>({set _(s){se(e,t,s,n)},get _(){return V(e,t,r)}});function M1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var mA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var $1={exports:{}},zd={},V1={exports:{}},de={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var nc=Symbol.for("react.element"),yA=Symbol.for("react.portal"),vA=Symbol.for("react.fragment"),wA=Symbol.for("react.strict_mode"),xA=Symbol.for("react.profiler"),bA=Symbol.for("react.provider"),_A=Symbol.for("react.context"),EA=Symbol.for("react.forward_ref"),SA=Symbol.for("react.suspense"),TA=Symbol.for("react.memo"),CA=Symbol.for("react.lazy"),zv=Symbol.iterator;function kA(e){return e===null||typeof e!="object"?null:(e=zv&&e[zv]||e["@@iterator"],typeof e=="function"?e:null)}var F1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B1=Object.assign,U1={};function sa(e,t,n){this.props=e,this.context=t,this.refs=U1,this.updater=n||F1}sa.prototype.isReactComponent={};sa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};sa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z1(){}z1.prototype=sa.prototype;function mg(e,t,n){this.props=e,this.context=t,this.refs=U1,this.updater=n||F1}var gg=mg.prototype=new z1;gg.constructor=mg;B1(gg,sa.prototype);gg.isPureReactComponent=!0;var Wv=Array.isArray,W1=Object.prototype.hasOwnProperty,yg={current:null},H1={key:!0,ref:!0,__self:!0,__source:!0};function K1(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)W1.call(t,r)&&!H1.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:nc,type:e,key:i,ref:o,props:s,_owner:yg.current}}function PA(e,t){return{$$typeof:nc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vg(e){return typeof e=="object"&&e!==null&&e.$$typeof===nc}function RA(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hv=/\/+/g;function Vf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?RA(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 10-18
10function gu(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case nc:case yA:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Vf(o,0):r,Wv(s)?(n="",e!=null&&(n=e.replace(Hv,"$&/")+"/"),gu(s,t,n,"",function(c){return c})):s!=null&&(vg(s)&&(s=PA(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Hv,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Wv(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Vf(i,a);o+=gu(i,t,n,l,s)}else if(l=kA(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Vf(i,a++),o+=gu(i,t,n,l,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function kc(e,t,n){if(e==null)return e;var r=[],s=0;return gu(e,r,"","",function(i){return t.call(n,i,s++)}),r}function AA(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var It={current:null},yu={transition:null},OA={ReactCurrentDispatcher:It,ReactCurrentBatchConfig:yu,ReactCurrentOwner:yg};function q1(){throw Error("act(...) is not supported in production builds of React.")}de.Children={map:kc,forEach:function(e,t,n){kc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return kc(e,function(){t++}),t},toArray:function(e){return kc(e,function(t){return t})||[]},only:function(e){if(!vg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};de.Component=sa;de.Fragment=vA;de.Profiler=xA;de.PureComponent=mg;de.StrictMode=wA;de.Suspense=SA;de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=OA;de.act=q1;de.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=B1({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=yg.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)W1.call(t,l)&&!H1.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:nc,type:e.type,key:s,ref:i,props:r,_owner:o}};de.createContext=function(e){return e={$$typeof:_A,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:bA,_context:e},e.Consumer=e};de.createElement=K1;de.createFactory=function(e){var t=K1.bind(null,e);return t.type=e,t};de.createRef=function(){return{current:null}};de.forwardRef=function(e){return{$$typeof:EA,render:e}};de.isValidElement=vg;de.lazy=function(e){return{$$typeof:CA,_payload:{_status:-1,_result:e},_init:AA}};de.memo=function(e,t){return{$$typeof:TA,type:e,compare:t===void 0?null:t}};de.startTransition=function(e){var t=yu.transition;yu.transition={};try{e()}finally{yu.transition=t}};de.unstable_act=q1;de.useCallback=function(e,t){return It.current.useCallback(e,t)};de.useContext=function(e){return It.current.useContext(e)};de.useDebugValue=function(){};de.useDeferredValue=function(e){return It.current.useDeferredValue(e)};de.useEffect=function(e,t){return It.current.useEffect(e,t)};de.useId=function(){return It.current.useId()};de.useImperativeHandle=function(e,t,n){return It.current.useImperativeHandle(e,t,n)};de.useInsertionEffect=function(e,t){return It.current.useInsertionEffect(e,t)};de.useLayoutEffect=function(e,t){return It.current.useLayoutEffect(e,t)};de.useMemo=function(e,t){return It.current.useMemo(e,t)};de.useReducer=function(e,t,n){return It.current.useReducer(e,t,n)};de.useRef=function(e){return It.current.useRef(e)};de.useState=function(e){return It.current.useState(e)};de.useSyncExternalStore=function(e,t,n){return It.current.useSyncExternalStore(e,t,n)};de.useTransition=function(){return It.current.useTransition()};de.version="18.3.1";V1.exports=de;var y=V1.exports;const j=Nr(y),wg=M1({__proto__:null,default:j},[y]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var jA=y,IA=Symbol.for("react.element"),NA=Symbol.for("react.fragment"),LA=Object.prototype.hasOwnProperty,DA=jA.__SECRET_INT
vendor: 11,410 bytes, lines 18-35
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,MA={key:!0,ref:!0,__self:!0,__source:!0};function G1(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)LA.call(t,r)&&!MA.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:IA,type:e,key:i,ref:o,props:s,_owner:DA.current}}zd.Fragment=NA;zd.jsx=G1;zd.jsxs=G1;$1.exports=zd;var f=$1.exports,Y1={exports:{}},nn={},Q1={exports:{}},J1={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(k,O){var U=k.length;k.push(O);e:for(;0<U;){var X=U-1>>>1,J=k[X];if(0<s(J,O))k[X]=O,k[U]=J,U=X;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var O=k[0],U=k.pop();if(U!==O){k[0]=U;e:for(var X=0,J=k.length,re=J>>>1;X<re;){var Y=2*(X+1)-1,ue=k[Y],Oe=Y+1,he=k[Oe];if(0>s(ue,U))Oe<J&&0>s(he,ue)?(k[X]=he,k[Oe]=U,X=Oe):(k[X]=ue,k[Y]=U,X=Y);else if(Oe<J&&0>s(he,U))k[X]=he,k[Oe]=U,X=Oe;else break e}}return O}function s(k,O){var U=k.sortIndex-O.sortIndex;return U!==0?U:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,h=3,p=!1,w=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(k){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=k)r(c),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(c)}}function _(k){if(v=!1,x(k),!w)if(n(l)!==null)w=!0,H(E);else{var O=n(c);O!==null&&F(_,O.startTime-k)}}function E(k,O){w=!1,v&&(v=!1,m(C),C=-1),p=!0;var U=h;try{for(x(O),d=n(l);d!==null&&(!(d.expirationTime>O)||k&&!$());){var X=d.callback;if(typeof X=="function"){d.callback=null,h=d.priorityLevel;var J=X(d.expirationTime<=O);O=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(l)&&r(l),x(O)}else r(l);d=n(l)}if(d!==null)var re=!0;else{var Y=n(c);Y!==null&&F(_,Y.startTime-O),re=!1}return re}finally{d=null,h=U,p=!1}}var S=!1,T=null,C=-1,P=5,R=-1;function $(){return!(e.unstable_now()-R<P)}function A(){if(T!==null){var k=e.unstable_now();R=k;var O=!0;try{O=T(!0,k)}finally{O?B():(S=!1,T=null)}}else S=!1}var B;if(typeof g=="function")B=function(){g(A)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,W=D.port2;D.port1.onmessage=A,B=function(){W.postMessage(null)}}else B=function(){b(A,0)};function H(k){T=k,S||(S=!0,B())}function F(k,O){C=b(function(){k(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,H(E))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(h){case 1:case 2:case 3:var O=3;break;default:O=h}var U=h;h=O;try{return k()}finally{h=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,O){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var U=h;h=k;try{return O()}finally{h=U}},e.unstable_scheduleCallback=function(k,O,U){var X=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?X+U:X):U=X,k){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=U+J,k={id:u++,callback:O,priorityLevel:k,startTime:U,expirationTime:J,sortIndex:-1},U>X?(k.sortIndex=U,t(c,k),n(l)===null&&k===n(c)&&(v?(m(C),C=-1):v=!0,F(_,U-X))):(k.sortIndex=J,t(l,k),w||p||(w=!0,H(E))),k},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(k){var O=h;return function(){var U=h;h=O;try{return k.apply(this,arguments)}finally{h=U}}}})(J1);Q1.exports=J1;var $A=Q1.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var VA=y,tn=$A;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var X1=new Set,vl={};function Li(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(vl[e]=t,e=0;e<t.length;e++)X1.add(t[e])}var Cr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hp=Object.prototype.hasOwnProperty,FA=/^[: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]*$/,Kv={},qv={};function BA(e){return hp.call(qv,e)?!0:hp.call(Kv,e)?!1:FA.test(e)?qv[e]=!0:(Kv[e]=!0,!1)}function UA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zA(e,t,n,r){if(t===null||typeof t>"u"||UA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Nt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ut[e]=new Nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ut[t]=new Nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ut[e]=new Nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ut[e]=new Nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ut[e]=new Nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ut[e]=new Nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ut[e]=new Nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ut[e]=new Nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ut[e]=new Nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xg=/[\-:]([a-z])/g;function bg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xg,bg);ut[t]=new Nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xg,bg);ut[t]=new Nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xg,bg);ut[t]=new Nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ut[e]=new Nt(e,1,!1,e.toLowerCase(),null,!1,!1)});ut.xlinkHref=new Nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ut[e]=new Nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function _g(e,t,n,r){var s=ut.hasOwnProperty(t)?ut[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zA(t,n,s,r)&&(n=null),r||s===null?BA(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Lr=VA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pc=Symbol.for("react.element"),to=Symbol.for("react.portal"),no=Symbol.for("react.fragment"),Eg=Symbol.for("react.strict_mode"),pp=Symbol.for("react.profiler"),Z1=Symbol.for("react.provider"),e_=Symbol.for("react.context"),Sg=Symbol.for("react.forward_ref"),mp=Symbol.for("react.suspense"),gp=Symbol.for("react.suspense_list"),Tg=Symbol.for("react.memo"),rs=Symbol.for("react.lazy"),t_=Symbol.for("react.offscreen"),Gv=Symbol.iterator;function Pa(e){return e===null||typeof e!="object"?null:(e=Gv&&e[Gv]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Object.assign,Ff;function Ka(e){if(Ff===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ff=t&&t[1]||""}return` 35`+Ff+e}var Bf=!1;function Uf(e,t){if(!e||Bf)return"";Bf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 15,720 bytes, lines 35-38
35catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(` 36`),i=r.stack.split(` 37`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 38`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Bf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ka(e):""}function WA(e){switch(e.tag){case 5:return Ka(e.type);case 16:return Ka("Lazy");case 13:return Ka("Suspense");case 19:return Ka("SuspenseList");case 0:case 2:case 15:return e=Uf(e.type,!1),e;case 11:return e=Uf(e.type.render,!1),e;case 1:return e=Uf(e.type,!0),e;default:return""}}function yp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case no:return"Fragment";case to:return"Portal";case pp:return"Profiler";case Eg:return"StrictMode";case mp:return"Suspense";case gp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case e_:return(e.displayName||"Context")+".Consumer";case Z1:return(e._context.displayName||"Context")+".Provider";case Sg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tg:return t=e.displayName||null,t!==null?t:yp(e.type)||"Memo";case rs:t=e._payload,e=e._init;try{return yp(e(t))}catch{}}return null}function HA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yp(t);case 8:return t===Eg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function n_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KA(e){var t=n_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rc(e){e._valueTracker||(e._valueTracker=KA(e))}function r_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=n_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vp(e,t){var n=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ps(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function s_(e,t){t=t.checked,t!=null&&_g(e,"checked",t,!1)}function wp(e,t){s_(e,t);var n=Ps(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xp(e,t.type,n):t.hasOwnProperty("defaultValue")&&xp(e,t.type,Ps(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xp(e,t,n){(t!=="number"||zu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qa=Array.isArray;function xo(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ps(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function bp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return Be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(z(92));if(qa(n)){if(1<n.length)throw Error(z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ps(n)}}function i_(e,t){var n=Ps(t.value),r=Ps(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function o_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _p(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?o_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ac,a_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ac=Ac||document.createElement("div"),Ac.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ac.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qA=["Webkit","ms","Moz","O"];Object.keys(tl).forEach(function(e){qA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tl[t]=tl[e]})});function l_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||tl.hasOwnProperty(e)&&tl[e]?(""+t).trim():t+"px"}function c_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=l_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var GA=Be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ep(e,t){if(t){if(GA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Sp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tp=null;function Cg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cp=null,bo=null,_o=null;function Zv(e){if(e=ic(e)){if(typeof Cp!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Gd(t),Cp(e.stateNode,e.type,t))}}function u_(e){bo?_o?_o.push(e):_o=[e]:bo=e}function d_(){if(bo){var e=bo,t=_o;if(_o=bo=null,Zv(e),t)for(e=0;e<t.length;e++)Zv(t[e])}}function f_(e,t){return e(t)}function h_(){}var zf=!1;function p_(e,t,n){if(zf)return e(t,n);zf=!0;try{return f_(e,t,n)}finally{zf=!1,(bo!==null||_o!==null)&&(h_(),d_())}}function xl(e,t){var n=e.stateNode;if(n===null)return null;var r=Gd(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(z(231,t,typeof n));return n}var kp=!1;if(Cr)try{var Ra={};Object.defineProperty(Ra,"passive",{get:function(){kp=!0}}),window.addEventListener("test",Ra,Ra),window.removeEventListener("test",Ra,Ra)}catch{kp=!1}function YA(e,t,n,r,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var nl=!1,Wu=null,Hu=!1,Pp=null,QA={onError:function(e){nl=!0,Wu=e}};function JA(e,t,n,r,s,i,o,a,l){nl=!1,Wu=null,YA.apply(QA,arguments)}function XA(e,t,n,r,s,i,o,a,l){if(JA.apply(this,arguments),nl){if(nl){var c=Wu;nl=!1,Wu=null}else throw Error(z(198));Hu||(Hu=!0,Pp=c)}}function Di(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function e0(e){if(Di(e)!==e)throw Error(z(188))}function ZA(e){var t=e.alternate;if(!t){if(t=Di(e),t===null)throw Error(z(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return e0(s),e;if(i===r)return e0(s),t;i=i.sibling}throw Error(z(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(z(189))}}if(n.alternate!==r)throw Error(z(190))}if(n.tag!==3)throw Error(z(188));return n.stateNode.current===n?e:t}function g_(e){return e=ZA(e),e!==null?y_(e):null}function y_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=y_(e);if(t!==null)return t;e=e.sibling}return null}var v_=tn.unstable_scheduleCallback,t0=tn.unstable_cancelCallback,eO=tn.unstable_shouldYield,tO=tn.unstable_requestPaint,Ke=tn.unstable_now,nO=tn.unstable_getCurrentPriorityLevel,kg=tn.unstable_ImmediatePriority,w_=tn.unstable_UserBlockingPriority,Ku=tn.unstable_NormalPriority,rO=tn.unstable_LowPriority,x_=tn.unstable_IdlePriority,Wd=null,tr=null;function sO(e){if(tr&&typeof tr.onCommitFiberRoot=="function")try{tr.onCommitFiberRoot(Wd,e,void 0,(e.current.flags&128)===128)}catch{}}var $n=Math.clz32?Math.clz32:aO,iO=Math.log,oO=Math.LN2;function aO(e){return e>>>=0,e===0?32:31-(iO(e)/oO|0)|0}var Oc=64,jc=4194304;function Ga(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ga(a):(i&=o,i!==0&&(r=Ga(i)))}else o=n&~s,o!==0?r=Ga(o):i!==0&&(r=Ga(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-$n(t),s=1<<n,r|=e[n],t&=~s;return r}function lO(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cO(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-$n(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=lO(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Rp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function b_(){var e=Oc;return Oc<<=1,!(Oc&4194240)&&(Oc=64),e}function Wf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$n(t),e[t]=n}function uO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-$n(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Pg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$n(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var be=0;function __(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var E_,Rg,S_,T_,C_,Ap=!1,Ic=[],ws=null,xs=null,bs=null,bl=new Map,_l=new Map,os=[],dO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function n0(e,t){switch(e){case"focusin":case"focusout":ws=null;break;case"dragenter":case"dragleave":xs=null;break;case"mouseover":case"mouseout":bs=null;break;case"pointerover":case"pointerout":bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_l.delete(t.pointerId)}}function Aa(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=ic(t),t!==null&&Rg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function fO(e,t,n,r,s){switch(t){case"focusin":return ws=Aa(ws,e,t,n,r,s),!0;case"dragenter":return xs=Aa(xs,e,t,n,r,s),!0;
vendor: 11,584 bytes, line 38
38case"mouseover":return bs=Aa(bs,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return bl.set(i,Aa(bl.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,_l.set(i,Aa(_l.get(i)||null,e,t,n,r,s)),!0}return!1}function k_(e){var t=ci(e.target);if(t!==null){var n=Di(t);if(n!==null){if(t=n.tag,t===13){if(t=m_(n),t!==null){e.blockedOn=t,C_(e.priority,function(){S_(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Op(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Tp=r,n.target.dispatchEvent(r),Tp=null}else return t=ic(n),t!==null&&Rg(t),e.blockedOn=n,!1;t.shift()}return!0}function r0(e,t,n){vu(e)&&n.delete(t)}function hO(){Ap=!1,ws!==null&&vu(ws)&&(ws=null),xs!==null&&vu(xs)&&(xs=null),bs!==null&&vu(bs)&&(bs=null),bl.forEach(r0),_l.forEach(r0)}function Oa(e,t){e.blockedOn===t&&(e.blockedOn=null,Ap||(Ap=!0,tn.unstable_scheduleCallback(tn.unstable_NormalPriority,hO)))}function El(e){function t(s){return Oa(s,e)}if(0<Ic.length){Oa(Ic[0],e);for(var n=1;n<Ic.length;n++){var r=Ic[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ws!==null&&Oa(ws,e),xs!==null&&Oa(xs,e),bs!==null&&Oa(bs,e),bl.forEach(t),_l.forEach(t),n=0;n<os.length;n++)r=os[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<os.length&&(n=os[0],n.blockedOn===null);)k_(n),n.blockedOn===null&&os.shift()}var Eo=Lr.ReactCurrentBatchConfig,Gu=!0;function pO(e,t,n,r){var s=be,i=Eo.transition;Eo.transition=null;try{be=1,Ag(e,t,n,r)}finally{be=s,Eo.transition=i}}function mO(e,t,n,r){var s=be,i=Eo.transition;Eo.transition=null;try{be=4,Ag(e,t,n,r)}finally{be=s,Eo.transition=i}}function Ag(e,t,n,r){if(Gu){var s=Op(e,t,n,r);if(s===null)eh(e,t,r,Yu,n),n0(e,r);else if(fO(s,e,t,n,r))r.stopPropagation();else if(n0(e,r),t&4&&-1<dO.indexOf(e)){for(;s!==null;){var i=ic(s);if(i!==null&&E_(i),i=Op(e,t,n,r),i===null&&eh(e,t,r,Yu,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else eh(e,t,r,null,n)}}var Yu=null;function Op(e,t,n,r){if(Yu=null,e=Cg(r),e=ci(e),e!==null)if(t=Di(e),t===null)e=null;else if(n=t.tag,n===13){if(e=m_(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yu=e,null}function P_(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nO()){case kg:return 1;case w_:return 4;case Ku:case rO:return 16;case x_:return 536870912;default:return 16}default:return 16}}var ps=null,Og=null,wu=null;function R_(){if(wu)return wu;var e,t=Og,n=t.length,r,s="value"in ps?ps.value:ps.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return wu=s.slice(e,1<r?1-r:void 0)}function xu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Nc(){return!0}function s0(){return!1}function rn(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Nc:s0,this.isPropagationStopped=s0,this}return Be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Nc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nc)},persist:function(){},isPersistent:Nc}),t}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jg=rn(ia),sc=Be({},ia,{view:0,detail:0}),gO=rn(sc),Hf,Kf,ja,Hd=Be({},sc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ig,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ja&&(ja&&e.type==="mousemove"?(Hf=e.screenX-ja.screenX,Kf=e.screenY-ja.screenY):Kf=Hf=0,ja=e),Hf)},movementY:function(e){return"movementY"in e?e.movementY:Kf}}),i0=rn(Hd),yO=Be({},Hd,{dataTransfer:0}),vO=rn(yO),wO=Be({},sc,{relatedTarget:0}),qf=rn(wO),xO=Be({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),bO=rn(xO),_O=Be({},ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),EO=rn(_O),SO=Be({},ia,{data:0}),o0=rn(SO),TO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CO={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"},kO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PO(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kO[e])?!!t[e]:!1}function Ig(){return PO}var RO=Be({},sc,{key:function(e){if(e.key){var t=TO[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?CO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ig,charCode:function(e){return e.type==="keypress"?xu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),AO=rn(RO),OO=Be({},Hd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a0=rn(OO),jO=Be({},sc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ig}),IO=rn(jO),NO=Be({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),LO=rn(NO),DO=Be({},Hd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),MO=rn(DO),$O=[9,13,27,32],Ng=Cr&&"CompositionEvent"in window,rl=null;Cr&&"documentMode"in document&&(rl=document.documentMode);var VO=Cr&&"TextEvent"in window&&!rl,A_=Cr&&(!Ng||rl&&8<rl&&11>=rl),l0=" ",c0=!1;function O_(e,t){switch(e){case"keyup":return $O.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ro=!1;function FO(e,t){switch(e){case"compositionend":return j_(t);case"keypress":return t.which!==32?null:(c0=!0,l0);case"textInput":return e=t.data,e===l0&&c0?null:e;default:return null}}function BO(e,t){if(ro)return e==="compositionend"||!Ng&&O_(e,t)?(e=R_(),wu=Og=ps=null,ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return A_&&t.locale!=="ko"?null:t.data;default:return null}}var UO={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 u0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!UO[e.type]:t==="textarea"}function I_(e,t,n,r){u_(r),t=Qu(t,"onChange"),0<t.length&&(n=new jg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sl=null,Sl=null;function zO(e){W_(e,0)}function Kd(e){var t=oo(e);if(r_(t))return e}function WO(e,t){if(e==="change")return t}var N_=!1;if(Cr){var Gf;if(Cr){var Yf="oninput"in document;if(!Yf){var d0=document.createElement("div");d0.setAttribute("oninput","return;"),Yf=typeof d0.oninput=="function"}Gf=Yf}else Gf=!1;N_=Gf&&(!document.documentMode||9<document.documentMode)}function f0(){sl&&(sl.detachEvent("onpropertychange",L_),Sl=sl=null)}function L_(e){if(e.propertyName==="value"&&Kd(Sl)){var t=[];I_(t,Sl,e,Cg(e)),p_(zO,t)}}function HO(e,t,n){e==="focusin"?(f0(),sl=t,Sl=n,sl.attachEvent("onpropertychange",L_)):e==="focusout"&&f0()}function KO(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kd(Sl)}function qO(e,t){if(e==="click")return Kd(t)}function GO(e,t){if(e==="input"||e==="change")return Kd(t)}function YO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:YO;function Tl(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!hp.call(t,s)||!Fn(e[s],t[s]))return!1}return!0}function h0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function p0(e,t){var n=h0(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=h0(n)}}function D_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?D_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function M_(){for(var e=window,t=zu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zu(e.document)}return t}function Lg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function QO(e){var t=M_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&D_(n.ownerDocument.documentElement,n)){if(r!==null&&Lg(n)){if
vendor: 5,074 bytes, line 38
38(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=p0(n,i);var o=p0(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var JO=Cr&&"documentMode"in document&&11>=document.documentMode,so=null,jp=null,il=null,Ip=!1;function m0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ip||so==null||so!==zu(r)||(r=so,"selectionStart"in r&&Lg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),il&&Tl(il,r)||(il=r,r=Qu(jp,"onSelect"),0<r.length&&(t=new jg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=so)))}function Lc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var io={animationend:Lc("Animation","AnimationEnd"),animationiteration:Lc("Animation","AnimationIteration"),animationstart:Lc("Animation","AnimationStart"),transitionend:Lc("Transition","TransitionEnd")},Qf={},$_={};Cr&&($_=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function qd(e){if(Qf[e])return Qf[e];if(!io[e])return e;var t=io[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $_)return Qf[e]=t[n];return e}var V_=qd("animationend"),F_=qd("animationiteration"),B_=qd("animationstart"),U_=qd("transitionend"),z_=new Map,g0="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ds(e,t){z_.set(e,t),Li(t,[e])}for(var Jf=0;Jf<g0.length;Jf++){var Xf=g0[Jf],XO=Xf.toLowerCase(),ZO=Xf[0].toUpperCase()+Xf.slice(1);Ds(XO,"on"+ZO)}Ds(V_,"onAnimationEnd");Ds(F_,"onAnimationIteration");Ds(B_,"onAnimationStart");Ds("dblclick","onDoubleClick");Ds("focusin","onFocus");Ds("focusout","onBlur");Ds(U_,"onTransitionEnd");Uo("onMouseEnter",["mouseout","mouseover"]);Uo("onMouseLeave",["mouseout","mouseover"]);Uo("onPointerEnter",["pointerout","pointerover"]);Uo("onPointerLeave",["pointerout","pointerover"]);Li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Li("onBeforeInput",["compositionend","keypress","textInput","paste"]);Li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ya="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(" "),ej=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ya));function y0(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,XA(r,t,void 0,e),e.currentTarget=null}function W_(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;y0(s,a,c),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;y0(s,a,c),i=l}}}if(Hu)throw e=Pp,Hu=!1,Pp=null,e}function Pe(e,t){var n=t[$p];n===void 0&&(n=t[$p]=new Set);var r=e+"__bubble";n.has(r)||(H_(t,e,2,!1),n.add(r))}function Zf(e,t,n){var r=0;t&&(r|=4),H_(n,e,r,t)}var Dc="_reactListening"+Math.random().toString(36).slice(2);
vendor: 4,650 bytes, line 38
38function Cl(e){if(!e[Dc]){e[Dc]=!0,X1.forEach(function(n){n!=="selectionchange"&&(ej.has(n)||Zf(n,!1,e),Zf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dc]||(t[Dc]=!0,Zf("selectionchange",!1,t))}}function H_(e,t,n,r){switch(P_(t)){case 1:var s=pO;break;case 4:s=mO;break;default:s=Ag}n=s.bind(null,t,n,e),s=void 0,!kp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function eh(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=ci(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}p_(function(){var c=i,u=Cg(n),d=[];e:{var h=z_.get(e);if(h!==void 0){var p=jg,w=e;switch(e){case"keypress":if(xu(n)===0)break e;case"keydown":case"keyup":p=AO;break;case"focusin":w="focus",p=qf;break;case"focusout":w="blur",p=qf;break;case"beforeblur":case"afterblur":p=qf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=i0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=vO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=IO;break;case V_:case F_:case B_:p=bO;break;case U_:p=LO;break;case"scroll":p=gO;break;case"wheel":p=MO;break;case"copy":case"cut":case"paste":p=EO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=a0}var v=(t&4)!==0,b=!v&&e==="scroll",m=v?h!==null?h+"Capture":null:h;v=[];for(var g=c,x;g!==null;){x=g;var _=x.stateNode;if(x.tag===5&&_!==null&&(x=_,m!==null&&(_=xl(g,m),_!=null&&v.push(kl(g,_,x)))),b)break;g=g.return}0<v.length&&(h=new p(h,w,null,n,u),d.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Tp&&(w=n.relatedTarget||n.fromElement)&&(ci(w)||w[kr]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=c,w=w?ci(w):null,w!==null&&(b=Di(w),w!==b||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=c),p!==w)){if(v=i0,_="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=a0,_="onPointerLeave",m="onPointerEnter",g="pointer"),b=p==null?h:oo(p),x=w==null?h:oo(w),h=new v(_,g+"leave",p,n,u),h.target=b,h.relatedTarget=x,_=null,ci(u)===c&&(v=new v(m,g+"enter",w,n,u),v.target=x,v.relatedTarget=b,_=v),b=_,p&&w)t:{for(v=p,m=w,g=0,x=v;x;x=Bi(x))g++;for(x=0,_=m;_;_=Bi(_))x++;for(;0<g-x;)v=Bi(v),g--;for(;0<x-g;)m=Bi(m),x--;for(;g--;){if(v===m||m!==null&&v===m.alternate)break t;v=Bi(v),m=Bi(m)}v=null}else v=null;p!==null&&v0(d,h,p,v,!1),w!==null&&b!==null&&v0(d,b,w,v,!0)}}e:{if(h=c?oo(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var E=WO;else if(u0(h))if(N_)E=GO;else{E=KO;var S=HO}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=qO);if(E&&(E=E(e,c))){I_(d,E,n,u);break e}S&&S(e,h,c),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&xp(h,"number",h.value)}switch(S=c?oo(c):window,e){case"focusin":(u0(S)||S.contentEditable==="true")&&(so=S,jp=c,il=null);break;case"focusout":il=jp=so=null;break;case"mousedown":Ip=!0;break;case"contextmenu":case"mouseup":case"dragend":Ip=!1,m0(d,n,u);break;case"selectionchange":if(JO)break;case"keydown":case"keyup":m0(d,n,u)}var T;if(Ng)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else ro?O_(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(A_&&n.locale!=="ko"&&(ro||C!=="onCompositionStart"?C==="onCompositionEnd"&&ro&&(T=R_()):(ps=u,Og="value"in ps?ps.value:ps.textContent,ro=!0)),S=Qu(c,C),0<S.length&&(C=new o0(C,e,null,n,u),d.push({event:C,listeners:S}),T?C.data=T:(T=j_(n),T!==null&&(C.data=T)))),(T=VO?FO(e,n):BO(e,n))&&(c=Qu(c,"onBeforeInput"),0<c.length&&(u=new o0("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=T))}W_(d,t)}
vendor: 4,383 bytes, lines 38-39
38)}function kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qu(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=xl(e,n),i!=null&&r.unshift(kl(e,i,s)),i=xl(e,t),i!=null&&r.push(kl(e,i,s))),e=e.return}return r}function Bi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function v0(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=xl(n,i),l!=null&&o.unshift(kl(n,l,a))):s||(l=xl(n,i),l!=null&&o.push(kl(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var tj=/\r\n?/g,nj=/\u0000|\uFFFD/g;function w0(e){return(typeof e=="string"?e:""+e).replace(tj,` 39`).replace(nj,"")}function Mc(e,t,n){if(t=w0(t),w0(e)!==t&&n)throw Error(z(425))}function Ju(){}var Np=null,Lp=null;function Dp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Mp=typeof setTimeout=="function"?setTimeout:void 0,rj=typeof clearTimeout=="function"?clearTimeout:void 0,x0=typeof Promise=="function"?Promise:void 0,sj=typeof queueMicrotask=="function"?queueMicrotask:typeof x0<"u"?function(e){return x0.resolve(null).then(e).catch(ij)}:Mp;function ij(e){setTimeout(function(){throw e})}function th(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),El(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);El(t)}function _s(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function b0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var oa=Math.random().toString(36).slice(2),Zn="__reactFiber$"+oa,Pl="__reactProps$"+oa,kr="__reactContainer$"+oa,$p="__reactEvents$"+oa,oj="__reactListeners$"+oa,aj="__reactHandles$"+oa;function ci(e){var t=e[Zn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kr]||n[Zn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=b0(e);e!==null;){if(n=e[Zn])return n;e=b0(e)}return t}e=n,n=e.parentNode}return null}function ic(e){return e=e[Zn]||e[kr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function oo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function Gd(e){return e[Pl]||null}var Vp=[],ao=-1;function Ms(e){return{current:e}}function Ae(e){0>ao||(e.current=Vp[ao],Vp[ao]=null,ao--)}function Te(e,t){ao++,Vp[ao]=e.current,e.current=t}var Rs={},bt=Ms(Rs),Bt=Ms(!1),ki=Rs;function zo(e,t){var n=e.type.contextTypes;if(!n)return Rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ut(e){return e=e.childContextTypes,e!=null}function Xu(){Ae(Bt),Ae(bt)}function _0(e,t,n){if(bt.current!==Rs)throw Error(z(168));Te(bt,t),Te(Bt,n)}function K_(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(z(108,HA(e)||"Unknown",s));return Be({},n,r)}function Zu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rs,ki=bt.current,Te(bt,e),Te(Bt,Bt.current),!0}function E0(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=K_(e,t,ki),r.__reactInternalMemoizedMergedChildContext=e,Ae(Bt),Ae(bt),Te(bt,e)):Ae(Bt),Te(Bt,n)}var wr=null,Yd=!1,nh=!1;function q_(e){wr===null?wr=[e]:wr.push(e)}function lj(e){Yd=!0,q_(e)}function $s(){if(!nh&&wr!==null){nh=!0;var e=0,t=be;try{var n=wr;for(be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wr=null,Yd=!1}catch(s){throw wr!==null&&(wr=wr.slice(e+1)),v_(kg,$s),s}finally{be=t,nh=!1}}return null}var lo=[],co=0,ed=null,td=0,cn=[],un=0,Pi=null,_r=1,Er="";function ni(e,t){lo[co++]=td,lo[co++]=ed,ed=e,td=t}function G_(e,t,n){cn[un++]=_r,cn[un++]=Er,cn[un++]=Pi,Pi=e;var r=_r;e=Er;var s=32-$n(r)-1;r&=~(1<<s),n+=1;var i=32-$n(t)+s;
vendor: 24,605 bytes, lines 39-41
39if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,_r=1<<32-$n(t)+s|n<<s|r,Er=i+e}else _r=1<<i|n<<s|r,Er=e}function Dg(e){e.return!==null&&(ni(e,1),G_(e,1,0))}function Mg(e){for(;e===ed;)ed=lo[--co],lo[co]=null,td=lo[--co],lo[co]=null;for(;e===Pi;)Pi=cn[--un],cn[un]=null,Er=cn[--un],cn[un]=null,_r=cn[--un],cn[un]=null}var Xt=null,Jt=null,Ne=!1,Dn=null;function Y_(e,t){var n=hn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function S0(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xt=e,Jt=_s(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xt=e,Jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pi!==null?{id:_r,overflow:Er}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=hn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xt=e,Jt=null,!0):!1;default:return!1}}function Fp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Bp(e){if(Ne){var t=Jt;if(t){var n=t;if(!S0(e,t)){if(Fp(e))throw Error(z(418));t=_s(n.nextSibling);var r=Xt;t&&S0(e,t)?Y_(r,n):(e.flags=e.flags&-4097|2,Ne=!1,Xt=e)}}else{if(Fp(e))throw Error(z(418));e.flags=e.flags&-4097|2,Ne=!1,Xt=e}}}function T0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xt=e}function $c(e){if(e!==Xt)return!1;if(!Ne)return T0(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Dp(e.type,e.memoizedProps)),t&&(t=Jt)){if(Fp(e))throw Q_(),Error(z(418));for(;t;)Y_(e,t),t=_s(t.nextSibling)}if(T0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Jt=_s(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Jt=null}}else Jt=Xt?_s(e.stateNode.nextSibling):null;return!0}function Q_(){for(var e=Jt;e;)e=_s(e.nextSibling)}function Wo(){Jt=Xt=null,Ne=!1}function $g(e){Dn===null?Dn=[e]:Dn.push(e)}var cj=Lr.ReactCurrentBatchConfig;function Ia(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(z(309));var r=n.stateNode}if(!r)throw Error(z(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(z(284));if(!n._owner)throw Error(z(290,e))}return e}function Vc(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function C0(e){var t=e._init;return t(e._payload)}function J_(e){function t(m,g){if(e){var x=m.deletions;x===null?(m.deletions=[g],m.flags|=16):x.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function s(m,g){return m=Cs(m,g),m.index=0,m.sibling=null,m}function i(m,g,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<g?(m.flags|=2,g):x):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,x,_){return g===null||g.tag!==6?(g=ch(x,m.mode,_),g.return=m,g):(g=s(g,x),g.return=m,g)}function l(m,g,x,_){var E=x.type;return E===no?u(m,g,x.props.children,_,x.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rs&&C0(E)===g.type)?(_=s(g,x.props),_.ref=Ia(m,g,x),_.return=m,_):(_=ku(x.type,x.key,x.props,null,m.mode,_),_.ref=Ia(m,g,x),_.return=m,_)}function c(m,g,x,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=uh(x,m.mode,_),g.return=m,g):(g=s(g,x.children||[]),g.return=m,g)}function u(m,g,x,_,E){return g===null||g.tag!==7?(g=Si(x,m.mode,_,E),g.return=m,g):(g=s(g,x),g.return=m,g)}function d(m,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=ch(""+g,m.mode,x),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pc:return x=ku(g.type,g.key,g.props,null,m.mode,x),x.ref=Ia(m,null,g),x.return=m,x;case to:return g=uh(g,m.mode,x),g.return=m,g;case rs:var _=g._init;return d(m,_(g._payload),x)}if(qa(g)||Pa(g))return g=Si(g,m.mode,x,null),g.return=m,g;Vc(m,g)}return null}function h(m,g,x,_){var E=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return E!==null?null:a(m,g,""+x,_);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Pc:return x.key===E?l(m,g,x,_):null;case to:return x.key===E?c(m,g,x,_):null;case rs:return E=x._init,h(m,g,E(x._payload),_)}if(qa(x)||Pa(x))return E!==null?null:u(m,g,x,_,null);Vc(m,x)}return null}function p(m,g,x,_,E){if(typeof _=="string"&&_!==""||typeof _=="number")return m=m.get(x)||null,a(g,m,""+_,E);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Pc:return m=m.get(_.key===null?x:_.key)||null,l(g,m,_,E);case to:return m=m.get(_.key===null?x:_.key)||null,c(g,m,_,E);case rs:var S=_._init;return p(m,g,x,S(_._payload),E)}if(qa(_)||Pa(_))return m=m.get(x)||null,u(g,m,_,E,null);Vc(g,_)}return null}function w(m,g,x,_){for(var E=null,S=null,T=g,C=g=0,P=null;T!==null&&C<x.length;C++){T.index>C?(P=T,T=null):P=T.sibling;var R=h(m,T,x[C],_);if(R===null){T===null&&(T=P);break}e&&T&&R.alternate===null&&t(m,T),g=i(R,g,C),S===null?E=R:S.sibling=R,S=R,T=P}if(C===x.length)return n(m,T),Ne&&ni(m,C),E;if(T===null){for(;C<x.length;C++)T=d(m,x[C],_),T!==null&&(g=i(T,g,C),S===null?E=T:S.sibling=T,S=T);return Ne&&ni(m,C),E}for(T=r(m,T);C<x.length;C++)P=p(T,m,C,x[C],_),P!==null&&(e&&P.alternate!==null&&T.delete(P.key===null?C:P.key),g=i(P,g,C),S===null?E=P:S.sibling=P,S=P);return e&&T.forEach(function($){return t(m,$)}),Ne&&ni(m,C),E}function v(m,g,x,_){var E=Pa(x);if(typeof E!="function")throw Error(z(150));if(x=E.call(x),x==null)throw Error(z(151));for(var S=E=null,T=g,C=g=0,P=null,R=x.next();T!==null&&!R.done;C++,R=x.next()){T.index>C?(P=T,T=null):P=T.sibling;var $=h(m,T,R.value,_);if($===null){T===null&&(T=P);break}e&&T&&$.alternate===null&&t(m,T),g=i($,g,C),S===null?E=$:S.sibling=$,S=$,T=P}if(R.done)return n(m,T),Ne&&ni(m,C),E;if(T===null){for(;!R.done;C++,R=x.next())R=d(m,R.value,_),R!==null&&(g=i(R,g,C),S===null?E=R:S.sibling=R,S=R);return Ne&&ni(m,C),E}for(T=r(m,T);!R.done;C++,R=x.next())R=p(T,m,C,R.value,_),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?C:R.key),g=i(R,g,C),S===null?E=R:S.sibling=R,S=R);return e&&T.forEach(function(A){return t(m,A)}),Ne&&ni(m,C),E}function b(m,g,x,_){if(typeof x=="object"&&x!==null&&x.type===no&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Pc:e:{for(var E=x.key,S=g;S!==null;){if(S.key===E){if(E=x.type,E===no){if(S.tag===7){n(m,S.sibling),g=s(S,x.props.children),g.return=m,m=g;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rs&&C0(E)===S.type){n(m,S.sibling),g=s(S,x.props),g.ref=Ia(m,S,x),g.return=m,m=g;break e}n(m,S);break}else t(m,S);S=S.sibling}x.type===no?(g=Si(x.props.children,m.mode,_,x.key),g.return=m,m=g):(_=ku(x.type,x.key,x.props,null,m.mode,_),_.ref=Ia(m,g,x),_.return=m,m=_)}return o(m);case to:e:{for(S=x.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(m,g.sibling),g=s(g,x.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=uh(x,m.mode,_),g.return=m,m=g}return o(m);case rs:return S=x._init,b(m,g,S(x._payload),_)}if(qa(x))return w(m,g,x,_);if(Pa(x))return v(m,g,x,_);Vc(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(m,g.sibling),g=s(g,x),g.return=m,m=g):(n(m,g),g=ch(x,m.mode,_),g.return=m,m=g),o(m)):n(m,g)}return b}var Ho=J_(!0),X_=J_(!1),nd=Ms(null),rd=null,uo=null,Vg=null;function Fg(){Vg=uo=rd=null}function Bg(e){var t=nd.current;Ae(nd),e._currentValue=t}function Up(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function So(e,t){rd=e,Vg=uo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Vt=!0),e.firstContext=null)}function vn(e){var t=e._currentValue;if(Vg!==e)if(e={context:e,memoizedValue:t,next:null},uo===null){if(rd===null)throw Error(z(308));uo=e,rd.dependencies={lanes:0,firstContext:e}}else uo=uo.next=e;return t}var ui=null;function Ug(e){ui===null?ui=[e]:ui.push(e)}function Z_(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Ug(t)):(n.next=s.next,s.next=n),t.interleaved=n,Pr(e,r)}function Pr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ss=!1;function zg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eE(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Es(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,me&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Pr(e,n)}return s=r.interleaved,s===null?(t.next=t,Ug(r)):(t.next=s.next,s.next=t),r.interleaved=t,Pr(e,n)}function bu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pg(e,n)}}function k0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sd(e,t,n,r){var s=e.updateQueue;ss=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,u=c=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(h=t,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(p,d,h);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,h=typeof w=="function"?w.call(p,d,h):w,h==null)break e;d=Be({},d,h);break e;case 2:ss=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(u===null&&(l=d),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Ai|=o,e.lanes=o,e.memoizedState=d}}function P0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(z(191,s));s.call(r)}}}var oc={},nr=Ms(oc),Rl=Ms(oc),Al=Ms(oc);function di(e){if(e===oc)throw Error(z(174));return e}function Wg(e,t){switch(Te(Al,t),Te(Rl,e),Te(nr,oc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_p(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_p(t,e)}Ae(nr),Te(nr,t)}function Ko(){Ae(nr),Ae(Rl),Ae(Al)}function tE(e){di(Al.current);var t=di(nr.current),n=_p(t,e.type);t!==n&&(Te(Rl,e),Te(nr,n))}function Hg(e){Rl.current===e&&(Ae(nr),Ae(Rl))}var $e=Ms(0);function id(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rh=[];function Kg(){for(var e=0;e<rh.length;e++)rh[e]._workInProgressVersionPrimary=null;rh.length=0}var _u=Lr.ReactCurrentDispatcher,sh=Lr.ReactCurrentBatchConfig,Ri=0,Fe=null,et=null,rt=null,od=!1,ol=!1,Ol=0,uj=0;function pt(){throw Error(z(321))}function qg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fn(e[n],t[n]))return!1;return!0}function Gg(e,t,n,r,s,i){if(Ri=i,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_u.current=e===null||e.memoizedState===null?pj:mj,e=n(r,s),ol){i=0;do{if(ol=!1,Ol=0,25<=i)throw Error(z(301));i+=1,rt=et=null,t.updateQueue=null,_u.current=gj,e=n(r,s)}while(ol)}if(_u.current=ad,t=et!==null&&et.next!==null,Ri=0,rt=et=Fe=null,od=!1,t)throw Error(z(300));return e}function Yg(){var e=Ol!==0;return Ol=0,e}function Gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Fe.memoizedState=rt=e:rt=rt.next=e,rt}function wn(){if(et===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=rt===null?Fe.memoizedState:rt.next;if(t!==null)rt=t,et=e;else{if(e===null)throw Error(z(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},rt===null?Fe.memoizedState=rt=e:rt=rt.next=e}return rt}function jl(e,t){return typeof t=="function"?t(e):t}function ih(e){var t=wn(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=et,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,c=i;do{var u=c.lane;if((Ri&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,Fe.lanes|=u,Ai|=u}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,Fn(r,t.memoizedState)||(Vt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Fe.lanes|=i,Ai|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function oh(e){var t=wn(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Fn(i,t.memoizedState)||(Vt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function nE(){}function rE(e,t){var n=Fe,r=wn(),s=t(),i=!Fn(r.memoizedState,s);if(i&&(r.memoizedState=s,Vt=!0),r=r.queue,Qg(oE.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||rt!==null&&rt.memoizedState.tag&1){if(n.flags|=2048,Il(9,iE.bind(null,n,r,s,t),void 0,null),it===null)throw Error(z(349));Ri&30||sE(n,t,s)}return s}function sE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function iE(e,t,n,r){t.value=n,t.getSnapshot=r,aE(t)&&lE(e)}function oE(e,t,n){return n(function(){aE(t)&&lE(e)})}function aE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fn(e,n)}catch{return!0}}function lE(e){var t=Pr(e,1);t!==null&&Vn(t,e,1,-1)}function R0(e){var t=Gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:e},t.queue=e,e=e.dispatch=hj.bind(null,Fe,e),[t.memoizedState,e]}function Il(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function cE(){return wn().memoizedState}function Eu(e,t,n,r){var s=Gn();Fe.flags|=e,s.memoizedState=Il(1|t,n,void 0,r===void 0?null:r)}function Qd(e,t,n,r){var s=wn();r=r===void 0?null:r;var i=void 0;if(et!==null){var o=et.memoizedState;if(i=o.destroy,r!==null&&qg(r,o.deps)){s.memoizedState=Il(t,n,i,r);return}}Fe.flags|=e,s.memoizedState=Il(1|t,n,i,r)}function A0(e,t){return Eu(8390656,8,e,t)}function Qg(e,t){return Qd(2048,8,e,t)}function uE(e,t){return Qd(4,2,e,t)}function dE(e,t){return Qd(4,4,e,t)}function fE(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hE(e,t,n){return n=n!=null?n.concat([e]):null,Qd(4,4,fE.bind(null,t,e),n)}function Jg(){}function pE(e,t){var n=wn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mE(e,t){var n=wn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qg(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gE(e,t,n){return Ri&21?(Fn(n,t)||(n=b_(),Fe.lanes|=n,Ai|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vt=!0),e.memoizedState=n)}function dj(e,t){var n=be;be=n!==0&&4>n?n:4,e(!0);var r=sh.transition;sh.transition={};try{e(!1),t()}finally{be=n,sh.transition=r}}function yE(){return wn().memoizedState}function fj(e,t,n){var r=Ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vE(e))wE(t,n);else if(n=Z_(e,t,n,r),n!==null){var s=jt();Vn(n,e,r,s),xE(n,t,r)}}function hj(e,t,n){var r=Ts(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vE(e))wE(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Fn(a,o)){var l=t.interleaved;l===null?(s.next=s,Ug(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Z_(e,t,s,r),n!==null&&(s=jt(),Vn(n,e,r,s),xE(n,t,r))}}function vE(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function wE(e,t){ol=od=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pg(e,n)}}var ad={readContext:vn,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},pj={readContext:vn,useCallback:function(e,t){return Gn().memoizedState=[e,t===void 0?null:t],e},useContext:vn,useEffect:A0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Eu(4194308,4,fE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Eu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Eu(4,2,e,t)},useMemo:function(e,t){var n=Gn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Gn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=fj.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=Gn();return e={current:e},t.memoizedState=e},useState:R0,useDebugValue:Jg,useDeferredValue:function(e){return Gn().memoizedState=e},useTransition:function(){var e=R0(!1),t=e[0];return e=dj.bind(null,e[1]),Gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,s=Gn();if(Ne){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),it===null)throw Error(z(349));Ri&30||sE(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,A0(oE.bind(null,r,i,e),[e]),r.flags|=2048,Il(9,iE.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Gn(),t=it.identifierPrefix;if(Ne){var n=Er,r=_r;n=(r&~(1<<32-$n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ol++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=uj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mj={readContext:vn,useCallback:pE,useContext:vn,useEffect:Qg,useImperativeHandle:hE,useInsertionEffect:uE,useLayoutEffect:dE,useMemo:mE,useReducer:ih,useRef:cE,useState:function(){return ih(jl)},useDebugValue:Jg,useDeferredValue:function(e){var t=wn();return gE(t,et.memoizedState,e)},useTransition:function(){var e=ih(jl)[0],t=wn().memoizedState;return[e,t]},useMutableSource:nE,useSyncExternalStore:rE,useId:yE,unstable_isNewReconciler:!1},gj={readContext:vn,useCallback:pE,useContext:vn,useEffect:Qg,useImperativeHandle:hE,useInsertionEffect:uE,useLayoutEffect:dE,useMemo:mE,useReducer:oh,useRef:cE,useState:function(){return oh(jl)},useDebugValue:Jg,useDeferredValue:function(e){var t=wn();return et===null?t.memoizedState=e:gE(t,et.memoizedState,e)},useTransition:function(){var e=oh(jl)[0],t=wn().memoizedState;return[e,t]},useMutableSource:nE,useSyncExternalStore:rE,useId:yE,unstable_isNewReconciler:!1};function An(e,t){if(e&&e.defaultProps){t=Be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function zp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jd={isMounted:function(e){return(e=e._reactInternals)?Di(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jt(),s=Ts(e),i=Tr(r,s);i.payload=t,n!=null&&(i.callback=n),t=Es(e,i,s),t!==null&&(Vn(t,e,s,r),bu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jt(),s=Ts(e),i=Tr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Es(e,i,s),t!==null&&(Vn(t,e,s,r),bu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jt(),r=Ts(e),s=Tr(n,r);s.tag=2,t!=null&&(s.callback=t),t=Es(e,s,r),t!==null&&(Vn(t,e,r,n),bu(t,e,r))}};function O0(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Tl(n,r)||!Tl(s,i):!0}function bE(e,t,n){var r=!1,s=Rs,i=t.contextType;return typeof i=="object"&&i!==null?i=vn(i):(s=Ut(t)?ki:bt.current,r=t.contextTypes,i=(r=r!=null)?zo(e,s):Rs),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function j0(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Jd.enqueueReplaceState(t,t.state,null)}function Wp(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},zg(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=vn(i):(i=Ut(t)?ki:bt.current,s.context=zo(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(zp(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Jd.enqueueReplaceState(s,s.state,null),sd(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function qo(e,t){try{var n="",r=t;do n+=WA(r),r=r.return;while(r);var s=n}catch(i){s=` 40Error generating stack: `+i.message+` 41`+i.stack}return{value:e,source:t,stack:s,digest:null}}function ah(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Hp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yj=typeof WeakMap=="function"?WeakMap:Map;
vendor: 11,831 bytes, line 41
41function _E(e,t,n){n=Tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cd||(cd=!0,tm=r),Hp(e,t)},n}function EE(e,t,n){n=Tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Hp(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Hp(e,t),typeof r!="function"&&(Ss===null?Ss=new Set([this]):Ss.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function I0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yj;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Oj.bind(null,e,t,n),t.then(e,e))}function N0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function L0(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tr(-1,1),t.tag=2,Es(n,t,1))),n.lanes|=1),e)}var vj=Lr.ReactCurrentOwner,Vt=!1;function kt(e,t,n,r){t.child=e===null?X_(t,null,n,r):Ho(t,e.child,n,r)}function D0(e,t,n,r,s){n=n.render;var i=t.ref;return So(t,s),r=Gg(e,t,n,r,i,s),n=Yg(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rr(e,t,s)):(Ne&&n&&Dg(t),t.flags|=1,kt(e,t,r,s),t.child)}function M0(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!iy(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,SE(e,t,i,r,s)):(e=ku(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Tl,n(o,r)&&e.ref===t.ref)return Rr(e,t,s)}return t.flags|=1,e=Cs(i,r),e.ref=t.ref,e.return=t,t.child=e}function SE(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Tl(i,r)&&e.ref===t.ref)if(Vt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Vt=!0);else return t.lanes=e.lanes,Rr(e,t,s)}return Kp(e,t,n,r,s)}function TE(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Te(ho,Kt),Kt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Te(ho,Kt),Kt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Te(ho,Kt),Kt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Te(ho,Kt),Kt|=r;return kt(e,t,s,n),t.child}function CE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kp(e,t,n,r,s){var i=Ut(n)?ki:bt.current;return i=zo(t,i),So(t,s),n=Gg(e,t,n,r,i,s),r=Yg(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rr(e,t,s)):(Ne&&r&&Dg(t),t.flags|=1,kt(e,t,n,s),t.child)}function $0(e,t,n,r,s){if(Ut(n)){var i=!0;Zu(t)}else i=!1;if(So(t,s),t.stateNode===null)Su(e,t),bE(t,n,r),Wp(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=vn(c):(c=Ut(n)?ki:bt.current,c=zo(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&j0(t,o,r,c),ss=!1;var h=t.memoizedState;o.state=h,sd(t,r,o,s),l=t.memoizedState,a!==r||h!==l||Bt.current||ss?(typeof u=="function"&&(zp(t,n,u,r),l=t.memoizedState),(a=ss||O0(t,n,a,r,h,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,eE(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:An(t.type,a),o.props=c,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=vn(l):(l=Ut(n)?ki:bt.current,l=zo(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&j0(t,o,r,l),ss=!1,h=t.memoizedState,o.state=h,sd(t,r,o,s);var w=t.memoizedState;a!==d||h!==w||Bt.current||ss?(typeof p=="function"&&(zp(t,n,p,r),w=t.memoizedState),(c=ss||O0(t,n,c,r,h,w,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return qp(e,t,n,r,i,s)}function qp(e,t,n,r,s,i){CE(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&E0(t,n,!1),Rr(e,t,i);r=t.stateNode,vj.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ho(t,e.child,null,i),t.child=Ho(t,null,a,i)):kt(e,t,a,i),t.memoizedState=r.state,s&&E0(t,n,!0),t.child}function kE(e){var t=e.stateNode;t.pendingContext?_0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_0(e,t.context,!1),Wg(e,t.containerInfo)}function V0(e,t,n,r,s){return Wo(),$g(s),t.flags|=256,kt(e,t,n,r),t.child}var Gp={dehydrated:null,treeContext:null,retryLane:0};function Yp(e){return{baseLanes:e,cachePool:null,transitions:null}}function PE(e,t,n){var r=t.pendingProps,s=$e.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Te($e,s&1),e===null)return Bp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ef(o,r,0,null),e=Si(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Yp(n),t.memoizedState=Gp,e):Xg(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return wj(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Cs(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Cs(a,i):(i=Si(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Yp(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Gp,r}return i=e.child,e=i.sibling,r=Cs(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Xg(e,t){return t=ef({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fc(e,t,n,r){return r!==null&&$g(r),Ho(t,e.child,null,n),e=Xg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wj(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=ah(Error(z(422))),Fc(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=ef({mode:"visible",children:r.children},s,0,null),i=Si(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ho(t,e.child,null,o),t.child.memoizedState=Yp(o),t.memoizedState=Gp,i);if(!(t.mode&1))return Fc(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(z(419)),r=ah(i,r,void 0),Fc(e,t,o,r)}if(a=(o&e.childLanes)!==0,Vt||a){if(r=it,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Pr(e,s),Vn(r,e,s,-1))}return sy(),r=ah(Error(z(421))),Fc(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=jj.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Jt=_s(s.nextSibling),Xt=t,Ne=!0,Dn=null,e!==null&&(cn[un++]=_r,cn[un++]=Er,cn[un++]=Pi,_r=e.id,Er=e.overflow,Pi=t),t=Xg(t,r.children),t.flags|=4096,t)}function F0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Up(e.return,t,n)}function lh(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function RE(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(kt(e,t,r.children,n),r=$e.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&F0(e,n,t);else if(e.tag===19)F0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Te($e,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&id(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),lh(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&id(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}lh(t,!0,n,null,i);break;case"together":lh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Su(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ai|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=Cs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xj(e,t,n){switch(t.tag){case 3:kE(t),Wo();break;case 5:tE(t);break;case 1:Ut(t.type)&&Zu(t);break;case 4:Wg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Te(nd,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Te($e,$e.current&1),t.flags|=128,null):n&t.child.childLanes?PE(e,t,n):(Te($e,$e.current&1),e=Rr(e,t,n),e!==null?e.sibling:null);Te($e,$e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return RE(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Te($e,$e.current),r)break;return null;
vendor: 4,597 bytes, line 41
41case 22:case 23:return t.lanes=0,TE(e,t,n)}return Rr(e,t,n)}var AE,Qp,OE,jE;AE=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Qp=function(){};OE=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,di(nr.current);var i=null;switch(n){case"input":s=vp(e,s),r=vp(e,r),i=[];break;case"select":s=Be({},s,{value:void 0}),r=Be({},r,{value:void 0}),i=[];break;case"textarea":s=bp(e,s),r=bp(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ju)}Ep(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(vl.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(vl.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Pe("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};jE=function(e,t,n,r){n!==r&&(t.flags|=4)};function Na(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bj(e,t,n){var r=t.pendingProps;switch(Mg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return Ut(t.type)&&Xu(),mt(t),null;case 3:return r=t.stateNode,Ko(),Ae(Bt),Ae(bt),Kg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($c(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dn!==null&&(sm(Dn),Dn=null))),Qp(e,t),mt(t),null;case 5:Hg(t);var s=di(Al.current);if(n=t.type,e!==null&&t.stateNode!=null)OE(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return mt(t),null}if(e=di(nr.current),$c(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Zn]=t,r[Pl]=i,e=(t.mode&1)!==0,n){case"dialog":Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":case"embed":Pe("load",r);break;case"video":case"audio":for(s=0;s<Ya.length;s++)Pe(Ya[s],r);break;case"source":Pe("error",r);break;case"img":case"image":case"link":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"input":Yv(r,i),Pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Pe("invalid",r);break;case"textarea":Jv(r,i),Pe("invalid",r)}Ep(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Mc(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Mc(r.textContent,a,e),s=["children",""+a]):vl.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Pe("scroll",r)}switch(n){case"input":Rc(r),Qv(r,i,!0);break;case"textarea":Rc(r),Xv(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ju)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=o_(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
41",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Zn]=t,e[Pl]=r,AE(e,t,!1,!1),t.stateNode=e;e:{switch(o=Sp(n,r),n){case"dialog":Pe("cancel",e),Pe("close",e),s=r;break;case"iframe":case"object":case"embed":Pe("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ya.length;s++)Pe(Ya[s],e);s=r;break;case"source":Pe("error",e),s=r;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),s=r;break;case"details":Pe("toggle",e),s=r;break;case"input":Yv(e,r),s=vp(e,r),Pe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Be({},r,{value:void 0}),Pe("invalid",e);break;case"textarea":Jv(e,r),s=bp(e,r),Pe("invalid",e);break;default:s=r}Ep(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?c_(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&a_(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&wl(e,l):typeof l=="number"&&wl(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(vl.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Pe("scroll",e):l!=null&&_g(e,i,l,o))}switch(n){case"input":Rc(e),Qv(e,r,!1);break;case"textarea":Rc(e),Xv(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ps(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?xo(e,!!r.multiple,i,!1):r.defaultValue!=null&&xo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Ju)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return mt(t),null;case 6:if(e&&t.stateNode!=null)jE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(n=di(Al.current),di(nr.current),$c(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zn]=t,(i=r.nodeValue!==n)&&(e=Xt,e!==null))switch(e.tag){case 3:Mc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mc(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zn]=t,t.stateNode=r}return mt(t),null;case 13:if(Ae($e),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&Jt!==null&&t.mode&1&&!(t.flags&128))Q_(),Wo(),t.flags|=98560,i=!1;else if(i=$c(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(z(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(z(317));i[Zn]=t}else Wo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mt(t),i=!1}else Dn!==null&&(sm(Dn),Dn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||$e.current&1?tt===0&&(tt=3):sy())),t.updateQueue!==null&&(t.flags|=4),mt(t),null);case 4:return Ko(),Qp(e,t),e===null&&Cl(t.stateNode.containerInfo),mt(t),null;case 10:return Bg(t.type._context),mt(t),null;case 17:return Ut(t.type)&&Xu(),mt(t),null;case 19:if(Ae($e),i=t.memoizedState,i===null)return mt(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Na(i,!1);else{if(tt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=id(e),o!==null){for(t.flags|=128,Na(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Te($e,$e.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ke()>Go&&(t.flags|=128,r=!0,Na(i,!1),t.lanes=4194304)}else{if(!r)if(e=id(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Na(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ne)return mt(t),null}else 2*Ke()-i.renderingStartTime>Go&&n!==1073741824&&(t.flags|=128,r=!0,Na(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,n=$e.current,Te($e,r?n&1|2:n&1),t):(mt(t),null);case 22:case 23:return ry(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Kt&1073741824&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function _j(e,t){switch(Mg(t),t.tag){case 1:return Ut(t.type)&&Xu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 23,144 bytes, line 41
41case 3:return Ko(),Ae(Bt),Ae(bt),Kg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hg(t),null;case 13:if(Ae($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae($e),null;case 4:return Ko(),null;case 10:return Bg(t.type._context),null;case 22:case 23:return ry(),null;case 24:return null;default:return null}}var Bc=!1,vt=!1,Ej=typeof WeakSet=="function"?WeakSet:Set,q=null;function fo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function Jp(e,t,n){try{n()}catch(r){ze(e,t,r)}}var B0=!1;function Sj(e,t){if(Np=Gu,e=M_(),Lg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var p;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===s&&(a=o),h===i&&++u===r&&(l=o),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lp={focusedElem:e,selectionRange:n},Gu=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,b=w.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:An(t.type,v),b);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(_){ze(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return w=B0,B0=!1,w}function al(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Jp(t,n,i)}s=s.next}while(s!==r)}}function Xd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function IE(e){var t=e.alternate;t!==null&&(e.alternate=null,IE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zn],delete t[Pl],delete t[$p],delete t[oj],delete t[aj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function NE(e){return e.tag===5||e.tag===3||e.tag===4}function U0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||NE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ju));else if(r!==4&&(e=e.child,e!==null))for(Zp(e,t,n),e=e.sibling;e!==null;)Zp(e,t,n),e=e.sibling}function em(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(em(e,t,n),e=e.sibling;e!==null;)em(e,t,n),e=e.sibling}var at=null,Ln=!1;function Wr(e,t,n){for(n=n.child;n!==null;)LE(e,t,n),n=n.sibling}function LE(e,t,n){if(tr&&typeof tr.onCommitFiberUnmount=="function")try{tr.onCommitFiberUnmount(Wd,n)}catch{}switch(n.tag){case 5:vt||fo(n,t);case 6:var r=at,s=Ln;at=null,Wr(e,t,n),at=r,Ln=s,at!==null&&(Ln?(e=at,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):at.removeChild(n.stateNode));break;case 18:at!==null&&(Ln?(e=at,n=n.stateNode,e.nodeType===8?th(e.parentNode,n):e.nodeType===1&&th(e,n),El(e)):th(at,n.stateNode));break;case 4:r=at,s=Ln,at=n.stateNode.containerInfo,Ln=!0,Wr(e,t,n),at=r,Ln=s;break;case 0:case 11:case 14:case 15:if(!vt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Jp(n,t,o),s=s.next}while(s!==r)}Wr(e,t,n);break;case 1:if(!vt&&(fo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ze(n,t,a)}Wr(e,t,n);break;case 21:Wr(e,t,n);break;case 22:n.mode&1?(vt=(r=vt)||n.memoizedState!==null,Wr(e,t,n),vt=r):Wr(e,t,n);break;default:Wr(e,t,n)}}function z0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ej),t.forEach(function(r){var s=Ij.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Sn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:at=a.stateNode,Ln=!1;break e;case 3:at=a.stateNode.containerInfo,Ln=!0;break e;case 4:at=a.stateNode.containerInfo,Ln=!0;break e}a=a.return}if(at===null)throw Error(z(160));LE(i,o,s),at=null,Ln=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){ze(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)DE(t,e),t=t.sibling}function DE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Sn(t,e),qn(e),r&4){try{al(3,e,e.return),Xd(3,e)}catch(v){ze(e,e.return,v)}try{al(5,e,e.return)}catch(v){ze(e,e.return,v)}}break;case 1:Sn(t,e),qn(e),r&512&&n!==null&&fo(n,n.return);break;case 5:if(Sn(t,e),qn(e),r&512&&n!==null&&fo(n,n.return),e.flags&32){var s=e.stateNode;try{wl(s,"")}catch(v){ze(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&s_(s,i),Sp(a,o);var c=Sp(a,i);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?c_(s,d):u==="dangerouslySetInnerHTML"?a_(s,d):u==="children"?wl(s,d):_g(s,u,d,c)}switch(a){case"input":wp(s,i);break;case"textarea":i_(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?xo(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?xo(s,!!i.multiple,i.defaultValue,!0):xo(s,!!i.multiple,i.multiple?[]:"",!1))}s[Pl]=i}catch(v){ze(e,e.return,v)}}break;case 6:if(Sn(t,e),qn(e),r&4){if(e.stateNode===null)throw Error(z(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(v){ze(e,e.return,v)}}break;case 3:if(Sn(t,e),qn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{El(t.containerInfo)}catch(v){ze(e,e.return,v)}break;case 4:Sn(t,e),qn(e);break;case 13:Sn(t,e),qn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(ty=Ke())),r&4&&z0(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(vt=(c=vt)||u,Sn(t,e),vt=c):Sn(t,e),qn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(q=e,u=e.child;u!==null;){for(d=q=u;q!==null;){switch(h=q,p=h.child,h.tag){case 0:case 11:case 14:case 15:al(4,h,h.return);break;case 1:fo(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){ze(r,n,v)}}break;case 5:fo(h,h.return);break;case 22:if(h.memoizedState!==null){H0(d);continue}}p!==null?(p.return=h,q=p):H0(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{s=d.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=l_("display",o))}catch(v){ze(e,e.return,v)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){ze(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Sn(t,e),qn(e),r&4&&z0(e);break;case 21:break;default:Sn(t,e),qn(e)}}function qn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(NE(n)){var r=n;break e}n=n.return}throw Error(z(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(wl(s,""),r.flags&=-33);var i=U0(e);em(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=U0(e);Zp(e,a,o);break;default:throw Error(z(161))}}catch(l){ze(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tj(e,t,n){q=e,ME(e)}function ME(e,t,n){for(var r=(e.mode&1)!==0;q!==null;){var s=q,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Bc;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||vt;a=Bc;var c=vt;if(Bc=o,(vt=l)&&!c)for(q=s;q!==null;)o=q,l=o.child,o.tag===22&&o.memoizedState!==null?K0(s):l!==null?(l.return=o,q=l):K0(s);for(;i!==null;)q=i,ME(i),i=i.sibling;q=s,Bc=a,vt=c}W0(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,q=i):W0(e)}}function W0(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:vt||Xd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!vt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:An(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&P0(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}P0(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&El(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}vt||t.flags&512&&Xp(t)}catch(h){ze(t,t.return,h)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function H0(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function K0(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Xd(4,t)}catch(l){ze(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){ze(t,s,l)}}var i=t.return;try{Xp(t)}catch(l){ze(t,i,l)}break;case 5:var o=t.return;try{Xp(t)}catch(l){ze(t,o,l)}}}catch(l){ze(t,t.return,l)}if(t===e){q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,q=a;break}q=t.return}}var Cj=Math.ceil,ld=Lr.ReactCurrentDispatcher,Zg=Lr.ReactCurrentOwner,mn=Lr.ReactCurrentBatchConfig,me=0,it=null,Ye=null,ct=0,Kt=0,ho=Ms(0),tt=0,Nl=null,Ai=0,Zd=0,ey=0,ll=null,$t=null,ty=0,Go=1/0,yr=null,cd=!1,tm=null,Ss=null,Uc=!1,ms=null,ud=0,cl=0,nm=null,Tu=-1,Cu=0;function jt(){return me&6?Ke():Tu!==-1?Tu:Tu=Ke()}function Ts(e){return e.mode&1?me&2&&ct!==0?ct&-ct:cj.transition!==null?(Cu===0&&(Cu=b_()),Cu):(e=be,e!==0||(e=window.event,e=e===void 0?16:P_(e.type)),e):1}function Vn(e,t,n,r){if(50<cl)throw cl=0,nm=null,Error(z(185));rc(e,n,r),(!(me&2)||e!==it)&&(e===it&&(!(me&2)&&(Zd|=n),tt===4&&as(e,ct)),zt(e,r),n===1&&me===0&&!(t.mode&1)&&(Go=Ke()+500,Yd&&$s()))}function zt(e,t){var n=e.callbackNode;cO(e,t);var r=qu(e,e===it?ct:0);if(r===0)n!==null&&t0(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&t0(n),t===1)e.tag===0?lj(q0.bind(null,e)):q_(q0.bind(null,e)),sj(function(){!(me&6)&&$s()}),n=null;else{switch(__(r)){case 1:n=kg;break;case 4:n=w_;break;case 16:n=Ku;break;case 536870912:n=x_;break;default:n=Ku}n=HE(n,$E.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $E(e,t){if(Tu=-1,Cu=0,me&6)throw Error(z(327));var n=e.callbackNode;if(To()&&e.callbackNode!==n)return null;var r=qu(e,e===it?ct:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=dd(e,r);else{t=r;var s=me;me|=2;var i=FE();(it!==e||ct!==t)&&(yr=null,Go=Ke()+500,Ei(e,t));do try{Rj();break}catch(a){VE(e,a)}while(!0);Fg(),ld.current=i,me=s,Ye!==null?t=0:(it=null,ct=0,t=tt)}if(t!==0){if(t===2&&(s=Rp(e),s!==0&&(r=s,t=rm(e,s))),t===1)throw n=Nl,Ei(e,0),as(e,r),zt(e,Ke()),n;if(t===6)as(e,r);else{if(s=e.current.alternate,!(r&30)&&!kj(s)&&(t=dd(e,r),t===2&&(i=Rp(e),i!==0&&(r=i,t=rm(e,i))),t===1))throw n=Nl,Ei(e,0),as(e,r),zt(e,Ke()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(z(345));case 2:ri(e,$t,yr);break;case 3:if(as(e,r),(r&130023424)===r&&(t=ty+500-Ke(),10<t)){if(qu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){jt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Mp(ri.bind(null,e,$t,yr),t);break}ri(e,$t,yr);break;case 4:if(as(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-$n(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cj(r/1960))-r,10<r){e.timeoutHandle=Mp(ri.bind(null,e,$t,yr),r);break}ri(e,$t,yr);break;case 5:ri(e,$t,yr);break;default:throw Error(z(329))}}}return zt(e,Ke()),e.callbackNode===n?$E.bind(null,e):null}function rm(e,t){var n=ll;return e.current.memoizedState.isDehydrated&&(Ei(e,t).flags|=256),e=dd(e,t),e!==2&&(t=$t,$t=n,t!==null&&sm(t)),e}function sm(e){$t===null?$t=e:$t.push.apply($t,e)}function kj(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Fn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function as(e,t){for(t&=~ey,t&=~Zd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$n(t),r=1<<n;e[n]=-1,t&=~r}}function q0(e){if(me&6)throw Error(z(327));To();var t=qu(e,0);if(!(t&1))return zt(e,Ke()),null;var n=dd(e,t);if(e.tag!==0&&n===2){var r=Rp(e);r!==0&&(t=r,n=rm(e,r))}if(n===1)throw n=Nl,Ei(e,0),as(e,t),zt(e,Ke()),n;if(n===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ri(e,$t,yr),zt(e,Ke()),null}function ny(e,t){var n=me;me|=1;try{return e(t)}finally{me=n,me===0&&(Go=Ke()+500,Yd&&$s())}}function Oi(e){ms!==null&&ms.tag===0&&!(me&6)&&To();var t=me;me|=1;var n=mn.transition,r=be;try{if(mn.transition=null,be=1,e)return e()}finally{be=r,mn.transition=n,me=t,!(me&6)&&$s()}}function ry(){Kt=ho.current,Ae(ho)}function Ei(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,rj(n)),Ye!==null)for(n=Ye.return;n!==null;){var r=n;switch(Mg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xu();break;case 3:Ko(),Ae(Bt),Ae(bt),Kg();break;case 5:Hg(r);break;case 4:Ko();break;case 13:Ae($e);break;case 19:Ae($e);break;case 10:Bg(r.type._context);break;case 22:case 23:ry()}n=n.return}if(it=e,Ye=e=Cs(e.current,null),ct=Kt=t,tt=0,Nl=null,ey=Zd=Ai=0,$t=ll=null,ui!==null){for(t=0;t<ui.length;t++)if(n=ui[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}ui=null}return e}function VE(e,t){do{var n=Ye;try{if(Fg(),_u.current=ad,od){for(var r=Fe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}od=!1}if(Ri=0,rt=et=Fe=null,ol=!1,Ol=0,Zg.current=null,n===null||n.return===null){tt=1,Nl=t,Ye=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=ct,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=N0(o);if(p!==null){p.flags&=-257,L0(p,o,a,i,t),p.mode&1&&I0(i,c,t),t=p,l=c;var w=t.updateQueue;if(w===null){var v=new Set;v.add(l),t.updateQueue=v}else w.add(l);break e}else{if(!(t&1)){I0(i,c,t),sy();break e}l=Error(z(426))}}else if(Ne&&a.mode&1){var b=N0(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),L0(b,o,a,i,t),$g(qo(l,a));break e}}i=l=qo(l,a),tt!==4&&(tt=2),ll===null?ll=[i]:ll.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=_E(i,l,t);k0(i,m);break e;case 1:a=l;var g=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ss===null||!Ss.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=EE(i,a,t);k0(i,_);break e}}i=i.return}while(i!==null)}UE(n)}catch(E){t=E,Ye===n&&n!==null&&(Ye=n=n.return);continue}break}while(!0)}function FE(){var e=ld.current;return ld.current=ad,e===null?ad:e}function sy(){(tt===0||tt===3||tt===2)&&(tt=4),it===null||!(Ai&268435455)&&!(Zd&268435455)||as(it,ct)}function dd(e,t){var n=me;me|=2;var r=FE();(it!==e||ct!==t)&&(yr=null,Ei(e,t));do try{Pj();break}catch(s){VE(e,s)}while(!0);if(Fg(),me=n,ld.current=r,Ye!==null)throw Error(z(261));return it=null,ct=0,tt}function Pj(){for(;Ye!==null;)BE(Ye)}function Rj(){for(;Ye!==null&&!eO();)BE(Ye)}function BE(e){var t=WE(e.alternate,e,Kt);e.memoizedProps=e.pendingProps,t===null?UE(e):Ye=t,Zg.current=null}function UE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_j(n,t),n!==null){n.flags&=32767,Ye=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{tt=6,Ye=null;return}}else if(n=bj(n,t,Kt),n!==null){Ye=n;return}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);tt===0&&(tt=5)}function ri(e,t,n){var r=be,s=mn.transition;try{mn.transition=null,be=1,Aj(e,t,n,r)}finally{mn.transition=s,be=r}return null}function Aj(e,t,n,r){do To();while(ms!==null);if(me&6)throw Error(z(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(z(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(uO(e,i),e===it&&(Ye=it=null,ct=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Uc||(Uc=!0,HE(Ku,function(){return To(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=mn.transition,mn.transition=null;var o=be;be=1;var a=me;me|=4,Zg.current=null,Sj(e,n),DE(n,e),QO(Lp),Gu=!!Np,Lp=Np=null,e.current=n,Tj(n),tO(),me=a,be=o,mn.transition=i}else e.current=n;if(Uc&&(Uc=!1,ms=e,ud=s),i=e.pendingLanes,i===0&&(Ss=null),sO(n.stateNode),zt(e,Ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(cd)throw cd=!1,e=tm,tm=null,e;return ud&1&&e.tag!==0&&To(),i=e.pendingLanes,i&1?e===nm?cl++:(cl=0,nm=e):cl=0,$s(),null}function To(){if(ms!==null){var e=__(ud),t=mn.transition,n=be;try{if(mn.transition=null,be=16>e?16:e,ms===null)var r=!1;else{if(e=ms,ms=null,ud=0,me&6)throw Error(z(331));var s=me;for(me|=4,q=e.current;q!==null;){var i=q,o=i.child;if(q.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(q=c;q!==null;){var u=q;switch(u.tag){case 0:case 11:case 15:al(8,u,i)}var d=u.child;if(d!==null)d.return=u,q=d;else for(;q!==null;){u=q;var h=u.sibling,p=u.return;if(IE(u),u===c){q=null;break}if(h!==null){h.return=p,q=h;break}q=p}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}q=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,q=o;else e:for(;q!==null;){if(i=q,i.flags&2048)switch(i.tag){case 0:case 11:case 15:al(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,q=m;break e}q=i.return}}var g=e.current;for(q=g;q!==null;){o=q;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,q=x;else e:for(o=g;q!==null;){if(a=q,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Xd(9,a)}}catch(E){ze(a,a.return,E)}if(a===o){q=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,q=_;break e}q=a.return}}if(me=s,$s(),tr&&typeof tr.onPostCommitFiberRoot=="function")try{tr.onPostCommitFiberRoot(Wd,e)}catch{}r=!0}return r}finally{be=n,mn.transition=t}}return!1}function G0(e,t,n){t=qo(n,t),t=_E(e,t,1),e=Es(e,t,1),t=jt(),e!==null&&(rc(e,1,t),zt(e,t))}function ze(e,t,n){if(e.tag===3)G0(e,e,n);else for(;t!==null;){if(t.tag===3){G0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ss===null||!Ss.has(r))){e=qo(n,e),e=EE(t,e,1),t=Es(t,e,1),e=jt(),t!==null&&(rc(t,1,e),zt(t,e));break}}t=t.return}}function Oj(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=jt(),e.pingedLanes|=e.suspendedLanes&n,it===e&&(ct&n)===n&&(tt===4||tt===3&&(ct&130023424)===ct&&500>Ke()-ty?Ei(e,0):ey|=n),zt(e,t)}function zE(e,t){t===0&&(e.mode&1?(t=jc,jc<<=1,!(jc&130023424)&&(jc=4194304)):t=1);var n=jt();e=Pr(e,t),e!==null&&(rc(e,t,n),zt(e,n))}function jj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zE(e,n)}function Ij(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),zE(e,n)}var WE;WE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Bt.current)Vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vt=!1,xj(e,t,n);Vt=!!(e.flags&131072)}else Vt=!1,Ne&&t.flags&1048576&&G_(t,td,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Su(e,t),e=t.pendingProps;var s=zo(t,bt.current);So(t,n),s=Gg(null,t,r,e,s,n);var i=Yg();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ut(r)?(i=!0,Zu(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,zg(t),s.updater=Jd,t.stateNode=s,s._reactInternals=t,Wp(t,r,e,n),t=qp(null,t,r,!0,i,n)):(t.tag=0,Ne&&i&&Dg(t),kt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Su(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Lj(r),e=An(r,e),s){case 0:t=Kp(null,t,r,e,n);break e;case 1:t=$0(null,t,r,e,n);break e;case 11:t=D0(null,t,r,e,n);break e;case 14:t=M0(null,t,r,An(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:An(r,s),Kp(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:An(r,s),$0(e,t,r,s,n);case 3:e:{if(kE(t),e===null)throw Error(z(387));
vendor: 4,373 bytes, line 41
41r=t.pendingProps,i=t.memoizedState,s=i.element,eE(e,t),sd(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=qo(Error(z(423)),t),t=V0(e,t,r,n,s);break e}else if(r!==s){s=qo(Error(z(424)),t),t=V0(e,t,r,n,s);break e}else for(Jt=_s(t.stateNode.containerInfo.firstChild),Xt=t,Ne=!0,Dn=null,n=X_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wo(),r===s){t=Rr(e,t,n);break e}kt(e,t,r,n)}t=t.child}return t;case 5:return tE(t),e===null&&Bp(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Dp(r,s)?o=null:i!==null&&Dp(r,i)&&(t.flags|=32),CE(e,t),kt(e,t,o,n),t.child;case 6:return e===null&&Bp(t),null;case 13:return PE(e,t,n);case 4:return Wg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ho(t,null,r,n):kt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:An(r,s),D0(e,t,r,s,n);case 7:return kt(e,t,t.pendingProps,n),t.child;case 8:return kt(e,t,t.pendingProps.children,n),t.child;case 12:return kt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,Te(nd,r._currentValue),r._currentValue=o,i!==null)if(Fn(i.value,o)){if(i.children===s.children&&!Bt.current){t=Rr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tr(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Up(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(z(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Up(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}kt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,So(t,n),s=vn(s),r=r(s),t.flags|=1,kt(e,t,r,n),t.child;case 14:return r=t.type,s=An(r,t.pendingProps),s=An(r.type,s),M0(e,t,r,s,n);case 15:return SE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:An(r,s),Su(e,t),t.tag=1,Ut(r)?(e=!0,Zu(t)):e=!1,So(t,n),bE(t,r,s),Wp(t,r,s,n),qp(null,t,r,!0,e,n);case 19:return RE(e,t,n);case 22:return TE(e,t,n)}throw Error(z(156,t.tag))};function HE(e,t){return v_(e,t)}function Nj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(e,t,n,r){return new Nj(e,t,n,r)}function iy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lj(e){if(typeof e=="function")return iy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sg)return 11;if(e===Tg)return 14}return 2}function Cs(e,t){var n=e.alternate;return n===null?(n=hn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ku(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")iy(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case no:return Si(n.children,s,i,t);case Eg:o=8,s|=8;break;case pp:return e=hn(12,n,t,s|2),e.elementType=pp,e.lanes=i,e;case mp:return e=hn(13,n,t,s),e.elementType=mp,e.lanes=i,e;case gp:return e=hn(19,n,t,s),e.elementType=gp,e.lanes=i,e;case t_:return ef(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z1:o=10;break e;case e_:o=9;break e;case Sg:o=11;break e;
vendor: 4,987 bytes, line 41
41case Tg:o=14;break e;case rs:o=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=hn(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Si(e,t,n,r){return e=hn(7,e,r,t),e.lanes=n,e}function ef(e,t,n,r){return e=hn(22,e,r,t),e.elementType=t_,e.lanes=n,e.stateNode={isHidden:!1},e}function ch(e,t,n){return e=hn(6,e,null,t),e.lanes=n,e}function uh(e,t,n){return t=hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dj(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wf(0),this.expirationTimes=Wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wf(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function oy(e,t,n,r,s,i,o,a,l){return e=new Dj(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zg(i),e}function Mj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:to,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function KE(e){if(!e)return Rs;e=e._reactInternals;e:{if(Di(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ut(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var n=e.type;if(Ut(n))return K_(e,n,t)}return t}function qE(e,t,n,r,s,i,o,a,l){return e=oy(n,r,!0,e,s,i,o,a,l),e.context=KE(null),n=e.current,r=jt(),s=Ts(n),i=Tr(r,s),i.callback=t??null,Es(n,i,s),e.current.lanes=s,rc(e,s,r),zt(e,r),e}function tf(e,t,n,r){var s=t.current,i=jt(),o=Ts(s);return n=KE(n),t.context===null?t.context=n:t.pendingContext=n,t=Tr(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Es(s,t,o),e!==null&&(Vn(e,s,o,i),bu(e,s,o)),o}function fd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Y0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ay(e,t){Y0(e,t),(e=e.alternate)&&Y0(e,t)}function $j(){return null}var GE=typeof reportError=="function"?reportError:function(e){console.error(e)};function ly(e){this._internalRoot=e}nf.prototype.render=ly.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));tf(e,t,null,null)};nf.prototype.unmount=ly.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Oi(function(){tf(null,e,null,null)}),t[kr]=null}};function nf(e){this._internalRoot=e}nf.prototype.unstable_scheduleHydration=function(e){if(e){var t=T_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<os.length&&t!==0&&t<os[n].priority;n++);os.splice(n,0,e),n===0&&k_(e)}};function cy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Q0(){}function Vj(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=fd(o);i.call(c)}}var o=qE(t,r,e,0,null,!1,!1,"",Q0);return e._reactRootContainer=o,e[kr]=o.current,Cl(e.nodeType===8?e.parentNode:e),Oi(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=fd(l);a.call(c)}}var l=oy(e,0,!1,null,null,!1,!1,"",Q0);return e._reactRootContainer=l,e[kr]=l.current,Cl(e.nodeType===8?e.parentNode:e),Oi(function(){tf(t,l,n,r)}),l}function sf(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=fd(o);a.call(l)}}tf(t,o,e,s)}else o=Vj(n,t,e,s,r);return fd(o)}E_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ga(t.pendingLanes);n!==0&&(Pg(t,n|1),zt(t,Ke()),!(me&6)&&(Go=Ke()+500,$s()))}break;case 13:Oi(function(){var r=Pr(e,1);if(r!==null){var s=jt();Vn(r,e,1,s)}}),ay(e,1)}};Rg=function(e){if(e.tag===13){var t=Pr(e,134217728);if(t!==null){var n=jt();Vn(t,e,134217728,n)}ay(e,134217728)}};S_=function(e){if(e.tag===13){var t=Ts(e),n=Pr(e,t);if(n!==null){var r=jt();Vn(n,e,t,r)}ay(e,t)}};T_=function(){return be};C_=function(e,t){var n=be;try{return be=e,t()}finally{be=n}};Cp=function(e,t,n){switch(t){case"input":if(wp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Gd(r);
41if(!s)throw Error(z(90));r_(r),wp(r,s)}}}break;case"textarea":i_(e,n);break;case"select":t=n.value,t!=null&&xo(e,!!n.multiple,t,!1)}};f_=ny;h_=Oi;var Fj={usingClientEntryPoint:!1,Events:[ic,oo,Gd,u_,d_,ny]},La={findFiberByHostInstance:ci,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bj={bundleType:La.bundleType,version:La.version,rendererPackageName:La.rendererPackageName,rendererConfig:La.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Lr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=g_(e),e===null?null:e.stateNode},findFiberByHostInstance:La.findFiberByHostInstance||$j,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zc.isDisabled&&zc.supportsFiber)try{Wd=zc.inject(Bj),tr=zc}catch{}}nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fj;nn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cy(t))throw Error(z(200));return Mj(e,t,null,n)};nn.createRoot=function(e,t){if(!cy(e))throw Error(z(299));var n=!1,r="",s=GE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=oy(e,1,!1,null,null,n,!1,r,s),e[kr]=t.current,Cl(e.nodeType===8?e.parentNode:e),new ly(t)};nn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=g_(t),e=e===null?null:e.stateNode,e};nn.flushSync=function(e){return Oi(e)};nn.hydrate=function(e,t,n){if(!rf(t))throw Error(z(200));return sf(null,e,t,!0,n)};nn.hydrateRoot=function(e,t,n){if(!cy(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=GE;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=qE(t,null,e,1,n??null,s,!1,i,o),e[kr]=t.current,Cl(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new nf(t)};nn.render=function(e,t,n){if(!rf(t))throw Error(z(200));return sf(null,e,t,!1,n)};nn.unmountComponentAtNode=function(e){if(!rf(e))throw Error(z(40));return e._reactRootContainer?(Oi(function(){sf(null,null,e,!1,function(){e._reactRootContainer=null,e[kr]=null})}),!0):!1};nn.unstable_batchedUpdates=ny;nn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!rf(n))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return sf(e,t,n,!1,r)};nn.version="18.3.1-next-f1338f8080-20240426";function YE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YE)}catch(e){console.error(e)}}YE(),Y1.exports=nn;var Mi=Y1.exports;const QE=Nr(Mi);var JE,J0=Mi;JE=J0.createRoot,J0.hydrateRoot;var Uj=typeof Element<"u",zj=typeof Map=="function",Wj=typeof Set=="function",Hj=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Pu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Pu(e[r],t[r]))return!1;return!0}var i;if(zj&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Pu(r.value[1],t.get(r.value[0])))return!1;return!0}if(Wj&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Hj&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(Uj&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Pu(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var Kj=function(t,n){try{return Pu(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const qj=Nr(Kj);var Gj=function(e,t,n,r,s,i,o,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,s,i,o,a],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Yj=Gj;const X0=Nr(Yj);var Qj=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;
41if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<o.length;c++){var u=o[c];if(!l(u))return!1;var d=t[u],h=n[u];if(i=r?r.call(s,d,h,u):void 0,i===!1||i===void 0&&d!==h)return!1}return!0};const Jj=Nr(Qj);var XE=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(XE||{}),dh={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Z0=Object.values(XE),of={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ZE=Object.entries(of).reduce((e,[t,n])=>(e[n]=t,e),{}),Mn="data-rh",Co={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ko=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Xj=e=>{let t=ko(e,"title");const n=ko(e,Co.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=ko(e,Co.DEFAULT_TITLE);return t||r||void 0},Zj=e=>ko(e,Co.ON_CHANGE_CLIENT_STATE)||(()=>{}),fh=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),e2=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const a=s[i].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),t2=e=>console&&typeof console.warn=="function"&&console.warn(e),Da=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&t2(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(l=>{let c;const u=Object.keys(l);for(let h=0;h<u.length;h+=1){const p=u[h],w=p.toLowerCase();t.indexOf(w)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(w==="rel"&&l[w].toLowerCase()==="stylesheet")&&(c=w),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),o[c]||(o[c]={}),r[c][d]?!1:(o[c][d]=!0,!0)}).reverse().forEach(l=>s.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const c=a[l],u={...r[c],...o[c]};r[c]=u}return s},[]).reverse()},n2=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},r2=e=>({baseTag:e2(["href"],e),bodyAttributes:fh("bodyAttributes",e),defer:ko(e,Co.DEFER),encode:ko(e,Co.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:fh("htmlAttributes",e),linkTags:Da("link",["rel","href"],e),metaTags:Da("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Da("noscript",["innerHTML"],e),onChangeClientState:Zj(e),scriptTags:Da("script",["src","innerHTML"],e),styleTags:Da("style",["cssText"],e),title:Xj(e),titleAttributes:fh("titleAttributes",e),prioritizeSeoTags:n2(e,Co.PRIORITIZE_SEO_TAGS)}),eS=e=>Array.isArray(e)?e.join(""):e,s2=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},hh=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(s2(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},ew=(e,t)=>({...e,[t]:void 0}),i2=["noscript","script","style"],im=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),tS=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),o2=(e,t,n,r)=>{const s=tS(n),i=eS(t);return s?`<${e} ${Mn}="true" ${s}>${im(i,r)}</${e}>`:`<${e} ${Mn}="true">${im(i,r)}</${e}>`},a2=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof i[u]>"u"?u:`${u}="${im(i[u],n)}"`;return c?`${c} ${d}`:d},""),a=i.innerHTML||i.cssText||"",l=i2.indexOf(e)===-1;return`${r}<${e} ${Mn}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),nS=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=of[r];return n[s||r]=e[r],n},t),l2=(e,t,n)=>{const r={key:t,[Mn]:!0},s=nS(n,r);return[j.createElement("title",s,t)]},Ru=(e,t)=>t.map((n,r)=>{const s={key:r,[Mn]:!0};
41return Object.keys(n).forEach(i=>{const a=of[i]||i;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=n[i]}),j.createElement(e,s)}),on=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>l2(e,t.title,t.titleAttributes),toString:()=>o2(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>nS(t),toString:()=>tS(t)};default:return{toComponent:()=>Ru(e,t),toString:()=>a2(e,t,n)}}},c2=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=hh(e,dh.meta),i=hh(t,dh.link),o=hh(n,dh.script);return{priorityMethods:{toComponent:()=>[...Ru("meta",s.priority),...Ru("link",i.priority),...Ru("script",o.priority)],toString:()=>`${on("meta",s.priority,r)} ${on("link",i.priority,r)} ${on("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},u2=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:h}=e,p={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:h}=c2(e)),{priority:p,base:on("base",t,r),bodyAttributes:on("bodyAttributes",n,r),htmlAttributes:on("htmlAttributes",s,r),link:on("link",u,r),meta:on("meta",d,r),noscript:on("noscript",i,r),script:on("script",h,r),style:on("style",o,r),title:on("title",{title:a,titleAttributes:l},r)}},om=u2,Wc=[],uy=!!(typeof window<"u"&&window.document&&window.document.createElement),am=class{constructor(e,t){ve(this,"instances",[]);ve(this,"canUseDOM",uy);ve(this,"context");ve(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Wc:this.instances,add:e=>{(this.canUseDOM?Wc:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Wc:this.instances).indexOf(e);(this.canUseDOM?Wc:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=om({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},d2=parseInt(j.version.split(".")[0],10),lm=d2>=19,f2={},rS=j.createContext(f2),gi,dy=(gi=class extends y.Component{constructor(n){super(n);ve(this,"helmetData");lm?this.helmetData=null:this.helmetData=new am(this.props.context||{},gi.canUseDOM)}render(){return lm?j.createElement(j.Fragment,null,this.props.children):j.createElement(rS.Provider,{value:this.helmetData.value},this.props.children)}},ve(gi,"canUseDOM",uy),gi),Ui=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Mn}]`),s=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c))if(c==="innerHTML")l.innerHTML=a.innerHTML;else if(c==="cssText"){const u=a.cssText;l.appendChild(document.createTextNode(u))}else{const u=c,d=typeof a[u]>
41"u"?"":a[u];l.setAttribute(c,d)}l.setAttribute(Mn,"true"),s.some((c,u)=>(o=u,l.isEqualNode(c)))?s.splice(o,1):i.push(l)}),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),i.forEach(a=>n.appendChild(a)),{oldTags:s,newTags:i}},cm=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Mn),s=r?r.split(","):[],i=[...s],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const c=i.indexOf(a);c!==-1&&i.splice(c,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);s.length===i.length?n.removeAttribute(Mn):n.getAttribute(Mn)!==o.join(",")&&n.setAttribute(Mn,o.join(","))},h2=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=eS(e)),cm("title",t)},tw=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:h}=e;cm("body",r),cm("html",s),h2(d,h);const p={baseTag:Ui("base",n),linkTags:Ui("link",i),metaTags:Ui("meta",o),noscriptTags:Ui("noscript",a),scriptTags:Ui("script",c),styleTags:Ui("style",u)},w={},v={};Object.keys(p).forEach(b=>{const{newTags:m,oldTags:g}=p[b];m.length&&(w[b]=m),g.length&&(v[b]=p[b].oldTags)}),t&&t(),l(e,w,v)},Ma=null,p2=e=>{Ma&&cancelAnimationFrame(Ma),e.defer?Ma=requestAnimationFrame(()=>{tw(e,()=>{Ma=null})}):(tw(e),Ma=null)},m2=p2,nw=class extends y.Component{constructor(){super(...arguments);ve(this,"rendered",!1)}shouldComponentUpdate(t){return!Jj(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=r2(t.get().map(i=>{const{context:o,...a}=i.props;return a}));dy.canUseDOM?m2(s):om&&(r=om(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Au=[],rw=e=>{const t={};for(const n of Object.keys(e))t[ZE[n]||n]=e[n];return t},Gs=e=>{const t={};for(const n of Object.keys(e)){const r=of[n];t[r||n]=e[n]}return t},sw=(e,t)=>{if(!uy)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],o=Object.keys(t);for(const a of i)o.includes(a)||n.removeAttribute(a);for(const a of o){const l=t[a];l==null||l===!1?n.removeAttribute(a):l===!0?n.setAttribute(a,""):n.setAttribute(a,String(l))}o.length>0?n.setAttribute(r,o.join(",")):n.removeAttribute(r)},ph=()=>{const e={},t={};for(const n of Au){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,rw(r)),s&&Object.assign(t,rw(s))}sw("html",e),sw("body",t)},g2=class extends y.Component{componentDidMount(){Au.push(this),ph()}componentDidUpdate(){ph()}componentWillUnmount(){const e=Au.indexOf(this);e!==-1&&Au.splice(e,1),ph()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return j.createElement("title",Gs(t),e)}renderBase(){const{base:e}=this.props;return e?j.createElement("base",Gs(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>j.createElement("meta",{key:n,...Gs(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>j.createElement("link",{key:n,...Gs(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=Gs(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),j.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,i=Gs(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),j.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=Gs(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),j.createElement("noscript",{key:n,...i})})}render(){return j.createElement(j.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},fp,y2=(fp=class extends y.Component{shouldComponentUpdate(e){return!qj(ew(this.props,"helmetData"),ew(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
41warnOnInvalidChildren(e,t){return X0(Z0.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Z0.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),X0(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return j.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((l,c)=>(l[ZE[c]||c]=i[c],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,s),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof am)){const s=r;r=new am(s.context,!0),delete n.helmetData}return lm?j.createElement(g2,{...n}):r?j.createElement(nw,{...n,context:r.value}):j.createElement(rS.Consumer,null,s=>j.createElement(nw,{...n,context:s}))}},ve(fp,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),fp);const v2="modulepreload",w2=function(e){return"/"+e},iw={},N=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=w2(l),l in iw)return;iw[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":v2,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((h,p)=>{d.addEventListener("load",h),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},ow="chunk-reload-at";function L(e){return y.lazy(async()=>{try{return await e()}catch(t){const n=Number(sessionStorage.getItem(ow)||0);if(Date.now()-n>1e4)return sessionStorage.setItem(ow,String(Date.now())),window.location.reload(),await new Promise(()=>{});throw t}})}var x2=e=>{switch(e){case"success":return E2;case"info":return T2;case"warning":return S2;case"error":return C2;default:return null}},b2=Array(12).fill(0),_2=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},b2.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),E2=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),S2=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.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"})),T2=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),C2=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),k2=j.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"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),P2=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};
41return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},um=1,R2=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:um++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
41this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],j.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(O2(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:u})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:u})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:u})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||um++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Mt=new R2,A2=(e,t)=>{let n=(t==null?void 0:t.id)||um++;return Mt.addToast({title:e,...t,id:n}),n},O2=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",j2=A2,I2=()=>Mt.toasts,N2=()=>Mt.getActiveToasts(),sS=Object.assign(j2,{success:Mt.success,info:Mt.info,warning:Mt.warning,error:Mt.error,custom:Mt.custom,message:Mt.message,promise:Mt.promise,dismiss:Mt.dismiss,loading:Mt.loading},{getHistory:I2,getToasts:N2});function L2(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}L2(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
41left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
41:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
41--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 42`);function Hc(e){return e.label!==void 0}var D2=3,M2="32px",$2="16px",aw=4e3,V2=356,F2=14,B2=20,U2=200;function Tn(...e){return e.filter(Boolean).join(" ")}function z2(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var W2=e=>{var t,n,r,s,i,o,a,l,c,u,d;let{invert:h,toast:p,unstyled:w,interacting:v,setHeights:b,visibleToasts:m,heights:g,index:x,toasts:_,expanded:E,removeToast:S,defaultRichColors:T,closeButton:C,style:P,cancelButtonStyle:R,actionButtonStyle:$,className:A="",descriptionClassName:B="",duration:D,position:W,gap:H,loadingIcon:F,expandByDefault:k,classNames:O,icons:U,closeButtonAriaLabel:X="Close toast",pauseWhenPageIsHidden:J}=e,[re,Y]=j.useState(null),[ue,Oe]=j.useState(null),[he,dt]=j.useState(!1),[Qe,xn]=j.useState(!1),[sn,$r]=j.useState(!1),[ft,Vi]=j.useState(!1),[Ea,Ws]=j.useState(!1),[bn,Hs]=j.useState(0),[Vr,Sa]=j.useState(0),Wt=j.useRef(p.duration||D||aw),_c=j.useRef(null),hr=j.useRef(null),Ec=x===0,Ks=x+1<=m,Lt=p.type,Fr=p.dismissible!==!1,Df=p.className||"",Mf=p.descriptionClassName||"",Fi=j.useMemo(()=>g.findIndex(ee=>ee.toastId===p.id)||0,[g,p.id]),je=j.useMemo(()=>{var ee;return(ee=p.closeButton)!=null?ee:C},[p.closeButton,C]),Ta=j.useMemo(()=>p.duration||D||aw,[p.duration,D]),Ca=j.useRef(0),Br=j.useRef(0),ka=j.useRef(0),pr=j.useRef(null),[Sc,Tc]=W.split("-"),M=j.useMemo(()=>g.reduce((ee,pe,ye)=>ye>=Fi?ee:ee+pe.height,0),[g,Fi]),_e=P2(),Ee=p.invert||h,Je=Lt==="loading";Br.current=j.useMemo(()=>
42Fi*H+M,[Fi,M]),j.useEffect(()=>{Wt.current=Ta},[Ta]),j.useEffect(()=>{dt(!0)},[]),j.useEffect(()=>{let ee=hr.current;if(ee){let pe=ee.getBoundingClientRect().height;return Sa(pe),b(ye=>[{toastId:p.id,height:pe,position:p.position},...ye]),()=>b(ye=>ye.filter(Dt=>Dt.toastId!==p.id))}},[b,p.id]),j.useLayoutEffect(()=>{if(!he)return;let ee=hr.current,pe=ee.style.height;ee.style.height="auto";let ye=ee.getBoundingClientRect().height;ee.style.height=pe,Sa(ye),b(Dt=>Dt.find(_n=>_n.toastId===p.id)?Dt.map(_n=>_n.toastId===p.id?{..._n,height:ye}:_n):[{toastId:p.id,height:ye,position:p.position},...Dt])},[he,p.title,p.description,b,p.id]);let He=j.useCallback(()=>{xn(!0),Hs(Br.current),b(ee=>ee.filter(pe=>pe.toastId!==p.id)),setTimeout(()=>{S(p)},U2)},[p,S,b,Br]);j.useEffect(()=>{if(p.promise&&Lt==="loading"||p.duration===1/0||p.type==="loading")return;let ee;return E||v||J&&_e?(()=>{if(ka.current<Ca.current){let pe=new Date().getTime()-Ca.current;Wt.current=Wt.current-pe}ka.current=new Date().getTime()})():Wt.current!==1/0&&(Ca.current=new Date().getTime(),ee=setTimeout(()=>{var pe;(pe=p.onAutoClose)==null||pe.call(p,p),He()},Wt.current)),()=>clearTimeout(ee)},[E,v,p,Lt,J,_e,He]),j.useEffect(()=>{p.delete&&He()},[He,p.delete]);function Et(){var ee,pe,ye;return U!=null&&U.loading?j.createElement("div",{className:Tn(O==null?void 0:O.loader,(ee=p==null?void 0:p.classNames)==null?void 0:ee.loader,"sonner-loader"),"data-visible":Lt==="loading"},U.loading):F?j.createElement("div",{className:Tn(O==null?void 0:O.loader,(pe=p==null?void 0:p.classNames)==null?void 0:pe.loader,"sonner-loader"),"data-visible":Lt==="loading"},F):j.createElement(_2,{className:Tn(O==null?void 0:O.loader,(ye=p==null?void 0:p.classNames)==null?void 0:ye.loader),visible:Lt==="loading"})}return j.createElement("li",{tabIndex:0,ref:hr,className:Tn(A,Df,O==null?void 0:O.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Lt],(n=p==null?void 0:p.classNames)==null?void 0:n[Lt]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:T,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":he,"data-promise":!!p.promise,"data-swiped":Ea,"data-removed":Qe,"data-visible":Ks,"data-y-position":Sc,"data-x-position":Tc,"data-index":x,"data-front":Ec,"data-swiping":sn,"data-dismissible":Fr,"data-type":Lt,"data-invert":Ee,"data-swipe-out":ft,"data-swipe-direction":ue,"data-expanded":!!(E||k&&he),style:{"--index":x,"--toasts-before":x,"--z-index":_.length-x,"--offset":`${Qe?bn:Br.current}px`,"--initial-height":k?"auto":`${Vr}px`,...P,...p.style},onDragEnd:()=>{$r(!1),Y(null),pr.current=null},onPointerDown:ee=>{Je||!Fr||(_c.current=new Date,Hs(Br.current),ee.target.setPointerCapture(ee.pointerId),ee.target.tagName!=="BUTTON"&&($r(!0),pr.current={x:ee.clientX,y:ee.clientY}))},onPointerUp:()=>{var ee,pe,ye,Dt;if(ft||!Fr)return;pr.current=null;let _n=Number(((ee=hr.current)==null?void 0:ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ur=Number(((pe=hr.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qs=new Date().getTime()-((ye=_c.current)==null?void 0:ye.getTime()),En=re==="x"?_n:Ur,zr=Math.abs(En)/qs;if(Math.abs(En)>=B2||zr>.11){Hs(Br.current),(Dt=p.onDismiss)==null||Dt.call(p,p),Oe(re==="x"?_n>0?"right":"left":Ur>0?"down":"up"),He(),Vi(!0),Ws(!1);return}$r(!1),Y(null)},onPointerMove:ee=>{var pe,ye,Dt,_n;if(!pr.current||!Fr||((pe=window.getSelection())==null?void 0:pe.toString().length)>0)return;let Ur=ee.clientY-pr.current.y,qs=ee.clientX-pr.current.x,En=(ye=e.swipeDirections)!=null?ye:z2(W);!re&&(Math.abs(qs)>1||Math.abs(Ur)>1)&&Y(Math.abs(qs)>Math.abs(Ur)?"x":"y");let zr={x:0,y:0};re==="y"?(En.includes("top")||En.includes("bottom"))&&(En.includes("top")&&Ur<0||En.includes("bottom")&&Ur>0)&&(zr.y=Ur):re==="x"&&(En.includes("left")||En.includes("right"))&&(En.includes("left")&&qs<0||En.includes("right")&&qs>0)&&(zr.x=qs),(Math.abs(zr.x)>0||Math.abs(zr.y)>0)&&Ws(!0),(Dt=hr.current)==null||Dt.style.setProperty("--swipe-amount-x",`${zr.x}px`),(_n=hr.current)==null||_n.style.setProperty("--swipe-amount-y",`${zr.y}px`)}},je&&!p.jsx?j.createElement("button",{"aria-label":X,"data-disabled":Je,"data-close-button":!0,onClick:Je||!Fr?()=>{}:()=>{var ee;He(),(ee=p.onDismiss)==null||ee.call(p,p)},className:Tn(O==null?void 0:O.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=U==null?void 0:U.close)!=null?i:k2):null,p.jsx||y.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:j.createElement(j.Fragment,null,Lt||p.icon||p.promise?j.createElement("div",{"data-icon":"",className:Tn(O==null?void 0:O.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)}
42,p.promise||p.type==="loading"&&!p.icon?p.icon||Et():null,p.type!=="loading"?p.icon||(U==null?void 0:U[Lt])||x2(Lt):null):null,j.createElement("div",{"data-content":"",className:Tn(O==null?void 0:O.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},j.createElement("div",{"data-title":"",className:Tn(O==null?void 0:O.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?j.createElement("div",{"data-description":"",className:Tn(B,Mf,O==null?void 0:O.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),y.isValidElement(p.cancel)?p.cancel:p.cancel&&Hc(p.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||R,onClick:ee=>{var pe,ye;Hc(p.cancel)&&Fr&&((ye=(pe=p.cancel).onClick)==null||ye.call(pe,ee),He())},className:Tn(O==null?void 0:O.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,y.isValidElement(p.action)?p.action:p.action&&Hc(p.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||$,onClick:ee=>{var pe,ye;Hc(p.action)&&((ye=(pe=p.action).onClick)==null||ye.call(pe,ee),!ee.defaultPrevented&&He())},className:Tn(O==null?void 0:O.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function lw(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function H2(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?$2:M2;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var K2=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:h,style:p,visibleToasts:w=D2,toastOptions:v,dir:b=lw(),gap:m=F2,loadingIcon:g,icons:x,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:E}=e,[S,T]=j.useState([]),C=j.useMemo(()=>Array.from(new Set([r].concat(S.filter(J=>J.position).map(J=>J.position)))),[S,r]),[P,R]=j.useState([]),[$,A]=j.useState(!1),[B,D]=j.useState(!1),[W,H]=j.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=j.useRef(null),k=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=j.useRef(null),U=j.useRef(!1),X=j.useCallback(J=>{T(re=>{var Y;return(Y=re.find(ue=>ue.id===J.id))!=null&&Y.delete||Mt.dismiss(J.id),re.filter(({id:ue})=>ue!==J.id)})},[]);return j.useEffect(()=>Mt.subscribe(J=>{if(J.dismiss){T(re=>re.map(Y=>Y.id===J.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{QE.flushSync(()=>{T(re=>{let Y=re.findIndex(ue=>ue.id===J.id);return Y!==-1?[...re.slice(0,Y),{...re[Y],...J},...re.slice(Y+1)]:[J,...re]})})})}),[]),j.useEffect(()=>{if(u!=="system"){H(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;let J=window.matchMedia("(prefers-color-scheme: dark)");try{J.addEventListener("change",({matches:re})=>{H(re?"dark":"light")})}catch{J.addListener(({matches:Y})=>{try{H(Y?"dark":"light")}catch(ue){console.error(ue)}})}},[u]),j.useEffect(()=>{S.length<=1&&A(!1)},[S]),j.useEffect(()=>{let J=re=>{var Y,ue;s.every(Oe=>re[Oe]||re.code===Oe)&&(A(!0),(Y=F.current)==null||Y.focus()),re.code==="Escape"&&(document.activeElement===F.current||(ue=F.current)!=null&&ue.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)},[s]),j.useEffect(()=>{if(F.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,U.current=!1)}},[F.current]),j.createElement("section",{ref:t,"aria-label":`${_} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((J,re)=>{var Y;let[ue,Oe]=J.split("-");return S.length?j.createElement("ol",{key:J,dir:b==="auto"?lw():b,tabIndex:-1,ref:F,className:a,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":ue,"data-lifted":$&&S.length>1&&!i,"data-x-position":Oe,style:{"--front-toast-height":`${((Y=P[0])==null?void 0:Y.height)||0}px`,"--width":`${V2}px`,"--gap":`${m}px`,...p,...H2(l,c)},onBlur:he=>{U.current&&!he.currentTarget.contains(he.relatedTarget)&&(U.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||U.current||(U.current=!0,O.current=he.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{B||A(!1)},onDragEnd:()=>A(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||D(!0)},onPointerUp:()=>D(!1)},S.filter(he=>!he.position&&re===0||he.position===J).map((he,dt)=>{var Qe,xn;return j.createElement(W2,{key:he.id,icons:x,index:dt,toast:he,defaultRichColors:d,duration:(Qe=v==null?void 0:v.duration)!=null?Qe:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:w,closeButton:(xn=v==null?void 0:v.closeButton)!=null?xn:o,interacting:
42B,position:J,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:X,toasts:S.filter(sn=>sn.position==he.position),heights:P.filter(sn=>sn.position==he.position),setHeights:R,expandByDefault:i,gap:m,loadingIcon:g,expanded:$,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const q2="/auth/v1/token",G2=["refresh_token_not_found","invalid refresh token","refresh token not found","invalid_grant"];let cw=!1,mh=!1,$a=0,uw=0;function Y2(){const e=window.location.pathname;return e==="/auth"||e==="/reset-password"}const Q2=["/application/","/view-application/","/sub-application/","/book/","/book-showing/","/book-service/","/sign/","/deposit/","/pay-rent/","/submit-lead/","/funnel/","/owner/","/property/","/building/","/u/","/floorplan/","/floorplans/","/units-widget/","/floorplans-widget/","/tenant/","/vendor/","/preview/"];function J2(){const e=window.location.pathname.replace(/\/+/g,"/");return Q2.some(t=>e.startsWith(t))}function X2(){try{const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);n&&/^sb-.*-auth-token/.test(n)&&e.push(n)}e.forEach(t=>localStorage.removeItem(t))}catch{}}function Z2(){if(mh)return;if(mh=!0,X2(),Y2()||J2()){mh=!1;return}sS.error("Your session expired",{description:"Please sign in again to continue."});const e=encodeURIComponent(window.location.pathname+window.location.search);window.setTimeout(()=>{window.location.replace(`/auth?redirect=${e}`)},600)}function dw(){const e=Date.now();e-uw<6e4||(uw=e,sS.warning("Connection to the server is slow",{description:"We're retrying automatically â no need to reload. Your work is safe."}))}function eI(){if(cw||typeof window>"u")return;cw=!0;const e=window.fetch.bind(window);window.fetch=async(t,n)=>{const r=typeof t=="string"?t:t instanceof URL?t.toString():t.url,s=typeof r=="string"&&r.includes(q2);let i;try{i=await e(t,n)}catch(o){throw s&&($a+=1,$a>=3&&dw()),o}if(!s)return i;if(i.status>=500||i.status===408||i.status===429)return $a+=1,$a>=3&&dw(),i;if(i.status===400||i.status===401){try{const a=(await i.clone().text()).toLowerCase();G2.some(l=>a.includes(l))&&Z2()}catch{}return i}return i.ok&&($a=0),i}}const tI=1,nI=1e6;let gh=0;function rI(){return gh=(gh+1)%Number.MAX_SAFE_INTEGER,gh.toString()}const yh=new Map,fw=e=>{if(yh.has(e))return;const t=setTimeout(()=>{yh.delete(e),ul({type:"REMOVE_TOAST",toastId:e})},nI);yh.set(e,t)},sI=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,tI)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?fw(n):e.toasts.forEach(r=>{fw(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ou=[];let ju={toasts:[]};function ul(e){ju=sI(ju,e),Ou.forEach(t=>{t(ju)})}function iI({...e}){const t=rI(),n=s=>ul({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>ul({type:"DISMISS_TOAST",toastId:t});return ul({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function iS(){const[e,t]=y.useState(ju);return y.useEffect(()=>(Ou.push(t),()=>{const n=Ou.indexOf(t);n>-1&&Ou.splice(n,1)}),[e]),{...e,toast:iI,dismiss:n=>ul({type:"DISMISS_TOAST",toastId:n})}}function Re(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function hw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oS(...e){return t=>{let n=!1;const r=e.map(s=>{const i=hw(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():hw(e[s],null)}}}}function _t(...e){return y.useCallback(oS(...e),e)}function oI(e,t){const n=y.createContext(t),r=i=>{const{children:o,...a}=i,l=y.useMemo(()=>a,Object.values(a));return f.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function aa(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),l=n.length;n=[...n,o];const c=d=>{var m;const{scope:h,children:p,...w}=d,v=((m=h==null?void 0:h[e])==null?void 0:m[l])||a,b=y.useMemo(()=>w,Object.values(w));return f.jsx(v.Provider,{value:b,children:p})};c.displayName=i+"Provider";function u(d,h){var v;const p=((v=h==null?void 0:h[e])==null?void 0:v[l])||a,w=y.useContext(p);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,aI(s,...t)]}function aI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c}
vendor: 10,635 bytes, line 42
42)=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Ll(e){const t=lI(e),n=y.forwardRef((r,s)=>{const{children:i,...o}=r,a=y.Children.toArray(i),l=a.find(uI);if(l){const c=l.props.children,u=a.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:s,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var la=Ll("Slot");function lI(e){const t=y.forwardRef((n,r)=>{const{children:s,...i}=n;if(y.isValidElement(s)){const o=fI(s),a=dI(i,s.props);return s.type!==y.Fragment&&(a.ref=r?oS(r,o):o),y.cloneElement(s,a)}return y.Children.count(s)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aS=Symbol("radix.slottable");function cI(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=aS,t}function uI(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aS}function dI(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function fI(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function hI(e){const t=e+"CollectionProvider",[n,r]=aa(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:b,children:m}=v,g=j.useRef(null),x=j.useRef(new Map).current;return f.jsx(s,{scope:b,itemMap:x,collectionRef:g,children:m})};o.displayName=t;const a=e+"CollectionSlot",l=Ll(a),c=j.forwardRef((v,b)=>{const{scope:m,children:g}=v,x=i(a,m),_=_t(b,x.collectionRef);return f.jsx(l,{ref:_,children:g})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Ll(u),p=j.forwardRef((v,b)=>{const{scope:m,children:g,...x}=v,_=j.useRef(null),E=_t(b,_),S=i(u,m);return j.useEffect(()=>(S.itemMap.set(_,{ref:_,...x}),()=>void S.itemMap.delete(_))),f.jsx(h,{[d]:"",ref:E,children:g})});p.displayName=u;function w(v){const b=i(e+"CollectionConsumer",v);return j.useCallback(()=>{const g=b.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((S,T)=>x.indexOf(S.ref.current)-x.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},w,r]}var pI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=pI.reduce((e,t)=>{const n=Ll(`Primitive.${t}`),r=y.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lS(e,t){e&&Mi.flushSync(()=>e.dispatchEvent(t))}function ar(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function mI(e,t=globalThis==null?void 0:globalThis.document){const n=ar(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gI="DismissableLayer",dm="dismissableLayer.update",yI="dismissableLayer.pointerDownOutside",vI="dismissableLayer.focusOutside",pw,cS=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),af=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=y.useContext(cS),[u,d]=y.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=y.useState({}),w=_t(t,T=>d(T)),v=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(b),g=u?v.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,_=g>=m,E=xI(T=>{const C=T.target,P=[...c.branches].some(R=>R.contains(C));!_||P||(s==null||s(T),o==null||o(T),T.defaultPrevented||a==null||a())},h),S=bI(T=>{const C=T.target;[...c.branches].some(R=>R.contains(C))||(i==null||i(T),o==null||o(T),T.defaultPrevented||a==null||a())},h);return mI(T=>{g===c.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},h),y.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(pw=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),mw(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=pw)}},[u,h,n,c]),y.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),mw())},[u,c]),y.useEffect(()=>{const T=()=>p({});return document.addEventListener(dm,T),()=>document.removeEventListener(dm,T)},[]),f.jsx(Le.div,{...l,ref:w,style:{pointerEvents:x?_?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,E.onPointerDownCapture)})});af.displayName=gI;var wI="DismissableLayerBranch",uS=y.forwardRef((e,t)=>{const n=y.useContext(cS),r=y.useRef(null),s=_t(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(Le.div,{...e,ref:s})});uS.displayName=wI;function xI(e,t=globalThis==null?void 0:globalThis.document){const n=ar(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){dS(yI,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function bI(e,t=globalThis==null?void 0:globalThis.document){const n=ar(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&dS(vI,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function mw(){const e=new CustomEvent(dm);document.dispatchEvent(e)}function dS(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?lS(s,i):s.dispatchEvent(i)}var _I=af,EI=uS,lr=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},SI="Portal",fy=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);lr(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?QE.createPortal(f.jsx(Le.div,{...r,ref:t}),o):null});fy.displayName=SI;function TI(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var $i=e=>{const{present:t,children:n}=e,r=CI(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=_t(r.ref,kI(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};$i.displayName="Presence";function CI(e){const[t,n]=y.useState(),r=y.useRef(null),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,l]=TI(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=Kc(r.current);i.current=a==="mounted"?c:"none"},[a]),lr(()=>{const c=r.current,u=s.current;if(u!==e){const h=i.current,p=Kc(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),lr(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const v=Kc(r.current).includes(p.animationName);if(p.target===t&&v&&(l("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(i.current=Kc(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Kc(e){return(e==null?void 0:e.animationName)||"none"}function kI(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var PI=wg[" useInsertionEffect ".trim().toString()]||lr;function lf({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=RI({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const u=y.useRef(e!==void 0);y.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=y.useCallback(u=>{var d;if(a){const h=AI(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,e,i,o]);return[l,c]}function RI({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),s=y.useRef(n),i=y.useRef(t);return PI(()=>{i.current=t},[t]),y.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function AI(e){return typeof e=="function"}var OI=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),jI="VisuallyHidden",cf=y.forwardRef((e,t)=>
42f.jsx(Le.span,{...e,ref:t,style:{...OI,...e.style}}));cf.displayName=jI;var II=cf,hy="ToastProvider",[py,NI,LI]=hI("Toast"),[fS,qK]=aa("Toast",[LI]),[DI,uf]=fS(hy),hS=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[a,l]=y.useState(null),[c,u]=y.useState(0),d=y.useRef(!1),h=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${hy}\`. Expected non-empty \`string\`.`),f.jsx(py.Provider,{scope:t,children:f.jsx(DI,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>u(p=>p+1),[]),onToastRemove:y.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};hS.displayName=hy;var pS="ToastViewport",MI=["F8"],fm="toast.viewportPause",hm="toast.viewportResume",mS=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=MI,label:s="Notifications ({hotkey})",...i}=e,o=uf(pS,n),a=NI(n),l=y.useRef(null),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),h=_t(t,d,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;y.useEffect(()=>{const b=m=>{var x;r.length!==0&&r.every(_=>m[_]||m.code===_)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),y.useEffect(()=>{const b=l.current,m=d.current;if(w&&b&&m){const g=()=>{if(!o.isClosePausedRef.current){const S=new CustomEvent(fm);m.dispatchEvent(S),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const S=new CustomEvent(hm);m.dispatchEvent(S),o.isClosePausedRef.current=!1}},_=S=>{!b.contains(S.relatedTarget)&&x()},E=()=>{b.contains(document.activeElement)||x()};return b.addEventListener("focusin",g),b.addEventListener("focusout",_),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",E),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",_),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",E),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[w,o.isClosePausedRef]);const v=y.useCallback(({tabbingDirection:b})=>{const g=a().map(x=>{const _=x.ref.current,E=[_,...QI(_)];return b==="forwards"?E:E.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return y.useEffect(()=>{const b=d.current;if(b){const m=g=>{var E,S,T;const x=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!x){const C=document.activeElement,P=g.shiftKey;if(g.target===b&&P){(E=c.current)==null||E.focus();return}const A=v({tabbingDirection:P?"backwards":"forwards"}),B=A.findIndex(D=>D===C);vh(A.slice(B+1))?g.preventDefault():P?(S=c.current)==null||S.focus():(T=u.current)==null||T.focus()}};return b.addEventListener("keydown",m),()=>b.removeEventListener("keydown",m)}},[a,v]),f.jsxs(EI,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&f.jsx(pm,{ref:c,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"forwards"});vh(b)}}),f.jsx(py.Slot,{scope:n,children:f.jsx(Le.ol,{tabIndex:-1,...i,ref:h})}),w&&f.jsx(pm,{ref:u,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"backwards"});vh(b)}})]})});mS.displayName=pS;var gS="ToastFocusProxy",pm=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=uf(gS,n);return f.jsx(cf,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});pm.displayName=gS;var ac="Toast",$I="toast.swipeStart",VI="toast.swipeMove",FI="toast.swipeCancel",BI="toast.swipeEnd",yS=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[a,l]=lf({prop:r,defaultProp:s??!0,onChange:i,caller:ac});return f.jsx($i,{present:n||a,children:f.jsx(WI,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:ar(e.onPause),onResume:ar(e.onResume),onSwipeStart:Re(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Re(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Re(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Re(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});yS.displayName=ac;var[UI,zI]=fS(ac,{onClose(){}}),WI=y.forwardRef((e,t)=>
42{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:p,...w}=e,v=uf(ac,n),[b,m]=y.useState(null),g=_t(t,D=>m(D)),x=y.useRef(null),_=y.useRef(null),E=s||v.duration,S=y.useRef(0),T=y.useRef(E),C=y.useRef(0),{onToastAdd:P,onToastRemove:R}=v,$=ar(()=>{var W;(b==null?void 0:b.contains(document.activeElement))&&((W=v.viewport)==null||W.focus()),o()}),A=y.useCallback(D=>{!D||D===1/0||(window.clearTimeout(C.current),S.current=new Date().getTime(),C.current=window.setTimeout($,D))},[$]);y.useEffect(()=>{const D=v.viewport;if(D){const W=()=>{A(T.current),c==null||c()},H=()=>{const F=new Date().getTime()-S.current;T.current=T.current-F,window.clearTimeout(C.current),l==null||l()};return D.addEventListener(fm,H),D.addEventListener(hm,W),()=>{D.removeEventListener(fm,H),D.removeEventListener(hm,W)}}},[v.viewport,E,l,c,A]),y.useEffect(()=>{i&&!v.isClosePausedRef.current&&A(E)},[i,E,v.isClosePausedRef,A]),y.useEffect(()=>(P(),()=>R()),[P,R]);const B=y.useMemo(()=>b?SS(b):null,[b]);return v.viewport?f.jsxs(f.Fragment,{children:[B&&f.jsx(HI,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:B}),f.jsx(UI,{scope:n,onClose:$,children:Mi.createPortal(f.jsx(py.ItemSlot,{scope:n,children:f.jsx(_I,{asChild:!0,onEscapeKeyDown:Re(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||$(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(Le.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...w,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Re(e.onKeyDown,D=>{D.key==="Escape"&&(a==null||a(D.nativeEvent),D.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:Re(e.onPointerDown,D=>{D.button===0&&(x.current={x:D.clientX,y:D.clientY})}),onPointerMove:Re(e.onPointerMove,D=>{if(!x.current)return;const W=D.clientX-x.current.x,H=D.clientY-x.current.y,F=!!_.current,k=["left","right"].includes(v.swipeDirection),O=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,U=k?O(0,W):0,X=k?0:O(0,H),J=D.pointerType==="touch"?10:2,re={x:U,y:X},Y={originalEvent:D,delta:re};F?(_.current=re,qc(VI,d,Y,{discrete:!1})):gw(re,v.swipeDirection,J)?(_.current=re,qc($I,u,Y,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(W)>J||Math.abs(H)>J)&&(x.current=null)}),onPointerUp:Re(e.onPointerUp,D=>{const W=_.current,H=D.target;if(H.hasPointerCapture(D.pointerId)&&H.releasePointerCapture(D.pointerId),_.current=null,x.current=null,W){const F=D.currentTarget,k={originalEvent:D,delta:W};gw(W,v.swipeDirection,v.swipeThreshold)?qc(BI,p,k,{discrete:!0}):qc(FI,h,k,{discrete:!0}),F.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),HI=e=>{const{__scopeToast:t,children:n,...r}=e,s=uf(ac,t),[i,o]=y.useState(!1),[a,l]=y.useState(!1);return GI(()=>o(!0)),y.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:f.jsx(fy,{asChild:!0,children:f.jsx(cf,{...r,children:i&&f.jsxs(f.Fragment,{children:[s.label," ",n]})})})},KI="ToastTitle",vS=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(Le.div,{...r,ref:t})});vS.displayName=KI;var qI="ToastDescription",wS=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(Le.div,{...r,ref:t})});wS.displayName=qI;var xS="ToastAction",bS=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?f.jsx(ES,{altText:n,asChild:!0,children:f.jsx(my,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${xS}\`. Expected non-empty \`string\`.`),null)});bS.displayName=xS;var _S="ToastClose",my=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=zI(_S,n);return f.jsx(ES,{asChild:!0,children:f.jsx(Le.button,{type:"button",...r,ref:t,onClick:Re(e.onClick,s.onClose)})})});my.displayName=_S;var ES=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return f.jsx(Le.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function SS(e){const t=[];
vendor: 5,714 bytes, lines 42-87
42return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),YI(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...SS(r))}}),t}function qc(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?lS(s,i):s.dispatchEvent(i)}var gw=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function GI(e=()=>{}){const t=ar(e);lr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function YI(e){return e.nodeType===e.ELEMENT_NODE}function QI(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vh(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var JI=hS,TS=mS,CS=yS,kS=vS,PS=wS,RS=bS,AS=my;function OS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=OS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jS(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=OS(e))&&(r&&(r+=" "),r+=t);return r}const yw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vw=jS,lc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return vw(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const h=yw(u)||yw(d);return s[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:h,...p}=u;return Object.entries(p).every(w=>{let[v,b]=w;return Array.isArray(b)?b.includes({...i,...a}[v]):{...i,...a}[v]===b})?[...c,d,h]:c},[]);return vw(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 43 * @license lucide-react v0.462.0 - ISC 44 * 45 * This source code is licensed under the ISC license. 46 * See the LICENSE file in the root directory of this source tree. 47 */const XI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),IS=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 48 * @license lucide-react v0.462.0 - ISC 49 * 50 * This source code is licensed under the ISC license. 51 * See the LICENSE file in the root directory of this source tree. 52 */var ZI={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"};/** 53 * @license lucide-react v0.462.0 - ISC 54 * 55 * This source code is licensed under the ISC license. 56 * See the LICENSE file in the root directory of this source tree. 57 */const eN=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>y.createElement("svg",{ref:l,...ZI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:IS("lucide",s),...a},[...o.map(([c,u])=>y.createElement(c,u)),...Array.isArray(i)?i:[i]]));/** 58 * @license lucide-react v0.462.0 - ISC 59 * 60 * This source code is licensed under the ISC license. 61 * See the LICENSE file in the root directory of this source tree. 62 */const ne=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(eN,{ref:i,iconNode:t,className:IS(`lucide-${XI(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 63 * @license lucide-react v0.462.0 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */const tN=ne("ArrowLeftFromLine",[["path",{d:"m9 6-6 6 6 6",key:"7v63n9"}],["path",{d:"M3 12h14",key:"13k4hi"}],["path",{d:"M21 19V5",key:"b4bplr"}]]);/** 68 * @license lucide-react v0.462.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const nN=ne("ArrowRightFromLine",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]);/** 73 * @license lucide-react v0.462.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const ww=ne("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 78 * @license lucide-react v0.462.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const rN=ne("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 83 * @license lucide-react v0.462.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const NS=ne("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
87],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 88 * @license lucide-react v0.462.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const LS=ne("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 93 * @license lucide-react v0.462.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const sN=ne("Calendar",[["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"}]]);/** 98 * @license lucide-react v0.462.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const DS=ne("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 103 * @license lucide-react v0.462.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const Gr=ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 108 * @license lucide-react v0.462.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const iN=ne("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 113 * @license lucide-react v0.462.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const MS=ne("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 118 * @license lucide-react v0.462.0 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const oN=ne("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 123 * @license lucide-react v0.462.0 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const aN=ne("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 128 * @license lucide-react v0.462.0 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const lN=ne("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/** 133 * @license lucide-react v0.462.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const $S=ne("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}
137],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/** 138 * @license lucide-react v0.462.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const VS=ne("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 143 * @license lucide-react v0.462.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const cN=ne("DoorOpen",[["path",{d:"M13 4h3a2 2 0 0 1 2 2v14",key:"hrm0s9"}],["path",{d:"M2 20h3",key:"1gaodv"}],["path",{d:"M13 20h9",key:"s90cdi"}],["path",{d:"M10 12v.01",key:"vx6srw"}],["path",{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z",key:"199qr4"}]]);/** 148 * @license lucide-react v0.462.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const uN=ne("Dumbbell",[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]]);/** 153 * @license lucide-react v0.462.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const dN=ne("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 158 * @license lucide-react v0.462.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const fN=ne("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/** 163 * @license lucide-react v0.462.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const hN=ne("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/** 168 * @license lucide-react v0.462.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const FS=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 173 * @license lucide-react v0.462.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const BS=ne("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** 178 * @license lucide-react v0.462.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const pN=ne("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 183 * @license lucide-react v0.462.0 - ISC 184 * 185 * This source code is licensed under the ISC license. 186 * See the LICENSE file in the root directory of this source tree. 187 */const US=ne("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 188 * @license lucide-react v0.462.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 */const zS=ne("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 193 * @license lucide-react v0.462.0 - ISC 194 * 195 * This source code is licensed under the ISC license. 196 * See the LICENSE file in the root directory of this source tree. 197 */const mN=ne("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 198 * @license lucide-react v0.462.0 - ISC 199 * 200 * This source code is licensed under the ISC license. 201 * See the LICENSE file in the root directory of this source tree. 202 */const xw=ne("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 203 * @license lucide-react v0.462.0 - ISC 204 * 205 * This source code is licensed under the ISC license. 206 * See the LICENSE file in the root directory of this source tree. 207 */const gN=ne("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 208 * @license lucide-react v0.462.0 - ISC 209 * 210 * This source code is licensed under the ISC license. 211 * See the LICENSE file in the root directory of this source tree. 212 */const yN=ne("MessageSquareHeart",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M14.8 7.5a1.84 1.84 0 0 0-2.6 0l-.2.3-.3-.3a1.84 1.84 0 1 0-2.4 2.8L12 13l2.7-2.7c.9-.9.8-2.1.1-2.8",ke
212y:"1blaws"}]]);/** 213 * @license lucide-react v0.462.0 - ISC 214 * 215 * This source code is licensed under the ISC license. 216 * See the LICENSE file in the root directory of this source tree. 217 */const vN=ne("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 218 * @license lucide-react v0.462.0 - ISC 219 * 220 * This source code is licensed under the ISC license. 221 * See the LICENSE file in the root directory of this source tree. 222 */const Va=ne("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/** 223 * @license lucide-react v0.462.0 - ISC 224 * 225 * This source code is licensed under the ISC license. 226 * See the LICENSE file in the root directory of this source tree. 227 */const WS=ne("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/** 228 * @license lucide-react v0.462.0 - ISC 229 * 230 * This source code is licensed under the ISC license. 231 * See the LICENSE file in the root directory of this source tree. 232 */const gy=ne("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 233 * @license lucide-react v0.462.0 - ISC 234 * 235 * This source code is licensed under the ISC license. 236 * See the LICENSE file in the root directory of this source tree. 237 */const wN=ne("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 238 * @license lucide-react v0.462.0 - ISC 239 * 240 * This source code is licensed under the ISC license. 241 * See the LICENSE file in the root directory of this source tree. 242 */const xN=ne("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 243 * @license lucide-react v0.462.0 - ISC 244 * 245 * This source code is licensed under the ISC license. 246 * See the LICENSE file in the root directory of this source tree. 247 */const HS=ne("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 248 * @license lucide-react v0.462.0 - ISC 249 * 250 * This source code is licensed under the ISC license. 251 * See the LICENSE file in the root directory of this source tree. 252 */const bN=ne("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/** 253 * @license lucide-react v0.462.0 - ISC 254 * 255 * This source code is licensed under the ISC license. 256 * See the LICENSE file in the root directory of this source tree. 257 */const KS=ne("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/** 258 * @license lucide-react v0.462.0 - ISC 259 * 260 * This source code is licensed under the ISC license. 261 * See the LICENSE file in the root directory of this source tree. 262 */const _N=ne("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 263 * @license lucide-react v0.462.0 - ISC 264 * 265 * This source code is licensed under the ISC license. 266 * See the LICENSE file in the root directory of this source tree. 267 */const qS=ne("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}
vendor: 9,648 bytes, lines 267-297
267],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 268 * @license lucide-react v0.462.0 - ISC 269 * 270 * This source code is licensed under the ISC license. 271 * See the LICENSE file in the root directory of this source tree. 272 */const EN=ne("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 273 * @license lucide-react v0.462.0 - ISC 274 * 275 * This source code is licensed under the ISC license. 276 * See the LICENSE file in the root directory of this source tree. 277 */const SN=ne("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/** 278 * @license lucide-react v0.462.0 - ISC 279 * 280 * This source code is licensed under the ISC license. 281 * See the LICENSE file in the root directory of this source tree. 282 */const hd=ne("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 283 * @license lucide-react v0.462.0 - ISC 284 * 285 * This source code is licensed under the ISC license. 286 * See the LICENSE file in the root directory of this source tree. 287 */const yy=ne("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 288 * @license lucide-react v0.462.0 - ISC 289 * 290 * This source code is licensed under the ISC license. 291 * See the LICENSE file in the root directory of this source tree. 292 */const GS=ne("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 293 * @license lucide-react v0.462.0 - ISC 294 * 295 * This source code is licensed under the ISC license. 296 * See the LICENSE file in the root directory of this source tree. 297 */const vy=ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),wy="-",TN=e=>{const t=kN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(wy);return a[0]===""&&a.length!==1&&a.shift(),YS(a,t)||CN(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},YS=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?YS(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(wy);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},bw=/^\[(.+)\]$/,CN=e=>{if(bw.test(e)){const t=bw.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},kN=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return RN(Object.entries(e.classGroups),n).forEach(([i,o])=>{mm(o,r,i,t)}),r},mm=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:_w(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(PN(s)){mm(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{mm(o,_w(t,i),n,r)})})},_w=(e,t)=>{let n=e;return t.split(wy).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},PN=e=>e.isThemeGetter,RN=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,AN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},QS="!",ON=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let b=0;b<a.length;b++){let m=a[b];if(c===0){if(m===s&&(r||a.slice(b,b+i)===t)){l.push(a.slice(u,b)),u=b+i;continue}if(m==="/"){d=b;continue}}m==="["?c++:m==="]"&&c--}const h=l.length===0?a:a.substring(u),p=h.startsWith(QS),w=p?h.substring(1):h,v=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:w,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:o}):o},jN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},IN=e=>({cache:AN(e.cacheSize),parseClassName:ON(e),...TN(e)}),NN=/\s+/,LN=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(NN);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=n(c);let w=!!p,v=r(w?h.substring(0,p):h);if(!v){if(!w){a=c+(a.length>0?" "+a:a);continue}if(v=r(h),!v){a=c+(a.length>0?" "+a:a);continue}w=!1}const b=jN(u).join(":"),m=d?b+QS:b,g=m+v;if(i.includes(g))continue;i.push(g);const x=s(v,w);for(let _=0;_<x.length;++_){const E=x[_];i.push(m+E)}a=c+(a.length>0?" "+a:a)}return a};function DN(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=JS(t))&&(r&&(r+=" "),r+=n);return r}const JS=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=JS(e[r]))&&(n&&(n+=" "),n+=t);return n};function MN(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=IN(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=LN(l,n);return s(l,u),u}return function(){return i(DN.apply(null,arguments))}}const ke=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},XS=/^\[(?:([a-z-]+):)?(.+)\]$/i,$N=/^\d+\/\d+$/,VN=new Set(["px","full","screen"]),FN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,BN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,UN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mr=e=>Po(e)||VN.has(e)||$N.test(e),Hr=e=>ca(e,"length",XN),Po=e=>!!e&&!Number.isNaN(Number(e)),wh=e=>ca(e,"number",Po),Fa=e=>!!e&&Number.isInteger(Number(e)),HN=e=>e.endsWith("%")&&Po(e.slice(0,-1)),ae=e=>XS.test(e),Kr=e=>FN.test(e),KN=new Set(["length","size","percentage"]),qN=e=>ca(e,KN,ZS),GN=e=>ca(e,"position",ZS),YN=new Set(["image","url"]),QN=e=>ca(e,YN,eL),JN=e=>ca(e,"",ZN),Ba=()=>!0,ca=(e,t,n)=>{const r=XS.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},XN=e=>BN.test(e)&&!UN.test(e),ZS=()=>!1,ZN=e=>zN.test(e),eL=e=>WN.test(e),tL=()=>{const e=ke("colors"),t=ke("spacing"),n=ke("blur"),r=ke("brightness"),s=ke("borderColor"),i=ke("borderRadius"),o=ke("borderSpacing"),a=ke("borderWidth"),l=ke("contrast"),c=ke("grayscale"),u=ke("hueRotate"),d=ke("invert"),h=ke("gap"),p=ke("gradientColorStops"),w=ke("gradientColorStopPositions"),v=ke("inset"),b=ke("margin"),m=ke("opacity"),g=ke("padding"),x=ke("saturate"),_=ke("scale"),E=ke("sepia"),S=ke("skew"),T=ke("space"),C=ke("translate"),P=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",ae,t],A=()=>[ae,t],B=()=>["",mr,Hr],D=()=>["auto",Po,ae],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",ae],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[Po,ae];return{cacheSize:500,separator:":",theme:{colors:[Ba],spacing:[mr,Hr],blur:["none","",Kr,ae],brightness:X(),borderColor:[e],borderRadius:["none","","full",Kr,ae],borderSpacing:A(),borderWidth:B(),contrast:X(),grayscale:O(),hueRotate:X(),invert:O(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[HN,Hr],inset:$(),margin:$(),opacity:X(),padding:A(),saturate:X(),scale:X(),sepia:O(),skew:X(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[Kr]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),ae]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}
vendor: 9,947 bytes, line 297
297],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fa,ae]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Fa,ae]}],"grid-cols":[{"grid-cols":[Ba]}],"col-start-end":[{col:["auto",{span:["full",Fa,ae]},ae]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Ba]}],"row-start-end":[{row:["auto",{span:[Fa,ae]},ae]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ae,t]}],"min-w":[{"min-w":[ae,t,"min","max","fit"]}],"max-w":[{"max-w":[ae,t,"none","full","min","max","fit","prose",{screen:[Kr]},Kr]}],h:[{h:[ae,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ae,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ae,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ae,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Kr,Hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wh]}],"font-family":[{font:[Ba]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ae]}],"line-clamp":[{"line-clamp":["none",Po,wh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mr,ae]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mr,Hr]}],"underline-offset":[{"underline-offset":["auto",mr,ae]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),GN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},QN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:H()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[mr,ae]}],"outline-w":[{outline:[mr,Hr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[mr,Hr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Kr,JN]}],"shadow-color":[{shadow:[Ba]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Kr,ae]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Fa,ae]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
297],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mr,Hr,wh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},nL=MN(tL);function ie(...e){return nL(jS(e))}const rL=JI,eT=y.forwardRef(({className:e,...t},n)=>f.jsx(TS,{ref:n,className:ie("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));eT.displayName=TS.displayName;const sL=lc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),tT=y.forwardRef(({className:e,variant:t,...n},r)=>f.jsx(CS,{ref:r,className:ie(sL({variant:t}),e),...n}));tT.displayName=CS.displayName;const iL=y.forwardRef(({className:e,...t},n)=>f.jsx(RS,{ref:n,className:ie("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));iL.displayName=RS.displayName;const nT=y.forwardRef(({className:e,...t},n)=>f.jsx(AS,{ref:n,className:ie("absolute right-2 top-2 rounded-md p-1 text-foreground
297/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:f.jsx(vy,{className:"h-4 w-4"})}));nT.displayName=AS.displayName;const rT=y.forwardRef(({className:e,...t},n)=>f.jsx(kS,{ref:n,className:ie("text-sm font-semibold",e),...t}));rT.displayName=kS.displayName;const sT=y.forwardRef(({className:e,...t},n)=>f.jsx(PS,{ref:n,className:ie("text-sm opacity-90",e),...t}));sT.displayName=PS.displayName;function oL(){const{toasts:e}=iS();return f.jsxs(rL,{duration:3e3,children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return f.jsxs(tT,{...i,children:[f.jsxs("div",{className:"grid gap-1",children:[n&&f.jsx(rT,{children:n}),r&&f.jsx(sT,{children:r})]}),s,f.jsx(nT,{})]},t)}),f.jsx(eT,{})]})}var pd=["light","dark"],xy="(prefers-color-scheme: dark)",aL=typeof window>"u",by=y.createContext(void 0),lL={setTheme:e=>{},themes:[]},cL=()=>{var e;return(e=y.useContext(by))!=null?e:lL},uL=e=>y.useContext(by)?e.children:y.createElement(fL,{...e}),dL=["light","dark"],fL=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:s="theme",themes:i=dL,defaultTheme:o=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u})=>{let[d,h]=y.useState(()=>Ew(s,o)),[p,w]=y.useState(()=>Ew(s)),v=l?Object.values(l):i,b=y.useCallback(_=>{let E=_;if(!E)return;_==="system"&&n&&(E=Sw());let S=l?l[E]:E,T=t?pL():null,C=document.documentElement;if(a==="class"?(C.classList.remove(...v),S&&C.classList.add(S)):S?C.setAttribute(a,S):C.removeAttribute(a),r){let P=pd.includes(o)?o:null,R=pd.includes(E)?E:P;C.style.colorScheme=R}T==null||T()},[]),m=y.useCallback(_=>{let E=typeof _=="function"?_(_):_;h(E);try{localStorage.setItem(s,E)}catch{}},[e]),g=y.useCallback(_=>{let E=Sw(_);w(E),d==="system"&&n&&!e&&b("system")},[d,e]);y.useEffect(()=>{let _=window.matchMedia(xy);return _.addListener(g),g(_),()=>_.removeListener(g)},[g]),y.useEffect(()=>{let _=E=>{if(E.key!==s)return;let S=E.newValue||o;m(S)};return window.addEventListener("storage",_),()=>window.removeEventListener("storage",_)},[m]),y.useEffect(()=>{b(e??d)},[e,d]);let x=y.useMemo(()=>({theme:d,setTheme:m,forcedTheme:e,resolvedTheme:d==="system"?p:d,themes:n?[...i,"system"]:i,systemTheme:n?p:void 0}),[d,m,e,p,n,i]);return y.createElement(by.Provider,{value:x},y.createElement(hL,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:s,themes:i,defaultTheme:o,attribute:a,value:l,children:c,attrs:v,nonce:u}),c)},hL=y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?pd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(w,v=!1,b=!0)=>{let m=o?o[w]:w,g=v?w+"|| ''":`'${m}'`,x="";return s&&b&&!v&&pd.includes(w)&&(x+=`d.style.colorScheme = '${w}';`),n==="class"?v||m?x+=`c.add(${g})`:x+="null":m&&(x+=`d[s](n,${g})`),x},p=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${xy}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${c?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})}),Ew=(e,t)=>{if(aL)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},pL=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Sw=e=>
297(e||(e=window.matchMedia(xy)),e.matches?"dark":"light");const mL=({...e})=>{const{theme:t="system"}=cL();return f.jsx(K2,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var gL=wg[" useId ".trim().toString()]||(()=>{}),yL=0;function dl(e){const[t,n]=y.useState(gL());return lr(()=>{n(r=>r??String(yL++))},[e]),t?`radix-${t}`:""}const vL=["top","right","bottom","left"],As=Math.min,Gt=Math.max,md=Math.round,Gc=Math.floor,rr=e=>({x:e,y:e}),wL={left:"right",right:"left",bottom:"top",top:"bottom"},xL={start:"end",end:"start"};function gm(e,t,n){return Gt(e,As(t,n))}function Ar(e,t){return typeof e=="function"?e(t):e}function Or(e){return e.split("-")[0]}function ua(e){return e.split("-")[1]}function _y(e){return e==="x"?"y":"x"}function Ey(e){return e==="y"?"height":"width"}const bL=new Set(["top","bottom"]);function er(e){return bL.has(Or(e))?"y":"x"}function Sy(e){return _y(er(e))}
vendor: 11,469 bytes, line 297
297function _L(e,t,n){n===void 0&&(n=!1);const r=ua(e),s=Sy(e),i=Ey(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=gd(o)),[o,gd(o)]}function EL(e){const t=gd(e);return[ym(e),t,ym(t)]}function ym(e){return e.replace(/start|end/g,t=>xL[t])}const Tw=["left","right"],Cw=["right","left"],SL=["top","bottom"],TL=["bottom","top"];function CL(e,t,n){switch(e){case"top":case"bottom":return n?t?Cw:Tw:t?Tw:Cw;case"left":case"right":return t?SL:TL;default:return[]}}function kL(e,t,n,r){const s=ua(e);let i=CL(Or(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(ym)))),i}function gd(e){return e.replace(/left|right|bottom|top/g,t=>wL[t])}function PL(e){return{top:0,right:0,bottom:0,left:0,...e}}function iT(e){return typeof e!="number"?PL(e):{top:e,right:e,bottom:e,left:e}}function yd(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function kw(e,t,n){let{reference:r,floating:s}=e;const i=er(t),o=Sy(t),a=Ey(o),l=Or(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ua(t)){case"start":p[o]-=h*(n&&c?-1:1);break;case"end":p[o]+=h*(n&&c?-1:1);break}return p}const RL=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=kw(c,r,l),h=r,p={},w=0;for(let v=0;v<a.length;v++){const{name:b,fn:m}=a[v],{x:g,y:x,data:_,reset:E}=await m({x:u,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});u=g??u,d=x??d,p={...p,[b]:{...p[b],..._}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:u,y:d}=kw(c,h,l)),v=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:p}};async function Dl(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Ar(t,e),w=iT(p),b=a[h?d==="floating"?"reference":"floating":d],m=yd(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=yd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:x,strategy:l}):g);return{top:(m.top-E.top+w.top)/_.y,bottom:(E.bottom-m.bottom+w.bottom)/_.y,left:(m.left-E.left+w.left)/_.x,right:(E.right-m.right+w.right)/_.x}}const AL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Ar(e,t)||{};if(c==null)return{};const d=iT(u),h={x:n,y:r},p=Sy(s),w=Ey(p),v=await o.getDimensions(c),b=p==="y",m=b?"top":"left",g=b?"bottom":"right",x=b?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[p]-h[p]-i.floating[w],E=h[p]-i.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let T=S?S[x]:0;(!T||!await(o.isElement==null?void 0:o.isElement(S)))&&(T=a.floating[x]||i.floating[w]);const C=_/2-E/2,P=T/2-v[w]/2-1,R=As(d[m],P),$=As(d[g],P),A=R,B=T-v[w]-$,D=T/2-v[w]/2+C,W=gm(A,D,B),H=!l.arrow&&ua(s)!=null&&D!==W&&i.reference[w]/2-(D<A?R:$)-v[w]/2<0,F=H?D<A?D-A:D-B:0;return{[p]:h[p]+F,data:{[p]:W,centerOffset:D-W-F,...H&&{alignmentOffset:F}},reset:H}}}),OL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...b}=Ar(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Or(s),g=er(a),x=Or(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(x||!v?[gd(a)]:EL(a)),S=w!=="none";!h&&S&&E.push(...kL(a,v,w,_));const T=[a,...E],C=await Dl(t,b),P=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&P.push(C[m]),d){const D=_L(s,o,_);P.push(C[D[0]],C[D[1]])}if(R=[...R,{placement:s,overflows:P}],!P.every(D=>D<=0)){var $,A;const D=((($=i.flip)==null?void 0:$.index)||0)+1,W=T[D];if(W&&(!(d==="alignment"?g!==er(W):!1)||R.every(k=>k.overflows[0]>0&&er(k.placement)===g)))return{data:{index:D,overflows:R},reset:{placement:W}};let H=(A=R.filter(F=>F.overflows[0]<=0).sort((F,k)=>F.overflows[1]-k.overflows[1])[0])==null?void 0:A.placement;if(!H)switch(p){case"bestFit":{var B;const F=(B=R.filter(k=>{if(S){const O=er(k.placement);return O===g||O==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(O=>O>0).reduce((O,U)=>O+U,0)]).sort((k,O)=>k[1]-O[1])[0])==null?void 0:B[0];F&&(H=F);break}case"initialPlacement":H=a;break}if(s!==H)return{reset:{placement:H}}}return{}}}};function Pw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rw(e){return vL.some(t=>e[t]>=0)}const jL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Ar(e,t);switch(r){case"referenceHidden":{const i=await Dl(t,{...s,elementContext:"reference"}),o=Pw(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Rw(o)}}}case"escaped":{const i=await Dl(t,{...s,altBoundary:!0}),o=Pw(i,n.floating);return{data:{escapedOffsets:o,escaped:Rw(o)}}}default:return{}}}}},oT=new Set(["left","top"]);async function IL(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Or(n),a=ua(n),l=er(n)==="y",c=oT.has(o)?-1:1,u=i&&l?-1:1,d=Ar(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof w=="number"&&(p=a==="end"?w*-1:w),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const NL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await IL(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},LL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:m,y:g}=b;return{x:m,y:g}}},...l}=Ar(e,t),c={x:n,y:r},u=await Dl(t,l),d=er(Or(s)),h=_y(d);let p=c[h],w=c[d];if(i){const b=h==="y"?"top":"left",m=h==="y"?"bottom":"right",g=p+u[b],x=p-u[m];p=gm(g,p,x)}if(o){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=w+u[b],x=w-u[m];w=gm(g,w,x)}const v=a.fn({...t,[h]:p,[d]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:i,[d]:o}}}}}},DL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ar(e,t),u={x:n,y:r},d=er(s),h=_y(d);let p=u[h],w=u[d];const v=Ar(a,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=h==="y"?"height":"width",_=i.reference[h]-i.floating[x]+b.mainAxis,E=i.reference[h]+i.reference[x]-b.mainAxis;p<_?p=_:p>E&&(p=E)}if(c){var m,g;const x=h==="y"?"width":"height",_=oT.has(Or(s)),E=i.reference[d]-i.floating[x]+(_&&((m=o.offset)==null?void 0:m[d])||0)+(_?0:b.crossAxis),S=i.reference[d]+i.reference[x]+(_?0:((g=o.offset)==null?void 0:g[d])||0)-(_?b.crossAxis:0);w<E?w=E:w>S&&(w=S)}return{[h]:p,[d]:w}}}},ML=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Ar(e,t),u=await Dl(t,c),d=Or(s),h=ua(s),p=er(s)==="y",{width:w,height:v}=i.floating;let b,m;d==="top"||d==="bottom"?(b=d,m=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,b=h==="end"?"top":"bottom");const g=v-u.top-u.bottom,x=w-u.left-u.right,_=As(v-u[b],g),E=As(w-u[m],x),S=!t.middlewareData.shift;let T=_,C=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=g),S&&!h){const R=Gt(u.left,0),$=Gt(u.right,0),A=Gt(u.top,0),B=Gt(u.bottom,0);p?C=w-2*(R!==0||$!==0?R+$:Gt(u.left,u.right)):T=v-2*(A!==0||B!==0?A+B:Gt(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:T});const P=await o.getDimensions(a.floating);return w!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function df(){return typeof window<"u"}function da(e){return aT(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dr(e){var t;return(t=(aT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function aT(e){return df()?e instanceof Node||e instanceof Zt(e).Node:!1}function Bn(e){return df()?e instanceof Element||e instanceof Zt(e).Element:!1}function cr(e){return df()?e instanceof HTMLElement||e instanceof Zt(e).HTMLElement:!1}function Aw(e){return!df()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}const $L=new Set(["inline","contents"]);function cc(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Un(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!$L.has(s)}const VL=new Set(["table","td","th"]);function FL(e){return VL.has(da(e))}const BL=[":popover-open",":modal"];function ff(e){return BL.some(t=>{try{return e.matches(t)}catch{return!1}})}const UL=["transform","translate","scale","rotate","perspective"],zL=["transform","translate","scale","rotate","perspective","filter"],WL=["paint","layout","strict","content"];function Ty(e){const t=Cy(),n=Bn(e)?Un(e):e;return UL.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||zL.some(r=>(n.willChange||"").includes(r))||WL.some(r=>(n.contain||"").includes(r))}function HL(e){let t=Os(e);for(;cr(t)&&!Yo(t);){if(Ty(t))return t;if(ff(t))return null;t=Os(t)}return null}function Cy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const KL=new Set(["html","body","#document"]);function Yo(e){return KL.has(da(e))}function Un(e){return Zt(e).getComputedStyle(e)}function hf(e){return Bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Os(e){if(da(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Aw(e)&&e.host||dr(e);return Aw(t)?t.host:t}function lT(e){const t=Os(e);return Yo(t)?e.ownerDocument?e.ownerDocument.body:e.body:cr(t)&&cc(t)?t:lT(t)}function Ml(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=lT(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Zt(s);if(i){const a=vm(o);
vendor: 4,772 bytes, line 297
297return t.concat(o,o.visualViewport||[],cc(s)?s:[],a&&n?Ml(a):[])}return t.concat(s,Ml(s,[],n))}function vm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cT(e){const t=Un(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=cr(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=md(n)!==i||md(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function ky(e){return Bn(e)?e:e.contextElement}function Ro(e){const t=ky(e);if(!cr(t))return rr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=cT(t);let o=(i?md(n.width):n.width)/r,a=(i?md(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const qL=rr(0);function uT(e){const t=Zt(e);return!Cy()||!t.visualViewport?qL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function GL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Zt(e)?!1:t}function ji(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=ky(e);let o=rr(1);t&&(r?Bn(r)&&(o=Ro(r)):o=Ro(e));const a=GL(i,n,r)?uT(i):rr(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const h=Zt(i),p=r&&Bn(r)?Zt(r):r;let w=h,v=vm(w);for(;v&&r&&p!==w;){const b=Ro(v),m=v.getBoundingClientRect(),g=Un(v),x=m.left+(v.clientLeft+parseFloat(g.paddingLeft))*b.x,_=m.top+(v.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=x,c+=_,w=Zt(v),v=vm(w)}}return yd({width:u,height:d,x:l,y:c})}function Py(e,t){const n=hf(e).scrollLeft;return t?t.left+n:ji(dr(e)).left+n}function dT(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Py(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function YL(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=dr(r),a=t?ff(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=rr(1);const u=rr(0),d=cr(r);if((d||!d&&!i)&&((da(r)!=="body"||cc(o))&&(l=hf(r)),cr(r))){const p=ji(r);c=Ro(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=o&&!d&&!i?dT(o,l,!0):rr(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function QL(e){return Array.from(e.getClientRects())}function JL(e){const t=dr(e),n=hf(e),r=e.ownerDocument.body,s=Gt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Gt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Py(e);const a=-n.scrollTop;return Un(r).direction==="rtl"&&(o+=Gt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function XL(e,t){const n=Zt(e),r=dr(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=Cy();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const ZL=new Set(["absolute","fixed"]);function eD(e,t){const n=ji(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=cr(e)?Ro(e):rr(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function Ow(e,t,n){let r;if(t==="viewport")r=XL(e,n);else if(t==="document")r=JL(dr(e));else if(Bn(t))r=eD(t,n);else{const s=uT(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return yd(r)}function fT(e,t){const n=Os(e);return n===t||!Bn(n)||Yo(n)?!1:Un(n).position==="fixed"||fT(n,t)}function tD(e,t){const n=t.get(e);if(n)return n;let r=Ml(e,[],!1).filter(a=>Bn(a)&&da(a)!=="body"),s=null;const i=Un(e).position==="fixed";let o=i?Os(e):e;for(;Bn(o)&&!Yo(o);){const a=Un(o),l=Ty(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&ZL.has(s.position)||cc(o)&&!l&&fT(e,o))?r=r.filter(u=>u!==o):s=a,o=Os(o)}return t.set(e,r),r}function nD(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?ff(t)?[]:tD(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=Ow(t,u,s);return c.top=Gt(d.top,c.top),c.right=As(d.right,c.right),c.bottom=As(d.bottom,c.bottom),c.left=Gt(d.left,c.left),c},Ow(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function rD(e){const{width:t,height:n}=cT(e);return{width:t,height:n}}function sD(e,t,n){const r=cr(t),s=dr(t),i=n==="fixed",o=ji(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=rr(0);function c(){l.x=Py(s)}if(r||!r&&!i)if((da(t)!=="body"||cc(s))&&(a=hf(t)),r){const p=ji(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else s&&c();i&&!r&&s&&c();const u=s&&!r&&!i?dT(s,a):rr(0),d=o.left+a.scrollLeft-l.x-u.x,h=o.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function xh(e){return Un(e).position==="static"}function jw(e,t){if(!cr(e)||Un(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dr(e)===n&&(n=n.ownerDocument.body),n}function hT(e,t){const n=Zt(e);
vendor: 9,143 bytes, line 297
297if(ff(e))return n;if(!cr(e)){let s=Os(e);for(;s&&!Yo(s);){if(Bn(s)&&!xh(s))return s;s=Os(s)}return n}let r=jw(e,t);for(;r&&FL(r)&&xh(r);)r=jw(r,t);return r&&Yo(r)&&xh(r)&&!Ty(r)?n:r||HL(e)||n}const iD=async function(e){const t=this.getOffsetParent||hT,n=this.getDimensions,r=await n(e.floating);return{reference:sD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oD(e){return Un(e).direction==="rtl"}const aD={convertOffsetParentRelativeRectToViewportRelativeRect:YL,getDocumentElement:dr,getClippingRect:nD,getOffsetParent:hT,getElementRects:iD,getClientRects:QL,getDimensions:rD,getScale:Ro,isElement:Bn,isRTL:oD};function pT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lD(e,t){let n=null,r;const s=dr(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const w=Gc(d),v=Gc(s.clientWidth-(u+h)),b=Gc(s.clientHeight-(d+p)),m=Gc(u),x={rootMargin:-w+"px "+-v+"px "+-b+"px "+-m+"px",threshold:Gt(0,As(1,l))||1};let _=!0;function E(S){const T=S[0].intersectionRatio;if(T!==l){if(!_)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!pT(c,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(E,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return o(!0),i}function cD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ky(e),u=s||i?[...c?Ml(c):[],...Ml(t)]:[];u.forEach(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&a?lD(c,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let w,v=l?ji(e):null;l&&b();function b(){const m=ji(e);v&&!pT(v,m)&&n(),v=m,w=requestAnimationFrame(b)}return n(),()=>{var m;u.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d==null||d(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(w)}}const uD=NL,dD=LL,fD=OL,hD=ML,pD=jL,Iw=AL,mD=DL,gD=(e,t,n)=>{const r=new Map,s={platform:aD,...n},i={...s.platform,_c:r};return RL(e,t,{...s,platform:i})};var yD=typeof document<"u",vD=function(){},Iu=yD?y.useLayoutEffect:vD;function vd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vd(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!vd(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function mT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nw(e,t){const n=mT(e);return Math.round(t*n)/n}function bh(e){const t=y.useRef(e);return Iu(()=>{t.current=e}),t}function wD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=y.useState(r);vd(h,r)||p(r);const[w,v]=y.useState(null),[b,m]=y.useState(null),g=y.useCallback(k=>{k!==S.current&&(S.current=k,v(k))},[]),x=y.useCallback(k=>{k!==T.current&&(T.current=k,m(k))},[]),_=i||w,E=o||b,S=y.useRef(null),T=y.useRef(null),C=y.useRef(u),P=l!=null,R=bh(l),$=bh(s),A=bh(c),B=y.useCallback(()=>{if(!S.current||!T.current)return;const k={placement:t,strategy:n,middleware:h};$.current&&(k.platform=$.current),gD(S.current,T.current,k).then(O=>{const U={...O,isPositioned:A.current!==!1};D.current&&!vd(C.current,U)&&(C.current=U,Mi.flushSync(()=>{d(U)}))})},[h,t,n,$,A]);Iu(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[c]);const D=y.useRef(!1);Iu(()=>(D.current=!0,()=>{D.current=!1}),[]),Iu(()=>{if(_&&(S.current=_),E&&(T.current=E),_&&E){if(R.current)return R.current(_,E,B);B()}},[_,E,B,R,P]);const W=y.useMemo(()=>({reference:S,floating:T,setReference:g,setFloating:x}),[g,x]),H=y.useMemo(()=>({reference:_,floating:E}),[_,E]),F=y.useMemo(()=>{const k={position:n,left:0,top:0};if(!H.floating)return k;const O=Nw(H.floating,u.x),U=Nw(H.floating,u.y);return a?{...k,transform:"translate("+O+"px, "+U+"px)",...mT(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:U}},[n,a,H.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:B,refs:W,elements:H,floatingStyles:F}),[u,B,W,H,F])}const xD=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Iw({element:r.current,padding:s}).fn(n):{}:r?Iw({element:r,padding:s}).fn(n):{}}}},bD=(e,t)=>({...uD(e),options:[e,t]}),_D=(e,t)=>({...dD(e),options:[e,t]}),ED=(e,t)=>({...mD(e),options:[e,t]}),SD=(e,t)=>({...fD(e),options:[e,t]}),TD=(e,t)=>({...hD(e),options:[e,t]}),CD=(e,t)=>({...pD(e),options:[e,t]}),kD=(e,t)=>({...xD(e),options:[e,t]});var PD="Arrow",gT=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return f.jsx(Le.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});gT.displayName=PD;var RD=gT;function AD(e){const[t,n]=y.useState(void 0);return lr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ry="Popper",[yT,vT]=aa(Ry),[OD,wT]=yT(Ry),xT=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return f.jsx(OD,{scope:t,anchor:r,onAnchorChange:s,children:n})};xT.displayName=Ry;var bT="PopperAnchor",_T=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=wT(bT,n),o=y.useRef(null),a=_t(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:f.jsx(Le.div,{...s,ref:a})});_T.displayName=bT;var Ay="PopperContent",[jD,ID]=yT(Ay),ET=y.forwardRef((e,t)=>{var he,dt,Qe,xn,sn,$r;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:w,...v}=e,b=wT(Ay,n),[m,g]=y.useState(null),x=_t(t,ft=>g(ft)),[_,E]=y.useState(null),S=AD(_),T=(S==null?void 0:S.width)??0,C=(S==null?void 0:S.height)??0,P=r+(i!=="center"?"-"+i:""),R=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},$=Array.isArray(c)?c:[c],A=$.length>0,B={padding:R,boundary:$.filter(LD),altBoundary:A},{refs:D,floatingStyles:W,placement:H,isPositioned:F,middlewareData:k}=wD({strategy:"fixed",placement:P,whileElementsMounted:(...ft)=>cD(...ft,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[bD({mainAxis:s+C,alignmentAxis:o}),l&&_D({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?ED():void 0,...B}),l&&SD({...B}),TD({...B,apply:({elements:ft,rects:Vi,availableWidth:Ea,availableHeight:Ws})=>{const{width:bn,height:Hs}=Vi.reference,Vr=ft.floating.style;Vr.setProperty("--radix-popper-available-width",`${Ea}px`),Vr.setProperty("--radix-popper-available-height",`${Ws}px`),Vr.setProperty("--radix-popper-anchor-width",`${bn}px`),Vr.setProperty("--radix-popper-anchor-height",`${Hs}px`)}}),_&&kD({element:_,padding:a}),DD({arrowWidth:T,arrowHeight:C}),h&&CD({strategy:"referenceHidden",...B})]}),[O,U]=CT(H),X=ar(w);lr(()=>{F&&(X==null||X())},[F,X]);const J=(he=k.arrow)==null?void 0:he.x,re=(dt=k.arrow)==null?void 0:dt.y,Y=((Qe=k.arrow)==null?void 0:Qe.centerOffset)!==0,[ue,Oe]=y.useState();return lr(()=>{m&&Oe(window.getComputedStyle(m).zIndex)},[m]),f.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:F?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(xn=k.transformOrigin)==null?void 0:xn.x,(sn=k.transformOrigin)==null?void 0:sn.y].join(" "),...(($r=k.hide)==null?void 0:$r.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(jD,{scope:n,placedSide:O,onArrowChange:E,arrowX:J,arrowY:re,shouldHideArrow:Y,children:f.jsx(Le.div,{"data-side":O,"data-align":U,...v,ref:x,style:{...v.style,animation:F?void 0:"none"}})})})});ET.displayName=Ay;var ST="PopperArrow",ND={top:"bottom",right:"left",bottom:"top",left:"r
297ight"},TT=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=ID(ST,r),o=ND[i.placedSide];return f.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:f.jsx(RD,{...s,ref:n,style:{...s.style,display:"block"}})})});TT.displayName=ST;function LD(e){return e!==null}var DD=e=>({name:"transformOrigin",options:e,fn(t){var b,m,g;const{placement:n,rects:r,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=CT(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((m=s.arrow)==null?void 0:m.x)??0)+a/2,p=(((g=s.arrow)==null?void 0:g.y)??0)+l/2;let w="",v="";return c==="bottom"?(w=o?d:`${h}px`,v=`${-l}px`):c==="top"?(w=o?d:`${h}px`,v=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,v=o?d:`${p}px`):c==="left"&&(w=`${r.floating.width+l}px`,v=o?d:`${p}px`),{data:{x:w,y:v}}}});function CT(e){const[t,n="center"]=e.split("-");return[t,n]}var MD=xT,$D=_T,VD=ET,FD=TT,[pf,GK]=aa("Tooltip",[vT]),mf=vT(),kT="TooltipProvider",BD=700,wm="tooltip.open",[UD,Oy]=pf(kT),PT=e=>{const{__scopeTooltip:t,delayDuration:n=BD,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),f.jsx(UD,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};PT.displayName=kT;var $l="Tooltip",[zD,gf]=pf($l),RT=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:s,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=e,l=Oy($l,e.__scopeTooltip),c=mf(t),[u,d]=y.useState(null),h=dl(),p=y.useRef(0),w=o??l.disableHoverableContent,v=a??l.delayDuration,b=y.useRef(!1),[m,g]=lf({prop:r,defaultProp:s??!1,onChange:T=>{T?(l.onOpen(),document.dispatchEvent(new CustomEvent(wm))):l.onClose(),i==null||i(T)},caller:$l}),x=y.useMemo(()=>m?b.current?"delayed-open":"instant-open":"closed",[m]),_=y.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,g(!0)},[g]),E=y.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g(!1)},[g]),S=y.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,g(!0),p.current=0},v)},[v,g]);return y.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),f.jsx(MD,{...c,children:f.jsx(zD,{scope:t,contentId:h,open:m,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:y.useCallback(()=>{l.isOpenDelayedRef.current?S():_()},[l.isOpenDelayedRef,S,_]),onTriggerLeave:y.useCallback(()=>{w?E():(window.clearTimeout(p.current),p.current=0)},[E,w]),onOpen:_,onClose:E,disableHoverableContent:w,children:n})})};RT.displayName=$l;var xm="TooltipTrigger",AT=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=gf(xm,n),i=Oy(xm,n),o=mf(n),a=y.useRef(null),l=_t(t,a,s.onTriggerChange),c=y.useRef(!1),u=y.useRef(!1),d=y.useCallback(()=>c.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.jsx($D,{asChild:!0,...o,children:f.jsx(Le.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:Re(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:Re(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:Re(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Re(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:Re(e.onBlur,s.onClose),onClick:Re(e.onClick,s.onClose)})})});AT.displayName=xm;var WD="TooltipPortal",[YK,HD]=pf(WD,{forceMount:void 0}),Qo="TooltipContent",OT=y.forwardRef((e,t)=>
vendor: 4,283 bytes, line 297
297{const n=HD(Qo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=gf(Qo,e.__scopeTooltip);return f.jsx($i,{present:r||o.open,children:o.disableHoverableContent?f.jsx(jT,{side:s,...i,ref:t}):f.jsx(KD,{side:s,...i,ref:t})})}),KD=y.forwardRef((e,t)=>{const n=gf(Qo,e.__scopeTooltip),r=Oy(Qo,e.__scopeTooltip),s=y.useRef(null),i=_t(t,s),[o,a]=y.useState(null),{trigger:l,onClose:c}=n,u=s.current,{onPointerInTransitChange:d}=r,h=y.useCallback(()=>{a(null),d(!1)},[d]),p=y.useCallback((w,v)=>{const b=w.currentTarget,m={x:w.clientX,y:w.clientY},g=JD(m,b.getBoundingClientRect()),x=XD(m,g),_=ZD(v.getBoundingClientRect()),E=tM([...x,..._]);a(E),d(!0)},[d]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(l&&u){const w=b=>p(b,u),v=b=>p(b,l);return l.addEventListener("pointerleave",w),u.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",w),u.removeEventListener("pointerleave",v)}}},[l,u,p,h]),y.useEffect(()=>{if(o){const w=v=>{const b=v.target,m={x:v.clientX,y:v.clientY},g=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),x=!eM(m,o);g?h():x&&(h(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,u,o,c,h]),f.jsx(jT,{...e,ref:i})}),[qD,GD]=pf($l,{isInside:!1}),YD=cI("TooltipContent"),jT=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=e,l=gf(Qo,n),c=mf(n),{onClose:u}=l;return y.useEffect(()=>(document.addEventListener(wm,u),()=>document.removeEventListener(wm,u)),[u]),y.useEffect(()=>{if(l.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.jsx(af,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:f.jsxs(VD,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(YD,{children:r}),f.jsx(qD,{scope:n,isInside:!0,children:f.jsx(II,{id:l.contentId,role:"tooltip",children:s||r})})]})})});OT.displayName=Qo;var IT="TooltipArrow",QD=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=mf(n);return GD(IT,n).isInside?null:f.jsx(FD,{...s,...r,ref:t})});QD.displayName=IT;function JD(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function XD(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ZD(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function eM(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i],l=t[o],c=a.x,u=a.y,d=l.x,h=l.y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(s=!s)}return s}function tM(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),nM(t)}function nM(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var rM=PT,sM=RT,iM=AT,NT=OT;const LT=rM,oM=sM,aM=iM,DT=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 19,046 bytes, line 297
297f.jsx(NT,{ref:r,sideOffset:t,className:ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));DT.displayName=NT.displayName;var yf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vf=typeof window>"u"||"Deno"in globalThis;function On(){}function lM(e,t){return typeof e=="function"?e(t):e}function cM(e){return typeof e=="number"&&e>=0&&e!==1/0}function uM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bm(e,t){return typeof e=="function"?e(t):e}function dM(e,t){return typeof e=="function"?e(t):e}function Lw(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==jy(o,t.options))return!1}else if(!Fl(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Dw(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Vl(t.options.mutationKey)!==Vl(i))return!1}else if(!Fl(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function jy(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vl)(e)}function Vl(e){return JSON.stringify(e,(t,n)=>_m(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Fl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Fl(e[n],t[n])):!1}function MT(e,t){if(e===t)return e;const n=Mw(e)&&Mw(t);if(n||_m(e)&&_m(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=MT(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function QK(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Mw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _m(e){if(!$w(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!$w(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $w(e){return Object.prototype.toString.call(e)==="[object Object]"}function fM(e){return new Promise(t=>{setTimeout(t,e)})}function hM(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?MT(e,t):t}function pM(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function mM(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Iy=Symbol();function $T(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Iy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function JK(e,t){return typeof e=="function"?e(...t):!!e}var yi,cs,No,R1,gM=(R1=class extends yf{constructor(){super();ge(this,yi);ge(this,cs);ge(this,No);se(this,No,t=>{if(!vf&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,cs)||this.setEventListener(V(this,No))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,cs))==null||t.call(this),se(this,cs,void 0))}setEventListener(t){var n;se(this,No,t),(n=V(this,cs))==null||n.call(this),se(this,cs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,yi)!==t&&(se(this,yi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,yi)=="boolean"?V(this,yi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},yi=new WeakMap,cs=new WeakMap,No=new WeakMap,R1),VT=new gM,Lo,us,Do,A1,yM=(A1=class extends yf{constructor(){super();ge(this,Lo,!0);ge(this,us);ge(this,Do);se(this,Do,t=>{if(!vf&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,us)||this.setEventListener(V(this,Do))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,us))==null||t.call(this),se(this,us,void 0))}setEventListener(t){var n;se(this,Do,t),(n=V(this,us))==null||n.call(this),se(this,us,t(this.setOnline.bind(this)))}setOnline(t){V(this,Lo)!==t&&(se(this,Lo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,Lo)}},Lo=new WeakMap,us=new WeakMap,Do=new WeakMap,A1),wd=new yM;function vM(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function wM(e){return Math.min(1e3*2**e,3e4)}function FT(e){return(e??"online")==="online"?wd.isOnline():!0}var BT=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function _h(e){return e instanceof BT}function UT(e){let t=!1,n=0,r=!1,s;const i=vM(),o=v=>{var b;r||(h(new BT(v)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>VT.isFocused()&&(e.networkMode==="always"||wd.isOnline())&&e.canRun(),u=()=>FT(e.networkMode)&&e.canRun(),d=v=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,v),s==null||s(),i.resolve(v))},h=v=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,v),s==null||s(),i.reject(v))},p=()=>new Promise(v=>{var b;s=m=>{(r||c())&&v(m)},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;s=void 0,r||(v=e.onContinue)==null||v.call(e)}),w=()=>{if(r)return;let v;const b=n===0?e.initialPromise:void 0;try{v=b??e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(d).catch(m=>{var S;if(r)return;const g=e.retry??(vf?0:3),x=e.retryDelay??wM,_=typeof x=="function"?x(n,m):x,E=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!E){h(m);return}n++,(S=e.onFail)==null||S.call(e,n,m),fM(_).then(()=>c()?void 0:p()).then(()=>{t?h(m):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?w():p().then(w),i)}}var xM=e=>setTimeout(e,0);function bM(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=xM;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Pt=bM(),vi,O1,zT=(O1=class{constructor(){ge(this,vi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cM(this.gcTime)&&se(this,vi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vf?1/0:5*60*1e3))}clearGcTimeout(){V(this,vi)&&(clearTimeout(V(this,vi)),se(this,vi,void 0))}},vi=new WeakMap,O1),Mo,wi,an,xi,yt,ec,bi,In,gr,j1,_M=(j1=class extends zT{constructor(t){super();ge(this,In);ge(this,Mo);ge(this,wi);ge(this,an);ge(this,xi);ge(this,yt);ge(this,ec);ge(this,bi);se(this,bi,!1),se(this,ec,t.defaultOptions),this.setOptions(t.options),this.observers=[],se(this,xi,t.client),se(this,an,V(this,xi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,se(this,Mo,SM(this.options)),this.state=t.state??V(this,Mo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,yt))==null?void 0:t.promise}setOptions(t){this.options={...V(this,ec),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,an).remove(this)}setData(t,n){const r=hM(this.state.data,t,this.options);return ht(this,In,gr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ht(this,In,gr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=V(this,yt))==null?void 0:r.promise;return(s=V(this,yt))==null||s.cancel(t),n?n.then(On).catch(On):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,Mo))}isActive(){return this.observers.some(t=>dM(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Iy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>bm(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:!uM(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,yt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,yt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,an).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,yt)&&(V(this,bi)?V(this,yt).cancel({revert:!0}):V(this,yt).cancelRetry()),this.scheduleGc()),V(this,an).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ht(this,In,gr).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,yt))return V(this,yt).continueRetry(),V(this,yt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(se(this,bi,!0),r.signal)})},i=()=>{const h=$T(this.options,n),w=(()=>{const v={client:V(this,xi),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return se(this,bi,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:V(this,xi),state:this.state,fetchFn:i};return s(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),se(this,wi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&ht(this,In,gr).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var p,w,v,b;_h(h)&&h.silent||ht(this,In,gr).call(this,{type:"error",error:h}),_h(h)||((w=(p=V(this,an).config).onError)==null||w.call(p,h,this),(b=(v=V(this,an).config).onSettled)==null||b.call(v,this.state.data,h,this)),this.scheduleGc()};return se(this,yt,UT({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,w,v,b;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(m){l(m);return}(w=(p=V(this,an).config).onSuccess)==null||w.call(p,h,this),(b=(v=V(this,an).config).onSettled)==null||b.call(v,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{ht(this,In,gr).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{ht(this,In,gr).call(this,{type:"pause"})},onContinue:()=>{ht(this,In,gr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),V(this,yt).start()}},Mo=new WeakMap,wi=new WeakMap,an=new WeakMap,xi=new WeakMap,yt=new WeakMap,ec=new WeakMap,bi=new WeakMap,In=new WeakSet,gr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...EM(r.data,this.options),fetchMeta:t.meta??null};case"success":return se(this,wi,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return _h(s)&&s.revert&&V(this,wi)?{...V(this,wi),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Pt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,an).notify({query:this,type:"updated",action:t})})},j1);function EM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:FT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function SM(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Qn,I1,TM=(I1=class extends yf{constructor(t={}){super();ge(this,Qn);this.config=t,se(this,Qn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??jy(s,n);let o=this.get(i);return o||(o=new _M({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){V(this,Qn).has(t.queryHash)||(V(this,Qn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,Qn).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,Qn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Pt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,Qn).get(t)}getAll(){return[...V(this,Qn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Lw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Lw(t,r)):n}notify(t){Pt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Pt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Pt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Qn=new WeakMap,I1),Jn,Ct,_i,Xn,Yr,N1,CM=(N1=class extends zT{constructor(t){super();ge(this,Xn);ge(this,Jn);ge(this,Ct);ge(this,_i);this.mutationId=t.mutationId,se(this,Ct,t.mutationCache),se(this,Jn,[]),this.state=t.state||kM(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,Jn).includes(t)||(V(this,Jn).push(t),this.clearGcTimeout(),V(this,Ct).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){se(this,Jn,V(this,Jn).filter(n=>n!==t)),this.scheduleGc(),V(this,Ct).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,Jn).length||(this.state.status==="pending"?this.scheduleGc():V(this,Ct).remove(this))}continue(){var t;return((t=V(this,_i))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,u,d,h,p,w,v,b,m,g,x,_,E,S,T,C;const n=()=>{ht(this,Xn,Yr).call(this,{type:"continue"})};se(this,_i,UT({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,R)=>{ht(this,Xn,Yr).call(this,{type:"failed",failureCount:P,error:R})},onPause:()=>{ht(this,Xn,Yr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,Ct).canRun(this)}));const r=this.state.status==="pending",s=!V(this,_i).canStart();try{if(r)n();else{ht(this,Xn,Yr).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=V(this,Ct).config).onMutate)==null?void 0:o.call(i,t,this));const R=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));R!==this.state.context&&ht(this,Xn,Yr).call(this,{type:"pending",context:R,variables:t,isPaused:s})}const P=await V(this,_i).start();return await((u=(c=V(this,Ct).config).onSuccess)==null?void 0:u.call(c,P,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,P,t,this.state.context)),await((w=(p=V(this,Ct).config).onSettled)==null?void 0:w.call(p,P,null,this.state.variables,this.state.context,this)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,P,null,t,this.state.context)),ht(this,Xn,Yr).call(this,{type:"success",data:P}),P}catch(P){try{throw await((g=(m=V(this,Ct).config).onError)==null?void 0:g.call(m,P,t,this.state.context,this)),await((_=(x=this.options).onError)==null?void 0:_.call(x,P,t,this.state.context)),await((S=(E=V(this,Ct).config).onSettled)==null?void 0:S.call(E,void 0,P,this.state.variables,this.state.context,this)),await((C=(T=this.options).onSettled)==null?void 0:C.call(T,void 0,P,t,this.state.context)),P}finally{ht(this,Xn,Yr).call(this,{type:"error",error:P})}}finally{V(this,Ct).runNext(this)}}},Jn=new WeakMap,Ct=new WeakMap,_i=new WeakMap,Xn=new WeakSet,Yr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Pt.batch(()=>{V(this,Jn).forEach(r=>{r.onMutationUpdate(t)}),V(this,Ct).notify({mutation:this,type:"updated",action:t})})},N1);function kM(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var br,Nn,tc,L1,PM=(L1=class extends yf{constructor(t={}){super();ge(this,br);
297ge(this,Nn);ge(this,tc);this.config=t,se(this,br,new Set),se(this,Nn,new Map),se(this,tc,0)}build(t,n,r){const s=new CM({mutationCache:this,mutationId:++Cc(this,tc)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){V(this,br).add(t);const n=Yc(t);if(typeof n=="string"){const r=V(this,Nn).get(n);r?r.push(t):V(this,Nn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(V(this,br).delete(t)){const n=Yc(t);if(typeof n=="string"){const r=V(this,Nn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&V(this,Nn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Yc(t);if(typeof n=="string"){const r=V(this,Nn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Yc(t);if(typeof n=="string"){const s=(r=V(this,Nn).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pt.batch(()=>{V(this,br).forEach(t=>{this.notify({type:"removed",mutation:t})}),V(this,br).clear(),V(this,Nn).clear()})}getAll(){return Array.from(V(this,br))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Dw(n,r))}findAll(t={}){return this.getAll().filter(n=>Dw(t,n))}notify(t){Pt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Pt.batch(()=>Promise.all(t.map(n=>n.continue().catch(On))))}},br=new WeakMap,Nn=new WeakMap,tc=new WeakMap,L1);function Yc(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Vw(e){return{onFetch:(t,n)=>{var u,d,h,p,w;const r=t.options,s=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const b=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},m=$T(t.options,t.fetchOptions),g=async(x,_,E)=>{if(v)return Promise.reject();if(_==null&&x.pages.length)return Promise.resolve(x);const T=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:_,direction:E?"backward":"forward",meta:t.options.meta};return b($),$})(),C=await m(T),{maxPages:P}=t.options,R=E?mM:pM;return{pages:R(x.pages,C,P),pageParams:R(x.pageParams,_,P)}};if(s&&i.length){const x=s==="backward",_=x?RM:Fw,E={pages:i,pageParams:o},S=_(r,E);a=await g(E,S,x)}else{const x=e??i.length;do{const _=l===0?o[0]??r.initialPageParam:Fw(r,a);if(l>0&&_==null)break;a=await g(a,_),l++}while(l<x)}return a};t.options.persister?t.fetchFn=()=>{var v,b;return(b=(v=t.options).persister)==null?void 0:b.call(v,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Fw(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function RM(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ue,ds,fs,$o,Vo,hs,Fo,Bo,D1,AM=(D1=class{constructor(e={}){ge(this,Ue);ge(this,ds);ge(this,fs);ge(this,$o);ge(this,Vo);ge(this,hs);ge(this,Fo);ge(this,Bo);se(this,Ue,e.queryCache||new TM),se(this,ds,e.mutationCache||new PM),se(this,fs,e.defaultOptions||{}),se(this,$o,new Map),se(this,Vo,new Map),se(this,hs,0)}mount(){Cc(this,hs)._++,V(this,hs)===1&&(se(this,Fo,VT.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Ue).onFocus())})),se(this,Bo,wd.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Ue).onOnline())})))}unmount(){var e,t;Cc(this,hs)._--,V(this,hs)===0&&((e=V(this,Fo))==null||e.call(this),se(this,Fo,void 0),(t=V(this,Bo))==null||t.call(this),se(this,Bo,void 0))}isFetching(e){return V(this,Ue).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,ds).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Ue).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=V(this,Ue).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(bm(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return V(this,Ue).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=V(this,Ue).get(r.queryHash),i=s==null?void 0:s.state.data,o=lM(t,i);if(o!==void 0)return V(this,Ue).build(this,r).setData(o,{...n,manual:!0})}
297setQueriesData(e,t,n){return Pt.batch(()=>V(this,Ue).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Ue).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,Ue);Pt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,Ue);return Pt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Pt.batch(()=>V(this,Ue).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(On).catch(On)}invalidateQueries(e,t={}){return Pt.batch(()=>(V(this,Ue).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Pt.batch(()=>V(this,Ue).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(On)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(On)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,Ue).build(this,t);return n.isStaleByTime(bm(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(On).catch(On)}fetchInfiniteQuery(e){return e.behavior=Vw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(On).catch(On)}ensureInfiniteQueryData(e){return e.behavior=Vw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wd.isOnline()?V(this,ds).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,Ue)}getMutationCache(){return V(this,ds)}getDefaultOptions(){return V(this,fs)}setDefaultOptions(e){se(this,fs,e)}setQueryDefaults(e,t){V(this,$o).set(Vl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,$o).values()],n={};return t.forEach(r=>{Fl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){V(this,Vo).set(Vl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,Vo).values()],n={};return t.forEach(r=>{Fl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,fs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jy(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Iy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,fs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,Ue).clear(),V(this,ds).clear()}},Ue=new WeakMap,ds=new WeakMap,fs=new WeakMap,$o=new WeakMap,Vo=new WeakMap,hs=new WeakMap,Fo=new WeakMap,Bo=new WeakMap,D1),WT=y.createContext(void 0),XK=e=>{const t=y.useContext(WT);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OM=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(WT.Provider,{value:e,children:t}));/** 298 * @remix-run/router v1.23.0 299 * 300 * Copyright (c) Remix Software Inc. 301 * 302 * This source code is licensed under the MIT license found in the 303 * LICENSE.md file in the root directory of this source tree. 304 * 305 * @license MIT 306 */function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bl.apply(this,arguments)}var gs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(gs||(gs={}));const Bw="popstate";function jM(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return Em("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:xd(s)}return NM(t,n,null,e)}function We(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function HT(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IM(){return Math.random().toString(36).substr(2,8)}function Uw(e,t){return{usr:e.state,key:e.key,idx:t}}function Em(e,t,n,r){return n===void 0&&(n=null),Bl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fa(t):t,{state:n,key:t&&t.key||r||IM()})}function xd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function fa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function NM(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=gs.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Bl({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=gs.Pop;let b=u(),m=b==null?null:b-c;c=b,l&&l({action:a,location:v.location,delta:m})}function h(b,m){a=gs.Push;let g=Em(v.location,b,m);c=u()+1;let x=Uw(g,c),_=v.createHref(g);try{o.pushState(x,"",_)}
vendor: 3,324 bytes, line 306
306catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(_)}i&&l&&l({action:a,location:v.location,delta:1})}function p(b,m){a=gs.Replace;let g=Em(v.location,b,m);c=u();let x=Uw(g,c),_=v.createHref(g);o.replaceState(x,"",_),i&&l&&l({action:a,location:v.location,delta:0})}function w(b){let m=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof b=="string"?b:xd(b);return g=g.replace(/ $/,"%20"),We(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let v={get action(){return a},get location(){return e(s,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Bw,d),l=b,()=>{s.removeEventListener(Bw,d),l=null}},createHref(b){return t(s,b)},createURL:w,encodeLocation(b){let m=w(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(b){return o.go(b)}};return v}var zw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zw||(zw={}));function LM(e,t,n){return n===void 0&&(n="/"),DM(e,t,n,!1)}function DM(e,t,n,r){let s=typeof t=="string"?fa(t):t,i=Jo(s.pathname||"/",n);if(i==null)return null;let o=KT(e);MM(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=GM(i);a=KM(o[l],c,r)}return a}function KT(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(We(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ks([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(We(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),KT(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:WM(c,i.index),routesMeta:u})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of qT(i.path))s(i,o,l)}),t}function qT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=qT(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function MM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:HM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $M=/^:[\w-]+$/,VM=3,FM=2,BM=1,UM=10,zM=-2,Ww=e=>e==="*";function WM(e,t){let n=e.split("/"),r=n.length;return n.some(Ww)&&(r+=zM),t&&(r+=FM),n.filter(s=>!Ww(s)).reduce((s,i)=>s+($M.test(i)?VM:i===""?BM:UM),r)}function HM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function KM(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=bd({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=bd({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 9,263 bytes, lines 306-315
306Object.assign(s,d.params),o.push({params:s,pathname:ks([i,d.pathname]),pathnameBase:XM(ks([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=ks([i,d.pathnameBase]))}return o}function bd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=qM(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:h,isOptional:p}=u;if(h==="*"){let v=a[d]||"";o=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const w=a[d];return p&&!w?c[h]=void 0:c[h]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function qM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),HT(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function GM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return HT(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Jo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function YM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?fa(e):e;return{pathname:n?n.startsWith("/")?n:QM(n,t):t,search:ZM(r),hash:e$(s)}}function QM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Eh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function JM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function GT(e,t){let n=JM(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function YT(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=fa(e):(s=Bl({},e),We(!s.pathname||!s.pathname.includes("?"),Eh("?","pathname","search",s)),We(!s.pathname||!s.pathname.includes("#"),Eh("#","pathname","hash",s)),We(!s.search||!s.search.includes("#"),Eh("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;s.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=YM(s,a),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const ks=e=>e.join("/").replace(/\/\/+/g,"/"),XM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ZM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,e$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function t$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const QT=["post","put","patch","delete"];new Set(QT);const n$=["get",...QT];new Set(n$);/** 307 * React Router v6.30.1 308 * 309 * Copyright (c) Remix Software Inc. 310 * 311 * This source code is licensed under the MIT license found in the 312 * LICENSE.md file in the root directory of this source tree. 313 * 314 * @license MIT 315 */function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ul.apply(this,arguments)}const wf=y.createContext(null),JT=y.createContext(null),Vs=y.createContext(null),xf=y.createContext(null),Fs=y.createContext({outlet:null,matches:[],isDataRoute:!1}),XT=y.createContext(null);function r$(e,t){let{relative:n}=t===void 0?{}:t;uc()||We(!1);let{basename:r,navigator:s}=y.useContext(Vs),{hash:i,pathname:o,search:a}=bf(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:ks([r,o])),s.createHref({pathname:l,search:a,hash:i})}function uc(){return y.useContext(xf)!=null}function Dr(){return uc()||We(!1),y.useContext(xf).location}function ZT(e){y.useContext(Vs).static||y.useLayoutEffect(e)}function Ny(){let{isDataRoute:e}=y.useContext(Fs);return e?g$():s$()}function s$(){uc()||We(!1);let e=y.useContext(wf),{basename:t,future:n,navigator:r}=y.useContext(Vs),{matches:s}=y.useContext(Fs),{pathname:i}=Dr(),o=JSON.stringify(GT(s,n.v7_relativeSplatPath)),a=y.useRef(!1);return ZT(()=>{a.current=!0}),y.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=YT(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ks([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,o,i,e])}function ZK(){let{matches:e}=y.useContext(Fs),t=e[e.length-1];return t?t.params:{}}function bf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Vs),{matches:s}=y.useContext(Fs),{pathname:i}=Dr(),o=JSON.stringify(GT(s,r.v7_relativeSplatPath));return y.useMemo(()=>YT(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function i$(e,t){return o$(e,t)}function o$(e,t,n,r){uc()||We(!1);let{navigator:s}=y.useContext(Vs),{matches:i}=y.useContext(Fs),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Dr(),u;if(t){var d;let b=typeof t=="string"?fa(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||We(!1),u=b}else u=c;let h=u.pathname||"/",p=h;if(l!=="/"){let b=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=LM(e,{pathname:p}),v=d$(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:ks([l,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:ks([l,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&v?y.createElement(xf.Provider,{value:{location:Ul({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:gs.Pop}},v):v}function a$(){let e=m$(),t=t$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:s},n):null,null)}const l$=y.createElement(a$,null);class c$ extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Fs.Provider,{value:this.props.routeContext},y.createElement(XT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function u$(e){let{routeContext:t,match:n,children:r}=e,s=y.useContext(wf);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Fs.Provider,{value:t},r)}function d$(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||We(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:p}=n,w=d.route.loader&&h[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||w){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let p,w=!1,v=null,b=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,v=d.route.errorElement||l$,l&&(c<0&&h===0?(w=!0,b=null):c===h&&(w=!0,b=d.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,h+1)),g=()=>{let x;return p?x=v:w?x=b:d.route.Component?x=y.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,y.createElement(u$,{match:d,routeC
315ontext:{outlet:u,matches:m,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?y.createElement(c$,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var eC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(eC||{}),_d=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(_d||{});function f$(e){let t=y.useContext(wf);return t||We(!1),t}function h$(e){let t=y.useContext(JT);return t||We(!1),t}function p$(e){let t=y.useContext(Fs);return t||We(!1),t}function tC(e){let t=p$(),n=t.matches[t.matches.length-1];return n.route.id||We(!1),n.route.id}function m$(){var e;let t=y.useContext(XT),n=h$(_d.UseRouteError),r=tC(_d.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function g$(){let{router:e}=f$(eC.UseNavigateStable),t=tC(_d.UseNavigateStable),n=y.useRef(!1);return ZT(()=>{n.current=!0}),y.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ul({fromRouteId:t},i)))},[e,t])}function y$(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function I(e){We(!1)}function v$(e){let{basename:t="/",children:n=null,location:r,navigationType:s=gs.Pop,navigator:i,static:o=!1,future:a}=e;uc()&&We(!1);let l=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:i,static:o,future:Ul({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=fa(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:w="default"}=r,v=y.useMemo(()=>{let b=Jo(u,l);return b==null?null:{location:{pathname:b,search:d,hash:h,state:p,key:w},navigationType:s}},[l,u,d,h,p,w,s]);return v==null?null:y.createElement(Vs.Provider,{value:c},y.createElement(xf.Provider,{children:n,value:v}))}function w$(e){let{children:t,location:n}=e;return i$(Sm(t),n)}new Promise(()=>{});function Sm(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,s)=>{if(!y.isValidElement(r))return;let i=[...t,s];if(r.type===y.Fragment){n.push.apply(n,Sm(r.props.children,i));return}r.type!==I&&We(!1),!r.props.index||!r.props.children||We(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Sm(r.props.children,i)),n.push(o)}),n}/** 316 * React Router DOM v6.30.1 317 * 318 * Copyright (c) Remix Software Inc. 319 * 320 * This source code is licensed under the MIT license found in the 321 * LICENSE.md file in the root directory of this source tree. 322 * 323 * @license MIT 324 */function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ed.apply(this,arguments)}function nC(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function x$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function b$(e,t){return e.button===0&&(!t||t==="_self")&&!x$(e)}function Tm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function _$(e,t){let n=Tm(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const E$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],S$=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],T$="6";try{window.__reactRouterVersion=T$}catch{}const C$=y.createContext({isTransitioning:!1}),k$="startTransition",Hw=wg[k$];function P$(e){let{basename:t,children:n,future:r,window:s}=e,i=y.useRef();i.current==null&&(i.current=jM({window:s,v5Compat:!0}));let o=i.current,[a,l]=y.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=y.useCallback(d=>{c&&Hw?Hw(()=>l(d)):l(d)},[l,c]);return y.useLayoutEffect(()=>o.listen(u),[o,u]),y.useEffect(()=>y$(r),[r]),y.createElement(v$,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const R$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",A$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qr=y.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}
324=t,h=nC(t,E$),{basename:p}=y.useContext(Vs),w,v=!1;if(typeof c=="string"&&A$.test(c)&&(w=c,R$))try{let x=new URL(window.location.href),_=c.startsWith("//")?new URL(x.protocol+c):new URL(c),E=Jo(_.pathname,p);_.origin===x.origin&&E!=null?c=E+_.search+_.hash:v=!0}catch{}let b=r$(c,{relative:s}),m=I$(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:s,viewTransition:d});function g(x){r&&r(x),x.defaultPrevented||m(x)}return y.createElement("a",Ed({},h,{href:w||b,onClick:v||i?r:g,ref:n,target:l}))}),O$=y.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:o=!1,style:a,to:l,viewTransition:c,children:u}=t,d=nC(t,S$),h=bf(l,{relative:d.relative}),p=Dr(),w=y.useContext(JT),{navigator:v,basename:b}=y.useContext(Vs),m=w!=null&&N$(h)&&c===!0,g=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=p.pathname,_=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(x=x.toLowerCase(),_=_?_.toLowerCase():null,g=g.toLowerCase()),_&&b&&(_=Jo(_,b)||_);const E=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let S=x===g||!o&&x.startsWith(g)&&x.charAt(E)==="/",T=_!=null&&(_===g||!o&&_.startsWith(g)&&_.charAt(g.length)==="/"),C={isActive:S,isPending:T,isTransitioning:m},P=S?r:void 0,R;typeof i=="function"?R=i(C):R=[i,S?"active":null,T?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let $=typeof a=="function"?a(C):a;return y.createElement(Qr,Ed({},d,{"aria-current":P,className:R,ref:n,style:$,to:l,viewTransition:c}),typeof u=="function"?u(C):u)});var Cm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cm||(Cm={}));var Kw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kw||(Kw={}));function j$(e){let t=y.useContext(wf);return t||We(!1),t}function I$(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=Ny(),c=Dr(),u=bf(e,{relative:o});return y.useCallback(d=>{if(b$(d,n)){d.preventDefault();let h=r!==void 0?r:xd(c)===xd(u);l(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,u,r,s,n,e,i,o,a])}function eq(e){let t=y.useRef(Tm(e)),n=y.useRef(!1),r=Dr(),s=y.useMemo(()=>_$(r.search,n.current?null:t.current),[r.search]),i=Ny(),o=y.useCallback((a,l)=>{const c=Tm(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,l)},[i,s]);return[s,o]}function N$(e,t){t===void 0&&(t={});let n=y.useContext(C$);n==null&&We(!1);let{basename:r}=j$(Cm.useViewTransitionState),s=bf(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Jo(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Jo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return bd(s.pathname,o)!=null||bd(s.pathname,i)!=null}var km=function(e,t){return km=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&
vendor: 4,092 bytes, line 324
324(n[s]=r[s])},km(e,t)};function rC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");km(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var dn=function(){return dn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},dn.apply(this,arguments)};function Bs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function sC(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,n,i):o(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}function iC(e,t){return function(n,r){t(n,r,e)}}function oC(e,t,n,r,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=r.kind,l=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,h=!1,p=n.length-1;p>=0;p--){var w={};for(var v in r)w[v]=v==="access"?{}:r[v];for(var v in r.access)w.access[v]=r.access[v];w.addInitializer=function(m){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var b=(0,n[p])(a==="accessor"?{get:u.get,set:u.set}:u[l],w);if(a==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(d=o(b.get))&&(u.get=d),(d=o(b.set))&&(u.set=d),(d=o(b.init))&&s.unshift(d)}else(d=o(b))&&(a==="field"?s.unshift(d):u[l]=d)}c&&Object.defineProperty(c,r.name,u),h=!0}function aC(e,t,n){for(var r=arguments.length>2,s=0;s<t.length;s++)n=r?t[s].call(e,n):t[s].call(e);return r?n:void 0}function lC(e){return typeof e=="symbol"?e:"".concat(e)}function cC(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function uC(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Q(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function dC(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,s,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,s&&(i=c[0]&2?s.return:c[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,c[1])).done)return i;switch(s=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,s=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],s=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var _f=Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);
vendor: 4,713 bytes, line 324
324(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function fC(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_f(t,e,n)}function Sd(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ly(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function hC(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ly(arguments[t]));return e}function pC(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),s=0,t=0;t<n;t++)for(var i=arguments[t],o=0,a=i.length;o<a;o++,s++)r[s]=i[o];return r}function Dy(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Xo(e){return this instanceof Xo?(this.v=e,this):new Xo(e)}function mC(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,i=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),s[Symbol.asyncIterator]=function(){return this},s;function o(p){return function(w){return Promise.resolve(w).then(p,d)}}function a(p,w){r[p]&&(s[p]=function(v){return new Promise(function(b,m){i.push([p,v,b,m])>1||l(p,v)})},w&&(s[p]=w(s[p])))}function l(p,w){try{c(r[p](w))}catch(v){h(i[0][3],v)}}function c(p){p.value instanceof Xo?Promise.resolve(p.value.v).then(u,d):h(i[0][2],p)}function u(p){l("next",p)}function d(p){l("throw",p)}function h(p,w){p(w),i.shift(),i.length&&l(i[0][0],i[0][1])}}function gC(e){var t,n;return t={},r("next"),r("throw",function(s){throw s}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(s,i){t[s]=e[s]?function(o){return(n=!n)?{value:Xo(e[s](o)),done:!1}:i?i(o):o}:i}}function yC(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Sd=="function"?Sd(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(o){return new Promise(function(a,l){o=e[i](o),s(a,l,o.done,o.value)})}}function s(i,o,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},o)}}function vC(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var L$=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Pm=function(e){return Pm=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},Pm(e)};function wC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Pm(e),r=0;r<n.length;r++)n[r]!=="default"&&_f(t,e,n[r]);return L$(t,e),t}function xC(e){return e&&e.__esModule?e:{default:e}}function bC(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function _C(e,t,n,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(e,n):s?s.value=n:t.set(e,n),n}function EC(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function SC(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(s=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");
324s&&(r=function(){try{s.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var D$=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function TC(e){function t(i){e.error=e.hasError?new D$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var n,r=0;function s(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(s);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(s,function(o){return t(o),s()})}else r|=1}catch(o){t(o)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return s()}function CC(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,s,i,o){return r?t?".jsx":".js":s&&(!i||!o)?n:s+i+"."+o.toLowerCase()+"js"}):e}const M$={__extends:rC,__assign:dn,__rest:Bs,__decorate:sC,__param:iC,__esDecorate:oC,__runInitializers:aC,__propKey:lC,__setFunctionName:cC,__metadata:uC,__awaiter:Q,__generator:dC,__createBinding:_f,__exportStar:fC,__values:Sd,__read:Ly,__spread:hC,__spreadArrays:pC,__spreadArray:Dy,__await:Xo,__asyncGenerator:mC,__asyncDelegator:gC,__asyncValues:yC,__makeTemplateOb
324ject:vC,__importStar:wC,__importDefault:xC,__classPrivateFieldGet:bC,__classPrivateFieldSet:_C,__classPrivateFieldIn:EC,__addDisposableResource:SC,__disposeResources:TC,__rewriteRelativeImportExtension:CC},$$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:SC,get __assign(){return dn},__asyncDelegator:gC,__asyncGenerator:mC,__asyncValues:yC,__await:Xo,__awaiter:Q,__classPrivateFieldGet:bC,__classPrivateFieldIn:EC,__classPrivateFieldSet:_C,__createBinding:_f,__decorate:sC,__disposeResources:TC,__esDecorate:oC,__exportStar:fC,__extends:rC,__generator:dC,__importDefault:xC,__importStar:wC,__makeTemplateObject:vC,__metadata:uC,__param:iC,__propKey:lC,__read:Ly,__rest:Bs,__rewriteRelativeImportExtension:CC,__runInitializers:aC,__setFunctionName:cC,__spread:hC,__spreadArray:Dy,__spreadArrays:pC,__values:Sd,default:M$},Symbol.toStringTag,{value:"Module"})),V$=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class My extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class F$ extends My{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class qw extends My{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Gw extends My{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Rm;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Rm||(Rm={}));class B${constructor(t,{headers:n={},customFetch:r,region:s=Rm.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=V$(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return Q(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:u,timeout:d}=r;let h={},{region:p}=r;p||(p=this.region);const w=new URL(`${this.url}/${n}`);p&&p!=="any"&&(h["x-region"]=p,w.searchParams.set("forceFunctionRegion",p));let v;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",v=c):typeof c=="string"?(h["Content-Type"]="text/plain",v=c):typeof FormData<"u"&&c instanceof FormData?v=c:(h["Content-Type"]="application/json",v=JSON.stringify(c)):v=c;let b=u;d&&(o=new AbortController,i=setTimeout(()=>o.abort(),d),u?(b=o.signal,u.addEventListener("abort",()=>o.abort())):b=o.signal);const m=yield this.fetch(w.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:v,signal:b}).catch(E=>{throw new F$(E)}),g=m.headers.get("x-relay-error");if(g&&g==="true")throw new qw(m);if(!m.ok)throw new Gw(m);let x=((s=m.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return x==="application/json"?_=yield m.json():x==="application/octet-stream"||x==="application/pdf"?_=yield m.blob():x==="text/event-stream"?_=m:x==="multipart/form-data"?_=yield m.formData():_=yield m.text(),{data:_,error:null,response:m}}catch(a){return{data:null,error:a,response:a instanceof Gw||a instanceof qw?a.context:void 0}}finally{i&&clearTimeout(i)}})}}var Rt={};const ha=gA($$);var Qc={},Jc={},Xc={},Zc={},eu={},tu={},Yw;function kC(){if(Yw)return tu;Yw=1,Object.defineProperty(tu,"__esModule",{value:!0});class e extends Error{constructor(n){super(n.message),this.name="PostgrestError",this.details=n.details,this.hint=n.hint,this.co
324de=n.code}}return tu.default=e,tu}var Qw;function PC(){if(Qw)return eu;Qw=1,Object.defineProperty(eu,"__esModule",{value:!0});const t=ha.__importDefault(kC());class n{constructor(s){var i,o;this.shouldThrowOnError=!1,this.method=s.method,this.url=s.url,this.headers=new Headers(s.headers),this.schema=s.schema,this.body=s.body,this.shouldThrowOnError=(i=s.shouldThrowOnError)!==null&&i!==void 0?i:!1,this.signal=s.signal,this.isMaybeSingle=(o=s.isMaybeSingle)!==null&&o!==void 0?o:!1,s.fetch?this.fetch=s.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(s,i){return this.headers=new Headers(this.headers),this.headers.set(s,i),this}then(s,i){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const o=this.fetch;let a=o(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async l=>{var c,u,d,h;let p=null,w=null,v=null,b=l.status,m=l.statusText;if(l.ok){if(this.method!=="HEAD"){const E=await l.text();E===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((c=this.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text"))?w=E:w=JSON.parse(E))}const x=(u=this.headers.get("Prefer"))===null||u===void 0?void 0:u.match(/count=(exact|planned|estimated)/),_=(d=l.headers.get("content-range"))===null||d===void 0?void 0:d.split("/");x&&_&&_.length>1&&(v=parseInt(_[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(w)&&(w.length>1?(p={code:"PGRST116",details:`Results contain ${w.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},w=null,v=null,b=406,m="Not Acceptable"):w.length===1?w=w[0]:w=null)}else{const x=await l.text();try{p=JSON.parse(x),Array.isArray(p)&&l.status===404&&(w=[],p=null,b=200,m="OK")}catch{l.status===404&&x===""?(b=204,m="No Content"):p={message:x}}if(p&&this.isMaybeSingle&&(!((h=p==null?void 0:p.details)===null||h===void 0)&&h.includes("0 rows"))&&(p=null,b=200,m="OK"),p&&this.shouldThrowOnError)throw new t.default(p)}return{error:p,data:w,count:v,status:b,statusText:m}});return this.shouldThrowOnError||(a=a.catch(l=>{var c,u,d;return{error:{message:`${(c=l==null?void 0:l.name)!==null&&c!==void 0?c:"FetchError"}: ${l==null?void 0:l.message}`,details:`${(u=l==null?void 0:l.stack)!==null&&u!==void 0?u:""}`,hint:"",code:`${(d=l==null?void 0:l.code)!==null&&d!==void 0?d:""}`},data:null,count:null,status:0,statusText:""}})),a.then(s,i)}returns(){return this}overrideTypes(){return this}}return eu.default=n,eu}var Jw;function RC(){if(Jw)return Zc;Jw=1,Object.defineProperty(Zc,"__esModule",{value:!0});const t=ha.__importDefault(PC());class n extends t.default{select(s){let i=!1;const o=(s??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),this.headers.append("Prefer","return=representation"),this}order(s,{ascending:i=!0,nullsFirst:o,foreignTable:a,referencedTable:l=a}={}){const c=l?`${l}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${s}.${i?"asc":"desc"}${o===void 0?"":o?".nullsfirst":".nullslast"}`),this}limit(s,{foreignTable:i,referencedTable:o=i}={}){const a=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(a,`${s}`),this}range(s,i,{foreignTable:o,referencedTable:a=o}={}){const l=typeof a>"u"?"offset":`${a}.offset`,c=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(l,`${s}`),this.url.searchParams.set(c,`${i-s+1}`),this}abortSignal(s){return this.signal=s,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
324explain({analyze:s=!1,verbose:i=!1,settings:o=!1,buffers:a=!1,wal:l=!1,format:c="text"}={}){var u;const d=[s?"analyze":null,i?"verbose":null,o?"settings":null,a?"buffers":null,l?"wal":null].filter(Boolean).join("|"),h=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${h}"; options=${d};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(s){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${s}`),this}}return Zc.default=n,Zc}var Xw;function $y(){if(Xw)return Xc;Xw=1,Object.defineProperty(Xc,"__esModule",{value:!0});const t=ha.__importDefault(RC()),n=new RegExp("[,()]");class r extends t.default{eq(i,o){return this.url.searchParams.append(i,`eq.${o}`),this}neq(i,o){return this.url.searchParams.append(i,`neq.${o}`),this}gt(i,o){return this.url.searchParams.append(i,`gt.${o}`),this}gte(i,o){return this.url.searchParams.append(i,`gte.${o}`),this}lt(i,o){return this.url.searchParams.append(i,`lt.${o}`),this}lte(i,o){return this.url.searchParams.append(i,`lte.${o}`),this}like(i,o){return this.url.searchParams.append(i,`like.${o}`),this}likeAllOf(i,o){return this.url.searchParams.append(i,`like(all).{${o.join(",")}}`),this}likeAnyOf(i,o){return this.url.searchParams.append(i,`like(any).{${o.join(",")}}`),this}ilike(i,o){return this.url.searchParams.append(i,`ilike.${o}`),this}ilikeAllOf(i,o){return this.url.searchParams.append(i,`ilike(all).{${o.join(",")}}`),this}ilikeAnyOf(i,o){return this.url.searchParams.append(i,`ilike(any).{${o.join(",")}}`),this}is(i,o){return this.url.searchParams.append(i,`is.${o}`),this}in(i,o){const a=Array.from(new Set(o)).map(l=>typeof l=="string"&&n.test(l)?`"${l}"`:`${l}`).join(",");return this.url.searchParams.append(i,`in.(${a})`),this}contains(i,o){return typeof o=="string"?this.url.searchParams.append(i,`cs.${o}`):Array.isArray(o)?this.url.searchParams.append(i,`cs.{${o.join(",")}}`):this.url.searchParams.append(i,`cs.${JSON.stringify(o)}`),this}containedBy(i,o){return typeof o=="string"?this.url.searchParams.append(i,`cd.${o}`):Array.isArray(o)?this.url.searchParams.append(i,`cd.{${o.join(",")}}`):this.url.searchParams.append(i,`cd.${JSON.stringify(o)}`),this}rangeGt(i,o){return this.url.searchParams.append(i,`sr.${o}`),this}rangeGte(i,o){return this.url.searchParams.append(i,`nxl.${o}`),this}rangeLt(i,o){return this.url.searchParams.append(i,`sl.${o}`),this}rangeLte(i,o){return this.url.searchParams.append(i,`nxr.${o}`),this}rangeAdjacent(i,o){return this.url.searchParams.append(i,`adj.${o}`),this}overlaps(i,o){return typeof o=="string"?this.url.searchParams.append(i,`ov.${o}`):this.url.searchParams.append(i,`ov.{${o.join(",")}}`),this}textSearch(i,o,{config:a,type:l}={}){let c="";l==="plain"?c="pl":l==="phrase"?c="ph":l==="websearch"&&(c="w");const u=a===void 0?"":`(${a})`;return this.url.searchParams.append(i,`${c}fts${u}.${o}`),this}match(i){return Object.entries(i).forEach(([o,a])=>{this.url.searchParams.append(o,`eq.${a}`)}),this}not(i,o,a){return this.url.searchParams.append(i,`not.${o}.${a}`),this}or(i,{foreignTable:o,referencedTable:a=o}={}){const l=a?`${a}.or`:"or";return this.url.searchParams.append(l,`(${i})`),this}filter(i,o,a){return this.url.searchParams.append(i,`${o}.${a}`),this}}return Xc.default=r,Xc}var Zw;function AC(){if(Zw)return Jc;Zw=1,Object.defineProperty(Jc,"__esModule",{value:!0});const t=ha.__importDefault($y());
324class n{constructor(s,{headers:i={},schema:o,fetch:a}){this.url=s,this.headers=new Headers(i),this.schema=o,this.fetch=a}select(s,i){const{head:o=!1,count:a}=i??{},l=o?"HEAD":"GET";let c=!1;const u=(s??"*").split("").map(d=>/\s/.test(d)&&!c?"":(d==='"'&&(c=!c),d)).join("");return this.url.searchParams.set("select",u),a&&this.headers.append("Prefer",`count=${a}`),new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(s,{count:i,defaultToNull:o=!0}={}){var a;const l="POST";if(i&&this.headers.append("Prefer",`count=${i}`),o||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const c=s.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}upsert(s,{onConflict:i,ignoreDuplicates:o=!1,count:a,defaultToNull:l=!0}={}){var c;const u="POST";if(this.headers.append("Prefer",`resolution=${o?"ignore":"merge"}-duplicates`),i!==void 0&&this.url.searchParams.set("on_conflict",i),a&&this.headers.append("Prefer",`count=${a}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(s)){const d=s.reduce((h,p)=>h.concat(Object.keys(p)),[]);if(d.length>0){const h=[...new Set(d)].map(p=>`"${p}"`);this.url.searchParams.set("columns",h.join(","))}}return new t.default({method:u,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch})}update(s,{count:i}={}){var o;const a="PATCH";return i&&this.headers.append("Prefer",`count=${i}`),new t.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:s,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}delete({count:s}={}){var i;const o="DELETE";return s&&this.headers.append("Prefer",`count=${s}`),new t.default({method:o,url:this.url,headers:this.headers,schema:this.schema,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}}return Jc.default=n,Jc}var ex;function U$(){if(ex)return Qc;ex=1,Object.defineProperty(Qc,"__esModule",{value:!0});const e=ha,t=e.__importDefault(AC()),n=e.__importDefault($y());class r{constructor(i,{headers:o={},schema:a,fetch:l}={}){this.url=i,this.headers=new Headers(o),this.schemaName=a,this.fetch=l}from(i){const o=new URL(`${this.url}/${i}`);return new t.default(o,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(i){return new r(this.url,{headers:this.headers,schema:i,fetch:this.fetch})}rpc(i,o={},{head:a=!1,get:l=!1,count:c}={}){var u;let d;const h=new URL(`${this.url}/rpc/${i}`);let p;a||l?(d=a?"HEAD":"GET",Object.entries(o).filter(([v,b])=>b!==void 0).map(([v,b])=>[v,Array.isArray(b)?`{${b.join(",")}}`:`${b}`]).forEach(([v,b])=>{h.searchParams.append(v,b)})):(d="POST",p=o);const w=new Headers(this.headers);return c&&w.set("Prefer",`count=${c}`),new n.default({method:d,url:h,headers:w,schema:this.schemaName,body:p,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}}return Qc.default=r,Qc}
324Object.defineProperty(Rt,"__esModule",{value:!0});var OC=Rt.PostgrestError=BC=Rt.PostgrestBuilder=VC=Rt.PostgrestTransformBuilder=MC=Rt.PostgrestFilterBuilder=LC=Rt.PostgrestQueryBuilder=IC=Rt.PostgrestClient=void 0;const pa=ha,jC=pa.__importDefault(U$());var IC=Rt.PostgrestClient=jC.default;const NC=pa.__importDefault(AC());var LC=Rt.PostgrestQueryBuilder=NC.default;const DC=pa.__importDefault($y());var MC=Rt.PostgrestFilterBuilder=DC.default;const $C=pa.__importDefault(RC());var VC=Rt.PostgrestTransformBuilder=$C.default;const FC=pa.__importDefault(PC());var BC=Rt.PostgrestBuilder=FC.default;const UC=pa.__importDefault(kC());OC=Rt.PostgrestError=UC.default;var zC=Rt.default={PostgrestClient:jC.default,PostgrestQueryBuilder:NC.default,PostgrestFilterBuilder:DC.default,PostgrestTransformBuilder:$C.default,PostgrestBuilder:FC.default,PostgrestError:UC.default};const z$=M1({__proto__:null,get PostgrestBuilder(){return BC},get PostgrestClient(){return IC},get PostgrestError(){return OC},get PostgrestFilterBuilder(){return MC},get PostgrestQueryBuilder(){return LC},get PostgrestTransformBuilder(){return VC},default:zC},[Rt]),{PostgrestClient:W$,PostgrestQueryBuilder:tq,PostgrestFilterBuilder:nq,PostgrestTransformBuilder:rq,PostgrestBuilder:sq,PostgrestError:iq}=zC||z$;class H${static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 325import ws from "ws" 326new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 327 328Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const K$="2.81.1",q$=`realtime-js/${K$}`,WC="1.0.0",G$="2.0.0",tx=WC,Am=1e4,Y$=1e3,Q$=100;var oi;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(oi||(oi={}));var Xe;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Xe||(Xe={}));var ln;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ln||(ln={}));var Om;(function(e){e.websocket="websocket"})(Om||(Om={}));var ai;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(ai||(ai={}));class J${constructor(){this.HEADER_LENGTH=1,this.META_LENGTH=4,this.USER_BROADCAST_PUSH_META_LENGTH=5,this.KINDS={push:0,reply:1,broadcast:2,userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST="broadcast"}encode(t,n){if(this._isArrayBuffer(t.payload))return n(this._binaryEncodePush(t));if(t.event===this.BROADCAST&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodePush(t){const{join_ref:n,ref:r,event:s,topic:i,payload:o}=t,a=this.META_LENGTH+n.length+r.length+i.length+s.length,l=new ArrayBuffer(this.HEADER_LENGTH+a);let c=new DataView(l),u=0;c.setUint8(u++,this.KINDS.push),c.setUint8(u++,n.length),c.setUint8(u++,r.length),c.setUint8(u++,i.length),c.setUint8(u++,s.length),Array.from(n,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(r,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(i,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(s,h=>c.setUint8(u++,h.charCodeAt(0)));var d=new Uint8Array(l.byteLength+o.byteLength);return d.set(new Uint8Array(l),0),d.set(new Uint8Array(o),l.byteLength),d.buffer}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const{join_ref:s,ref:i,topic:o}=t,a=t.payload.event,l=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0),c=this.USER_BROADCAST_PUSH_META_LENGTH+s.length+i.length+o.length+a.length,u=new ArrayBuffer(this.HEADER_LENGTH+c);let d=new DataView(u),h=0;d.setUint8(h++,this.KINDS.userBroadcastPush),d.setUint8(h++,s.length),d.setUint8(h++,i.length),d.setUint8(h++,o.length),d.setUint8(h++,a.length),d.setUint8(h++,this.BINARY_ENCODING),Array.from(s,w=>
328d.setUint8(h++,w.charCodeAt(0))),Array.from(i,w=>d.setUint8(h++,w.charCodeAt(0))),Array.from(o,w=>d.setUint8(h++,w.charCodeAt(0))),Array.from(a,w=>d.setUint8(h++,w.charCodeAt(0)));var p=new Uint8Array(u.byteLength+l.byteLength);return p.set(new Uint8Array(u),0),p.set(new Uint8Array(l),u.byteLength),p.buffer}_encodeJsonUserBroadcastPush(t){var n,r;const{join_ref:s,ref:i,topic:o}=t,a=t.payload.event,l=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},u=new TextEncoder().encode(JSON.stringify(l)).buffer,d=this.USER_BROADCAST_PUSH_META_LENGTH+s.length+i.length+o.length+a.length,h=new ArrayBuffer(this.HEADER_LENGTH+d);let p=new DataView(h),w=0;p.setUint8(w++,this.KINDS.userBroadcastPush),p.setUint8(w++,s.length),p.setUint8(w++,i.length),p.setUint8(w++,o.length),p.setUint8(w++,a.length),p.setUint8(w++,this.JSON_ENCODING),Array.from(s,b=>p.setUint8(w++,b.charCodeAt(0))),Array.from(i,b=>p.setUint8(w++,b.charCodeAt(0))),Array.from(o,b=>p.setUint8(w++,b.charCodeAt(0))),Array.from(a,b=>p.setUint8(w++,b.charCodeAt(0)));var v=new Uint8Array(h.byteLength+u.byteLength);return v.set(new Uint8Array(h),0),v.set(new Uint8Array(u),h.byteLength),v.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,a,l]=r;return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.push:return this._decodePush(t,n,s);case this.KINDS.reply:return this._decodeReply(t,n,s);case this.KINDS.broadcast:return this._decodeBroadcast(t,n,s);case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodePush(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3);let a=this.HEADER_LENGTH+this.META_LENGTH-1;const l=r.decode(t.slice(a,a+s));a=a+s;const c=r.decode(t.slice(a,a+i));a=a+i;const u=r.decode(t.slice(a,a+o));a=a+o;const d=JSON.parse(r.decode(t.slice(a,t.byteLength)));return{join_ref:l,ref:null,topic:c,event:u,payload:d}}_decodeReply(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+this.META_LENGTH;const c=r.decode(t.slice(l,l+s));l=l+s;const u=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+o));l=l+o;const h=r.decode(t.slice(l,l+a));l=l+a;const p=JSON.parse(r.decode(t.slice(l,t.byteLength))),w={status:h,response:p};return{join_ref:c,ref:u,topic:d,event:ln.reply,payload:w}}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const l=r.decode(t.slice(o,o+i));o=o+i;const c=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{join_ref:null,ref:null,topic:a,event:l,payload:c}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const c=r.decode(t.slice(l,l+s));l=l+s;const u=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+o));l=l+o;const h=t.slice(l,t.byteLength),p=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,w={type:this.BROADCAST,event:u,payload:p};return o>0&&(w.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST,payload:w}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}}class HC{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Se;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Se||(Se={}));const nx=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=X$(o,e,t,s),i),{}):{}},X$=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?KC(i,o):jm(o)},KC=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return nV(t,n)}switch(e){case Se.bool:return Z$(t);case Se.float4:case Se.float8:case Se.int2:case Se.int4:case Se.int8:case Se.numeric:case Se.oid:return eV(t);case Se.json:case Se.jsonb:return tV(t);case Se.timestamp:return rV(t);case Se.abstime:case Se.date:case Se.daterange:case Se.int4range:case Se.int8range:case Se.money:case Se.reltime:case Se.text:case Se.time:case Se.timestamptz:case Se.timetz:case Se.tsrange:case Se.tstzrange:return jm(t);default:return jm(t)}},jm=e=>e,Z$=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},eV=e=>{if(typeof e=="string"){const t=parseFloat(e);
328if(!Number.isNaN(t))return t}return e},tV=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},nV=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>KC(t,a))}return e},rV=e=>typeof e=="string"?e.replace(" ","T"):e,qC=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Sh{constructor(t,n,r={},s=Am){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var rx;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(rx||(rx={}));class fl{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=fl.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=fl.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=fl.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const d=i[c];if(d){const h=u.map(b=>b.presence_ref),p=d.map(b=>b.presence_ref),w=u.filter(b=>p.indexOf(b.presence_ref)<0),v=d.filter(b=>h.indexOf(b.presence_ref)<0);w.length>0&&(a[c]=w),v.length>0&&(l[c]=v)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const d=t[a].map(p=>p.presence_ref),h=u.filter(p=>d.indexOf(p.presence_ref)<0);t[a].unshift(...h)}r(a,u,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(d=>d.presence_ref);c=c.filter(d=>u.indexOf(d.presence_ref)<0),t[a]=c,s(a,c,l),c.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var sx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(sx||(sx={}));var hl;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(hl||(hl={}));var vr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(vr||(vr={}));class Vy{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Xe.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Sh(this,ln.join,this.params,this.timeout),this.rejoinTimer=new HC(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Xe.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Xe.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ln.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new fl(this),this.broadcastEndpointURL=qC(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Xe.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[hl.PRESENCE]&&this.bindings[hl.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(p=>t==null?void 0:t(vr.CHANNEL_ERROR,p)),this._onClose(()=>t==null?void 0:t(vr.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:p})=>{var w;if(this.socket.setAuth(),p===void 0){t==null||t(vr.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,b=(w=v==null?void 0:v.length)!==null&&w!==void 0?w:0,m=[];for(let g=0;g<b;g++){const x=v[g],{filter:{event:_,schema:E,table:S,filter:T}}=x,C=p&&p[g];if(C&&C.event===_&&C.schema===E&&C.table===S&&C.filter===T)m.push(Object.assign(Object.assign({},x),{id:C.id}));else{this.unsubscribe(),this.state=Xe.errored,t==null||t(vr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=m,t&&t(vr.SUBSCRIBED);return}}).receive("error",p=>{this.state=Xe.errored,t==null||t(vr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(vr.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===Xe.joined&&t===hl.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var s;const i=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(n==null)return Promise.reject("Payload is required for httpSend()");const o={method:"POST",headers:{Authorization:i,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
328try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;if(!this._canPush()&&t.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:i,payload:o}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Xe.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ln.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Sh(this,ln.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Xe.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Sh(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>Q$){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=ln;if(r&&[a,l,c,u].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(p=>{var w,v,b;return((w=p.filter)===null||w===void 0?void 0:w.event)==="*"||((b=(v=p.filter)===null||v===void 0?void 0:v.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===o}).map(p=>p.callback(h,r)):(i=this.bindings[o])===null||i===void 0||i.filter(p=>{var w,v,b,m,g,x;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const _=p.id,E=(w=p.filter)===null||w===void 0?void 0:w.event;return _&&((v=n.ids)===null||v===void 0?void 0:v.includes(_))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const _=(g=(m=p==null?void 0:p.filter)===null||m===void 0?void 0:m.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((x=n==null?void 0:n.event)===null||x===void 0?void 0:x.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof h=="object"&&"ids"in h){const w=h.data,{schema:v,table:b,commit_timestamp:m,type:g,errors:x}=w;h=Object.assign(Object.assign({},{schema:v,table:b,commit_timestamp:m,eventType:g,new:{},old:{},errors:x}),this._getPayloadRecords(w))}p.callback(h,r)})}_isClosed(){return this.state===Xe.closed}_isJoined(){return this.state===Xe.joined}_isJoining(){return this.state===Xe.joining}_isLeaving(){return this.state===Xe.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&Vy.isEqual(s.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ln.close,{},t)}_onError(t){this._on(ln.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Xe.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=nx(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=nx(t.columns,t.old_record)),n}}const Th=()=>{},nu={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},sV=[1e3,2e3,5e3,1e4],iV=1e4,oV=` 329 addEventListener("message", (e) => { 330 if (e.data.event === "start") { 331 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 332 } 333 });`;class aV{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Am,this.transport=null,this.heartbeatIntervalMs=nu.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Th,this.ref=0,this.reconnectTimer=null,this.vsn=tx,this.logger=Th,this.conn=null,this.sendBuffer=[],this.serializer
333=new J$,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Om.websocket}`,this.httpEndpoint=qC(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=H$.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 334 335To use Realtime in Node.js, you need to provide a WebSocket implementation: 336 337Option 1: Use Node.js 22+ which has native WebSocket support 338Option 2: Install and provide the "ws" package: 339 340 npm install ws 341 342 import ws from "ws" 343 const client = new RealtimeClient(url, { 344 ...options, 345 transport: ws 346 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case oi.connecting:return ai.Connecting;case oi.open:return ai.Open;case oi.closing:return ai.Closing;default:return ai.Closed}}isConnected(){return this.connectionState()===ai.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Vy(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(Y$,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},nu.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>
346{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_teardownConnection(){if(this.conn){if(this.conn.readyState===oi.open||this.conn.readyState===oi.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(ln.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([oV],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n;t?n=t:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:q$};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(ln.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new HC(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},nu.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,a,l,c,u,d,h,p;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.t
346imeout)!==null&&r!==void 0?r:Am,this.heartbeatIntervalMs=(s=t==null?void 0:t.heartbeatIntervalMs)!==null&&s!==void 0?s:nu.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Th,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:tx,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:w=>sV[w-1]||iV,this.vsn){case WC:this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(w,v)=>v(JSON.stringify(w)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:(w,v)=>v(JSON.parse(w));break;case G$:this.encode=(h=t==null?void 0:t.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class Fy extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function De(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class lV extends Fy{constructor(t,n,r){super(t),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Im extends Fy{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}const By=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),cV=()=>Response,Nm=e=>{if(Array.isArray(e))return e.map(n=>Nm(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Nm(r)}),t},uV=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ch=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},dV=(e,t,n)=>Q(void 0,void 0,void 0,function*(){const r=yield cV();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{const i=e.status||500,o=(s==null?void 0:s.statusCode)||i+"";t(new lV(Ch(s),i,o))}).catch(s=>{t(new Im(Ch(s),s))}):t(new Im(Ch(e),e))}),fV=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?s:(uV(r)?(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,t!=null&&t.duplex&&(s.duplex=t.duplex),Object.assign(Object.assign({},s),n))};function dc(e,t,n,r,s,i){return Q(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,fV(t,r,s,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>dV(l,a,r))})})}function zl(e,t,n,r){return Q(this,void 0,void 0,function*(){return dc(e,"GET",t,n,r)})}function jn(e,t,n,r,s){return Q(this,void 0,void 0,function*(){return dc(e,"POST",t,r,s,n)})}function Lm(e,t,n,r,s){return Q(this,void 0,void 0,function*(){return dc(e,"PUT",t,r,s,n)})}function hV(e,t,n,r){return Q(this,void 0,void 0,function*(){return dc(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function Uy(e,t,n,r,s){return Q(this,void 0,void 0,function*(){return dc(e,"DELETE",t,r,s,n)})}class pV{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n}then(t,n){return this.execute().then(t,n)}execute(){return Q(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(De(t))return{data:null,error:t};throw t}})}}var GC;class mV{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n,this[GC]="BlobDownloadBuilder",this.promise=null}asStream(){return new pV(this.downloadFn,this.shouldThrowOnError)}then(t,n){return this.getPromise().then(t,n)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return Q(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(De(t))return{data:null,error:t};throw t}})}}GC=Symbol.toStringTag;const gV={limit:100,offset:0,sortBy:{column:"name",order:"asc"}}
346,ix={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class yV{constructor(t,n={},r,s){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=r,this.fetch=By(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,r,s){return Q(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},ix),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",this.encodeMetadata(l))):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const c=this._removeEmptyFolders(n),u=this._getFinalPath(c),d=yield(t=="PUT"?Lm:jn)(this.fetch,`${this.url}/object/${u}`,i,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:d.Id,fullPath:d.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(De(i))return{data:null,error:i};throw i}})}upload(t,n,r){return Q(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return Q(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let l;const c=Object.assign({upsert:ix.upsert},s),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const d=yield Lm(this.fetch,a.toString(),l,{headers:u});return{data:{path:i,fullPath:d.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(De(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return Q(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const i=yield jn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new Fy("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(De(r))return{data:null,error:r};throw r}})}update(t,n,r){return Q(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return Q(this,void 0,void 0,function*(){try{return{data:yield jn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(De(s))return{data:null,error:s};throw s}})}copy(t,n,r){return Q(this,void 0,void 0,function*(){try{return{data:{path:(yield jn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(De(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return Q(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield jn(this.fetch,`${this.url}/object/sign/${s}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(De(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return Q(this,void 0,void 0,function*(){try{const s=yield jn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(De(s))return{data:null,error:s};throw s}})}download(t,n){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"",a=this._getFinalPath(t),l=()=>zl(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0});return new mV(l,this.shouldThrowOnError)}info(t){return Q(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield zl(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Nm(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(De(r))return{data:null,error:r};throw r}})}exists(t){return Q(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield hV(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(De(r)&&r instanceof Im){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&s.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let c=s.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${c}`)}}}remove(t){return Q(this,void 0,void 0,function*(){try{return{data:yield Uy(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(De(n))return{data:null,error:n};throw n}})}list(t,n,r){return Q(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},gV),n),{prefix:t||""});return{data:yield jn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(De(s))return{data:null,error:s};throw s}})}listV2(t,n){return Q(this,void 0,void 0,function*(){try{const r=Object.assign({},t);return{data:yield jn(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(De(r))return{data:null,error:r};throw r}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const YC="2.81.1",QC={"X-Client-Info":`storage-js/${YC}`};class vV{constructor(t,n={},r,s){this.shouldThrowOnError=!1;const i=new URL(t);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},QC),n),this.fetch=By(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(t){return Q(this,void 0,void 0,function*(){try{const n=this.listBucketOptionsToQueryString(t);return{data:yield zl(this.fetch,`${this.url}/bucket${n}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(De(n))return{data:null,error:n};throw n}})}getBucket(t){return Q(this,void 0,void 0,function*(){try{return{data:yield zl(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(De(n))return{data:null,error:n};throw n}})}createBucket(t){return Q(this,arguments,void 0,function*(n,r={public:!1}){try{return{data:yield jn(this.fetch,`${this.url}/bucket`,{id:n,name:n,type:r.type,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(De(s))return{data:null,error:s};throw s}})}updateBucket(t,n){return Q(this,void 0,void 0,function*(){try{return{data:yield Lm(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(De(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Q(this,void 0,void 0,function*(){try{return{data:yield jn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(De(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Q(this,void 0,void 0,function*(){try{return{data:yield Uy(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(De(n))return{data:null,error:n};throw n}})}listBucketOptionsToQueryString(t){const n={};return t&&("limit"in t&&(n.limit=String(t.limit)),"offset"in t&&(n.offset=String(t.offset)),t.search&&(n.search=t.search),t.sortColumn&&(n.sortColumn=t.sortColumn),t.sortOrder&&(n.sortOrder=t.sortOrder)),Object.keys(n).length>0?"?"+new URLSearchParams(n).toString():""}}class wV{constructor(t,n={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},QC),n),this.fetch=By(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return Q(this,void 0,void 0,function*(){try{return{data:yield jn(this.fetch,`${this.url}/bucket`,{name:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(De(n))return{data:null,error:n};throw n}})}listBuckets(t){return Q(this,void 0,void 0,function*(){try{const n=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&n.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&n.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&n.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&n.set("sortOrder",t.sortOrder),t!=null&&t.search&&n.set("search",t.search);const r=n.toString(),s=r?`${this.url}/bucket?${r}`:`${this.url}/bucket`;return{data:yield zl(this.fetch,s,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(De(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Q(this,void 0,void 0,function*(){try{return{data:yield Uy(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(De(n))return{data:null,error:n};throw n}})}}const zy={"X-Client-Info":`storage-js/${YC}`,"Content-Type":"application/json"};
346class JC extends Error{constructor(t){super(t),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function Yt(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}class kh extends JC{constructor(t,n,r){super(t),this.name="StorageVectorsApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class xV extends JC{constructor(t,n){super(t),this.name="StorageVectorsUnknownError",this.originalError=n}}var ox;(function(e){e.InternalError="InternalError",e.S3VectorConflictException="S3VectorConflictException",e.S3VectorNotFoundException="S3VectorNotFoundException",e.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",e.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",e.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(ox||(ox={}));const Wy=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),bV=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ax=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),_V=(e,t,n)=>Q(void 0,void 0,void 0,function*(){if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const s=e.status||500,i=e;if(typeof i.json=="function")i.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||s+"";t(new kh(ax(o),s,a))}).catch(()=>{const o=s+"",a=i.statusText||`HTTP ${s} error`;t(new kh(a,s,o))});else{const o=s+"",a=i.statusText||`HTTP ${s} error`;t(new kh(a,s,o))}}else t(new xV(ax(e),e))}),EV=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return r?(bV(r)?(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r)):s.body=r,Object.assign(Object.assign({},s),n)):s};function SV(e,t,n,r,s,i){return Q(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,EV(t,r,s,i)).then(l=>{if(!l.ok)throw l;if(r!=null&&r.noResolveJson)return l;const c=l.headers.get("content-type");return!c||!c.includes("application/json")?{}:l.json()}).then(l=>o(l)).catch(l=>_V(l,a,r))})})}function Qt(e,t,n,r,s){return Q(this,void 0,void 0,function*(){return SV(e,"POST",t,r,s,n)})}class TV{constructor(t,n={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},zy),n),this.fetch=Wy(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(t){return Q(this,void 0,void 0,function*(){try{return{data:(yield Qt(this.fetch,`${this.url}/CreateIndex`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}getIndex(t,n){return Q(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:t,indexName:n},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Yt(r))return{data:null,error:r};throw r}})}listIndexes(t){return Q(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/ListIndexes`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}deleteIndex(t,n){return Q(this,void 0,void 0,function*(){try{return{data:(yield Qt(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:t,indexName:n},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Yt(r))return{data:null,error:r};throw r}})}}class CV{constructor(t,n={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},zy),n),this.fetch=Wy(r)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(t){return Q(this,void 0,void 0,function*(){try{if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:(yield Qt(this.fetch,`${this.url}/PutVectors`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}getVectors(t){return Q(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/GetVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}listVectors(t){return Q(this,void 0,void 0,function*(){try{if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
346if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return{data:yield Qt(this.fetch,`${this.url}/ListVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}queryVectors(t){return Q(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/QueryVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}deleteVectors(t){return Q(this,void 0,void 0,function*(){try{if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:(yield Qt(this.fetch,`${this.url}/DeleteVectors`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}}class kV{constructor(t,n={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},zy),n),this.fetch=Wy(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return Q(this,void 0,void 0,function*(){try{return{data:(yield Qt(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}getBucket(t){return Q(this,void 0,void 0,function*(){try{return{data:yield Qt(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}listBuckets(){return Q(this,arguments,void 0,function*(t={}){try{return{data:yield Qt(this.fetch,`${this.url}/ListVectorBuckets`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Q(this,void 0,void 0,function*(){try{return{data:(yield Qt(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Yt(n))return{data:null,error:n};throw n}})}}class PV extends kV{constructor(t,n={}){super(t,n.headers||{},n.fetch)}from(t){return new RV(this.url,this.headers,t,this.fetch)}}class RV extends TV{constructor(t,n,r,s){super(t,n,s),this.vectorBucketName=r}createIndex(t){const n=Object.create(null,{createIndex:{get:()=>super.createIndex}});return Q(this,void 0,void 0,function*(){return n.createIndex.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const t=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return Q(this,arguments,void 0,function*(n={}){return t.listIndexes.call(this,Object.assign(Object.assign({},n),{vectorBucketName:this.vectorBucketName}))})}getIndex(t){const n=Object.create(null,{getIndex:{get:()=>super.getIndex}});return Q(this,void 0,void 0,function*(){return n.getIndex.call(this,this.vectorBucketName,t)})}deleteIndex(t){const n=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return Q(this,void 0,void 0,function*(){return n.deleteIndex.call(this,this.vectorBucketName,t)})}index(t){return new AV(this.url,this.headers,this.vectorBucketName,t,this.fetch)}}class AV extends CV{constructor(t,n,r,s,i){super(t,n,i),this.vectorBucketName=r,this.indexName=s}putVectors(t){const n=Object.create(null,{putVectors:{get:()=>super.putVectors}});return Q(this,void 0,void 0,function*(){return n.putVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(t){const n=Object.create(null,{getVectors:{get:()=>super.getVectors}});return Q(this,void 0,void 0,function*(){return n.getVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const t=Object.create(null,{listVectors:{get:()=>super.listVectors}});return Q(this,arguments,void 0,function*(n={}){return t.listVectors.call(this,Object.assign(Object.assign({},n),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(t){const n=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return Q(this,void 0,void 0,function*(){return n.queryVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(t){const n=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return Q(this,void 0,void 0,function*(){return n.deleteVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class OV extends vV{constructor(t,n={},r,s){super(t,n,r,s)}from(t){return new yV(this.url,this.headers,t,this.fetch)}get vectors(){return new PV(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new wV(this.url+"/iceberg",this.headers,this.fetch)}}const jV="2.81.1";let Qa="";typeof Deno<"u"?Qa="deno":typeof document<"u"?Qa="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Qa="react-native":Qa="node";const IV={"X-Client-Info":`supabase-js-${Qa}/${jV}`},NV={headers:IV},LV={schema:"public"},DV={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},MV={},$V=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),VV=()=>Headers,FV=(e,t,n)=>{const r=$V(n),s=VV();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(i,Object.assign(Object.assign({},o),{headers:c}))}};function BV(e){return e.endsWith("/")?e:e+"/"}function UV(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:c,realtime:u,global:d}=t,h={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},c),i),realtime:Object.assign(Object.assign({},u),o),storage:{},global:Object.assign(Object.assign(Object.assign({},d),a),{headers:Object.assign(Object.assign({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function zV(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
346if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(BV(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const XC="2.81.1",Xi=30*1e3,Dm=3,Ph=Dm*Xi,WV="http://localhost:9999",HV="supabase.auth.token",KV={"X-Client-Info":`gotrue-js/${XC}`},Mm="X-Supabase-Api-Version",ZC={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},qV=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,GV=10*60*1e3;class Wl extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function Z(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class YV extends Wl{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function QV(e){return Z(e)&&e.name==="AuthApiError"}class li extends Wl{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Us extends Wl{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class kn extends Us{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function JV(e){return Z(e)&&e.name==="AuthSessionMissingError"}class zi extends Us{constructor(){super("Auth session or user missing","AuthInvalidToken
346ResponseError",500,void 0)}}class ru extends Us{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class su extends Us{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function XV(e){return Z(e)&&e.name==="AuthImplicitGrantRedirectError"}class lx extends Us{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class $m extends Us{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Rh(e){return Z(e)&&e.name==="AuthRetryableFetchError"}class cx extends Us{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Vm extends Us{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Td="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),ux=` 347\r=`.split(""),ZV=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<ux.length;t+=1)e[ux[t].charCodeAt(0)]=-2;for(let t=0;t<Td.length;t+=1)e[Td[t].charCodeAt(0)]=t;return e})();function dx(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Td[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Td[r]),t.queuedBits-=6}}function ek(e,t,n){const r=ZV[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function fx(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{nF(o,r,n)};for(let o=0;o<e.length;o+=1)ek(e.charCodeAt(o),s,i);return t.join("")}function eF(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function tF(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}eF(r,t)}}function nF(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ao(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)ek(e.charCodeAt(s),n,r);return new Uint8Array(t)}function rF(e){const t=[];return tF(e,n=>t.push(n)),new Uint8Array(t)}function fi(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>dx(s,n,r)),dx(null,n,r),t.join("")}function sF(e){return Math.round(Date.now()/1e3)+e}function iF(){return Symbol("auth-callback")}const ot=()=>typeof window<"u"&&typeof document<"u",Ys={tested:!1,writable:!1},tk=()=>{if(!ot())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ys.tested)return Ys.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Ys.tested=!0,Ys.writable=!0}catch{Ys.tested=!0,Ys.writable=!1}return Ys.writable};function oF(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const nk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),aF=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Zi=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Qs=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},qr=async(e,t)=>{await e.removeItem(t)};class Ef{constructor(){this.promise=new Ef.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Ef.promiseConstructor=Promise;function Ah(e){const t=e.split(".");if(t.length!==3)throw new Vm("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!qV.test(t[r]))throw new Vm("JWT not in base64url format");return{header:JSON.parse(fx(t[0])),payload:JSON.parse(fx(t[1])),signature:Ao(t[2]),raw:{header:t[0],payload:t[1]}}}async function lF(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function cF(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function uF(e){return("0"+e.toString(16)).substr(-2)}function dF(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,uF).join("")}async function fF(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
347n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function hF(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await fF(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Wi(e,t,n=!1){const r=dF();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Zi(e,`${t}-code-verifier`,s);const i=await hF(r);return[i,r===i?"plain":"s256"]}const pF=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function mF(e){const t=e.headers.get(Mm);if(!t||!t.match(pF))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function gF(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function yF(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const vF=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Hi(e){if(!vF.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Oh(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="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:(t,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:(t,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 wF(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function hx(e){return JSON.parse(JSON.stringify(e))}const si=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),xF=[502,503,504];async function px(e){var t;if(!aF(e))throw new $m(si(e),0);if(xF.includes(e.status))throw new $m(si(e),e.status);let n;try{n=await e.json()}catch(i){throw new li(si(i),i)}let r;const s=mF(e);if(s&&s.getTime()>=ZC["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new cx(si(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new kn}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((i,o)=>i&&typeof o=="string",!0))throw new cx(si(n),e.status,n.weak_password.reasons);throw new YV(si(n),e.status||500,r)}const bF=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function te(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Mm]||(i[Mm]=ZC["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await _F(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function _F(e,t,n,r,s,i){const o=bF(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new $m(si(l),0)}if(a.ok||await px(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await px(l)}}function Pn(e){var t;let n=null;TF(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=sF(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function mx(e){const t=Pn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function ls(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function EF(e){return{data:e,error:null}}function SF(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=Bs(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function gx(e){return e}function TF(e){return e.access_token&&e.refresh_token&&e.expires_in}const jh=["global","local","others"];class CF{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=nk(r),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)}}
347async signOut(t,n=jh[0]){if(jh.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${jh.join(", ")}`);try{return await te(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Z(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await te(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:ls})}catch(r){if(Z(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Bs(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await te(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:SF,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(Z(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await te(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ls})}catch(n){if(Z(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await te(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:gx});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(w=>{const v=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);c[`${b}Page`]=v}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(Z(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){Hi(t);try{return await te(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ls})}catch(n){if(Z(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Hi(t);try{return await te(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:ls})}catch(r){if(Z(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Hi(t);try{return await te(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:ls})}catch(r){if(Z(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Hi(t.userId);try{const{data:n,error:r}=await te(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(Z(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Hi(t.userId),Hi(t.id);try{return{data:await te(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Z(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await te(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:gx});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(w=>{const v=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(w.split(";")[1].split("=")[1]);c[`${b}Page`]=v}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(Z(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await te(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Z(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await te(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Z(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await te(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Z(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await te(this.fetch,"DELET
347E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Z(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await te(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Z(n))return{data:null,error:n};throw n}}}function yx(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Ki={debug:!!(globalThis&&tk()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class rk extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class kF extends rk{}async function PF(e,t,n){Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Ki.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new kF(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ki.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function RF(){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 sk(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function AF(e){return parseInt(e,16)}function OF(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function jF(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:u,uri:d,version:h}=e;{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(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 348`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=sk(e.address),w=u?`${u}://${r}`:r,v=e.statement?`${e.statement} 349`:"",b=`${w} wants you to sign in with your Ethereum account: 350${p} 351 352${v}`;let m=`URI: ${d} 353Version: ${h} 354Chain ID: ${n}${o?` 355Nonce: ${o}`:""} 356Issued At: ${i.toISOString()}`;if(s&&(m+=` 357Expiration Time: ${s.toISOString()}`),a&&(m+=` 358Not Before: ${a.toISOString()}`),l&&(m+=` 359Request ID: ${l}`),c){let g=` 360Resources:`;for(const x of c){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);g+=` 361- ${x}`}m+=g}return`${b} 362${m}`}
362class qe extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class Cd extends qe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function IF({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new qe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new qe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new qe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new qe({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new qe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new qe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new qe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new qe({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(ik(o)){if(i.rp.id!==o)return new qe({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new qe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new qe({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new qe({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new qe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function NF({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new qe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new qe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(ik(r)){if(n.rpId!==r)return new qe({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new qe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new qe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new qe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class LF{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const DF=new LF;function MF(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=Bs(e,["challenge","user","excludeCredentials"]),i=Ao(t).buffer,o=Object.assign(Object.assign({},n),{id:Ao(n.id).buffer}),a=Object.assign(Object.assign({}
362,s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Ao(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function $F(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Bs(e,["challenge","allowCredentials"]),s=Ao(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Ao(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function VF(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:fi(new Uint8Array(e.response.attestationObject)),clientDataJSON:fi(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function FF(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:fi(new Uint8Array(s.authenticatorData)),clientDataJSON:fi(new Uint8Array(s.clientDataJSON)),signature:fi(new Uint8Array(s.signature)),userHandle:s.userHandle?fi(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function ik(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function vx(){var e,t;return!!(ot()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function BF(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Cd("Browser returned unexpected credential type",t)}:{data:null,error:new Cd("Empty credential response",t)}}catch(t){return{data:null,error:IF({error:t,options:e})}}}async function UF(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Cd("Browser returned unexpected credential type",t)}:{data:null,error:new Cd("Empty credential response",t)}}catch(t){return{data:null,error:NF({error:t,options:e})}}}const zF={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},WF={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function kd(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const a=r[i];t(a)?r[i]=kd(a,o):r[i]=kd(o)}else r[i]=o}return r}function HF(e,t){return kd(zF,e,t||{})}function KF(e,t){return kd(WF,e,t||{})}class qF{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){try{const{data:o,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!o)return{data:null,error:a};const l=s??DF.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:c}=o.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${r}`),c.displayName||(c.displayName=c.name)}switch(o.webauthn.type){case"create":{const c=HF(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:u,error:d}=await BF({publicKey:c,signal:l});return u?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:u}},error:null}:{data:null,error:d}}case"request":{const c=KF(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:u,error:d}=await UF(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:c,signal:l}));return u?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:u}},error:null}:{data:null,error:d}}}}catch(o){return Z(o)?{data:null,error:o}:{data:null,error:new li("Unexpected error in challenge",o)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Wl("rpId is required for WebAuthn authentication")};try{if(!vx())return{data:null,error:new li("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return Z(o)?{data:null,error:o}:{data:null,error:new li("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Wl("rpId is required for WebAuthn registration")};try{if(!vx())return{data:null,error:new li("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return Z(o)?{data:null,error:o}:{data:null,error:new li("Unexpected error in register",o)}}}}RF();const GF={url:WV,storageKey:HV,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:KV,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function wx(e,t,n){return await n()}const qi={};class Hl{get jwks(){var t,n;return(n=(t=qi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){qi[this.storageKey]=Object.assign(Object.assign({},qi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=qi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){qi[this.storageKey]=Object.assign(Object.assign({},qi[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},GF),t);
362if(this.storageKey=i.storageKey,this.instanceID=(n=Hl.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Hl.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&ot()){const o=`${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(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new CF({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=nk(i.fetch),this.lock=i.lock||wx,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,i.lock?this.lock=i.lock:ot()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=PF:this.lock=wx,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 qF(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:tk()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=yx(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=yx(this.memoryStorage)),ot()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${XC}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(ot()&&(n=oF(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),ot()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),XV(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Z(n)?this._returnResult({error:n}):this._returnResult({error:new li("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Pn}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(Z(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:u,password:d,options:h}=t;let p=null,w=null;this.flowType==="pkce"&&([p,w]=await Wi(this.storage,this.storageKey)),i=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:p,code_challenge_method:w},xform:Pn})}else if("phone"in t){const{phone:u,password:d,options:h}=t;i=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Pn})}else throw new ru("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(Z(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:mx})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:mx})}else throw new ru("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new zi;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(Z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,a,l,c,u,d,h;let p,w;if("message"in t)p=t.message,w=t.signature;else{const{chain:v,wallet:b,statement:m,options:g}=t;let x;if(ot())if(typeof b=="object")x=b;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")x=P.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 b!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=b}const _=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),E=await x.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!E||E.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=sk(E[0]);let T=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!T){const P=await x.request({method:"eth_chainId"});T=AF(P)}const C={domain:_.host,address:S,statement:m,uri:_.href,version:"1",chainId:T,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=g==null?void 0:g.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.resources};p=jF(C),w=await x.request({method:"personal_sign",params:[OF(p),S]})}try{const{data:v,error:b}=await te(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:w},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Pn});if(b)throw b;if(!v||!v.session||!v.user){const m=new zi;return this._returnResult({data:{user:null,session:null},error:m})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:b})}catch(v){if(Z(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(t){var n,r,s,i,o,a,l,c,u,d,h,p;let w,v;if("message"in t)w=t.message,v=t.signature;else{const{chain:b,wallet:m,statement:g,options:x}=t;let _;if(ot())if(typeof m=="object")_=m;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))_=S.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 m!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=m}const E=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const S=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),g?{statement:g}:null));let T;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")T=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)T=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)w=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),v=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${E.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(s=(r=x==null?void 0:x.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=x==null?void 0:x.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((a=x==null?void 0:x.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((d=(u=x==null?void 0:x.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...x.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` 363`);const S=await _.signMessage(new TextEncoder().encode(w),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=S}}try{const{data:b,error:m}=await te(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:fi(v)}
363,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Pn});if(m)throw m;if(!b||!b.session||!b.user){const g=new zi;return this._returnResult({data:{user:null,session:null},error:g})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:m})}catch(b){if(Z(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await Qs(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await te(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Pn});if(await qr(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new zi;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(Z(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Pn}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new zi;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if(Z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await Wi(this.storage,this.storageKey));const{error:d}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u})}throw new ru("You must provide either an email or phone number.")}catch(a){if(Z(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await te(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Pn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(Z(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Wi(this.storage,this.storageKey));const c=await te(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:EF});return!((i=c.data)===null||i===void 0)&&i.url&&ot()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new kn;const{error:s}=await te(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(Z(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await te(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await te(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new ru("You must provide either an email or phone number and a type")}catch(n){if(Z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(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 t=null;const n=await Qs(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
363id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Ph:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Qs(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Oh()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=wF(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ls}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new kn}:await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:ls})})}catch(n){if(Z(n))return JV(n)&&(await this._removeSession(),await qr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new kn;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Wi(this.storage,this.storageKey));const{data:c,error:u}=await te(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:ls});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(Z(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new kn;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Ah(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(Z(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new kn;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(Z(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!ot())throw new su("No browser detected.");
363if(t.error||t.error_description||t.error_code)throw new su(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new lx("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),!t.code)throw new lx("No code detected.");const{data:g,error:x}=await this._exchangeCodeForSession(t.code);if(x)throw x;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!i||!a||!o||!c)throw new su("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let h=u+d;l&&(h=parseInt(l));const p=h-u;p*1e3<=Xi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${d}s`);const w=h-d;u-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,h,u):u-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,h,u);const{data:v,error:b}=await this._getUser(i);if(b)throw b;const m={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:h,refresh_token:o,token_type:c,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(r){if(Z(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Qs(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(QV(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await qr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=iF(),r={id:n,callback:t,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,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Wi(this.storage,this.storageKey,!0));try{return await te(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(Z(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(Z(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,c,u;const{data:d,error:h}=i;if(h)throw h;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await te(this.fetch,"GET",p,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;
363return ot()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(Z(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:u}=t,d=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Pn}),{data:h,error:p}=d;return p?this._returnResult({data:{user:null,session:null},error:p}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new zi}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:p}))}catch(s){if(Z(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await te(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(Z(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await cF(async s=>(s>
3630&&await lF(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await te(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Pn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Rh(i)&&Date.now()+o-r<Xi})}catch(r){if(this._debug(n,"error",r),Z(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),ot()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Qs(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Qs(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Zi(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Oh()}else if(s&&!s.user&&!s.user){const o=await Qs(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await qr(this.storage,this.storageKey+"-user"),await Zi(this.storage,this.storageKey,s)):s.user=Oh()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Ph;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Ph}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Rh(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new kn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Ef;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new kn;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),Z(i)){const o={data:null,error:i};return Rh(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Zi(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=hx(s);await Zi(this.storage,this.storageKey,i)}else{const s=hx(n);await Zi(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await qr(this.storage,this.storageKey),await qr(this.storage,this.storageKey+"-code-verifier"),await qr(this.storage,this.storageKey+"-user"),this.userStorage&&await qr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&ot()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
363catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Xi);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Xi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Xi}ms, refresh threshold is ${Dm} ticks`),s<=Dm&&await this._callRefreshToken(r.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(t){if(t.isAcquireTimeout||t instanceof rk)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ot()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(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(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Wi(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await te(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Z(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await te(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(Z(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?VF(t.webauthn.credential_response):FF(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await te(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(Z(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await te(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:MF(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:$F(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(Z(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:r},error:s}
363=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=Ah(r.access_token);let o=null;i.aal&&(o=i.aal);let a=o;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(u=>u.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(a="aal2");const c=i.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await te(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new kn})})}catch(n){if(Z(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new kn});const o=await te(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&ot()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(Z(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new kn});const o=await te(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&ot()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(Z(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+GV>s)return r;const{data:i,error:o}=await te(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:w}
363=await this.getSession();if(w||!p.session)return this._returnResult({data:null,error:w});r=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Ah(r);n!=null&&n.allowExpired||gF(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const u=yF(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,rF(`${a}.${l}`)))throw new Vm("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(Z(r))return this._returnResult({data:null,error:r});throw r}}}Hl.nextInstanceID={};const YF=Hl;class QF extends YF{constructor(t){super(t)}}class JF{constructor(t,n,r){var s,i,o;this.supabaseUrl=t,this.supabaseKey=n;const a=zV(t);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,c={db:LV,realtime:MV,auth:Object.assign(Object.assign({},DV),{storageKey:l}),global:NV},u=UV(r??{},c);this.storageKey=(s=u.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=u.global.headers)!==null&&i!==void 0?i:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=u.auth)!==null&&o!==void 0?o:{},this.headers,u.global.fetch),this.fetch=FV(n,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.accessToken&&this.accessToken().then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new W$(new URL("rest/v1",a).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new OV(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new B$(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,n={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t,n;if(this.accessToken)return await this.accessToken();const{data:r}=await this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,storageKey:o,flowType:a,lock:l,debug:c,throwOnError:u},d,h){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new QF({url:this.authUrl.href,headers:Object.assign(Object.assign({},p),d),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,flowType:a,lock:l,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(w=>w.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new aV(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const XF=(e,t,n)=>new JF(e,t,n);function ZF(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}ZF()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
363ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function e4(){var b,m;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((b=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((m=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:m[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",d=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(g,x,_)=>new Promise(E=>{const S=h();let T=!1,C;const P=A=>{T||(T=!0,clearTimeout(C),window.removeEventListener("message",R),E(A))},R=A=>{if(c.indexOf(A.origin)<0)return;const B=A.data;B&&B.type===u&&B.requestId===S&&P(B)};window.addEventListener("message",R);const $={type:g,requestId:S,projectId:s,key:x};_!==void 0&&($.value=_);for(const A of c)window.parent.postMessage($,A);C=setTimeout(()=>P(null),d)});let w=!0;const v=250;return{getItem:async g=>{let x=await p("lovable-preview-auth:get",g);return!x&&w&&(await new Promise(_=>setTimeout(_,v)),x=await p("lovable-preview-auth:get",g)),w=!1,x&&x.ok&&typeof x.value=="string"?x.value===""?(localStorage.removeItem(g),null):x.value:localStorage.getItem(g)},setItem:(g,x)=>(localStorage.setItem(g,x),p("lovable-preview-auth:set",g,x).then(_=>{_&&_.ok&&typeof _.value=="string"&&localStorage.getItem(g)===x&&(_.value===""?localStorage.removeItem(g):localStorage.setItem(g,_.value))})),removeItem:g=>(localStorage.removeItem(g),p("lovable-preview-auth:remove",g).then(()=>{}))}}const t4="https://ckpmkyxzkxemapqodzgq.supabase.co",n4="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNrcG1reXh6a3hlbWFwcW9kemdxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjI5NjcyMTQsImV4cCI6MjA3ODU0MzIxNH0.GWMGrMFGic12xgUg4PsUGWYfakwRRu0pDgRehdVdYHI",xe=XF(t4,n4,{auth:{storage:e4(),persistSession:!0,autoRefreshToken:!0}}),ok=y.createContext(void 0);function r4({children:e}){const[t,n]=y.useState(()=>typeof window>"u"?null:sessionStorage.getItem("viewingAsClientId")),[r,s]=y.useState(()=>typeof window>"u"?null:sessionStorage.getItem("viewingAsClientName")),[i,o]=y.useState(!1),[a,l]=y.useState(!1),[c,u]=y.useState(null),[d,h]=y.useState(null),[p,w]=y.useState(null),[v,b]=y.useState(!0);y.useEffect(()=>{let _=!1;const E=async()=>{_||b(!0);try{const{data:{session:T}}=await xe.auth.getSession(),C=(T==null?void 0:T.user)??(await xe.auth.getUser()).data.user;if(console.log("[ClientViewContext] Current user:",C==null?void 0:C.id,C==null?void 0:C.email),C){w(C.id);const{data:P,error:R}=await xe.from("user_roles").select("role").eq("user_id",C.id);R&&console.error("[ClientViewContext] Error fetching roles:",R);const $=(P==null?void 0:P.some(D=>D.role==="admin"))||!1;o($),console.log("[ClientViewContext] Is admin:",$);const{data:A,error:B}=await xe.from("team_members").select("created_by, role").eq("user_id",C.id).order("created_at",{ascending:!1});if(B&&console.error("[ClientViewContext] Error fetching team members:",B),console.log("[ClientViewContext] Team members found:",A),A&&A.length>0){const D=A.find(W=>W.created_by&&W.created_by!==C.id)||A[0];l(!0),u(D.created_by),h(D.role),console.log("[ClientViewContext] Set teamMemberClientId:",D.created_by,"role:",D.role)}else l(!1),u(null),h(null)}else w(null),o(!1),l(!1),u(null),h(null)}finally{_=!0,b(!1)}};E();const{data:{subscription:S}}=xe.auth.onAuthStateChange((T,C)=>{var P,R;if(console.log("[ClientViewContext] Auth state changed:",T),!(T==="TOKEN_REFRESHED"||T==="USER_UPDATED")){if(T==="SIGNED_OUT"){w(null),o(!1),l(!1),u(null),h(null),n(null),s(null),typeof window<"u"&&(sessionStorage.removeItem("viewingAsClientId"),sessionStorage.removeItem("viewingAsClientName"));return}(T==="SIGNED_IN"||T==="INITIAL_SESSION")&&((P=C==null?void 0:C.user)==null?void 0:P.id)===p||T==="INITIAL_SESSION"&&!C||(T==="SIGNED_IN"&&((R=C==null?void 0:C.user)==null?void 0:R.id)!==p&&(n(null),s(null),typeof window<"u"&&(sessionStorage.removeItem("viewingAsClientId"),sessionStorage.removeItem("viewingAsClientName"))),E())}});return()=>{S.unsubscribe()}},[]);const m=y.useCallback((_,E)=>{n(_),s(E),typeof window<"u"&&(_?(sessionStorage.setItem("viewingAsClientId",_),E&&sessionStorage.setItem("viewingAsClientName",E)):(sessionStorage.removeItem("viewingAsClientId"),sessionStorage.removeItem("viewingAsClientName")))},[]),g=y.useCallback(()=>i&&t?t:a&&c?c:p,[i,t,a,c,p]),x=y.useMemo(()=>({viewingAsClientId:t,viewingAsClientName:r,isAdmin:i,isTeamMember:a,teamMemberClientId:c,teamMemberRole:d,currentUserId:p,isLoading:v,setViewingAsClient:m,getEffectiveUserId:g}),[t,r,i,a,c,d,p,v,m,g]);return f.jsx(ok.Provider,{value:x,children:e})}function Hy(){const e=y.useContext(ok);if(e===void 0)throw new Error("useClientView must be used within a ClientViewProvider");return e}const Ih=768;function s4(){const[e,t]=y.useState(void 0);return y.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Ih-1}px)`),r=()=>{t(window.innerWidth<Ih)};return n.addEventListener("change",r),t(window.innerWidth<Ih),()=>n.removeEventListener("change",r)},[]),!!e}const i4=lc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),hi=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?la:"button";return f.jsx(o,{className:ie(i4({variant:t,size:n,className:e})),ref:i,...s})});hi.displayName="Button";const ak=y.forwardRef(({className:e,type:t,...n},r)=>f.jsx("input",{type:t,className:ie("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));ak.displayName="Input";var o4="Separator",xx="horizontal",a4=["horizontal","vertical"],lk=y.forwardRef((e,t)=>
vendor: 4,213 bytes, line 363
363{const{decorative:n,orientation:r=xx,...s}=e,i=l4(r)?r:xx,a=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return f.jsx(Le.div,{"data-orientation":i,...a,...s,ref:t})});lk.displayName=o4;function l4(e){return a4.includes(e)}var ck=lk;const uk=y.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},s)=>f.jsx(ck,{ref:s,decorative:n,orientation:t,className:ie("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));uk.displayName=ck.displayName;var Nh="focusScope.autoFocusOnMount",Lh="focusScope.autoFocusOnUnmount",bx={bubbles:!1,cancelable:!0},c4="FocusScope",dk=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=y.useState(null),c=ar(s),u=ar(i),d=y.useRef(null),h=_t(t,v=>l(v)),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let v=function(x){if(p.paused||!a)return;const _=x.target;a.contains(_)?d.current=_:Jr(d.current,{select:!0})},b=function(x){if(p.paused||!a)return;const _=x.relatedTarget;_!==null&&(a.contains(_)||Jr(d.current,{select:!0}))},m=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&Jr(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const g=new MutationObserver(m);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),g.disconnect()}}},[r,a,p.paused]),y.useEffect(()=>{if(a){Ex.add(p);const v=document.activeElement;if(!a.contains(v)){const m=new CustomEvent(Nh,bx);a.addEventListener(Nh,c),a.dispatchEvent(m),m.defaultPrevented||(u4(m4(fk(a)),{select:!0}),document.activeElement===v&&Jr(a))}return()=>{a.removeEventListener(Nh,c),setTimeout(()=>{const m=new CustomEvent(Lh,bx);a.addEventListener(Lh,u),a.dispatchEvent(m),m.defaultPrevented||Jr(v??document.body,{select:!0}),a.removeEventListener(Lh,u),Ex.remove(p)},0)}}},[a,c,u,p]);const w=y.useCallback(v=>{if(!n&&!r||p.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(b&&m){const g=v.currentTarget,[x,_]=d4(g);x&&_?!v.shiftKey&&m===_?(v.preventDefault(),n&&Jr(x,{select:!0})):v.shiftKey&&m===x&&(v.preventDefault(),n&&Jr(_,{select:!0})):m===g&&v.preventDefault()}},[n,r,p.paused]);return f.jsx(Le.div,{tabIndex:-1,...o,ref:h,onKeyDown:w})});dk.displayName=c4;function u4(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Jr(r,{select:t}),document.activeElement!==n)return}function d4(e){const t=fk(e),n=_x(t,e),r=_x(t.reverse(),e);return[n,r]}function fk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _x(e,t){for(const n of e)if(!f4(n,{upTo:t}))return n}function f4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function h4(e){return e instanceof HTMLInputElement&&"select"in e}function Jr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&h4(e)&&t&&e.select()}}var Ex=p4();function p4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Sx(e,t),e.unshift(t)},remove(t){var n;e=Sx(e,t),(n=e[0])==null||n.resume()}}}function Sx(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function m4(e){return e.filter(t=>t.tagName!=="A")}var Dh=0;function g4(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Tx()),document.body.insertAdjacentElement("beforeend",e[1]??Tx()),Dh++,()=>{Dh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dh--}},[])}function Tx(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,904 bytes, lines 363-378
363style.position="fixed",e.style.pointerEvents="none",e}var Nu="right-scroll-bar-position",Lu="width-before-scroll-bar",y4="with-scroll-bars-hidden",v4="--removed-body-scroll-bar-size";function Mh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function w4(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var x4=typeof window<"u"?y.useLayoutEffect:y.useEffect,Cx=new WeakMap;function b4(e,t){var n=w4(null,function(r){return e.forEach(function(s){return Mh(s,r)})});return x4(function(){var r=Cx.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(a){i.has(a)||Mh(a,null)}),i.forEach(function(a){s.has(a)||Mh(a,o)})}Cx.set(n,e)},[e]),n}function _4(e){return e}function E4(e,t){t===void 0&&(t=_4);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var l=function(){var u=o;o=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return s}function S4(e){e===void 0&&(e={});var t=E4(null);return t.options=dn({async:!0,ssr:!1},e),t}var hk=function(e){var t=e.sideCar,n=Bs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,dn({},n))};hk.isSideCarExport=!0;function T4(e,t){return e.useMedium(t),hk}var pk=S4(),$h=function(){},Sf=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:$h,onWheelCapture:$h,onTouchMoveCapture:$h}),s=r[0],i=r[1],o=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noRelative,w=e.noIsolation,v=e.inert,b=e.allowPinchZoom,m=e.as,g=m===void 0?"div":m,x=e.gapMode,_=Bs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,S=b4([n,t]),T=dn(dn({},_),s);return y.createElement(y.Fragment,null,u&&y.createElement(E,{sideCar:pk,removeScrollBar:c,shards:d,noRelative:p,noIsolation:w,inert:v,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:x}),o?y.cloneElement(y.Children.only(a),dn(dn({},T),{ref:S})):y.createElement(g,dn({},T,{className:l,ref:S}),a))});Sf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Sf.classNames={fullWidth:Lu,zeroRight:Nu};var C4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function k4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=C4();return t&&e.setAttribute("nonce",t),e}function P4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function R4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var A4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=k4())&&(P4(t,n),R4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},O4=function(){var e=A4();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mk=function(){var e=O4(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},j4={left:0,top:0,right:0,gap:0},Vh=function(e){return parseInt(e||"",10)||0},I4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Vh(n),Vh(r),Vh(s)]},N4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return j4;var t=I4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},L4=mk(),Oo="data-scroll-locked",D4=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` 364 .`.concat(y4,` { 365 overflow: hidden `).concat(r,`; 366 padding-right: `).concat(a,"px ").concat(r,`; 367 } 368 body[`).concat(Oo,`] { 369 overflow: hidden `).concat(r,`; 370 overscroll-behavior: contain; 371 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 372 padding-left: `.concat(s,`px; 373 padding-top: `).concat(i,`px; 374 padding-right: `).concat(o,`px; 375 margin-left:0; 376 margin-top:0; 377 margin-right: `).concat(a,"px ").concat(r,`; 378 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
378")].filter(Boolean).join(""),` 379 } 380 381 .`).concat(Nu,` { 382 right: `).concat(a,"px ").concat(r,`; 383 } 384 385 .`).concat(Lu,` { 386 margin-right: `).concat(a,"px ").concat(r,`; 387 } 388 389 .`).concat(Nu," .").concat(Nu,` { 390 right: 0 `).concat(r,`; 391 } 392 393 .`).concat(Lu," .").concat(Lu,` { 394 margin-right: 0 `).concat(r,`; 395 } 396 397 body[`).concat(Oo,`] { 398 `).concat(v4,": ").concat(a,`px; 399 } 400`)},kx=function(){var e=parseInt(document.body.getAttribute(Oo)||"0",10);return isFinite(e)?e:0},M4=function(){y.useEffect(function(){return document.body.setAttribute(Oo,(kx()+1).toString()),function(){var e=kx()-1;e<=0?document.body.removeAttribute(Oo):document.body.setAttribute(Oo,e.toString())}},[])},$4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;M4();var i=y.useMemo(function(){return N4(s)},[s]);return y.createElement(L4,{styles:D4(i,!t,s,n?"":"!important")})},Fm=!1;if(typeof window<"u")try{var iu=Object.defineProperty({},"passive",{get:function(){return Fm=!0,!0}});window.addEventListener("test",iu,iu),window.removeEventListener("test",iu,iu)}catch{Fm=!1}var Gi=Fm?{passive:!1}:!1,V4=function(e){return e.tagName==="TEXTAREA"},gk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!V4(e)&&n[t]==="visible")},F4=function(e){return gk(e,"overflowY")},B4=function(e){return gk(e,"overflowX")},Px=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=yk(e,r);if(s){var i=vk(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},U4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},z4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yk=function(e,t){return e==="v"?F4(t):B4(t)},vk=function(e,t){return e==="v"?U4(t):z4(t)},W4=function(e,t){return e==="h"&&t==="rtl"?-1:1},H4=function(e,t,n,r,s){var i=W4(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,h=0;do{if(!a)break;var p=vk(e,a),w=p[0],v=p[1],b=p[2],m=v-b-i*w;(w||m)&&yk(e,a)&&(d+=m,h+=w);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(d)<1||!s)||!u&&(Math.abs(h)<1||!s))&&(c=!0),c},ou=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rx=function(e){return[e.deltaX,e.deltaY]},Ax=function(e){return e&&"current"in e?e.current:e},K4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},q4=function(e){return` 401 .block-interactivity-`.concat(e,` {pointer-events: none;} 402 .allow-interactivity-`).concat(e,` {pointer-events: all;} 403`)},G4=0,Yi=[];function Y4(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(G4++)[0],i=y.useState(mk)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var v=Dy([e.lockRef.current],(e.shards||[]).map(Ax),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var m=ou(v),g=n.current,x="deltaX"in v?v.deltaX:g[0]-m[0],_="deltaY"in v?v.deltaY:g[1]-m[1],E,S=v.target,T=Math.abs(x)>Math.abs(_)?"h":"v";if("touches"in v&&T==="h"&&S.type==="range")return!1;var C=Px(T,S);if(!C)return!0;if(C?E=T:(E=T==="v"?"h":"v",C=Px(T,S)),!C)return!1;if(!r.current&&"changedTouches"in v&&(x||_)&&(r.current=E),!E)return!0;var P=r.current||E;return H4(P,b,v,P==="h"?x:_,!0)},[]),l=y.useCallback(function(v){var b=v;if(!(!Yi.length||Yi[Yi.length-1]!==i)){var m="deltaY"in b?Rx(b):ou(b),g=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&K4(E.delta,m)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}
vendor: 4,333 bytes, line 403
403if(!g){var x=(o.current.shards||[]).map(Ax).filter(Boolean).filter(function(E){return E.contains(b.target)}),_=x.length>0?a(b,x[0]):!o.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),c=y.useCallback(function(v,b,m,g){var x={name:v,delta:b,target:m,should:g,shadowParent:Q4(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(_){return _!==x})},1)},[]),u=y.useCallback(function(v){n.current=ou(v),r.current=void 0},[]),d=y.useCallback(function(v){c(v.type,Rx(v),v.target,a(v,e.lockRef.current))},[]),h=y.useCallback(function(v){c(v.type,ou(v),v.target,a(v,e.lockRef.current))},[]);y.useEffect(function(){return Yi.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Gi),document.addEventListener("touchmove",l,Gi),document.addEventListener("touchstart",u,Gi),function(){Yi=Yi.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,Gi),document.removeEventListener("touchmove",l,Gi),document.removeEventListener("touchstart",u,Gi)}},[]);var p=e.removeScrollBar,w=e.inert;return y.createElement(y.Fragment,null,w?y.createElement(i,{styles:q4(s)}):null,p?y.createElement($4,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Q4(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const J4=T4(pk,Y4);var wk=y.forwardRef(function(e,t){return y.createElement(Sf,dn({},e,{ref:t,sideCar:J4}))});wk.classNames=Sf.classNames;var X4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qi=new WeakMap,au=new WeakMap,lu={},Fh=0,xk=function(e){return e&&(e.host||xk(e.parentNode))},Z4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=xk(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},e3=function(e,t,n,r){var s=Z4(t,Array.isArray(e)?e:[e]);lu[n]||(lu[n]=new WeakMap);var i=lu[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var p=h.getAttribute(r),w=p!==null&&p!=="false",v=(Qi.get(h)||0)+1,b=(i.get(h)||0)+1;Qi.set(h,v),i.set(h,b),o.push(h),v===1&&w&&au.set(h,!0),b===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return u(t),a.clear(),Fh++,function(){o.forEach(function(d){var h=Qi.get(d)-1,p=i.get(d)-1;Qi.set(d,h),i.set(d,p),h||(au.has(d)||d.removeAttribute(r),au.delete(d)),p||d.removeAttribute(n)}),Fh--,Fh||(Qi=new WeakMap,Qi=new WeakMap,au=new WeakMap,lu={})}},t3=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=X4(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),e3(r,s,n,"aria-hidden")):function(){return null}},Tf="Dialog",[bk,oq]=aa(Tf),[n3,Hn]=bk(Tf),_k=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),l=y.useRef(null),[c,u]=lf({prop:r,defaultProp:s??!1,onChange:i,caller:Tf});return f.jsx(n3,{scope:t,triggerRef:a,contentRef:l,contentId:dl(),titleId:dl(),descriptionId:dl(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};_k.displayName=Tf;var Ek="DialogTrigger",Sk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Hn(Ek,n),i=_t(t,s.triggerRef);return f.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Gy(s.open),...r,ref:i,onClick:Re(e.onClick,s.onOpenToggle)})});Sk.displayName=Ek;var Ky="DialogPortal",[r3,Tk]=bk(Ky,{forceMount:void 0}),Ck=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Hn(Ky,t);return f.jsx(r3,{scope:t,forceMount:n,children:y.Children.map(r,o=>f.jsx($i,{present:n||i.open,children:f.jsx(fy,{asChild:!0,container:s,children:o})}))})};Ck.displayName=Ky;var Pd="DialogOverlay",kk=y.forwardRef((e,t)=>{const n=Tk(Pd,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Hn(Pd,e.__scopeDialog);return i.modal?f.jsx($i,{present:r||i.open,children:f.jsx(i3,{...s,ref:t})}):null});kk.displayName=Pd;var s3=Ll("DialogOverlay.RemoveScroll"),i3=y.forwardRef((e,t)=>
vendor: 4,980 bytes, lines 403-407
403{const{__scopeDialog:n,...r}=e,s=Hn(Pd,n);return f.jsx(wk,{as:s3,allowPinchZoom:!0,shards:[s.contentRef],children:f.jsx(Le.div,{"data-state":Gy(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ii="DialogContent",Pk=y.forwardRef((e,t)=>{const n=Tk(Ii,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Hn(Ii,e.__scopeDialog);return f.jsx($i,{present:r||i.open,children:i.modal?f.jsx(o3,{...s,ref:t}):f.jsx(a3,{...s,ref:t})})});Pk.displayName=Ii;var o3=y.forwardRef((e,t)=>{const n=Hn(Ii,e.__scopeDialog),r=y.useRef(null),s=_t(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return t3(i)},[]),f.jsx(Rk,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Re(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Re(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Re(e.onFocusOutside,i=>i.preventDefault())})}),a3=y.forwardRef((e,t)=>{const n=Hn(Ii,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return f.jsx(Rk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Rk=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=Hn(Ii,n),l=y.useRef(null),c=_t(t,l);return g4(),f.jsxs(f.Fragment,{children:[f.jsx(dk,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:f.jsx(af,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Gy(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(l3,{titleId:a.titleId}),f.jsx(u3,{contentRef:l,descriptionId:a.descriptionId})]})]})}),qy="DialogTitle",Ak=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Hn(qy,n);return f.jsx(Le.h2,{id:s.titleId,...r,ref:t})});Ak.displayName=qy;var Ok="DialogDescription",jk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Hn(Ok,n);return f.jsx(Le.p,{id:s.descriptionId,...r,ref:t})});jk.displayName=Ok;var Ik="DialogClose",Nk=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Hn(Ik,n);return f.jsx(Le.button,{type:"button",...r,ref:t,onClick:Re(e.onClick,()=>s.onOpenChange(!1))})});Nk.displayName=Ik;function Gy(e){return e?"open":"closed"}var Lk="DialogTitleWarning",[aq,Dk]=oI(Lk,{contentName:Ii,titleName:qy,docsSlug:"dialog"}),l3=({titleId:e})=>{const t=Dk(Lk),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 404 405If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 406 407For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},c3="DialogDescriptionWarning",u3=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Dk(c3).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},d3=_k,f3=Sk,h3=Ck,Mk=kk,$k=Pk,Vk=Ak,Fk=jk,p3=Nk;const m3=d3,lq=f3,g3=h3,Bk=y.forwardRef(({className:e,...t},n)=>f.jsx(Mk,{className:ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Bk.displayName=Mk.displayName;const y3=lc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Uk=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>f.jsxs(g3,{children:[f.jsx(Bk,{}),f.jsxs($k,{ref:s,className:ie(y3({side:e}),t),...r,children:[n,f.jsxs(p3,{className:"absolute right-4 top-4 roun
407ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[f.jsx(vy,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Uk.displayName=$k.displayName;const v3=({className:e,...t})=>f.jsx("div",{className:ie("flex flex-col space-y-2 text-center sm:text-left",e),...t});v3.displayName="SheetHeader";const w3=y.forwardRef(({className:e,...t},n)=>f.jsx(Vk,{ref:n,className:ie("text-lg font-semibold text-foreground",e),...t}));w3.displayName=Vk.displayName;const x3=y.forwardRef(({className:e,...t},n)=>f.jsx(Fk,{ref:n,className:ie("text-sm text-muted-foreground",e),...t}));x3.displayName=Fk.displayName;function Ox({className:e,...t}){return f.jsx("div",{className:ie("animate-pulse rounded-md bg-muted",e),...t})}const b3="sidebar:state",_3=60*60*24*7,E3="16rem",S3="18rem",T3="3rem",C3="b",zk=y.createContext(null);function fc(){const e=y.useContext(zk);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Wk=y.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:s,children:i,...o},a)=>{const l=s4(),[c,u]=y.useState(!1),[d,h]=y.useState(e),p=t??d,w=y.useCallback(g=>{const x=typeof g=="function"?g(p):g;n?n(x):h(x),document.cookie=`${b3}=${x}; path=/; max-age=${_3}`},[n,p]),v=y.useCallback(()=>l?u(g=>!g):w(g=>!g),[l,w,u]);y.useEffect(()=>{const g=x=>{x.key===C3&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[v]);const b=p?"expanded":"collapsed",m=y.useMemo(()=>({state:b,open:p,setOpen:w,isMobile:l,openMobile:c,setOpenMobile:u,toggleSidebar:v}),[b,p,w,l,c,u,v]);return f.jsx(zk.Provider,{value:m,children:f.jsx(LT,{delayDuration:0,children:f.jsx("div",{style:{"--sidebar-width":E3,"--sidebar-width-icon":T3,...s},className:ie("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:a,...o,children:i})})})});Wk.displayName="SidebarProvider";const Hk=y.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:s,...i},o)=>{const{isMobile:a,state:l,openMobile:c,setOpenMobile:u}=fc();return n==="none"?f.jsx("div",{className:ie("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:o,...i,children:s}):a?f.jsx(m3,{open:c,onOpenChange:u,...i,children:f.jsx(Uk,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":S3},side:e,children:f.jsx("div",{className:"flex h-full w-full flex-col",children:s})})}):f.jsxs("div",{ref:o,className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[f.jsx("div",{className:ie("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),f.jsx("div",{className:ie("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:f.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:s})})]})});Hk.displayName="Sidebar";const Kk=y.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:s,open:i}=fc();return f.jsxs(hi,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ie("h-7 w-7",e),onClick:o=>{t==null||t(o),s()},...n,children:[i?f.jsx(tN,{}):f.jsx(nN,{}),f.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Kk.displayName="SidebarTrigger";const k3=y.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=fc();return f.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:ie("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});k3.displayName="SidebarRail";const P3=y.forwardRef(({className:e,...t},n)=>f.jsx("main",{ref:n,className:ie("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-
407h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));P3.displayName="SidebarInset";const R3=y.forwardRef(({className:e,...t},n)=>f.jsx(ak,{ref:n,"data-sidebar":"input",className:ie("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));R3.displayName="SidebarInput";const A3=y.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"header",className:ie("flex flex-col gap-2 p-2",e),...t}));A3.displayName="SidebarHeader";const O3=y.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"footer",className:ie("flex flex-col gap-2 p-2",e),...t}));O3.displayName="SidebarFooter";const j3=y.forwardRef(({className:e,...t},n)=>f.jsx(uk,{ref:n,"data-sidebar":"separator",className:ie("mx-2 w-auto bg-sidebar-border",e),...t}));j3.displayName="SidebarSeparator";const qk=y.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"content",className:ie("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));qk.displayName="SidebarContent";const Ja=y.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"group",className:ie("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ja.displayName="SidebarGroup";const Gk=y.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const s=t?la:"div";return f.jsx(s,{ref:r,"data-sidebar":"group-label",className:ie("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Gk.displayName="SidebarGroupLabel";const I3=y.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const s=t?la:"button";return f.jsx(s,{ref:r,"data-sidebar":"group-action",className:ie("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});I3.displayName="SidebarGroupAction";const Xa=y.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"group-content",className:ie("w-full text-sm",e),...t}));Xa.displayName="SidebarGroupContent";const Za=y.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,"data-sidebar":"menu",className:ie("flex w-full min-w-0 flex-col gap-1",e),...t}));Za.displayName="SidebarMenu";const St=y.forwardRef(({className:e,...t},n)=>f.jsx("li",{ref:n,"data-sidebar":"menu-item",className:ie("group/menu-item relative",e),...t}));St.displayName="SidebarMenuItem";const N3=lc("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Tt=y.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:s,className:i,...o},a)=>{const l=e?la:"button",{isMobile:c,state:u}=fc(),d=f.jsx(l,{ref:a,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:ie(N3({variant:n,size:r}),i),...o});return s?(typeof s=="string"&&(s={children:s}),f.jsxs(oM,{children:[f.jsx(aM,{asChild:!0,children:d}),f.jsx(DT,{side:"right",align:"center",hidden:u!=="collapsed"||c,...s})]})):d});Tt.displayName="SidebarMenuButton";const L3=y.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},s)=>{const i=t?la:"button";return f.jsx(i,{ref:s,"data-sidebar":"menu-action",className:ie("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});
407L3.displayName="SidebarMenuAction";const D3=y.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:ie("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));D3.displayName="SidebarMenuBadge";const M3=y.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const s=y.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return f.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:ie("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&f.jsx(Ox,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),f.jsx(Ox,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})});M3.displayName="SidebarMenuSkeleton";const Xr=y.forwardRef(({className:e,...t},n)=>f.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:ie("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Xr.displayName="SidebarMenuSub";const Zr=y.forwardRef(({...e},t)=>f.jsx("li",{ref:t,...e}));Zr.displayName="SidebarMenuSubItem";const es=y.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...s},i)=>{const o=e?la:"a";return f.jsx(o,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:ie("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...s})});es.displayName="SidebarMenuSubButton";const jx="/assets/avah-logo-BoQQQZo6.png",Ht=y.forwardRef(({className:e,activeClassName:t,pendingClassName:n,to:r,...s},i)=>f.jsx(O$,{ref:i,to:r,className:({isActive:o,isPending:a})=>ie(e,o&&t,a&&n),...s}));Ht.displayName="NavLink";const $3=lc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ua({className:e,variant:t,...n}){return f.jsx("div",{className:ie($3({variant:t}),e),...n})}var Cf="Collapsible",[V3,cq]=aa(Cf),[F3,Yy]=V3(Cf),Yk=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:o,...a}=e,[l,c]=lf({prop:r,defaultProp:s??!1,onChange:o,caller:Cf});return f.jsx(F3,{scope:n,disabled:i,contentId:dl(),open:l,onOpenToggle:y.useCallback(()=>c(u=>!u),[c]),children:f.jsx(Le.div,{"data-state":Zy(l),"data-disabled":i?"":void 0,...a,ref:t})})});Yk.displayName=Cf;var Qk="CollapsibleTrigger",Qy=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=Yy(Qk,n);return f.jsx(Le.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Zy(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:Re(e.onClick,s.onOpenToggle)})});Qy.displayName=Qk;var Jy="CollapsibleContent",Xy=y.forwardRef((e,t)=>
407{const{forceMount:n,...r}=e,s=Yy(Jy,e.__scopeCollapsible);return f.jsx($i,{present:n||s.open,children:({present:i})=>f.jsx(B3,{...r,ref:t,present:i})})});Xy.displayName=Jy;var B3=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=e,o=Yy(Jy,n),[a,l]=y.useState(r),c=y.useRef(null),u=_t(t,c),d=y.useRef(0),h=d.current,p=y.useRef(0),w=p.current,v=o.open||a,b=y.useRef(v),m=y.useRef(void 0);return y.useEffect(()=>{const g=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(g)},[]),lr(()=>{const g=c.current;if(g){m.current=m.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();d.current=x.height,p.current=x.width,b.current||(g.style.transitionDuration=m.current.transitionDuration,g.style.animationName=m.current.animationName),l(r)}},[o.open,r]),f.jsx(Le.div,{"data-state":Zy(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!v,...i,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:v&&s})});function Zy(e){return e?"open":"closed"}var U3=Yk,uq=Qy,dq=Xy;const Js=U3,Xs=Qy,Zs=Xy;function z3(){const{viewingAsClientId:e,viewingAsClientName:t,isTeamMember:n,teamMemberClientId:r,currentUserId:s}=Hy(),[i,o]=y.useState(null),a=!!e,l=a?null:n?r:s;if(y.useEffect(()=>{let u=!1;if(a){o(t??null);return}if(!l){o(null);return}return(async()=>{var h;const{data:d}=await xe.from("profiles").select("full_name,email").eq("id",l).maybeSingle();u||o(((h=d==null?void 0:d.full_name)==null?void 0:h.trim())||(d==null?void 0:d.email)||null)})(),()=>{u=!0}},[a,t,l]),!i)return null;const c=a?dN:NS;return f.jsxs("div",{className:ie("w-full flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium",a?"bg-amber-500/15 text-amber-700 dark:text-amber-400 ring-1 ring-amber-500/30":"bg-muted text-muted-foreground"),title:a?`Viewing as ${i}`:i,children:[f.jsx(c,{className:"h-3.5 w-3.5 shrink-0"}),a&&f.jsx("span",{className:"shrink-0",children:"Viewing:"}),f.jsx("span",{className:"truncate",children:i})]})}const W3=[{title:"Leads",url:"/leads",icon:qS,permissionKey:"inquiries"},{title:"Messages",url:"/text-messages",icon:vN,permissionKey:"sms"},{title:"Applications",url:"/applications",icon:aN,permissionKey:"applications"},{title:"Report",url:"/engagement/report",icon:DS,permissionKey:"analytics"},{title:"Showings",url:"/calendar",icon:sN,permissionKey:"calendar"},{title:"Tasks",url:"/tasks",icon:HS,permissionKey:"inquiries"},{title:"Campaigns",url:"/campaigns",icon:BS,permissionKey:"sms"}],H3=e=>[{title:"Buildings",url:"/buildings",icon:zS},{title:"Units",url:"/units",icon:cN},{title:"Floor Plans & Photos",url:"/floor-plans",icon:fN},{title:"Matrix",url:"/leasing-matrix",icon:KS},...e?[]:[{title:"Vendors",url:"/vendors",icon:bN},{title:"Work Orders",url:"/work-orders",icon:GS}],{title:"Amenities",url:"/amenities",icon:uN}],K3=[{title:"Tenants",url:"/tenants",icon:hd},{title:"Documents",url:"/documents",icon:FS},{title:"Inspections",url:"/inspections",icon:oN},{title:"Tickets",url:"/tickets",icon:_N},{title:"Leases",url:"/leases",icon:hN},{title:"Insurance",url:"/insurance",icon:wN},{title:"Rent Payments",url:"/rent-payments",icon:yy},{title:"Feedback",url:"/feedback",icon:yN}],q3=[{title:"Services",url:"/maintenance/services",icon:lN},{title:"Team",url:"/maintenance/team",icon:SN},{title:"Bookings",url:"/maintenance/bookings",icon:LS},{title:"Invoices",url:"/maintenance/invoices",icon:WS}],G3=[{title:"Overview",url:"/financials",icon:WS},{title:"Rent Roll",url:"/financials/rent-roll",icon:KS},{title:"Accounts Receivable",url:"/financials/receivables",icon:yy},{title:"Scheduled Payments",url:"/financials/scheduled-payments",icon:LS},{title:"ePay Activity",url:"/financials/epay-activity",icon:VS},{title:"Tenant Statements",url:"/financials/statements",icon:FS},{title:"Income Statement",url:"/financials/income-statement",icon:DS},{title:"Transactions by Account",url:"/financials/transactions",icon:zS}],Y3=[{title:"Admin Dashboard",url:"/admin",icon:US},{title:"Clients",url:"/clients",icon:rN},{title:"Prospects",url:"/admin/crm",icon:$S},{title:"CRM Tasks",url:"/admin/crm/tasks",icon:HS},{title:"Website Inquiries",url:"/admin#website-inquiries",icon:gN}],Q3=[{title:"Profile",url:"/settings/profile",icon:qS},{title:"Team Members",url:"/settings/team",icon:hd},{title:"Settings",url:"/admin/settings",icon:gy},{title:"Help",url:"/help",icon:MS}],J3=[{title:"Settings",url:"/settings",icon:gy,permissionKey:"settings"},{title:"My Profile",url:"/settings/profile",icon:EN,permissionKey:void 0},{title:"Subscription",url:"/settings/subscription",icon:VS,permissionKey:"settings"}];function X3(){var ka,pr,Sc,Tc;const{state:e,setOpenMobile:t,isMobile:n}=fc(),r=Dr(),s=Ny(),{toast:i}=iS(),o=r.pathname;y.useEffect(()=>{n&&t(!1)},[o,n,t]);const[a,l]=y.useState(null),[c,u]=y.useState(!1),{viewingAsClientId:d,viewingAsClientName:h,setVie
407wingAsClient:p,isTeamMember:w,teamMemberClientId:v,teamMemberRole:b,getEffectiveUserId:m,isLoading:g}=Hy(),[x,_]=y.useState(null),[E,S]=y.useState(null),[T,C]=y.useState(0),[P,R]=y.useState(null),[$,A]=y.useState(!1),[B,D]=y.useState(0),[W,H]=y.useState(0),[F,k]=y.useState(0),[O,U]=y.useState(!1),[X,J]=y.useState(!1),re=()=>{try{const M=localStorage.getItem("sidebar-pinned-sections");return M?JSON.parse(M):{}}catch{return{}}},Y=re(),[ue,Oe]=y.useState(Y.properties??!1),[he,dt]=y.useState(Y.properties??!0),[Qe,xn]=y.useState(Y.engagement??!1),[sn,$r]=y.useState(!0),[ft,Vi]=y.useState(Y.tenants??!1),[Ea,Ws]=y.useState(Y.tenants??!1),[bn,Hs]=y.useState(Y.maintenance??!1),[Vr,Sa]=y.useState(Y.maintenance??!1),[Wt,_c]=y.useState(Y.financials??!1),[hr,Ec]=y.useState(Y.financials??!1),Ks=(M,_e)=>{try{const Ee=re();Ee[M]=_e,localStorage.setItem("sidebar-pinned-sections",JSON.stringify(Ee))}catch{}},Lt=M=>{Oe(M),Ks("properties",M)},Fr=M=>{xn(M),Ks("engagement",M)},Df=M=>{Vi(M),Ks("tenants",M)},Mf=M=>{Hs(M),Ks("maintenance",M)},Fi=M=>{_c(M),Ks("financials",M)};y.useEffect(()=>{g||(async()=>{var Ee,Je,He,Et;const{data:{user:_e}}=await xe.auth.getUser();if(_e){l(_e.id);const[ee,pe]=await Promise.all([xe.from("user_roles").select("role").eq("user_id",_e.id),xe.from("profiles").select("full_name, email").eq("id",_e.id).maybeSingle()]);if(u(((Ee=ee.data)==null?void 0:Ee.some(ye=>ye.role==="admin"))||!1),S(((Je=pe.data)==null?void 0:Je.full_name)||((He=pe.data)==null?void 0:He.email)||_e.email||"User"),w&&v&&b){const[ye,Dt]=await Promise.all([xe.from("profiles").select("full_name, company_name").eq("id",v).maybeSingle(),xe.from("role_permissions").select("permissions").eq("owner_id",v).eq("role",b).maybeSingle()]);ye.data&&_(ye.data.company_name||ye.data.full_name||"Client"),(Et=Dt.data)!=null&&Et.permissions&&R(Dt.data.permissions)}}A(!0)})()},[w,v,b,g]),y.useEffect(()=>{const M=m();if(!M)return;const _e=async()=>{const{data:Je,error:He}=await xe.from("sms_conversations").select("unread_count").eq("owner_id",M);if(!He&&Je){const Et=Je.reduce((ee,pe)=>ee+(pe.unread_count||0),0);C(Et)}};_e();const Ee=xe.channel("sms-unread-count").on("postgres_changes",{event:"*",schema:"public",table:"sms_conversations"},()=>{_e()}).subscribe();return()=>{xe.removeChannel(Ee)}},[m,d,v]),y.useEffect(()=>{const M=m();if(!M)return;const _e=async()=>{const Je=new Date().toISOString().split("T")[0],{count:He,error:Et}=await xe.from("follow_ups").select("*, inquiry:inquiries!inner(owner_id)",{count:"exact",head:!0}).eq("inquiry.owner_id",M).eq("status","pending").gte("scheduled_date",Je);Et||D(He||0)};_e();const Ee=xe.channel("follow-ups-count").on("postgres_changes",{event:"*",schema:"public",table:"follow_ups"},()=>{_e()}).subscribe();return()=>{xe.removeChannel(Ee)}},[m,d,v]),y.useEffect(()=>{const M=m();if(!M)return;const _e=async()=>{const Je=new Date().toISOString().split("T")[0],{count:He,error:Et}=await xe.from("inquiries").select("*",{count:"exact",head:!0}).eq("owner_id",M).not("booking_date","is",null).gte("booking_date",Je);Et||H(He||0)};_e();const Ee=xe.channel("showings-count").on("postgres_changes",{event:"*",schema:"public",table:"inquiries"},()=>{_e()}).subscribe();return()=>{xe.removeChannel(Ee)}},[m,d,v]),y.useEffect(()=>{const M=m();if(!M)return;const _e=async()=>{const{data:Je}=await xe.from("app_notifications").select("id, related_id").eq("owner_id",M).eq("type","application_complete").is("read_at",null),He=new Set((Je||[]).map(Et=>Et.related_id||Et.id));k(He.size)};_e();const Ee=xe.channel("pending-applications-count").on("postgres_changes",{event:"*",schema:"public",table:"app_notifications",filter:`owner_id=eq.${M}`},()=>_e()).subscribe();return()=>{xe.removeChannel(Ee)}},[m,d,v]),y.useEffect(()=>{const M=m();if(!M)return;(async()=>{const{data:Ee}=await xe.from("profiles").select("business_mode").eq("id",M).maybeSingle();if((Ee==null?void 0:Ee.business_mode)==="sale"){U(!0);return}const{data:Je,error:He}=await xe.from("units").select("listing_type").eq("owner_id",M);if(!He&&Je&&Je.length>0){const Et=Je.every(ee=>ee.listing_type==="sale");U(Et)}else U(!1)})()},[m,d,v]),y.useEffect(()=>{const M=m();if(!M)return;(async()=>{const{count:Ee}=await xe.from("lead_sources").select("id",{count:"exact",head:!0}).eq("owner_id",M).eq("source_type","person");J((Ee??0)>0)})()},[m,d,v]);const je=e==="collapsed",Ta=async()=>{const{error:M}=await xe.auth.signOut();M?i({title:"Error",description:"Failed to sign out",variant:"destructive"}):s("/auth")},Ca=()=>{p(null,null),i({title:"Exited Client View",description:"Back to admin view"})},Br=!w||$;return f.jsxs(Hk,{className:je?"w-14":"w-60",children:[f.jsx("div",{className:"flex items-center justify-between p-4 border-b",children:f.jsx("img",{src:jx,alt:"Avah",className:"h-12 w-auto"})}),f.jsx("div",{className:"mx-2 mt-2",children:f.jsx(z3,{})}),w&&(E||x)&&f.jsx("div",{className:"mx-2 mb-0 p-1.5 bg-secondary/10 border border-secondary rounded-lg",children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(hd,{className:"h-4 w-4 text-secondary"}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Logged in as:"}),f.jsx("p",{className:"text-sm font-semibold truncate",children:E||x})]})]})}),c&&d&&f.jsx("div",{className:"mx-2 mb-2 p-3 bg-primary/10 border border-primary rounded-lg",children:f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-xs font-medium text-primary mb-1",children:"Viewing As:"}),f.jsx("p",{className:"text-sm font-semibold truncate",children:h})]}),f.jsx(hi,{variant:"ghost",size:"sm",onClick:Ca,className:"h-8 w-8 p-0",children:f.jsx(vy,{className:"h-4 w-4"})})]})}),f.jsx(qk,{children:Br?f.jsxs(f.Fragment,{children:[c&&f.jsxs(Ja,{children:[f.jsx(Gk,{className:"text-primary font-semibold",children:"Admin"}),f.jsx(Xa,{children:f.jsx(Za,{children:Y3.map(M=>f.jsx(St,{children:f.jsx(Tt,{asChild:!0,children:f.jsxs(Ht,{to:M.url,end:!0,"data-tour":M.url.replace(/^\//,"").replace(/\//g,"-"),className:"hover:bg-primary/10",activeClassName:"bg-primary/10 text-primary font-medium border-l-2 border-primary",children:[f.jsx(M.icon,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:M.title})]})})},M.title))})})]}),!(c&&!d)&&f.jsx(Ja,{children:f.jsx(Xa,{children:f.jsxs(Za,{children:[f.jsx(St,{children:f.jsx(Tt,{asChild:!0,children:f.jsxs(Ht,{to:"/ask-avah",className:"hover:bg-muted/50",activeClassName:"bg-muted text-primary font-medium",children:[f.jsxs("span",{className:"mr-2 inline-flex items-center gap-1 shrink-0",children:[f.jsx("span",{className:"text-sm font-medium lowercase",children:"ask"}),f.jsx("img",{src:jx,alt:"avah",className:"h-4 w-auto object-contain"})]}),!je&&f.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-primary"})]})})}),(!w||!P||((ka=P.dashboard)==null?void 0:ka.view)!==!1)&&f.jsx(St,{children:f.jsx(Tt,{asChild:!0,children:f.jsxs(Ht,{to:"/dashboard",end:!0,className:"hover:bg-muted/50",activeClassName:"bg-muted text-primary font-medium",children:[f.jsx(US,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Dashboard"})]})})}),(!w||!P||((pr=P.sites)==null?void 0:pr.view)!==!1)&&f.jsxs(Js,{open:!0,onOpenChange:()=>{},children:[f.jsx(St,{children:f.jsx(Xs,{asChild:!0,children:f.jsxs(Tt,{className:"hover:bg-muted/50 w-full justify-between",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(pN,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Website"})]}),!je&&f.jsx(Gr,{className:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})})}),f.jsx(Zs,{children:f.jsx(Xr,{children:f.jsx(Zr,{children:f.jsx(es,{asChild:!0,children:f.jsxs(Ht,{to:"/sites",end:!0,className:"hover:bg-muted/50",activeClassName:"bg-muted text-primary font-medium",children:[f.jsx(xN,{className:"mr-2 h-3 w-3"}),f.jsx("span",{children:"Builder"})]})})})})})]}),f.jsxs(Js,{open:!0,onOpenChange:()=>{},children:[f.jsx(St,{children:f.jsx(Xs,{asChild:!0,children:f.jsxs(Tt,{className:"hover:bg-muted/50 w-full justify-between",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(BS,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Engagement"})]}),!je&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{type:"button",onClick:M=>{M.stopPropagation(),Fr(!Qe),Qe||$r(!0)},className:`p-0.5 rounded hover:bg-muted transition-colors ${Qe?"text-primary":"text-muted-foreground"}`,title:Qe?"Unpin menu":"Pin menu open",children:f.jsx(Va,{className:`h-3 w-3 transition-transform ${Qe?"rotate-0":"rotate-45"}`})}),f.jsx(Gr,{className:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})]})})}),f.jsx(Zs,{children:f.jsx(Xr,{children:[...W3,...X?[{title:"Realtors",url:"/realtors",icon:$S,permissionKey:"inquiries"}]:[]].filter(M=>{if(O&&(M.title==="Applications"||M.title==="Report"))return!1;if(w&&P&&M.permissionKey){const _e=M.permissionKey,Ee=P[_e];if(Ee&&Ee.view===!1)return!1}return!0}).map(M=>f.jsx(Zr,{className:"relative",children:f.jsx(es,{asChild:!0,children:f.jsxs(Ht,{to:M.url,end:!0,"data-tour":M.url.replace(/^\//,"").replace(/\//g,"-"),className:"hover:bg-muted/50 relative",activeClassName:"bg-muted text-primary font-medium",children:[f.jsx(M.icon,{className:"mr-2 h-3 w-3"}),f.jsx("span",{className:"shrink-0",children:M.title}),M.title==="Applications"&&F>0&&f.jsx("span",{className:"inline-flex shrink-0 items-center",children:f.jsx(Ua,{variant:"destructive",className:"flex h-5 min-w-5 items-center justify-center px-1.5 text-xs",children:F>99?"99+":F})}),M.title==="Messages"&&T>0&&f.jsx(Ua,{variant:"destructive",className:"ml-auto flex h-5 min-w-5 shrink-0 items-center justify-center px-1.5 text-xs",children:T>99?"99+":T}),M.title==="Tasks"&&B>0&&f.jsx(Ua,{className:"ml-auto flex h-5 min-w-5 shrink-0 items-center justify-center px-1.5 text-xs bg-primary",children:B>99?"99+":B}),M.title==="Showings"&&W>0&&f.jsx(Ua,{className:"ml-auto flex h-5 min-w-5 shrink-0 items-center justify-center px-1.5 text-xs bg-orange-500",children:W>99?"99+":W}),M.title==="Campaigns"&&f.jsx(Ua,{variant:"secondary",className:"ml-auto shrink-0 px-1.5 py-0 text-[10px] uppercase tracking-wide",children:"Beta"})]})})},M.title))})})]}),(!w||!P||((Sc=P.properties)==null?void 0:Sc.view)!==!1)&&f.jsxs(Js,{open:ue||he,onOpenChange:M=>{ue||dt(M)},children:[f.jsx(St,{children:f.jsx(Xs,{asChild:!0,children:f.jsxs(Tt,{className:"hover:bg-muted/50 w-full justify-between",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(NS,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Properties"})]}),!je&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{type:"button",onClick:M=>{M.stopPropagation(),Lt(!ue),ue||dt(!0)},className:`p-0.5 rounded hover:bg-muted transition-colors ${ue?"text-primary":"text-muted-foreground"}`,title:ue?"Unpin menu":"Pin menu open",children:f.jsx(Va,{className:`h-3 w-3 transition-transform ${ue?"rotate-0":"rotate-45"}`})}),f.jsx(Gr,{className:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})]})})}),f.jsx(Zs,{children:f.jsx(Xr,{children:H3(O).map(M=>f.jsx(Zr,{children:f.jsx(es,{asChild:!0,children:f.jsxs(Ht,{to:M.url,end:!0,"data-tour":M.url.replace(/^\//,"").replace(/\//g,"-"),className:"hover:bg-muted/50",activeClassName:"bg-muted text-primary font-medium",children:[f.jsx(M.icon,{className:"mr-2 h-3 w-3"}),f.jsx("span",{children:M.title})]})})},M.title))})})]}),!O&&(!w||!P||((Tc=P.inquiries)==null?void 0:Tc.view)!==!1)&&f.jsxs(Js,{open:ft||Ea,onOpenChange:M=>{ft||Ws(M)},children:[f.jsx(St,{children:f.jsx(Xs,{asChild:!0,children:f.jsxs(Tt,{className:"hover:bg-muted/50 w-full justify-between",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(hd,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Tenants"})]}),!je&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{type:"button",onClick:M=>{M.stopPropagation(),Df(!ft),ft||Ws(!0)},className:`p-0.5 rounded hover:bg-muted transition-colors ${ft?"text-primary":"text-muted-foreground"}`,title:ft?"Unpin menu":"Pin menu open",children:f.jsx(Va,{className:`h-3 w-3 transition-transform ${ft?"rotate-0":"rotate-45"}`})}),f.jsx(Gr,{className:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})]})})}),f.jsx(Zs,{children:f.jsx(Xr,{children:K3.map(M=>f.jsx(Zr,{children:f.jsx(es,{asChild:!0,children:f.jsxs(Ht,{to:M.url,end:!0,className:"hover:bg-muted/50",activeClassName:"bg-muted text-primary font-medium",children:[f.jsx(M.icon,{className:"mr-2 h-3 w-3"}),f.jsx("span",{children:M.title})]})})},M.title))})})]}),!O&&f.jsxs(Js,{open:bn||Vr,onOpenChange:M=>{bn||Sa(M)},children:[f.jsx(St,{children:f.jsx(Xs,{asChild:!0,children:f.jsxs(Tt,{className:"hover:bg-muted/50 w-full justify-between",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(GS,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Maintenance"})]}),!je&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{type:"button",onClick:M=>{M.stopPropagation(),Mf(!bn),bn||Sa(!0)},className:`p-0.5 rounded hover:bg-muted transition-colors ${bn?"text-primary":"text-muted-foreground"}`,title:bn?"Unpin menu":"Pin menu open",children:f.jsx(Va,{className:`h-3 w-3 transition-transform ${bn?"rotate-0":"rotate-45"}`})}),f.jsx(Gr,{className:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})]})})}),f.jsx(Zs,{children:f.jsx(Xr,{children:q3.map(M=>f.jsx(Zr,{children:f.jsx(es,{asChild:!0,children:f.jsxs(Ht,{to:M.url,end:!0,className:"hover:bg-muted/50",activeClassName:"bg-muted text-primary font-medium",children:[f.jsx(M.icon,{className:"mr-2 h-3 w-3"}),f.jsx("span",{children:M.title})]})})},M.title))})})]}),!O&&f.jsxs(Js,{open:Wt||hr,onOpenChange:M=>{Wt||Ec(M)},children:[f.jsx(St,{children:f.jsx(Xs,{asChild:!0,children:f.jsxs(Tt,{className:"hover:bg-muted/50 w-full justify-between",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(yy,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Financials"})]}),!je&&f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{type:"button",onClick:M=>{M.stopPropagation(),Fi(!Wt),Wt||Ec(!0)},className:`p-0.5 rounded hover:bg-muted transition-colors ${Wt?"text-primary":"text-muted-foreground"}`,title:Wt?"Unpin menu":"Pin menu open",children:f.jsx(Va,{className:`h-3 w-3 transition-transform ${Wt?"rotate-0":"rotate-45"}`})}),f.jsx(Gr,{className:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})]})})}),f.jsx(Zs,{children:f.jsx(Xr,{children:G3.map(M=>f.jsx(Zr,{children:f.jsx(es,{asChild:!0,children:f.jsxs(Ht,{to:M.url,end:!0,className:"hover:bg-muted/50",activeClassName:"bg-muted text-primary font-medium",children:[f.jsx(M.icon,{className:"mr-2 h-3 w-3"}),f.jsx("span",{children:M.title})]})})},M.title))})})]})]})})}),c&&!d?f.jsx(Ja,{children:f.jsx(Xa,{children:f.jsxs(Za,{children:[Q3.map(M=>f.jsx(St,{children:f.jsx(Tt,{asChild:!0,children:f.jsxs(Ht,{to:M.url,end:!0,className:M.title==="Help"?"bg-yellow-400/20 text-yellow-700 hover:bg-yellow-400/30 font-medium rounded-md":"hover:bg-muted/50",activeClassName:M.title==="Help"?"bg-yellow-400/30 text-yellow-800 font-semibold":"bg-muted text-primary font-medium",children:[f.jsx(M.icon,{className:`mr-2 h-4 w-4 ${M.title==="Help"?"text-yellow-600":""}`}),!je&&f.jsx("span",{children:M.title})]})})},M.title)),f.jsx(St,{children:f.jsxs(Tt,{onClick:Ta,children:[f.jsx(xw,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Logout"})]})})]})})}):f.jsx(Ja,{children:f.jsx(Xa,{children:f.jsxs(Za,{children:[f.jsxs(Js,{defaultOpen:o.startsWith("/settings")||o==="/help"||o==="/ai-conversations",children:[f.jsx(St,{children:f.jsx(Xs,{asChild:!0,children:f.jsxs(Tt,{className:"hover:bg-muted/50 w-full justify-between",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(gy,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Admin Settings"})]}),!je&&f.jsx(Gr,{className:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})})}),f.jsx(Zs,{children:f.jsx(Xr,{children:J3.filter(M=>{if(O&&M.title==="Accounting")return!1;if(w&&P&&M.permissionKey){const _e=M.permissionKey,
407Ee=P[_e];if(Ee&&Ee.view===!1)return!1}return!0}).map(M=>f.jsx(Zr,{children:f.jsx(es,{asChild:!0,children:f.jsxs(Ht,{to:M.url,end:!0,className:M.title==="Help"?"bg-yellow-400/20 text-yellow-700 hover:bg-yellow-400/30 font-medium rounded-md":"hover:bg-muted/50",activeClassName:M.title==="Help"?"bg-yellow-400/30 text-yellow-800 font-semibold":"bg-muted text-primary font-medium",children:[f.jsx(M.icon,{className:`mr-2 h-3 w-3 ${M.title==="Help"?"text-yellow-600":""}`}),f.jsx("span",{children:M.title})]})})},M.title))})})]}),f.jsx(St,{children:f.jsx(Tt,{asChild:!0,children:f.jsxs(Ht,{to:"/help",end:!0,className:"bg-yellow-400/20 text-yellow-700 hover:bg-yellow-400/30 font-medium rounded-md",activeClassName:"bg-yellow-400/30 text-yellow-800 font-semibold",children:[f.jsx(MS,{className:"mr-2 h-4 w-4 text-yellow-600"}),!je&&f.jsx("span",{children:"Help"})]})})}),f.jsx(St,{children:f.jsxs(Tt,{onClick:Ta,children:[f.jsx(xw,{className:"mr-2 h-4 w-4"}),!je&&f.jsx("span",{children:"Logout"})]})})]})})})]}):f.jsx("div",{className:"p-4 space-y-2",children:[1,2,3,4,5].map(M=>f.jsx("div",{className:"h-8 bg-muted/50 rounded animate-pulse"},M))})})]})}const Jk=y.memo(()=>{const{getEffectiveUserId:e,isLoading:t}=Hy(),n=e(),r=y.useRef(!1);return y.useEffect(()=>{if(t||!n||r.current)return;let s=null;return(async()=>{const{data:o}=await xe.from("client_integrations").select("config, is_connected").eq("client_id",n).eq("integration_type","sayda").single(),a=o==null?void 0:o.config;if(o!=null&&o.is_connected&&(a!=null&&a.api_key)){if(document.querySelector('script[src*="sayda-call.min.js"]')){r.current=!0;return}s=document.createElement("script"),s.src="https://sayda.ai/widget/sayda-call.min.js",s.setAttribute("data-api-key",a.api_key),document.body.appendChild(s),r.current=!0}})(),()=>{s&&s.parentNode&&(s.parentNode.removeChild(s),r.current=!1)}},[t,n]),null});Jk.displayName="SaydaCallWidget";const Xk=()=>f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:f.jsx(mN,{className:"h-8 w-8 animate-spin text-primary"})});function Zk(e){return t=>typeof t===e}var Z3=Zk("function"),e5=e=>e===null,Ix=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",Nx=e=>!t5(e)&&!e5(e)&&(Z3(e)||typeof e=="object"),t5=Zk("undefined");function n5(e,t,n){return c5(n,e,t)?!0:(u5(n,e,t),e.constructor!==t.constructor?!1:Array.isArray(e)&&Array.isArray(t)?r5(e,t,n):e instanceof Map&&t instanceof Map?o5(e,t,n):e instanceof Set&&t instanceof Set?l5(e,t):e instanceof WeakMap||e instanceof WeakSet?!1:ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)?s5(e,t):Ix(e)&&Ix(t)?e.source===t.source&&e.flags===t.flags:e instanceof Error&&t instanceof Error?i5(e,t,n):e.valueOf!==Object.prototype.valueOf?e.valueOf()===t.valueOf():e.toString!==Object.prototype.toString?e.toString()===t.toString():a5(e,t,n))}function hc(e,t,n){return e===t||Number.isNaN(e)&&Number.isNaN(t)?!0:!e||!Nx(e)||!t||!Nx(t)?!1:n5(e,t,n)}function r5(e,t,n){const{length:r}=e;if(r!==t.length)return!1;for(let s=r;s--!==0;)if(!hc(e[s],t[s],n))return!1;return!0}function s5(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let s=e.byteLength;for(;s--;)if(n.getUint8(s)!==r.getUint8(s))return!1;return!0}function i5(e,t,n){return e.message===t.message&&e.name===t.name&&hc(e.cause,t.cause,n)}function o5(e,t,n){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;for(const r of e.entries())if(!hc(r[1],t.get(r[0]),n))return!1;return!0}function a5(e,t,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let s=r.length;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[s]))return!1;for(let s=r.length;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!hc(e[i],t[i],n))return!1}return!0}function l5(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function c5(e,t,n){var r;return((r=e.get(t))==null?void 0:r.has(n))??!1}function u5(e,t,n){let r=e.get(t);r||(r=new WeakSet,e.set(t,r)),r.add(n)}function ev(e,t){return hc(e,t,new WeakMap)}function Bh(){var e;return!!(typeof window<"u"&&((e=window==null?void 0:window.document)!=null&&e.createElement))}function d5(e,...t){e&&e.removeEventListener&&e.removeEventListener(...t)}function f5(e,...t){e&&e.addEventListener&&e.addEventListener(...t)}function h5(){const e=y.useRef(!0);return e.current?(e.current=!1,!0):e.current}function p5(e,t){const n=h5();y.useEffect(()=>{if(!n)return e()},t)}function eP(e){const t=y.useRef(void 0);return y.useEffect(()=>{t.current=e}),t.current}function m5(e,t){const n=y.useRef(t);return ev(t,n.current)||(n.current=t),y.useMemo(e,n.current)}function g5(e){y.useEffect(()=>{e()},[])}function y5(e=0){const[t,n]=y.useState({height:Bh()?window.innerHeight:0,width:Bh()?window.innerWidth:0}),r=y.useRef(0),s=y.useRef(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(()=>{n({width:window.innerWidth,height:window.innerHeight})},e)});return y.useEffect(()=>{if(!Bh())return()=>{};const i=s.current;return n({height:window.innerHeight,width:window.innerWidth}),f5(window,"resize",i),()=>{d5(window,"resize",i)}},[]),t}var tP={exports:{}},nP={};
407/** 408 * @license React 409 * use-sync-external-store-shim.production.js 410 * 411 * Copyright (c) Meta Platforms, Inc. and affiliates. 412 * 413 * This source code is licensed under the MIT license found in the 414 * LICENSE file in the root directory of this source tree. 415 */var Zo=y;function v5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var w5=typeof Object.is=="function"?Object.is:v5,x5=Zo.useState,b5=Zo.useEffect,_5=Zo.useLayoutEffect,E5=Zo.useDebugValue;function S5(e,t){var n=t(),r=x5({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return _5(function(){s.value=n,s.getSnapshot=t,Uh(s)&&i({inst:s})},[e,n,t]),b5(function(){return Uh(s)&&i({inst:s}),e(function(){Uh(s)&&i({inst:s})})},[e]),E5(n),n}function Uh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!w5(e,n)}catch{return!0}}function T5(e,t){return t()}var C5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?T5:S5;nP.useSyncExternalStore=Zo.useSyncExternalStore!==void 0?Zo.useSyncExternalStore:C5;tP.exports=nP;var k5=tP.exports,P5=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","URL","WeakMap","WeakSet"],R5=["bigint","boolean","null","number","string","symbol","undefined"];function pc(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(A5(t))return t}function Kn(e){return t=>pc(t)===e}function A5(e){return P5.includes(e)}function ma(e){return t=>typeof t===e}function O5(e){return R5.includes(e)}var j5=["innerHTML","ownerDocument","style","attributes","nodeValue"],mc=e=>Array.isArray(e),I5=e=>pc(e)==="AsyncGeneratorFunction",N5=Kn("AsyncFunction"),L5=ma("bigint"),D5=e=>e===!0||e===!1,M5=Kn("Date"),$5=Kn("Error"),js=ma("function"),V5=Kn("GeneratorFunction"),F5=e=>typeof e=="number"&&Number.isInteger(e),Bm=Kn("Map"),rP=e=>Number.isNaN(e),tv=e=>e===null,sP=Kn("Function"),B5=Kn("Promise"),U5=Kn("RegExp"),Um=Kn("Set"),gc=ma("string"),z5=ma("symbol"),nv=ma("undefined"),W5=Kn("WeakMap"),H5=Kn("WeakSet"),rv=e=>tv(e)||nv(e),iP=e=>!nv(e),K5=e=>ma("number")(e)&&!rP(e),q5=e=>gc(e)&&e.trim().length>0,G5=e=>{if(!gc(e)||e.length===0)return!1;const t=e.trim();return t.length>0&&Number.isFinite(Number(t))},kf=e=>!rv(e)&&(js(e)||typeof e=="object"),oP=e=>{if(pc(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})},Y5=e=>tv(e)||O5(typeof e),Q5=e=>pc(e)==="URL",aP=e=>!rv(e)&&js(e[Symbol.iterator]),J5=e=>aP(e)&&js(e.next)&&js(e.throw),X5=e=>js(e)&&/^class\s/.test(e.toString()),Z5=(e,t)=>!mc(e)||!js(t)?!1:e.every(n=>t(n)),eB=e=>kf(e)&&!oP(e)&&e.nodeType===1&&gc(e.nodeName)&&j5.every(t=>t in e),tB=e=>gc(e)&&e.length===0||mc(e)&&e.length===0||kf(e)&&!Bm(e)&&!Um(e)&&Object.keys(e).length===0||Um(e)&&e.size===0||Bm(e)&&e.size===0,nB=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype,rB=(e,t)=>mc(e)?e.indexOf(t)>-1:!1,sB=(e,t,n)=>{if(!kf(e)||!t)return!1;const r=e[t];return js(n)?n(r):iP(r)};function le(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(mc(e))return"Array";if(sP(e))return"Function";const t=pc(e);return t||"Object"}le.array=mc;le.arrayOf=Z5;le.asyncGeneratorFunction=I5;le.asyncFunction=N5;le.bigint=L5;le.boolean=D5;le.class=X5;le.date=M5;le.defined=iP;le.domElement=eB;le.empty=tB;le.error=$5;le.function=js;le.generator=J5;le.generatorFunction=V5;le.instanceOf=nB;le.integer=F5;le.iterable=aP;le.map=Bm;le.nan=rP;le.null=tv;le.nullOrUndefined=rv;le.nonEmptyString=q5;le.number=K5;le.numericString=G5;le.object=kf;le.oneOf=rB;le.plainFunction=sP;le.plainObject=oP;le.primitive=Y5;le.promise=B5;le.propertyOf=sB;le.regexp=U5;le.set=Um;le.string=gc;le.symbol=z5;le.undefined=nv;le.url=Q5;le.weakMap=W5;le.weakSet=H5;var xt=le;/* v8 ignore next -- @preserve */var iB=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},oB=function(e,t){return e+Kl(t)},Kl=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(oB,""):iB(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?Kl(e.props.children):""};Kl.default=Kl;var aB=Kl;const zh=Nr(aB);var lP={exports:{}};(function(e){const t=Object.getPrototypeOf({});function n(){return function(i){return typeof i=="object"&&i!==null&&!(i instanceof RegExp)&&!(i instanceof Date)}}function r(s){function i(E){return E!=="constructor"&&E!=="prototype"&&E!=="__proto__"}function o(E){let S=0;const T=E.length,C=new Array(T);for(S;S<T;++S)C[S]=m(E[S]);return C}function a(E){const S={};if(h&&Object.getPrototypeOf(E)!==t)return h(E);const T=d(E);let C,P,R;for(C=0,P=T.length;C<P;++C)i(R=T[C])&&(S[R]=m(E[R]));return S}function l(E,S){const T=E.length,C=S.length;let P=0;const R=new Array(T+C);for(P;P<T;++P)R[P]=m(E[P]);for(P=0;P<C;++P)R[P+T]=m(S[P]);return R}const c=Object.prototype.propertyIsEnumerable;function u(E){const S=Object.keys(E),T=Object.getOwnPropertySymbols(E);for(let C=0,P=T.length;C<P;++C)c.call(E,T[C])&&S.push(T[C]);return S}const d=s!=null&&s.symbols?u:Object.keys,h=typeof(s==null?void 0:s.cloneProtoObject)=="function"?s.cloneProtoObject:void 0,p=typeof(s==null?void 0:s.isMergeableObject)=="function"?s.isMergeableObject:n(),w=(s==null?void 0:s.onlyDefinedProperties)===!0;function v(E){return typeof E!="object"||E===null}const b=s&&typeof s.mergeArray=="function"?s.mergeArray({clone:m,deepmerge:x,getKeys:d,isMergeableObject:p}):l;function m(E){return p(E)?Array.isArray(E)?o(E):a(E):E}function g(E,S){const T={},C=d(E),P=d(S);let R,$,A;for(R=0,$=C.length;R<$;
415++R)i(A=C[R])&&P.indexOf(A)===-1&&(T[A]=m(E[A]));for(R=0,$=P.length;R<$;++R)if(i(A=P[R]))if(A in E)C.indexOf(A)!==-1&&(h&&p(S[A])&&Object.getPrototypeOf(S[A])!==t?T[A]=h(S[A]):T[A]=x(E[A],S[A]));else{if(w&&typeof S[A]>"u")continue;T[A]=m(S[A])}return T}function x(E,S){if(w&&typeof S>"u")return m(E);const T=Array.isArray(S),C=Array.isArray(E);return v(S)?S:p(E)?T&&C?b(E,S):T!==C?m(S):g(E,S):m(S)}function _(){switch(arguments.length){case 0:return{};case 1:return m(arguments[0]);case 2:return x(arguments[0],arguments[1])}let E;for(let S=0,T=arguments.length;S<T;++S)E=x(E,arguments[S]);return E}return s!=null&&s.all?_:x}e.exports=r,e.exports.default=r,e.exports.deepmerge=r,Object.defineProperty(e.exports,"isMergeableObject",{get:n})})(lP);var lB=lP.exports;const cB=Nr(lB);var uB=new Error("Element already at target scroll position"),dB=new Error("Scroll cancelled"),fB=Math.min,Lx=Date.now,hB={left:Dx("scrollLeft"),top:Dx("scrollTop")};function Dx(e){return function(n,r,s,i){s=s||{},typeof s=="function"&&(i=s,s={}),typeof i!="function"&&(i=mB);var o=Lx(),a=n[e],l=s.ease||pB,c=isNaN(s.duration)?350:+s.duration,u=!1;return a===r?i(uB,n[e]):requestAnimationFrame(h),d;function d(){u=!0}function h(p){if(u)return i(dB,n[e]);var w=Lx(),v=fB(1,(w-o)/c),b=l(v);n[e]=b*(r-a)+a,v<1?requestAnimationFrame(h):requestAnimationFrame(function(){i(null,n[e])})}}}function pB(e){return .5*(1-Math.cos(Math.PI*e))}function mB(){}const gB=Nr(hB);var cP={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(mA,function(){function t(r){var s=getComputedStyle(r,null).getPropertyValue("overflow");return s.indexOf("scroll")>-1||s.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var s=r.parentNode;s.parentNode;){if(t(s))return s;s=s.parentNode}return document.scrollingElement||document.documentElement}}return n})})(cP);var yB=cP.exports;const uP=Nr(yB),vB=["top","right","bottom","left"],Mx=["start","end"],$x=vB.reduce((e,t)=>e.concat(t,t+"-"+Mx[0],t+"-"+Mx[1]),[]),ea=Math.min,Ti=Math.max,Rd=Math.round,cu=Math.floor,sr=e=>({x:e,y:e}),wB={left:"right",right:"left",bottom:"top",top:"bottom"};function zm(e,t,n){return Ti(e,ea(t,n))}function ga(e,t){return typeof e=="function"?e(t):e}function jr(e){return e.split("-")[0]}function ir(e){return e.split("-")[1]}function dP(e){return e==="x"?"y":"x"}function sv(e){return e==="y"?"height":"width"}function ys(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function iv(e){return dP(ys(e))}function fP(e,t,n){n===void 0&&(n=!1);const r=ir(e),s=iv(e),i=sv(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Od(o)),[o,Od(o)]}function xB(e){const t=Od(e);return[Ad(e),t,Ad(t)]}function Ad(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Vx=["left","right"],Fx=["right","left"],bB=["top","bottom"],_B=["bottom","top"];function EB(e,t,n){switch(e){case"top":case"bottom":return n?t?Fx:Vx:t?Vx:Fx;case"left":case"right":return t?bB:_B;default:return[]}}function SB(e,t,n,r){const s=ir(e);let i=EB(jr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Ad)))),i}function Od(e){const t=jr(e);return wB[t]+e.slice(t.length)}function TB(e){return{top:0,right:0,bottom:0,left:0,...e}}function hP(e){return typeof e!="number"?TB(e):{top:e,right:e,bottom:e,left:e}}function jd(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Bx(e,t,n){let{reference:r,floating:s}=e;const i=ys(t),o=iv(t),a=sv(o),l=jr(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ir(t)){case"start":p[o]-=h*(n&&c?-1:1);break;case"end":p[o]+=h*(n&&c?-1:1);break}return p}async function CB(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=ga(t,e),w=hP(p),b=a[h?d==="floating"?"reference":"floating":d],m=jd(await i.getClippingRect
415({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=jd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:x,strategy:l}):g);return{top:(m.top-E.top+w.top)/_.y,bottom:(E.bottom-m.bottom+w.bottom)/_.y,left:(m.left-E.left+w.left)/_.x,right:(E.right-m.right+w.right)/_.x}}const kB=50,PB=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:CB},l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Bx(c,r,l),h=r,p=0;const w={};for(let v=0;v<i.length;v++){const b=i[v];if(!b)continue;const{name:m,fn:g}=b,{x,y:_,data:E,reset:S}=await g({x:u,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:w,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,d=_??d,w[m]={...w[m],...E},S&&p<kB&&(p++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:u,y:d}=Bx(c,h,l)),v=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:w}},RB=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=ga(e,t)||{};if(c==null)return{};const d=hP(u),h={x:n,y:r},p=iv(s),w=sv(p),v=await o.getDimensions(c),b=p==="y",m=b?"top":"left",g=b?"bottom":"right",x=b?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[p]-h[p]-i.floating[w],E=h[p]-i.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let T=S?S[x]:0;(!T||!await(o.isElement==null?void 0:o.isElement(S)))&&(T=a.floating[x]||i.floating[w]);const C=_/2-E/2,P=T/2-v[w]/2-1,R=ea(d[m],P),$=ea(d[g],P),A=R,B=T-v[w]-$,D=T/2-v[w]/2+C,W=zm(A,D,B),H=!l.arrow&&ir(s)!=null&&D!==W&&i.reference[w]/2-(D<A?R:$)-v[w]/2<0,F=H?D<A?D-A:D-B:0;return{[p]:h[p]+F,data:{[p]:W,centerOffset:D-W-F,...H&&{alignmentOffset:F}},reset:H}}});function AB(e,t,n){return(e?[...n.filter(s=>ir(s)===e),...n.filter(s=>ir(s)!==e)]:n.filter(s=>jr(s)===s)).filter(s=>e?ir(s)===e||(t?Ad(s)!==s:!1):!0)}const OB=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,s;const{rects:i,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:h=$x,autoAlignment:p=!0,...w}=ga(e,t),v=d!==void 0||h===$x?AB(d||null,p,h):h,b=await l.detectOverflow(t,w),m=((n=o.autoPlacement)==null?void 0:n.index)||0,g=v[m];if(g==null)return{};const x=fP(g,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==g)return{reset:{placement:v[0]}};const _=[b[jr(g)],b[x[0]],b[x[1]]],E=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:g,overflows:_}],S=v[m+1];if(S)return{data:{index:m+1,overflows:E},reset:{placement:S}};const T=E.map(R=>{const $=ir(R.placement);return[R.placement,$&&u?R.overflows.slice(0,2).reduce((A,B)=>A+B,0):R.overflows[0],R.overflows]}).sort((R,$)=>R[1]-$[1]),P=((s=T.filter(R=>R[2].slice(0,ir(R[0])?2:3).every($=>$<=0))[0])==null?void 0:s[0])||T[0][0];return P!==a?{data:{index:m+1,overflows:E},reset:{placement:P}}:{}}}},jB=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...b}=ga(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=jr(s),g=ys(a),x=jr(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(x||!v?[Od(a)]:xB(a)),S=w!=="none";!h&&S&&E.push(...SB(a,v,w,_));const T=[a,...E],C=await l.detectOverflow(t,b),P=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&P.push(C[m]),d){const D=fP(s,o,_);P.push(C[D[0]],C[D[1]])}if(R=[...R,{placement:s,overflows:P}],!P.every(D=>D<=0)){var $,A;
415const D=((($=i.flip)==null?void 0:$.index)||0)+1,W=T[D];if(W&&(!(d==="alignment"?g!==ys(W):!1)||R.every(k=>ys(k.placement)===g?k.overflows[0]>0:!0)))return{data:{index:D,overflows:R},reset:{placement:W}};let H=(A=R.filter(F=>F.overflows[0]<=0).sort((F,k)=>F.overflows[1]-k.overflows[1])[0])==null?void 0:A.placement;if(!H)switch(p){case"bestFit":{var B;const F=(B=R.filter(k=>{if(S){const O=ys(k.placement);return O===g||O==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(O=>O>0).reduce((O,U)=>O+U,0)]).sort((k,O)=>k[1]-O[1])[0])==null?void 0:B[0];F&&(H=F);break}case"initialPlacement":H=a;break}if(s!==H)return{reset:{placement:H}}}return{}}}},IB=new Set(["left","top"]);async function NB(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=jr(n),a=ir(n),l=ys(n)==="y",c=IB.has(o)?-1:1,u=i&&l?-1:1,d=ga(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof w=="number"&&(p=a==="end"?w*-1:w),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const LB=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await NB(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},DB=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:m=>{let{x:g,y:x}=m;return{x:g,y:x}}},...c}=ga(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),h=ys(jr(s)),p=dP(h);let w=u[p],v=u[h];if(o){const m=p==="y"?"top":"left",g=p==="y"?"bottom":"right",x=w+d[m],_=w-d[g];w=zm(x,w,_)}if(a){const m=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=v+d[m],_=v-d[g];v=zm(x,v,_)}const b=l.fn({...t,[p]:w,[h]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[h]:a}}}}}};function Pf(){return typeof window<"u"}function ya(e){return pP(e)?(e.nodeName||"").toLowerCase():"#document"}function en(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fr(e){var t;return(t=(pP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pP(e){return Pf()?e instanceof Node||e instanceof en(e).Node:!1}function zn(e){return Pf()?e instanceof Element||e instanceof en(e).Element:!1}function Mr(e){return Pf()?e instanceof HTMLElement||e instanceof en(e).HTMLElement:!1}function Ux(e){return!Pf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof en(e).ShadowRoot}function yc(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Wn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&s!=="inline"&&s!=="contents"}function MB(e){return/^(table|td|th)$/.test(ya(e))}function Rf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const $B=/transform|translate|scale|rotate|perspective|filter/,VB=/paint|layout|strict|content/,ei=e=>!!e&&e!=="none";let Wh;function ov(e){const t=zn(e)?Wn(e):e;return ei(t.transform)||ei(t.translate)||ei(t.scale)||ei(t.rotate)||ei(t.perspective)||!av()&&(ei(t.backdropFilter)||ei(t.filter))||$B.test(t.willChange||"")||VB.test(t.contain||"")}function FB(e){let t=Is(e);for(;Mr(t)&&!ta(t);){if(ov(t))return t;if(Rf(t))return null;t=Is(t)}return null}function av(){return Wh==null&&(Wh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wh}function ta(e){return/^(html|body|#document)$/.test(ya(e))}function Wn(e){return en(e).getComputedStyle(e)}function Af(e){return zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Is(e){if(ya(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ux(e)&&e.host||fr(e);return Ux(t)?t.host:t}function mP(e){const t=Is(e);return ta(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mr(t)&&yc(t)?t:mP(t)}function ql(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=mP(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=en(s);if(i){const a=Wm(o);
vendor: 7,509 bytes, line 415
415return t.concat(o,o.visualViewport||[],yc(s)?s:[],a&&n?ql(a):[])}else return t.concat(s,ql(s,[],n))}function Wm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gP(e){const t=Wn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Mr(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Rd(n)!==i||Rd(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function lv(e){return zn(e)?e:e.contextElement}function jo(e){const t=lv(e);if(!Mr(t))return sr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=gP(t);let o=(i?Rd(n.width):n.width)/r,a=(i?Rd(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const BB=sr(0);function yP(e){const t=en(e);return!av()||!t.visualViewport?BB:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UB(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==en(e)?!1:t}function Ni(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=lv(e);let o=sr(1);t&&(r?zn(r)&&(o=jo(r)):o=jo(e));const a=UB(i,n,r)?yP(i):sr(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const h=en(i),p=r&&zn(r)?en(r):r;let w=h,v=Wm(w);for(;v&&r&&p!==w;){const b=jo(v),m=v.getBoundingClientRect(),g=Wn(v),x=m.left+(v.clientLeft+parseFloat(g.paddingLeft))*b.x,_=m.top+(v.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=x,c+=_,w=en(v),v=Wm(w)}}return jd({width:u,height:d,x:l,y:c})}function Of(e,t){const n=Af(e).scrollLeft;return t?t.left+n:Ni(fr(e)).left+n}function vP(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Of(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function zB(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=fr(r),a=t?Rf(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=sr(1);const u=sr(0),d=Mr(r);if((d||!d&&!i)&&((ya(r)!=="body"||yc(o))&&(l=Af(r)),d)){const p=Ni(r);c=jo(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=o&&!d&&!i?vP(o,l):sr(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function WB(e){return Array.from(e.getClientRects())}function HB(e){const t=fr(e),n=Af(e),r=e.ownerDocument.body,s=Ti(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ti(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Of(e);const a=-n.scrollTop;return Wn(r).direction==="rtl"&&(o+=Ti(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}const zx=25;function KB(e,t){const n=en(e),r=fr(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=av();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const c=Of(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(r.clientWidth-d.clientWidth-p);w<=zx&&(i-=w)}else c<=zx&&(i+=c);return{width:i,height:o,x:a,y:l}}function qB(e,t){const n=Ni(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Mr(e)?jo(e):sr(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function Wx(e,t,n){let r;if(t==="viewport")r=KB(e,n);else if(t==="document")r=HB(fr(e));else if(zn(t))r=qB(t,n);else{const s=yP(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return jd(r)}function wP(e,t){const n=Is(e);return n===t||!zn(n)||ta(n)?!1:Wn(n).position==="fixed"||wP(n,t)}function GB(e,t){const n=t.get(e);if(n)return n;let r=ql(e,[],!1).filter(a=>zn(a)&&ya(a)!=="body"),s=null;const i=Wn(e).position==="fixed";let o=i?Is(e):e;for(;zn(o)&&!ta(o);){const a=Wn(o),l=ov(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||yc(o)&&!l&&wP(e,o))?r=r.filter(u=>u!==o):s=a,o=Is(o)}return t.set(e,r),r}function YB(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Rf(t)?[]:GB(t,this._c):[].concat(n),r],a=Wx(t,o[0],s);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let h=1;h<o.length;h++){const p=Wx(t,o[h],s);l=Ti(p.top,l),c=ea(p.right,c),u=ea(p.bottom,u),d=Ti(p.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function QB(e){const{width:t,height:n}=gP(e);return{width:t,height:n}}function JB(e,t,n){const r=Mr(t),s=fr(t),i=n==="fixed",o=Ni(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=sr(0);function c(){l.x=Of(s)}if(r||!r&&!i)if((ya(t)!=="body"||yc(s))&&(a=Af(t)),r){const p=Ni(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else s&&c();i&&!r&&s&&c();const u=s&&!r&&!i?vP(s,a):sr(0),d=o.left+a.scrollLeft-l.x-u.x,h=o.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function Hh(e){return Wn(e).position==="static"}function Hx(e,t){if(!Mr(e)||Wn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fr(e)===n&&(n=n.ownerDocument.body),n}function xP(e,t){const n=en(e);if(Rf(e))return n;if(!Mr(e)){let s=Is(e);for(;s&&!ta(s);){if(zn(s)&&!Hh(s))return s;s=Is(s)}return n}let r=Hx(e,t);for(;r&&MB(r)&&Hh(r);)r=Hx(r,t);return r&&ta(r)&&Hh(r)&&!ov(r)?n:r||FB(e)||n}const XB=async function(e){const t=this.getOffsetParent||xP,n=this.getDimensions,r=await n(e.floating);return{reference:JB(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ZB(e){return Wn(e).direction==="rtl"}const eU={convertOffsetParentRelativeRectToViewportRelativeRect:zB,getDocumentElement:fr,getClippingRect:YB,getOffsetParent:xP,getElementRects:XB,getClientRects:WB,getDimensions:QB,getScale:jo,isElement:zn,isRTL:ZB};function bP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tU(e,t){let n=null,r;const s=fr(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const w=cu(d),v=cu(s.clientWidth-(u+h)),b=cu(s.clientHeight-(d+p)),m=cu(u),x={rootMargin:-w+"px "+-v+"px "+-b+"px "+-m+"px",threshold:Ti(0,ea(1,l))||1};let _=!0;function E(S){const T=S[0].intersectionRatio;if(T!==l){if(!_)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!bP(c,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(E,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return o(!0),i}function Kx(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=lv(e),u=s||i?[...c?ql(c):[],...t?ql(t):[]]:[];u.forEach(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&a?tU(c,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let w,v=l?Ni(e):null;l&&b();function b(){const m=Ni(e);v&&!bP(v,m)&&n(),v=m,w=requestAnimationFrame(b)}return n(),()=>{var m;u.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d==null||d(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(w)}}const nU=LB,rU=OB,sU=DB,iU=jB,qx=RB,oU=(e,t,n)=>{const r=new Map,s={platform:eU,...n},i={...s.platform,_c:r};return PB(e,t,{...s,platform:i})};var aU=typeof document<"u",lU=function(){}
vendor: 5,116 bytes, line 415
415,Du=aU?y.useLayoutEffect:lU;function Id(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Id(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Id(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _P(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gx(e,t){const n=_P(e);return Math.round(t*n)/n}function Kh(e){const t=y.useRef(e);return Du(()=>{t.current=e}),t}function Yx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=y.useState(r);Id(h,r)||p(r);const[w,v]=y.useState(null),[b,m]=y.useState(null),g=y.useCallback(k=>{k!==S.current&&(S.current=k,v(k))},[]),x=y.useCallback(k=>{k!==T.current&&(T.current=k,m(k))},[]),_=i||w,E=o||b,S=y.useRef(null),T=y.useRef(null),C=y.useRef(u),P=l!=null,R=Kh(l),$=Kh(s),A=Kh(c),B=y.useCallback(()=>{if(!S.current||!T.current)return;const k={placement:t,strategy:n,middleware:h};$.current&&(k.platform=$.current),oU(S.current,T.current,k).then(O=>{const U={...O,isPositioned:A.current!==!1};D.current&&!Id(C.current,U)&&(C.current=U,Mi.flushSync(()=>{d(U)}))})},[h,t,n,$,A]);Du(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[c]);const D=y.useRef(!1);Du(()=>(D.current=!0,()=>{D.current=!1}),[]),Du(()=>{if(_&&(S.current=_),E&&(T.current=E),_&&E){if(R.current)return R.current(_,E,B);B()}},[_,E,B,R,P]);const W=y.useMemo(()=>({reference:S,floating:T,setReference:g,setFloating:x}),[g,x]),H=y.useMemo(()=>({reference:_,floating:E}),[_,E]),F=y.useMemo(()=>{const k={position:n,left:0,top:0};if(!H.floating)return k;const O=Gx(H.floating,u.x),U=Gx(H.floating,u.y);return a?{...k,transform:"translate("+O+"px, "+U+"px)",..._P(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:U}},[n,a,H.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:B,refs:W,elements:H,floatingStyles:F}),[u,B,W,H,F])}const cU=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qx({element:r.current,padding:s}).fn(n):{}:r?qx({element:r,padding:s}).fn(n):{}}}},Qx=(e,t)=>{const n=nU(e);return{name:n.name,fn:n.fn,options:[e,t]}},uU=(e,t)=>{const n=sU(e);return{name:n.name,fn:n.fn,options:[e,t]}},dU=(e,t)=>{const n=iU(e);return{name:n.name,fn:n.fn,options:[e,t]}},fU=(e,t)=>{const n=rU(e);return{name:n.name,fn:n.fn,options:[e,t]}},hU=(e,t)=>{const n=cU(e);return{name:n.name,fn:n.fn,options:[e,t]}},pU={arrowBase:32,arrowColor:"#ffffff",arrowSize:16,arrowSpacing:12,backgroundColor:"#ffffff",beaconSize:36,beaconTrigger:"click",beforeTimeout:5e3,blockTargetInteraction:!1,buttons:["back","close","primary"],closeButtonAction:"close",disableFocusTrap:!1,dismissKeyAction:"close",hideOverlay:!1,loaderDelay:300,offset:10,overlayClickAction:"close",overlayColor:"#00000080",primaryColor:"#000000",scrollDuration:300,scrollOffset:20,showProgress:!1,skipBeacon:!1,skipScroll:!1,spotlightPadding:10,spotlightRadius:4,targetWaitTimeout:1e3,textColor:"#000000",width:380,zIndex:100},mU={beaconOptions:{offset:-18}},EP={back:"Back",close:"Close",last:"Last",next:"Next",nextWithProgress:"Next ({current} of {total})",open:"Open the dialog",skip:"Skip"},gU={isFixed:!1,locale:EP,placement:"bottom"},yU={continuous:!1,debug:!1,run:!1,scrollToFirstStep:!1,steps:[]},ce={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",REPLAY:"replay",UPDATE:"update",COMPLETE:"complete"},nt={TOUR_START:"tour:start",STEP_BEFORE_HOOK:"step:before_hook",STEP_BEFORE:"step:before",SCROLL_START:"scroll:start",SCROLL_END:"scroll:end",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",STEP_AFTER_HOOK:"step:after_hook",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},K={INIT:"init",READY:"ready",BEACON_BEFORE:"beacon_before",BEACON:"beacon",TOOLTIP_BEFORE:"tooltip_before",TOOLTIP:"tooltip",COMPLETE:"complete"},qt={BUTTON_BACK:"button_back",BUTTON_CLOSE:"button_close",BUTTON_PRIMARY:"button_primary",BUTTON_SKIP:"button_skip",KEYBOARD:"keyboard",OVERLAY:"overlay"},oe={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"},vU="react-joyride-portal";function wU(e){const t={};for(const n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function po(...e){return cB({all:!0,isMergeableObject:t=>!(!xt.plainObject(t)||y.isValidElement(t))})(...e)}function SP(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}
415function xr(e,t={}){const{defaultValue:n,step:r,steps:s}=t;let i=zh(e);if(i)(i.includes("{current}")||i.includes("{total}"))&&r&&s&&(i=i.replace("{current}",r.toString()).replace("{total}",s.toString()));else if(y.isValidElement(e)&&!Object.values(e.props).length&&SP(e.type)==="function")try{i=xr(e.type({}),t)}catch{i=zh(n)}else i=zh(n);return i}function st(e,t,n,...r){if(!e)return;const s=new Date,i=`${String(s.getHours()).padStart(2,"0")}:${String(s.getMinutes()).padStart(2,"0")}:${String(s.getSeconds()).padStart(2,"0")}.${String(s.getMilliseconds()).padStart(3,"0")}`;console.log(`${t} %c${n}%c ${i}`,"font-weight: bold","color: gray; font-weight: normal",...r)}function xU(e,t){const n=wU(t);return{...e,...n}}function Gl(){}function bU(e){return Object.keys(e)}function Nd(e,...t){if(!xt.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&!t.includes(r)&&(n[r]=e[r]);return n}function Jx(e,...t){if(!xt.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function Hm(e,t,n){const r=i=>i.replace("{current}",String(t)).replace("{total}",String(n));if(SP(e)==="string")return r(e);if(!y.isValidElement(e))return e;const{children:s}=e.props;if(xt.string(s)&&s.includes("{current}"))return y.cloneElement(e,{children:r(s)});if(Array.isArray(s))return y.cloneElement(e,{children:s.map(i=>typeof i=="string"?r(i):Hm(i,t,n))});if(xt.function(e.type)&&!Object.values(e.props).length)try{return Hm(e.type({}),t,n)}catch{return e}return e}function Xx(e){return bU(e).sort().reduce((t,n)=>(t[n]=e[n],t),{})}function cv(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function Zx(e){let t=0,n=0,r=e;for(;r;)t+=r.offsetTop,n+=r.offsetLeft,r=r.offsetParent;return{left:n,top:t}}function uv(e){return e?e.getBoundingClientRect():null}function _U(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((i,o)=>i-o),s=Math.floor(r.length/2);return r.length%2===0?(r[s-1]+r[s])/2:r[s]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function fn(e){if(!e)return null;if(typeof e=="function")try{return e()}catch{return null}if(typeof e=="object"&&"current"in e)return e.current;if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function EU(e,t,n){const r=uv(e),s=va(e),i=s?!s.isSameNode(Ft()):!1,o=n??wa(e);let a=0,l=(r==null?void 0:r.top)??0;return i&&o?l=(r==null?void 0:r.top)??0:s instanceof HTMLElement&&(a=s.scrollTop,!i&&!o&&(l+=a),s.isSameNode(Ft())||(l+=Ft().scrollTop)),Math.floor(l-t)}function va(e,t){if(!e)return Ft();const n=uP(e);if(n){if(n.isSameNode(Ft()))return t?document:Ft();if(!(n.scrollHeight>n.offsetHeight))return Ft()}return n}function SU(e){const t=e.getBoundingClientRect(),n=Ft(),r=t.top+t.height/2,s=window.innerHeight/2;return Math.max(0,n.scrollTop+r-s)}function TU(e,t){if(!e)return 0;const n=uP(e)??Ft(),r=parseFloat(getComputedStyle(e).scrollMarginTop)||0,s=uv(n),i=n.scrollTop??0,{offsetTop:o=0,scrollTop:a=0}=n;let l=e.getBoundingClientRect().top+a;if(o&&(TP(e)||CU(e))){const u=e.getBoundingClientRect(),d=u.top-((s==null?void 0:s.top)??0),h=d+u.height,p=n.clientHeight,w=p*.2;d>=w&&h<=p-w?l=i:l=d+i}const c=Math.floor(l-t-r);return c<0?0:c}function CU(e){return e.offsetParent!==document.body}function TP(e){if(!e)return!1;const t=va(e);return t?!t.isSameNode(Ft()):!1}function wa(e,t="fixed"){if(!e||!(e instanceof Element))return!1;const{nodeName:n}=e;return n==="BODY"||n==="HTML"?!1:getComputedStyle(e).position===t?!0:e.parentNode?wa(e.parentNode,t):!1}function uu(e){if(!e)return!1;let t=e;for(;t&&t!==document.body;){if(t instanceof HTMLElement){const{display:n,visibility:r}=getComputedStyle(t);if(n==="none"||r==="hidden")return!1}t=t.parentElement??null}return!0}function eb(e){const{isFirstStep:t,scrollToFirstStep:n,step:r,target:s,targetLifecycle:i}=e;if(r.skipScroll||t&&!n&&i!==K.TOOLTIP||r.placement==="center")return!1;const o=s!=null&&s.isConnected?va(s):Ft(),a=o?!o.isSameNode(Ft()):!1;return(r.isFixed||wa(s))&&!a?!1:o.scrollHeight>o.clientHeight}function Ft(){return document.scrollingElement??document.documentElement}function tb(e,t){const{duration:n,element:r}=t;let s=()=>{};const i=new Promise(o=>{const{scrollTop:a}=r,l=e>a?e-a:a-e;s=gB.top(r,e,{duration:l<100?50:n},()=>{o()})});return{cancel:s,promise:i}}function kU(e){const t=e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,(r,s,i,o)=>s+s+i+i+o+o),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}const CP={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555555",cursor:"pointer",fontSize:16,lineHeight:1,padding:0,WebkitAppearance:"none"},du={...CP,borderRadius:4,padding:8};function PU(e,t){const{styles:n}=e,r=po(n??{},t.styles??{});let{width:s}=t;cv()&&(s=typeof s=="number"&&window.innerWidth<s?window.innerWidth-30:s);const i={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex};return po({arrow:{alignItems:"center",color:t.arrowColor,display:"inline-flex",justifyContent:"center",position:"absolute"},beaconWrapper:{...CP,display:"inline-flex",borderRadius:"50%",position:"relative"},beacon:{height:t.beaconSize,width:t.beaconSize},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${kU(t.primaryColor).join(",")}, 0.2)`,border:`2px solid ${t.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},buttonBack:{...du,color:t.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...du,color:t.textColor,height:12,padding:8,position:"absolute",right:0,top:0,width:12},buttonPrimary:{...du,backgroundColor:t.primaryColor,color:t.backgroundColor},buttonSkip:{...du,color:t.textColor,fontSize:14},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:"100%",transition:"opacity 0.3s"},loader:{alignItems:"center",display:"flex",height:48,inset:0,justifyContent:"center",pointerEvents:"none",position:"fixed",width:48,zIndex:t.zIndex+1},overlay:{...i,backgroundColor:t.overlayColor},spotlight:{},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:12,position:"relative",width:s},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{paddingBottom:12,paddingTop:12},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end"},tooltipFooterSpacer:{flex:1}},r)}const RU=["after","arrowBase","arrowColor","arrowSize","arrowSpacing","backgroundColor","beaconSize","beaconTrigger","before","beforeTimeout","buttons","closeButtonAction","skipBeacon","dismissKeyAction","disableFocusTrap","hideOverlay","skipScroll","blockTargetInteraction","loaderDelay","offset","overlayClickAction","overlayColor","primaryColor","scrollDuration","scrollOffset","showProgress","spotlightPadding","spotlightRadius","targetWaitTimeout","textColor","width","zIndex"];function dv(e,t){if(!t)return null;const n=po(gU,Jx(e,"arrowComponent","beaconComponent","floatingOptions","loaderComponent","locale","styles","tooltipComponent"),t),r=po(pU,e.options??{},Jx(t,...RU)),s=PU(e,{...n,...r}),i=po(mU,e.floatingOptions??{},n.floatingOptions??{});return{...n,...r,locale:po(EP,e.locale??{},n.locale||{}
415),floatingOptions:i,spotlightPadding:AU(r.spotlightPadding),styles:s}}function AU(e){return typeof e=="number"?{top:e,right:e,bottom:e,left:e}:{top:(e==null?void 0:e.top)??0,right:(e==null?void 0:e.right)??0,bottom:(e==null?void 0:e.bottom)??0,left:(e==null?void 0:e.left)??0}}function OU(e,t,n){const{action:r}=t,s=n&&[ce.PREV,ce.NEXT].includes(r);return e.skipBeacon||e.placement==="center"||s}function kP(e,t=!1){return xt.plainObject(e)?e.target?!0:(st(t,"tour","target is missing from the step"),!1):(st(t,"tour","step must be an object"),!1)}function PP(e,t=!1){return xt.array(e)?e.every(n=>kP(n,t)):(st(t,"tour","steps must be an array"),!1)}var jU=class{constructor(e){ve(this,"beaconPosition",null);ve(this,"debug");ve(this,"eventListeners",new Map);ve(this,"listeners",new Set);ve(this,"props");ve(this,"snapshot");ve(this,"state");ve(this,"steps");ve(this,"tooltipPosition",null);ve(this,"cleanupPositionData",()=>{this.beaconPosition=null,this.tooltipPosition=null});ve(this,"getPositionData",e=>e==="beacon"?this.beaconPosition:this.tooltipPosition);ve(this,"getServerSnapshot",()=>this.snapshot);ve(this,"getSnapshot",()=>this.snapshot);ve(this,"getEventState",()=>Nd(this.snapshot,"positioned"));ve(this,"getState",()=>Nd(this.snapshot,"positioned"));ve(this,"setPositionData",(e,t)=>{var r,s,i;((r=e==="beacon"?this.beaconPosition:this.tooltipPosition)==null?void 0:r.placement)!==t.placement&&st(this.debug,`step:${this.state.index}`,"positioned",`${e} ${t.placement}`),e==="beacon"?this.beaconPosition=t:this.tooltipPosition=t,(this.state.lifecycle===K.BEACON_BEFORE||this.state.lifecycle===K.TOOLTIP_BEFORE)&&!this.state.positioned&&this.updateState({positioned:!0});const n=(i=(s=this.getStep())==null?void 0:s.floatingOptions)==null?void 0:i.onPosition;n&&n(t)});ve(this,"setSteps",e=>{this.steps=e,this.updateState({size:e.length})});ve(this,"dispatch",(e,t)=>{const n=this.eventListeners.get(e.type);if(n)for(const r of n)try{r(e,t)}catch{}});ve(this,"on",(e,t)=>{let n=this.eventListeners.get(e);return n||(n=new Set,this.eventListeners.set(e,n)),n.add(t),()=>{n.delete(t)}});ve(this,"subscribe",e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}));ve(this,"updateState",(e,t=!1)=>{const{controlled:n,index:r}=this.state,s=this.snapshot,i=n&&!t&&e.index!==void 0?r:e.index??r,o={action:e.action??this.state.action,controlled:n,index:i,lifecycle:e.lifecycle??this.state.lifecycle,origin:e.origin??null,positioned:e.positioned??this.state.positioned,scrolling:e.scrolling??this.state.scrolling,size:e.size??this.state.size,status:e.status??this.state.status,waiting:e.waiting??this.state.waiting},a=this.applyTransitions(o);if(this.state=a,!ev(s,a)){this.snapshot=Object.freeze({...a});for(const l of this.listeners)l(this.snapshot)}});const{initialStepIndex:t,stepIndex:n,steps:r=[]}=e??{},s=xt.number(n);let i=0;this.debug=(e==null?void 0:e.debug)??!1,s?(i=n,xt.number(t)&&st(this.debug,"tour","initialStepIndex is ignored in controlled mode")):xt.number(t)&&(t>=0&&t<r.length?i=t:r.length>0&&st(this.debug,"tour","initialStepIndex is out of bounds")),this.props=e??{steps:[]},this.steps=r,this.state={action:ce.INIT,controlled:s,index:i,lifecycle:K.INIT,origin:null,positioned:!1,scrolling:!1,size:r.length,status:r.length?oe.READY:oe.IDLE,waiting:!1},this.snapshot=Object.freeze({...this.state})}applyTransitions(e){return e.status===oe.WAITING&&e.size>0?{...e,status:oe.RUNNING}:e}getStep(e){return dv(this.props,this.steps[e??this.state.index])}};function IU(e){return new jU(e)}function nb(e,t){return Math.min(Math.max(e,0),t)}function NU(e,t,n){const r=y.useRef(t),s=y.useRef(n);return r.current=t,s.current=n,y.useMemo(()=>{const i=()=>e.current.getSnapshot();return{close:(m=null)=>{const{index:g,status:x}=i();x===oe.RUNNING&&e.current.updateState({action:ce.CLOSE,index:g+1,origin:m,lifecycle:K.COMPLETE,positioned:!1,scrolling:!1,waiting:!1})},go:m=>{const{controlled:g,size:x,status:_}=i();if(g){st(r.current,"tour","go() is not supported in controlled mode");return}_===oe.RUNNING&&e.current.updateState({action:ce.GO,index:m,lifecycle:K.COMPLETE,positioned:!1,scrolling:!1,status:m<x?_:oe.FINISHED,waiting:!1})},info:()=>Nd(e.current.getSnapshot(),"positioned"),next:m=>{const{index:g,size:x,status:_}=i();_===oe.RUNNING&&e.current.updateState({action:ce.NEXT,index:nb(g+1,x),lifecycle:K.COMPLETE,origin:m,positioned:!1,scrolling:!1,waiting:!1})},open:()=>{const{status:m}=i();m===oe.RUNNING&&e.current.updateState({action:ce.UPDATE,lifecycle:K.TOOLTIP_BEFORE,positioned:!1,scrolling:!1,waiting:!1})},prev:m=>{const{index:g,size:x,status:_}=i();_===oe.RUNNING&&e.current.updateState({action:ce.PREV,index:nb(g-1,x),lifecycle:K.COMPLETE,origin:m,positioned:!1,scrolling:!1,waiting:!1})},replay:m=>{const{lifecycle:g,status:x}=i();x!==oe.RUNNING||g!==K.TOOLTIP||e.current.updateState({action:ce.REPLAY,lifecycle:K.COMPLETE,origin:m,positioned:!1,scrolling:!1,waiting:!1})},reset:(m=!1)=>{const{controlled:g}=i();if(g){st(r.current,"tour","reset() is not supported in controlled mode");return}s.current(),e.current.updateState({action:ce.RESET,index:0,lifecycle:K.INIT,positioned:!1,scrolling:!1,status:m?oe.RUNNING:oe.READY,waiting:!1})},skip:m=>{const{status:g}=i();g===oe.RUNNING&&e.current.updateState({action:ce.SKIP,lifecycle:K.COMPLETE,origin:m,positioned:!1,scrolling:!1,status:oe.SKIPPED,waiting:!1})},start:m=>{const{index:g,size:x}=i();s.current(),e.current.updateState({action:ce.START,index:xt.number(m)?m:g,lifecycle:K.INIT,positioned:!1,scrolling:!1,status:x?oe.RUNNING:oe.WAITING,waiting:!1},!0)},stop:(m=!1)=>{const{index:g,status:x}=i();[oe.FINISHED,oe.SKIPPED].includes(x)||e.current.updateState({action:ce.STOP,index:g+(m?1:0),lifecycle:K.COMPLETE,positioned:!1,scrolling:!1,status:oe.PAUSED,waiting:!1})}}},[e])}const LU=new Set(["origin","positioned"]);function DU(e,t){const n=y.useRef(null);y.useEffect(()=>{if(!t)return;const r=e.current.getSnapshot();return st(!0,"tour","init",r),n.current=r,e.current.subscribe(s=>{const i=n.current;if(n.current=s,!i)return;const o={};let a=!1;for(const l of Object.keys(s))s[l]!==i[l]&&!LU.has(l)&&(o[l]={from:i[l],to:s[l]},(l==="status"||l==="size")&&(a=!0));Object.keys(o).length&&(!a&&s.index>=s.size||st(!0,a?"tour":`step:${s.index}`,"state",o))})},[t,e])}function MU(e,t,n){const r=y.useRef(e),s=y.useRef(t);return r.current=e,s.current=t,y.useCallback((i,o,a)=>{var c;const l={...n.current.getEventState(),error:null,scroll:null,step:o,type:i,...a};(c=r.current)==null||c.call(r,l,s.current),n.current.dispatch(l,s.current)},[n])}function is(e,t){return{hasChanged(n){return e[n]!==t[n]},hasChangedTo(n,r){const s=e[n],i=t[n];return Array.isArray(r)?r.includes(s)&&!r.includes(i):s===r&&i!==r},previous:t}}function $U(e){const{addFailure:t,controls:n,emitEvent:r,previousState:s,props:i,state:o,step:a,store:l}=e,{action:c,index:u,lifecycle:d,positioned:h,scrolling:p,size:w,status:v}=o,b=eP(a)??null,m=y.useRef(null),g=y.useRef(i),x=y.useRef(o),_=y.useRef(s),E=y.useRef(a),S=y.useRef(b),T=y.useRef(n),C=y.useRef(null),P=y.useRef(null),R=y.useRef(null);g.current=i,x.current=o,_.current=s,E.current=a,S.current=b,T.current=n;const $=()=>{C.current&&(clearInterval(C.current),C.current=null),P.current=null,R.current&&(R.current.cancel(),R.current=null)};y.useEffect(()=>{if(!_.current)return;const{hasChangedTo:A}=is(x.current,_.current),B=A("action",[ce.NEXT,ce.PREV,ce.SKIP,ce.CLOSE,ce.REPLAY]),D=c===ce.START&&(m.current===ce.CLOSE||m.current===ce.REPLAY);
415(B||D)&&(m.current=c)},[c]),y.useEffect(()=>{if(!_.current)return()=>{$()};const{hasChanged:A}=is(x.current,_.current),B=E.current;if(A("index")&&$(),v!==oe.RUNNING||!B||d!==K.INIT)return()=>{$()};const{hasChangedTo:D}=is(x.current,_.current);D("status",oe.RUNNING)&&[oe.IDLE,oe.READY,oe.PAUSED].includes(_.current.status)&&r(nt.TOUR_START,B),l.current.cleanupPositionData();const{debug:W}=g.current;if(B.before&&!R.current){st(W,`step:${u}`,"before()",B),R.current={cancel:()=>{}},l.current.updateState({waiting:!0}),r(nt.STEP_BEFORE_HOOK,B,{action:m.current??x.current.action});const H=()=>{R.current=null,l.current.updateState({action:m.current??x.current.action,waiting:!1,lifecycle:K.READY})},F=new AbortController,k=B.beforeTimeout;R.current={cancel:()=>F.abort()};const O=k?setTimeout(()=>{F.signal.aborted||(st(W,`step:${u}`,"before()","timed out",`${k}ms`),F.abort(),t(B,"before_hook"),r(nt.ERROR,B,{error:new Error("Step before hook timed out")}),H())},k):null;B.before({...l.current.getState(),action:m.current??l.current.getState().action,step:B}).then(()=>{F.signal.aborted||(O&&clearTimeout(O),H())}).catch(U=>{F.signal.aborted||(O&&clearTimeout(O),t(B,"before_hook"),r(nt.ERROR,B,{error:U instanceof Error?U:new Error(String(U))}),H())})}else if(!R.current){C.current&&P.current!==B.target&&$();const H=fn(B.target);if(H&&uu(H))$(),l.current.updateState({action:m.current??ce.UPDATE,lifecycle:K.READY,waiting:!1});else if(B.targetWaitTimeout===0)l.current.updateState({action:m.current??ce.UPDATE,lifecycle:K.READY,waiting:!1});else if(!C.current){const{targetWaitTimeout:F}=B,k=Date.now();P.current=B.target,st(W,`step:${u}`,"polling","started",`${F}ms`),l.current.updateState({waiting:!0}),C.current=setInterval(()=>{const O=fn(B.target),U=Date.now()-k,X=U>=F;(O&&uu(O)||X)&&(st(W,`step:${u}`,"polling",O&&uu(O)?"found":"timed out",`${U}ms`),$(),l.current.updateState({action:m.current??ce.UPDATE,lifecycle:K.READY,waiting:!1}))},100)}}return()=>{$()}},[t,r,u,d,v,l]),y.useEffect(()=>{if(!_.current)return;const{hasChanged:A,hasChangedTo:B,previous:D}=is(x.current,_.current),W=E.current;if(!W)return;const H=fn(W.target),F=!!H;if(F&&uu(H)){if(B("lifecycle",K.READY)&&D.lifecycle===K.INIT&&r(nt.STEP_BEFORE,W,{action:m.current??x.current.action}),B("lifecycle",K.READY)){const k=x.current,O=OU(W,k,g.current.continuous)?K.TOOLTIP:K.BEACON,U=fn(W.scrollTarget??W.spotlightTarget??W.target),X=eb({isFirstStep:k.index===0,scrollToFirstStep:g.current.scrollToFirstStep,step:W,target:U,targetLifecycle:O}),J=O===K.TOOLTIP?K.TOOLTIP_BEFORE:K.BEACON_BEFORE;st(g.current.debug,`step:${u}`,"scroll",X?"needed":"skipped"),l.current.updateState({action:ce.UPDATE,lifecycle:J,scrolling:X})}}else if(x.current.status===oe.RUNNING&&d!==K.INIT&&d!==K.COMPLETE&&A("lifecycle")){st(g.current.debug,`step:${u}`,F?"Target not visible":"Target not mounted",W),t(W,"target_not_found"),r(nt.TARGET_NOT_FOUND,W);const k=x.current;k.controlled||l.current.updateState({action:ce.UPDATE,index:k.index+(k.action===ce.PREV?-1:1),lifecycle:K.INIT})}},[t,r,u,d,l]),y.useEffect(()=>{if(!_.current)return;const{hasChangedTo:A,previous:B}=is(x.current,_.current),D=E.current,W=S.current;if(D&&A("lifecycle",K.TOOLTIP_BEFORE)&&B.lifecycle===K.BEACON){const k=fn(D.scrollTarget??D.spotlightTarget??D.target);if(eb({isFirstStep:x.current.index===0,scrollToFirstStep:g.current.scrollToFirstStep,step:D,target:k,targetLifecycle:K.TOOLTIP})){l.current.updateState({scrolling:!0,positioned:!1});return}}const H=d===K.BEACON_BEFORE||d===K.TOOLTIP_BEFORE;if(D&&H&&!p){const k=d===K.TOOLTIP_BEFORE?K.TOOLTIP:K.BEACON;l.current.updateState({action:ce.UPDATE,lifecycle:k})}D&&A("lifecycle",K.BEACON)&&r(nt.BEACON,D),D&&A("lifecycle",K.TOOLTIP)&&r(nt.TOOLTIP,D);const F=x.current;if((F.status===oe.RUNNING||F.controlled&&F.status===oe.PAUSED&&D)&&W&&A("lifecycle",K.COMPLETE)&&B.lifecycle===K.TOOLTIP&&(r(nt.STEP_AFTER,W,{action:m.current??ce.UPDATE,index:B.index??F.index,lifecycle:F.lifecycle}),W.after)){r(nt.STEP_AFTER_HOOK,W,{action:m.current??ce.UPDATE,index:B.index??F.index,lifecycle:F.lifecycle});try{W.after({...l.current.getState(),action:m.current??ce.UPDATE,index:B.index??F.index,lifecycle:F.lifecycle,step:W})}catch{}}},[r,d,h,p,l]),y.useEffect(()=>{if(!_.current)return;const{hasChangedTo:A,previous:B}=is(x.current,_.current),D=E.current,W=S.current;if(A("action",ce.REPLAY)&&A("lifecycle",K.COMPLETE)){l.current.updateState({lifecycle:K.INIT});return}w&&!D&&d===K.INIT&&l.current.updateState({action:ce.UPDATE,lifecycle:K.COMPLETE,status:oe.FINISHED}),!x.current.controlled&&v===oe.RUNNING&&A("lifecycle",K.COMPLETE)&&u<w&&l.current.updateState({action:ce.UPDATE,lifecycle:K.INIT}),A("lifecycle",K.COMPLETE)&&u>=w&&l.current.updateState({action:ce.UPDATE,lifecycle:K.COMPLETE,status:oe.FINISHED});const H=D??W??dv(g.current,g.current.steps[u-1]);if(H&&A("status",[oe.FINISHED,oe.SKIPPED])){let F;D?F=u:W?F=B.index??u:F=u-1,r(nt.TOUR_END,H,{index:F}),x.current.controlled||T.current.reset(),m.current=null}D&&A("action",ce.STOP)&&(m.current=null,r(nt.TOUR_STATUS,D)),D&&A("action",ce.RESET)&&(r(nt.TOUR_STATUS,D),m.current=null)},[c,r,u,d,w,v,l])}function VU({controls:e,emitEvent:t,props:n,state:r,store:s}){const{debug:i,initialStepIndex:o,run:a,stepIndex:l,steps:c}=n,u=y.useRef(void 0),d=y.useRef(r),h=y.useRef(e);d.current=r,h.current=e,y.useEffect(()=>{const p=u.current;if(u.current=n,!p||n===p)return;const{hasChanged:w}=is(n,p);if(ev(p.steps,c)||(PP(c,i)?s.current.setSteps(c):(st(i,"tour","Steps are not valid",c),t(nt.ERROR,c[0]??{target:"",content:""},{error:new Error("Steps are not valid")}))),w("run"))a?s.current.getState().size&&h.current.start(l??o):h.current.stop();
415else if(xt.number(l)&&w("stepIndex")){const v=xt.number(p.stepIndex)&&p.stepIndex<l?ce.NEXT:ce.PREV;[oe.FINISHED,oe.SKIPPED].includes(d.current.status)||s.current.updateState({action:v,index:l,lifecycle:K.INIT,positioned:!1},!0)}},[i,t,o,n,a,l,c,s])}function FU(e,t){var a,l,c,u;const{beaconPosition:n,lifecycle:r,scrollOffset:s,step:i}=t;if(i.scrollTarget||i.spotlightTarget)return Math.max(0,e);let o=e-i.spotlightPadding.top;if(r===K.BEACON_BEFORE&&(n!=null&&n.placement)){const d=BU(n);["bottom"].includes(n.placement)||(o+=Math.floor(d-s))}else if(r===K.TOOLTIP_BEFORE){const{placement:d}=i;if(d==="top"){const h=((a=document.querySelector(".react-joyride__floater"))==null?void 0:a.getBoundingClientRect().height)??0,p=(l=i.floatingOptions)!=null&&l.hideArrow?0:i.arrowSize,w=i.offset+i.spotlightPadding.top+p;o-=h+w}else if(d==="left"||d==="right"){const h=((c=document.querySelector(".react-joyride__floater"))==null?void 0:c.getBoundingClientRect().height)??0,p=((u=fn(i.target))==null?void 0:u.getBoundingClientRect().height)??0,w=s+i.spotlightPadding.top+p/2-h/2;w<s&&(o-=s-w)}}return Math.max(0,o)}function BU(e){var n;const t=(n=e.middlewareData)==null?void 0:n.offset;return t?["left","right"].some(r=>e.placement.startsWith(r))?t.x:t.y:0}function UU({emitEvent:e,previousState:t,props:n,state:r,step:s,store:i}){const{index:o,lifecycle:a,positioned:l,scrolling:c,status:u}=r,d=y.useRef(null),h=y.useRef(r),p=y.useRef(t),w=y.useRef(n),v=y.useRef(s);h.current=r,p.current=t,w.current=n,v.current=s,y.useEffect(()=>()=>{var b;(b=d.current)==null||b.call(d)},[]),y.useEffect(()=>{var E;if(!p.current||!v.current)return;const{hasChangedTo:b}=is(h.current,p.current),m=v.current,{debug:g}=w.current,{scrollDuration:x}=m,_=a===K.BEACON_BEFORE||a===K.TOOLTIP_BEFORE;if(u===oe.RUNNING&&_&&c&&b("positioned",!0)){const S=fn(m.scrollTarget??m.spotlightTarget??m.target),T=i.current.getPositionData("beacon"),C=va(S),P=C?!C.isSameNode(Ft()):!1;(E=d.current)==null||E.call(d),(async()=>{if(P&&!wa(C)){const F=Ft(),k=SU(C),O={initial:F.scrollTop,target:k,element:F,duration:x};e(nt.SCROLL_START,m,{scroll:O});const{cancel:U,promise:X}=tb(k,{element:F,duration:x});d.current=U,await X,e(nt.SCROLL_END,m,{scroll:O})}const $=Math.floor(TU(S,m.scrollOffset))||0,A=P?$:FU($,{beaconPosition:T,lifecycle:a,scrollOffset:m.scrollOffset,step:m});st(g,`step:${o}`,"scroll",P?"custom":"document",`${$} â ${A}`);const B=C,D={initial:B.scrollTop,target:A,element:B,duration:x};e(nt.SCROLL_START,m,{scroll:D});const{cancel:W,promise:H}=tb(A,{element:B,duration:x});d.current=W,await H,e(nt.SCROLL_END,m,{scroll:D}),i.current.updateState({scrolling:!1})})().catch(()=>{i.current.updateState({scrolling:!1})})}},[e,o,a,l,c,u,i])}function zU(e){const t=m5(()=>xU(yU,e),[e]),{debug:n,initialStepIndex:r,onEvent:s,run:i,stepIndex:o,steps:a}=t,l=y.useRef(IU(t)),c=k5.useSyncExternalStore(l.current.subscribe,l.current.getSnapshot,l.current.getServerSnapshot),[u,d]=y.useState([]),h=y.useCallback((E,S)=>{d(T=>[...T,{reason:S,step:E}])},[]),p=y.useCallback(()=>{d([])},[]);DU(l,n);const w=NU(l,n,p),v=MU(s,w,l),{index:b,size:m,status:g}=c,x=eP(c),_=y.useMemo(()=>dv(t,a[b]),[b,t,a]);return g5(()=>{i&&m&&PP(a,n)&&w.start(o??r)}),p5(()=>{i&&m&&g===oe.IDLE&&l.current.updateState({status:oe.READY})},[i,m,g]),VU({controls:w,emitEvent:v,props:t,state:c,store:l}),$U({addFailure:h,controls:w,emitEvent:v,previousState:x,props:t,state:c,step:_,store:l}),UU({emitEvent:v,previousState:x,props:t,state:c,step:_,store:l}),{controls:w,failures:u,mergedProps:t,state:c,step:_,store:l}}function WU(e){const[t,n]=y.useState(null);return y.useEffect(()=>{let r=null,s=!1;if(e)if(xt.domElement(e))r=e,s=!0;else{const i=document.querySelector(e);i&&(r=i)}else{const i=document.createElement("div");i.id=vU,document.body.appendChild(i),r=i}return n(r),()=>{!r||s||r.parentNode===document.body&&document.body.removeChild(r)}},[e]),t}const HU={animation:"joyride-loader-spin 1s linear infinite",border:"5px solid rgba(0, 0, 0, 0.1)",borderRadius:"50%",borderTopColor:"#555"};function KU({nonce:e,step:t}){const{loaderComponent:n}=t,r=!!n;
415if(y.useEffect(()=>{if(r||document.getElementById("joyride-loader-animation"))return Gl;const l=document.createElement("style");return l.id="joyride-loader-animation",e&&l.setAttribute("nonce",e),l.appendChild(document.createTextNode(` 416 @keyframes joyride-loader-spin { 417 to { transform: rotate(360deg); } 418 } 419 `)),document.head.appendChild(l),()=>{const c=document.getElementById("joyride-loader-animation");c!=null&&c.parentNode&&c.parentNode.removeChild(c)}},[r,e]),n===null)return null;const{height:s,width:i,...o}=t.styles.loader;let a;if(n){const l=n;a=j.createElement(l,{step:t})}else a=j.createElement("div",{style:{...HU,height:s,width:i,borderTopColor:t.primaryColor}});return j.createElement("div",{className:"react-joyride__loader","data-testid":"loader",style:o},a)}const qU={height:0,isFixed:!1,left:0,top:0,width:0};function za(e,t){const n=fn(e);if(!n)return qU;const r=uv(n),s=wa(n),i=EU(n,t.top,s);return{height:Math.round(((r==null?void 0:r.height)??0)+t.top+t.bottom),isFixed:s,left:Math.round(((r==null?void 0:r.left)??0)-t.left),top:i,width:Math.round(((r==null?void 0:r.width)??0)+t.left+t.right)}}function GU(e,t,n){const[r,s]=y.useState(()=>za(e,t)),i=y.useRef(void 0),o=y.useRef(null),a=y.useRef(n),l=y.useRef(null),c=y.useCallback(()=>{clearTimeout(i.current),i.current=window.setTimeout(()=>{s(d=>{const h=za(e,t);return d.top===h.top&&d.left===h.left&&d.width===h.width&&d.height===h.height&&d.isFixed===h.isFixed?d:h})},100)},[e,t]);y.useEffect(()=>{let d=null;const h=w=>{o.current=va(w,!0),o.current&&o.current.addEventListener("scroll",c,{passive:!0}),window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),typeof ResizeObserver<"u"&&(l.current=new ResizeObserver(c),l.current.observe(w)),s(za(e,t))},p=fn(e);return p?h(p):(d=new MutationObserver(()=>{const w=fn(e);w&&(d==null||d.disconnect(),d=null,h(w))}),d.observe(document.body,{childList:!0,subtree:!0})),()=>{var w;d==null||d.disconnect(),o.current&&o.current.removeEventListener("scroll",c),window.removeEventListener("scroll",c),window.removeEventListener("resize",c),(w=l.current)==null||w.disconnect(),clearTimeout(i.current)}},[e,t,c]),y.useEffect(()=>{a.current&&!n&&s(za(e,t)),a.current=n},[n,e,t]);let u=r;return a.current&&!n&&(u=za(e,t)),u}function YU(e,t,n){let r=`M0 0H${e}V${t}H0Z`;return n&&(r+=` ${n}`),r}function rb(e,t,n,r,s){if(n<=0||r<=0)return"";const i=Math.max(0,Math.min(s,n/2,r/2));let o=`M${e+i} ${t}`;return o+=`H${e+n-i}`,o+=`A${i} ${i} 0 0 1 ${e+n} ${t+i}`,o+=`V${t+r-i}`,o+=`A${i} ${i} 0 0 1 ${e+n-i} ${t+r}`,o+=`H${e+i}`,o+=`A${i} ${i} 0 0 1 ${e} ${t+r-i}`,o+=`V${t+i}`,o+=`A${i} ${i} 0 0 1 ${e+i} ${t}Z`,o}const QU=[K.BEACON_BEFORE,K.BEACON];function JU(e){var H,F;const{blockTargetInteraction:t,continuous:n,hideOverlay:r,lifecycle:s,onClickOverlay:i,overlayClickAction:o,placement:a,portalElement:l,scrolling:c,spotlightPadding:u,spotlightRadius:d,spotlightTarget:h,styles:p,target:w,waiting:v}=e,b=y5(),m=GU(h??w,u,c||v),g=y.useRef(null),x=(s===K.TOOLTIP||s===K.TOOLTIP_BEFORE)&&a!=="center",[_,E]=y.useState(!1),S=l?(H=g.current)==null?void 0:H.offsetParent:null,T=(S==null?void 0:S.clientWidth)??b.width,C=(S==null?void 0:S.clientHeight)??_U()??b.height,P=((F=p.overlay)==null?void 0:F.backgroundColor)??"rgba(0, 0, 0, 0.5)",R=y.useMemo(()=>{const{backgroundColor:k,mixBlendMode:O,...U}=p.overlay;return{height:C,pointerEvents:"none",...U}},[C,p.overlay]),$=x&&!c&&!v;y.useEffect(()=>{$?requestAnimationFrame(()=>E(!0)):E(!1)},[$]);const A=n&&QU.includes(s),B=!n&&s!==K.TOOLTIP;if(r||!v&&(A||B))return null;let D="";if($)if(l&&S){const k=fn(h??w);if(k){const O=Zx(k),U=Zx(S);D=rb(O.left-U.left-u.left,O.top-U.top-u.top,k.offsetWidth+u.left+u.right,k.offsetHeight+u.top+u.bottom,d)}}else D=rb(m.left,m.top,m.width,m.height,d);const W=YU(T,C,D);return j.createElement("div",{ref:g,"aria-hidden":"true",className:"react-joyride__overlay","data-testid":"overlay",style:R},j.createElement("svg",{className:"react-joyride__spotlight","data-testid":"spotlight",style:{height:C,left:0,position:m.isFixed?"fixed":"absolute",top:0,width:T}},j.createElement("path",{d:W,fill:P,fillRule:"evenodd",onClick:i,style:{cursor:o?"pointer":"default",pointerEvents:"auto"}}),D&&j.createElement("path",{d:D,fill:P,style:{opacity:_?0:1,pointerEvents:t?"auto":"none",transition:"opacity 0.2s"}}),D&&Object.keys(p.spotlight).length>0&&j.createElement("path",{d:D,fill:"none",style:{pointerEvents:"none"},...p.spotlight})))}function RP(e){const{children:t,element:n}=e;return n?Mi.createPortal(t,n):null}const XU='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), area[href], [tabindex]:not
419([tabindex="-1"]), [contenteditable]';function ZU(e,t){const n=y.useRef(null);y.useEffect(()=>{if(!e)return Gl;n.current=document.activeElement;const r=i=>{if(i.key!=="Tab")return;const o=[...e.querySelectorAll(XU)],{shiftKey:a}=i;if(!o.length)return;i.preventDefault();let l=document.activeElement?o.indexOf(document.activeElement):0;l===-1||!a&&l+1===o.length?l=0:a&&l===0?l=o.length-1:l+=a?-1:1,o[l].focus()};e.addEventListener("keydown",r,!1);let s;{const i=e.querySelector(t);i&&(s=setTimeout(()=>{i.focus({preventScroll:!0})},100))}return()=>{var i;e.removeEventListener("keydown",r),s!==void 0&&clearTimeout(s),(i=n.current)==null||i.focus({preventScroll:!0})}},[e,t])}function Sr(e,t,n){const[r]=e.split("-");switch(r){case"top":case"bottom":return{width:t,height:n};case"left":case"right":return{width:n,height:t};default:return null}}function e8(e,t,n){const[r]=e.split("-");switch(r){case"top":return{points:`0,0 ${t/2},${n} ${t},0`,...Sr(e,t,n)};case"bottom":return{points:`${t},${n} ${t/2},0 0,${n}`,...Sr(e,t,n)};case"left":return{points:`0,0 ${n},${t/2} 0,${t}`,...Sr(e,t,n)};case"right":return{points:`${n},${t} ${n},0 0,${t/2}`,...Sr(e,t,n)};default:return null}}function t8(e,t,n,r){if(!t)return{};const[s]=e.split("-");switch(s){case"top":return{bottom:-n,left:t.x??0,...Sr(e,r,n)};case"bottom":return{top:-n,left:t.x??0,...Sr(e,r,n)};case"left":return{right:-n,top:t.y??0,...Sr(e,r,n)};case"right":return{left:-n,top:t.y??0,...Sr(e,r,n)};default:return{}}}function n8({arrowComponent:e,arrowRef:t,base:n,placement:r,position:s,size:i,styles:o}){const a=e;let l=null;if(a){if(!Sr(r,n,i))return null;l=j.createElement("span",{style:{flexShrink:0}},j.createElement(a,{base:n,placement:r,size:i}))}else{const c=e8(r,n,i);if(!c)return null;l=j.createElement("svg",{height:c.height,width:c.width,xmlns:"http://www.w3.org/2000/svg"},j.createElement("polygon",{fill:"currentColor",points:c.points}))}return j.createElement("span",{ref:t,className:"react-joyride__arrow","data-testid":"arrow",style:{...o,...t8(r,s,i,n),...s?{}:{visibility:"hidden"}}},l)}function r8(e){const{beaconComponent:t,continuous:n,index:r,isLastStep:s,locale:i,nonce:o,onInteract:a,shouldFocus:l,size:c,step:u,styles:d}=e,h=y.useRef(null),p=!!t;y.useEffect(()=>{if(p||document.getElementById("joyride-beacon-animation"))return Gl;const b=document.createElement("style");b.id="joyride-beacon-animation",o&&b.setAttribute("nonce",o),b.appendChild(document.createTextNode(` 420 @keyframes joyride-beacon-inner { 421 20% { 422 opacity: 0.9; 423 } 424 425 90% { 426 opacity: 0.7; 427 } 428 } 429 430 @keyframes joyride-beacon-outer { 431 0% { 432 transform: scale(1); 433 } 434 435 45% { 436 opacity: 0.7; 437 transform: scale(0.75); 438 } 439 440 100% { 441 opacity: 0.9; 442 transform: scale(1); 443 } 444 } 445 `)),document.head.appendChild(b);const m=setTimeout(()=>{xt.domElement(h.current)&&l&&h.current.focus()},0);return()=>{clearTimeout(m);const g=document.getElementById("joyride-beacon-animation");g!=null&&g.parentNode&&g.parentNode.removeChild(g)}},[p,o,l]);const w=xr(i.open);let v;if(t){const b=t;v=j.createElement(b,{continuous:n,index:r,isLastStep:s,size:c,step:u})}else v=j.createElement("span",{style:d.beacon},j.createElement("span",{style:d.beaconOuter}),j.createElement("span",{style:d.beaconInner}));return j.createElement("button",{ref:h,"aria-label":w,className:"react-joyride__beacon","data-testid":"button-beacon",onClick:a,onMouseEnter:a,style:d.beaconWrapper,title:w,type:"button"},v)}function s8({styles:e,...t}){const{color:n,height:r,width:s,...i}=e;return j.createElement("button",{style:i,type:"button",...t},j.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof s=="number"?`${s}px`:s,xmlns:"http://www.w3.org/2000/svg"},j.createElement("g",null,j.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}function i8(e){const{backProps:t,closeProps:n,index:r,isLastStep:s,primaryProps:i,skipProps:o,step:a,tooltipProps:l}=e,{buttons:c,content:u,styles:d,title:h}=a,p={};c.includes("primary")&&(p.primary=j.createElement("button",{"data-testid":"button-primary",style:d.buttonPrimary,type:"button",...i})),c.includes("skip")&&!s&&(p.skip=j.createElement("button",{"aria-live":"off","data-testid":"button-skip",style:d.buttonSkip,type:"button",...o})),c.includes("back")&&r>0&&(p.back=j.createElement("button",{"data-testid":"button-back",style:d.buttonBack,type:"button",...t})),p.close=c.includes("close")&&j.createElement(s8,{"data-testid":"button-close",styles:d.buttonClose,...n});const w=h?{"aria-labelledby":"joyride-tooltip-title","aria-describedby":"joyride-tooltip-content"}:{"aria-label":xr(u),"aria-describedby":"joyride-tooltip-content"};return j.createElement("div",{key:"JoyrideTooltip",className:"react-joyride__tooltip","data-joyride-step":r,...a.id&&{"data-joyride-id":a.id},style:d.tooltip,...l,...w},j.createElement("div",{style:d.tooltipContainer},h&&j.createElement("h4",{id:"joyride-tooltip-title",style:d.tooltipTitle},h),j.createElement("div",{id:"joyride-tooltip-content",style:d.tooltipContent},u)),c.some(v=>v==="back"||v==="primary"||v==="skip")&&j.createElement("div",{style:d.tooltipFooter},j.createElement("div",{style:d.tooltipFooterSpacer},p.skip),p.back,p.primary),p.close)}function o8(e){const{continuous:t,controls:n,index:r,isLastStep:s,size:i,step:o}=e,a=m=>{m.preventDefault(),n.prev(qt.BUTTON_BACK)},l=m=>{m.preventDefault(),o.closeButtonAction==="skip"?n.skip(qt.BUTTON_CLOSE):o.closeButtonAction==="replay"?n.replay(qt.BUTTON_CLOSE):n.close(qt.BUTTON_CLOSE)},c=m=>{if(m.preventDefault(),!t){n.close(qt.BUTTON_PRIMARY);return}n.next(qt.BUTTON_PRIMARY)},u=m=>{m.preventDefault(),n.skip(qt.BUTTON_SKIP)},d=()=>{const{back:m,close:g,last:x,next:_,nextWithProgress:E,skip:S}=o.locale,T=xr(m),C=xr(g),P=xr(x),R=xr(_),$=xr(S);let A=g,B=C;if(t){if(A=_,B=R,o.showProgress&&!s){const D=xr(E,{step:r+1,steps:i});A=Hm(E,r+1,i),B=D}s&&(A=x,B=P)}return{backProps:{"aria-label":T,children:m,"data-action":"back",onClick:a,role:"button",title:T},closeProps:{"aria-label":C,children:g,"data-action":"close",onClick:l,role:"button",title:C},primaryProps:{"aria-label":B,children:A,"data-action":"primary",onClick:c,role:"button",title:B},skipProps:{"aria-label":$,children:S,"data-action":"skip",onClick:u,role:"button",title:$},tooltipProps:{"aria-modal":!0,role:"alertdialog"}}},{arrowComponent:h,beaconComponent:p,tooltipComponent:w,...v}=o;let b;if(w){const m=w;b=j.createElement(m,{...d(),continuous:t,controls:n,index:r,isLastStep:s,size:i,step:v})}else b=j.createElement(i8,{...d(),continuous:t,controls:n,index:r,isLastStep:s,size:i,step:v});return b}function a8(e){if(e.startsWith("left"))return["top","bottom"];if(e.startsWith("right"))return["bottom","top"]}function l8(e,t,n){var r,s;return e?[fU()]:((r=t.floatingOptions)==null?void 0:r.flipOptions)===!1?[]:[dU({crossAxis:!1,fallbackPlacements:a8(n),padding:20,...(s=t.floatingOptions)==null?void 0:s.flipOptions})]}function c8(e){var O,U,X,J,re;const{continuous:t,controls:n,index:r,lifecycle:s,nonce:i,open:o,portalElement:a,setPositionData:l,setTooltipRef:c,shouldScroll:u,size:d,step:h,target:p,updateState:w}=e,v=y.useRef(null),b=y.useRef({}),m=y.useRef({}
445),g=h.placement==="center",x=h.placement==="auto",_=y.useMemo(()=>({getBoundingClientRect:()=>({x:window.innerWidth/2,y:window.innerHeight/2,top:window.innerHeight/2,left:window.innerWidth/2,bottom:window.innerHeight/2,right:window.innerWidth/2,width:0,height:0})}),[]),E=y.useMemo(()=>TP(p)?va(p):void 0,[p]),S=y.useMemo(()=>wa(p),[p]),T=y.useMemo(()=>E?{boundary:E,rootBoundary:"viewport"}:{},[E]),C=g||x?"bottom":h.placement,P=g?"fixed":((O=h.floatingOptions)==null?void 0:O.strategy)??(h.isFixed||S?"fixed":"absolute"),R=y.useMemo(()=>{var Y,ue,Oe,he;return g?[{name:"center",fn:({rects:dt})=>({x:(window.innerWidth-dt.floating.width)/2,y:(window.innerHeight-dt.floating.height)/2})}]:[Qx(({placement:dt})=>{var sn;let Qe="right";dt.startsWith("top")?Qe="top":dt.startsWith("bottom")?Qe="bottom":dt.startsWith("left")&&(Qe="left");const xn=h.spotlightTarget?0:h.spotlightPadding[Qe];return h.offset+xn+((sn=h.floatingOptions)!=null&&sn.hideArrow?0:h.arrowSize)},[h.offset,h.spotlightPadding,h.spotlightTarget,h.arrowSize,(Y=h.floatingOptions)==null?void 0:Y.hideArrow]),...l8(x,h,C),uU({padding:10,...T,...(ue=h.floatingOptions)==null?void 0:ue.shiftOptions}),...(Oe=h.floatingOptions)!=null&&Oe.hideArrow?[]:[hU({element:v,padding:h.arrowSpacing},[h.arrowSpacing,h.arrowBase])],...((he=h.floatingOptions)==null?void 0:he.middleware)??[]]},[g,h,x,C,T]),$=Yx({...g?{elements:{reference:_}}:{},placement:C,strategy:P,middleware:R}),A=Yx({strategy:P,placement:h.beaconPlacement??(x||g?"bottom":h.placement),middleware:y.useMemo(()=>{var Y,ue;return[Qx(((ue=(Y=h.floatingOptions)==null?void 0:Y.beaconOptions)==null?void 0:ue.offset)??-18)]},[(X=(U=h.floatingOptions)==null?void 0:U.beaconOptions)==null?void 0:X.offset]),whileElementsMounted:Kx});m.current=$.middlewareData,b.current=A.middlewareData,y.useEffect(()=>{var Oe;const{floating:Y,reference:ue}=$.elements;if(!(!ue||!Y||s!==K.TOOLTIP))return Kx(ue,Y,$.update,(Oe=h.floatingOptions)==null?void 0:Oe.autoUpdate)},[s,$.update,(J=h.floatingOptions)==null?void 0:J.autoUpdate,h.target,$.elements]),y.useEffect(()=>{!g&&p&&$.refs.setReference(p),p&&A.refs.setReference(p)},[A.refs,g,p,$.refs]),y.useEffect(()=>{$.isPositioned&&l("tooltip",{placement:$.placement,x:$.x??0,y:$.y??0,middlewareData:m.current})},[l,$.isPositioned,$.placement,$.x,$.y]),y.useEffect(()=>{A.isPositioned&&l("beacon",{placement:A.placement,x:A.x??0,y:A.y??0,middlewareData:b.current})},[l,A.isPositioned,A.placement,A.x,A.y]);const B=h.zIndex+1,D=y.useCallback(Y=>{Y.type==="mouseenter"&&h.beaconTrigger!=="hover"||w({lifecycle:K.TOOLTIP_BEFORE,positioned:!1})},[h.beaconTrigger,w]),W=y.useCallback(Y=>{Y&&($.refs.setFloating(Y),c(Y))},[$.refs,c]),{arrow:H,floater:F}=h.styles;let k=null;if(s===K.TOOLTIP||s===K.TOOLTIP_BEFORE){const Y=Xx({...F,...$.floatingStyles,zIndex:B,opacity:o&&$.isPositioned?1:0,...!o&&{transition:"none"}});k=j.createElement("div",{ref:W,className:"react-joyride__floater","data-testid":"floater",id:`react-joyride-step-${r}`,style:Y},j.createElement(o8,{continuous:t,controls:n,index:r,isLastStep:r+1===d,size:d,step:h}),!g&&!((re=h.floatingOptions)!=null&&re.hideArrow)&&j.createElement(n8,{arrowComponent:h.arrowComponent,arrowRef:v,base:h.arrowBase,placement:$.placement,position:$.middlewareData.arrow,size:h.arrowSize,styles:H}))}else(s===K.BEACON||s===K.BEACON_BEFORE)&&(k=j.createElement("div",{ref:A.refs.setFloating,className:"react-joyride__floater","data-testid":"floater-beacon",id:`react-joyride-step-${r}-beacon`,style:Xx({...A.floatingStyles,zIndex:B})},j.createElement(r8,{beaconComponent:h.beaconComponent,continuous:t,index:r,isLastStep:r+1===d,locale:h.locale,nonce:i,onInteract:D,shouldFocus:u,size:d,step:h,styles:h.styles})));return j.createElement(RP,{element:a},k)}function u8(e){const{continuous:t,controls:n,index:r,lifecycle:s,nonce:i,portalElement:o,setPositionData:a,shouldScroll:l,size:c,step:u,updateState:d}=e,[h,p]=y.useState(null);ZU(u.disableFocusTrap?null:h,"[data-action=primary]");const w=fn(u.target),v=s===K.TOOLTIP;return!kP(u)||!xt.domElement(w)?null:j.createElement(c8,{key:`JoyrideStep-${r}`,continuous:t,controls:n,index:r,lifecycle:s,nonce:i,open:v,portalElement:o,setPositionData:a,setTooltipRef:p,shouldScroll:l,size:c,step:u,target:w,updateState:d})}function d8({controls:e,mergedProps:t,state:n,step:r,store:s}){const{continuous:i,debug:o,nonce:a,portalElement:l,scrollToFirstStep:c}=t,u=WU(l),{index:d,lifecycle:h,status:p}=n,w=p===oe.RUNNING,[v,b]=y.useState(!1),m=y.useRef(null),g=(r==null?void 0:r.loaderDelay)??0;y.useEffect(()=>(n.waiting?g===0?b(!0):m.current=setTimeout(()=>{b(!0)},g):b(!1),()=>{m.current&&(clearTimeout(m.current),m.current=null)}),[g,n.waiting]),y.useEffect(()=>{if(!w)return;const E=S=>{!r||h!==K.TOOLTIP||S.key==="Escape"&&r.dismissKeyAction&&(r.dismissKeyAction==="next"?e.next(qt.KEYBOARD):r.dismissKeyAction==="replay"?e.replay(qt.KEYBOARD):e.close(qt.KEYBOARD))};return document.body.addEventListener("keydown",E,{passive:!0}),()=>{document.body.removeEventListener("keydown",E)}},[e,w,h,r]);const x=y.useCallback(()=>
445{switch(r==null?void 0:r.overlayClickAction){case"close":e.close(qt.OVERLAY);break;case"next":e.next(qt.OVERLAY);break;case"replay":e.replay(qt.OVERLAY);break}},[e,r==null?void 0:r.overlayClickAction]);if(!r||!w)return null;const _=n.action===ce.START&&!r.skipBeacon&&r.placement!=="center";return j.createElement(j.Fragment,null,h!==K.INIT&&j.createElement(u8,{...n,continuous:i,controls:e,debug:o,nonce:a,portalElement:u,setPositionData:s.current.setPositionData,shouldScroll:!r.skipScroll&&(d!==0||c),step:r,updateState:s.current.updateState}),j.createElement(RP,{element:u},j.createElement(j.Fragment,null,v&&j.createElement(KU,{nonce:a,step:r}),!_&&j.createElement(JU,{...r,continuous:i,lifecycle:h,onClickOverlay:x,portalElement:l?u:null,scrolling:n.scrolling,waiting:n.waiting}))))}function f8(e){const{controls:t,failures:n,mergedProps:r,state:s,step:i,store:o}=zU(e);return{controls:t,failures:n,on:y.useCallback((a,l)=>o.current.on(a,l),[o]),state:y.useMemo(()=>Nd(s,"positioned"),[s]),step:i,Tour:cv()?j.createElement(d8,{controls:t,mergedProps:r,state:s,step:i,store:o}):null}}function h8(e){const{Tour:t}=f8(e);return t}function p8(e){return cv()?j.createElement(h8,e):null}const qh="avah_onboarding_tour_v1_",m8=[{target:"body",placement:"center",title:"Welcome to Avah",content:"Take a quick 60-second tour to learn the key parts of the platform. You can skip anytime and replay it later from the Help page."},{target:'[data-tour="buildings"]',title:"Buildings & Units",content:"Start here. Add your buildings, then create the units inside each one. The Matrix gives you a leasing-board view of every unit."},{target:'[data-tour="leads"]',title:"Leads / Inquiries",content:"Every new prospect â from your website, Facebook, RentSync, or manual entry â lands here. Open a lead to message, qualify and route them."},{target:'[data-tour="text-messages"]',title:"Text Messages",content:"Two-way SMS/MMS with leads and tenants. Use templates, attach photos, and set up the auto-responder so nothing slips through."},{target:'[data-tour="applications"]',title:"Applications & Screening",content:"Send a tenant onboarding link from any lead. Applications, credit checks, references and signed agreements are all tracked here."},{target:"body",placement:"center",title:"You're all set",content:"That's the core flow: Buildings â Leads â Messaging â Applications. Replay this tour anytime from the Help page."}];function g8(){const[e,t]=y.useState(null),[n,r]=y.useState(!1);y.useEffect(()=>{let i=!0;const o=c=>{c&&(localStorage.getItem(qh+c)||(localStorage.setItem(qh+c,new Date().toISOString()),setTimeout(()=>r(!0),800)))};xe.auth.getUser().then(({data:c})=>{var d;if(!i)return;const u=((d=c.user)==null?void 0:d.id)??null;t(u),o(u)});const{data:a}=xe.auth.onAuthStateChange((c,u)=>{var h;const d=((h=u==null?void 0:u.user)==null?void 0:h.id)??null;t(d),o(d)}),l=()=>r(!0);return window.addEventListener("avah:start-onboarding-tour",l),()=>{i=!1,a.subscription.unsubscribe(),window.removeEventListener("avah:start-onboarding-tour",l)}},[]);const s=i=>{[oe.FINISHED,oe.SKIPPED,oe.PAUSED].includes(i.status)&&(r(!1),e&&localStorage.setItem(qh+e,new Date().toISOString()))};return e?f.jsx(p8,{steps:m8,run:n,continuous:!0,scrollToFirstStep:!0,onEvent:s,options:{showProgress:!0,skipBeacon:!0,overlayClickAction:!1,primaryColor:"hsl(var(--primary))",backgroundColor:"hsl(var(--popover))",textColor:"hsl(var(--popover-foreground))",arrowColor:"hsl(var(--popover))",overlayColor:"rgba(0,0,0,0.5)",zIndex:1e4},locale:{back:"Back",close:"Close",last:"Finish",next:"Next",skip:"Skip tour"}}):null}function fq(){window.dispatchEvent(new CustomEvent("avah:start-onboarding-tour"))}const AP=y.createContext({});function y8(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const OP=typeof window<"u",v8=OP?y.useLayoutEffect:y.useEffect,fv=y.createContext(null);function hv(e,t){e.indexOf(t)===-1&&e.push(t)}function Ld(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ur=(e,t,n)=>n>t?t:n<e?e:n;let jf=()=>{},na=()=>{};const Ir={},jP=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function IP(e){return typeof e=="object"&&e!==null}const NP=e=>/^0[^.\s]+$/u.test(e);function pv(e){let t;return()=>(t===void 0&&(t=e()),t)}const gn=e=>e,w8=(e,t)=>n=>t(e(n)),vc=(...e)=>
vendor: 8,896 bytes, line 445
445e.reduce(w8),Yl=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class mv{constructor(){this.subscriptions=[]}add(t){return hv(this.subscriptions,t),()=>Ld(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const yn=e=>e*1e3,pn=e=>e/1e3;function LP(e,t){return t?e*(1e3/t):0}const DP=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,x8=1e-7,b8=12;function _8(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=DP(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>x8&&++a<b8);return o}function wc(e,t,n,r){if(e===t&&n===r)return gn;const s=i=>_8(i,0,1,e,n);return i=>i===0||i===1?i:DP(s(i),t,r)}const MP=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$P=e=>t=>1-e(1-t),VP=wc(.33,1.53,.69,.99),gv=$P(VP),FP=MP(gv),BP=e=>(e*=2)<1?.5*gv(e):.5*(2-Math.pow(2,-10*(e-1))),yv=e=>1-Math.sin(Math.acos(e)),UP=$P(yv),zP=MP(yv),E8=wc(.42,0,1,1),S8=wc(0,0,.58,1),WP=wc(.42,0,.58,1),T8=e=>Array.isArray(e)&&typeof e[0]!="number",HP=e=>Array.isArray(e)&&typeof e[0]=="number",sb={linear:gn,easeIn:E8,easeInOut:WP,easeOut:S8,circIn:yv,circInOut:zP,circOut:UP,backIn:gv,backInOut:FP,backOut:VP,anticipate:BP},C8=e=>typeof e=="string",ib=e=>{if(HP(e)){na(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,s]=e;return wc(t,n,r,s)}else if(C8(e))return na(sb[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),sb[e];return e},fu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ob={value:null,addProjectionMetrics:null};function k8(e,t){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),e()),l++,d(a)}const u={schedule:(d,h=!1,p=!1)=>{const v=p&&s?n:r;return h&&o.add(d),v.has(d)||v.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(c),t&&ob.value&&ob.value.frameloop[t].push(l),l=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const P8=40;function KP(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=fu.reduce((x,_)=>(x[_]=k8(i,t?_:void 0),x),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:w}=o,v=()=>{const x=Ir.useManualTiming?s.timestamp:performance.now();n=!1,Ir.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(x-s.timestamp,P8),1)),s.timestamp=x,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),p.process(s),w.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,s.isProcessing||e(v)};return{schedule:fu.reduce((x,_)=>{const E=o[_];return x[_]=(S,T=!1,C=!1)=>(n||b(),E.schedule(S,T,C)),x},{}),cancel:x=>{for(let _=0;_<fu.length;_++)o[fu[_]].cancel(x)},state:s,steps:o}}const{schedule:Ce,cancel:Ns,state:lt,steps:Gh}=KP(typeof requestAnimationFrame<"u"?requestAnimationFrame:gn,!0);let Mu;function R8(){Mu=void 0}const At={now:()=>(Mu===void 0&&At.set(lt.isProcessing||Ir.useManualTiming?lt.timestamp:performance.now()),Mu),set:e=>{Mu=e,queueMicrotask(R8)}},qP=e=>t=>typeof t=="string"&&t.startsWith(e),GP=qP("--"),A8=qP("var(--"),vv=e=>A8(e)?O8.test(e.split("/*")[0].trim()):!1,O8=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ab(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const xa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ql={...xa,transform:e=>ur(0,1,e)},hu={...xa,default:1},pl=e=>Math.round(e*1e5)/1e5,wv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function j8(e){return e==null}const I8=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xv=(e,t)=>n=>!!(typeof n=="string"&&I8.test(n)&&n.startsWith(e)||t&&!j8(n)&&Object.prototype.hasOwnProperty.call(n,t)),YP=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(wv);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},N8=e=>ur(0,255,e),Yh={...xa,transform:e=>Math.round(N8(e))},pi={test:xv("rgb","red"),parse:YP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yh.transform(e)+", "+Yh.transform(t)+", "+Yh.transform(n)+", "+pl(Ql.transform(r))+")"};function L8(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Km={test:xv("#"),parse:L8,transform:pi.transform},xc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ts=xc("deg"),or=xc("%"),G=xc("px"),D8=xc("vh"),M8=xc("vw"),lb={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(e*100)},mo={test:xv("hsl","hue"),parse:YP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+or.transform(pl(t))+", "+or.transform(pl(n))+", "+pl(Ql.transform(r))+")"},Ge={test:e=>pi.test(e)||Km.test(e)||mo.test(e),parse:e=>pi.test(e)?pi.parse(e):mo.test(e)?mo.parse(e):Km.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pi.transform(e):mo.transform(e),getAnimatableNone:e=>{const t=Ge.parse(e);return t.alpha=0,Ge.transform(t)}},$8=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function V8(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(wv))==null?void 0:t.length)||0)+(((n=e.match($8))==null?void 0:n.length)||0)>0}const QP="number",JP="color",F8="var",B8="var(",cb="${}",U8=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Jl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(U8,l=>(Ge.test(l)?(r.color.push(i),s.push(JP),n.push(Ge.parse(l))):l.startsWith(B8)?(r.var.push(i),s.push(F8),n.push(l)):(r.number.push(i),s.push(QP),n.push(parseFloat(l))),++i,cb)).split(cb);return{values:n,split:a,indexes:r,types:s}}function XP(e){return Jl(e).values}function ZP(e){const{split:t,types:n}=Jl(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const a=n[o];a===QP?i+=pl(s[o]):a===JP?i+=Ge.transform(s[o]):i+=s[o]}return i}}const z8=e=>typeof e=="number"?0:Ge.test(e)?Ge.getAnimatableNone(e):e;function W8(e){const t=XP(e);return ZP(e)(t.map(z8))}const Ls={test:V8,parse:XP,createTransformer:ZP,getAnimatableNone:W8};function Qh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function H8({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=Qh(l,a,e+1/3),i=Qh(l,a,e),o=Qh(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Dd(e,t){return n=>n>0?t:e}const Ve=(e,t,n)=>e+(t-e)*n,Jh=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},K8=[Km,pi,mo],q8=e=>K8.find(t=>t.test(e));function ub(e){const t=q8(e);if(jf(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===mo&&(n=H8(n)),n}const db=(e,t)=>{const n=ub(e),r=ub(t);if(!n||!r)return Dd(e,t);const s={...n};return i=>(s.red=Jh(n.red,r.red,i),s.green=Jh(n.green,r.green,i),s.blue=Jh(n.blue,r.blue,i),s.alpha=Ve(n.alpha,r.alpha,i),pi.transform(s))},qm=new Set(["none","hidden"]);function G8(e,t){return qm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Y8(e,t){return n=>Ve(e,t,n)}function bv(e){return typeof e=="number"?Y8:typeof e=="string"?vv(e)?Dd:Ge.test(e)?db:X8:Array.isArray(e)?eR:typeof e=="object"?Ge.test(e)?db:Q8:Dd}function eR(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>bv(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function Q8(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=bv(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function J8(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const X8=(e,t)=>{const n=Ls.createTransformer(t),r=Jl(e),s=Jl(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?qm.has(e)&&!s.values.length||qm.has(t)&&!r.values.length?G8(e,t):vc(eR(J8(r,s),s.values),n):(jf(!0,`Complex values '${e}' and '${t}
445' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Dd(e,t))};function tR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ve(e,t,n):bv(e)(e,t)}const Z8=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ce.update(t,n),stop:()=>Ns(t),now:()=>lt.isProcessing?lt.timestamp:At.now()}},nR=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Md=2e4;function _v(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Md;)t+=n,r=e.next(t);return t>=Md?1/0:t}function e6(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(_v(r),Md);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:pn(s)}}const t6=5;function rR(e,t,n){const r=Math.max(t-t6,0);return LP(n-e(r),t-r)}const Me={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xh=.001;function n6({duration:e=Me.duration,bounce:t=Me.bounce,velocity:n=Me.velocity,mass:r=Me.mass}){let s,i;jf(e<=yn(Me.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=ur(Me.minDamping,Me.maxDamping,o),e=ur(Me.minDuration,Me.maxDuration,pn(e)),o<1?(s=c=>{const u=c*o,d=u*e,h=u-n,p=Gm(c,o),w=Math.exp(-d);return Xh-h/p*w},i=c=>{const d=c*o*e,h=d*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,w=Math.exp(-d),v=Gm(Math.pow(c,2),o);return(-s(c)+Xh>0?-1:1)*((h-p)*w)/v}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Xh+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=s6(s,i,a);if(e=yn(e),isNaN(l))return{stiffness:Me.stiffness,damping:Me.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const r6=12;function s6(e,t,n){let r=n;for(let s=1;s<r6;s++)r=r-e(r)/t(r);return r}function Gm(e,t){return e*Math.sqrt(1-t*t)}const i6=["duration","bounce"],o6=["stiffness","damping","mass"];function fb(e,t){return t.some(n=>e[n]!==void 0)}function a6(e){let t={velocity:Me.velocity,stiffness:Me.stiffness,damping:Me.damping,mass:Me.mass,isResolvedFromDuration:!1,...e};if(!fb(e,o6)&&fb(e,i6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*ur(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Me.mass,stiffness:s,damping:i}}else{const n=n6(e);t={...t,...n,mass:Me.mass},t.isResolvedFromDuration=!0}return t}function $d(e=Me.visualDuration,t=Me.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:p}=a6({...n,velocity:-pn(n.velocity||0)}),w=h||0,v=c/(2*Math.sqrt(l*u)),b=o-i,m=pn(Math.sqrt(l/u)),g=Math.abs(b)<5;r||(r=g?Me.restSpeed.granular:Me.restSpeed.default),s||(s=g?Me.restDelta.granular:Me.restDelta.default);let x;if(v<1){const E=Gm(m,v);x=S=>{const T=Math.exp(-v*m*S);return o-T*((w+v*m*b)/E*Math.sin(E*S)+b*Math.cos(E*S))}}else if(v===1)x=E=>o-Math.exp(-m*E)*(b+(w+m*b)*E);else{const E=m*Math.sqrt(v*v-1);x=S=>{const T=Math.exp(-v*m*S),C=Math.min(E*S,300);return o-T*((w+v*m*b)*Math.sinh(C)+E*b*Math.cosh(C))/E}}const _={calculatedDuration:p&&d||null,next:E=>{const S=x(E);if(p)a.done=E>=d;else{let T=E===0?w:0;v<1&&(T=E===0?yn(w):rR(x,E,S));const C=Math.abs(T)<=r,P=Math.abs(o-S)<=s;a.done=C&&P}return a.value=a.done?o:S,a},toString:()=>{const E=Math.min(_v(_),Md),S=nR(T=>_.next(E*T).value,E,30);return E+"ms "+S},toTransition:()=>{}};return _}$d.applyToOptions=e=>{const t=e6(e,100,$d);return e.ease=t.ease,e.duration=yn(t.duration),e.type="keyframes",e};function Ym({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=C=>a!==void 0&&C<a||l!==void 0&&C>l,w=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let v=n*t;const b=d+v,m=o===void 0?b:o(b);m!==b&&(v=m-d);const g=C=>-v*Math.exp(-C/r),x=C=>m+g(C),_=C=>{const P=g(C),R=x(C);h.done=Math.abs(P)<=c,h.value=h.done?m:R};let E,S;const T=C=>{p(h.value)&&(E=C,S=$d({keyframes:[h.value,w(h.value)],velocity:rR(x,C,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:C=>{let P=!1;return!S&&E===void 0&&(P=!0,_(C),T(C)),E!==void 0&&C>=E?S.next(C-E):(!P&&_(C),h)}}}function l6(e,t,n){const r=[],s=n||Ir.mix||tR,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||gn:t;a=vc(l,a)}r.push(a)}return r}function c6(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(na(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=l6(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=Yl(e[d],e[d+1],u);return a[d](h)};return n?u=>c(ur(e[0],e[i-1],u)):c}function u6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Yl(0,t,r);e.push(Ve(n,1,s))}}function d6(e){const t=[0];return u6(t,e.length-1),t}function f6(e,t){return e.map(n=>n*t)}function h6(e,t){return e.map(()=>t||WP).splice(0,e.length-1)}function ml({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=T8(r)?r.map(ib):ib(r),i={done:!1,value:t[0]},o=f6(n&&n.length===t.length?n:d6(t),e),a=c6(o,t,{ease:Array.isArray(s)?s:h6(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const p6=e=>e!==null;function Ev(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(p6),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const m6={decay:Ym,inertia:Ym,tween:ml,keyframes:ml,spring:$d};function sR(e){typeof e.type=="string"&&(e.type=m6[e.type])}class Sv{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const g6=e=>e/100;class Tv extends Sv{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==At.now()&&this.tick(At.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;sR(t);const{type:n=ml,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||ml;l!==ml&&typeof a[0]!="number"&&(this.mixKeyframes=vc(g6,tR(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=_v(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:p,type:w,onUpdate:v,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?m<0:m>s;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let x=this.currentTime,_=r;if(d){const C=Math.min(this.currentTime,s)/a;let P=Math.floor(C),R=C%1;!R&&C>=1&&(R=1),R===1&&P--,P=Math.min(P,d+1),!!(P%2)&&(h==="reverse"?(R=1-R,p&&(R-=p/a)):h==="mirror"&&(_=o)),x=ur(0,1,R)*a}const E=g?{done:!1,value:u[0]}:_.next(x);i&&(E.value=i(E.value));let{done:S}=E;!g&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return T&&w!==Ym&&(E.value=Ev(u,this.options,b,this.speed)),v&&v(E.value),T&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return pn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pn(t)}get time(){return pn(this.currentTime)}set time(t){var n;t=yn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(At.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pn(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=Z8,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(At.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function y6(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const mi=e=>e*180/Math.PI,Qm=e=>{const t=mi(Math.atan2(e[1],e[0]));return Jm(t)},v6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qm,rotateZ:Qm,skewX:e=>mi(Math.atan(e[1])),skewY:e=>mi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jm=e=>(e=e%360,e<0&&(e+=360),e),hb=Qm,pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),mb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),w6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pb,scaleY:mb,scale:e=>(pb(e)+mb(e))/2,rotateX:e=>Jm(mi(Math.atan2(e[6],e[5]))),rotateY:e=>Jm(mi(Math.atan2(-e[2],e[0]))),rotateZ:hb,rotate:hb,skewX:e=>mi(Math.atan(e[4])),skewY:e=>mi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Xm(e){return e.includes("scale")?1:0}function Zm(e,t){if(!e||e==="none")return Xm(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=w6,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=v6,s=a}if(!s)return Xm(t);const i=r[t],o=s[1].split(",").map(b6);return typeof i=="function"?i(o):o[i]}const x6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Zm(n,t)};function b6(e){return parseFloat(e.trim())}const ba=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_a=new Set(ba),gb=e=>e===xa||e===G,_6=new Set(["x","y","z"]),E6=ba.filter(e=>!_6.has(e));function S6(e){const t=[];return E6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Zm(t,"x"),y:(e,{transform:t})=>Zm(t,"y")};vs.translateX=vs.x;vs.translateY=vs.y;const Ci=new Set;let eg=!1,tg=!1,ng=!1;function iR(){if(tg){const e=Array.from(Ci).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=S6(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);
445s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}tg=!1,eg=!1,Ci.forEach(e=>e.complete(ng)),Ci.clear()}function oR(){Ci.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tg=!0)})}function T6(){ng=!0,oR(),iR(),ng=!1}class Cv{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ci.add(this),eg||(eg=!0,Ce.read(oR),Ce.resolveKeyframes(iR))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}y6(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ci.delete(this)}cancel(){this.state==="scheduled"&&(Ci.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const C6=e=>e.startsWith("--");function k6(e,t,n){C6(t)?e.style.setProperty(t,n):e.style[t]=n}const P6=pv(()=>window.ScrollTimeline!==void 0),R6={};function A6(e,t){const n=pv(e);return()=>R6[t]??n()}const aR=A6(()=>{try{document.createElement("div").animate({opacity:0}
445,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),el=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function lR(e,t){if(e)return typeof e=="function"?aR()?nR(e,t):"ease-out":HP(e)?el(e):Array.isArray(e)?e.map(n=>lR(n,t)||yb.easeOut):yb[e]}function O6(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=lR(a,s);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function cR(e){return typeof e=="function"&&"applyToOptions"in e}function j6({type:e,...t}){return cR(e)&&aR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class uR extends Sv{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,na(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=j6(t);this.animation=O6(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Ev(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):k6(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return pn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pn(t)}get time(){return pn(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=yn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&P6()?(this.animation.timeline=t,gn):n(this)}}const dR={anticipate:BP,backInOut:FP,circInOut:zP};function I6(e){return e in dR}function N6(e){typeof e.ease=="string"&&I6(e.ease)&&(e.ease=dR[e.ease])}const Zh=10;class L6 extends uR{constructor(t){N6(t),sR(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Tv({...o,autoplay:!1}),l=Math.max(Zh,At.now()-this.startTime),c=ur(0,Zh,l-Zh);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const vb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ls.test(e)||e==="0")&&!e.startsWith("url("));function D6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function M6(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=vb(s,t),a=vb(i,t);return jf(o===a,`You are trying to animate ${t} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:D6(e)||(n==="spring"||cR(n))&&r}function rg(e){e.duration=0,e.type="keyframes"}const $6=new Set(["opacity","clipPath","filter","transform"]),V6=pv(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function F6(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return V6()&&n&&$6.has(n)&&(n!=="transform"||!c)&&!l&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const B6=40;class U6 extends Sv{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:
445o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var w;super(),this.stop=()=>{var v,b;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=At.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||Cv;this.keyframeResolver=new p(a,(v,b,m)=>this.onKeyframesResolved(v,b,h,!m),l,c,u),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,s){var b,m;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=At.now(),M6(t,i,o,a)||((Ir.instantAnimations||!l)&&(u==null||u(Ev(t,r,n))),t[0]=t[t.length-1],rg(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>B6?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!c&&F6(h),w=(m=(b=h.motionValue)==null?void 0:b.owner)==null?void 0:m.current,v=p?new L6({...h,element:w}):new Tv(h);v.finished.then(()=>{this.notifyFinished()}).catch(gn),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),T6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function fR(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const z6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W6(e){const t=z6.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const H6=4;function hR(e,t,n=1){na(n<=H6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=W6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return jP(o)?parseFloat(o):o}return vv(s)?hR(s,t,n+1):s}const K6={type:"spring",stiffness:500,damping:25,restSpeed:10},q6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G6={type:"keyframes",duration:.8},Y6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Q6=(e,{keyframes:t})=>t.length>2?G6:_a.has(e)?e.startsWith("scale")?q6(t[1]):K6:Y6,J6=e=>e!==null;function X6(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(J6),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}function pR(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function kv(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?pR(n,e):n}function Z6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Pv=(e,t,n,r={},s,i)=>o=>{const a=kv(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-yn(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Z6(a)||Object.assign(u,Q6(e,u)),u.duration&&(u.duration=yn(u.duration)),u.repeatDelay&&(u.repeatDelay=yn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(rg(u),u.delay===0&&(
445d=!0)),(Ir.instantAnimations||Ir.skipAnimations||s!=null&&s.shouldSkipAnimations)&&(d=!0,rg(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=X6(u.keyframes,a);if(h!==void 0){Ce.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Tv(u):new U6(u)};function wb(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rv(e,t,n,r){if(typeof t=="function"){const[s,i]=wb(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=wb(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Io(e,t,n){const r=e.getProps();return Rv(r,t,n!==void 0?n:r.custom,e)}const mR=new Set(["width","height","top","left","right","bottom",...ba]),xb=30,ez=e=>!isNaN(parseFloat(e));class tz{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=At.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=At.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ez(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new mv);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=At.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xb);return LP(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ra(e,t){return new tz(e,t)}const sg=e=>Array.isArray(e);function nz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ra(n))}function rz(e){return sg(e)?e[e.length-1]||0:e}function sz(e,t){const n=Io(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=rz(i[o]);nz(e,o,a)}}const wt=e=>!!(e&&e.getVelocity);function iz(e){return!!(wt(e)&&e.add)}function ig(e,t){const n=e.getValue("willChange");if(iz(n))return n.add(t);if(!n&&Ir.WillChange){const r=new Ir.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Av(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const oz="framerAppearId",gR="data-"+Av(oz);function yR(e){return e.props[gR]}function az({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vR(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?pR(i,l):l;const c=i==null?void 0:i.reduceMotion;r&&(i=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const h in a){const p=e.getValue(h,e.latestValues[h]??null),w=a[h];if(w===void 0||d&&az(d,h))continue;const v={delay:n,...kv(i||{},h)},b=p.get();if(b!==void 0&&!p.isAnimating&&!Array.isArray(w)&&w===b&&!v.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const _=yR(e);if(_){const E=window.MotionHandoffAnimation(_,h,Ce);E!==null&&(v.startTime=E,m=!0)}}ig(e,h);const g=c??e.shouldReduceMotion;p.start(Pv(h,p,w,g&&mR.has(h)?{type:!1}:v,e,m));const x=p.animation;x&&u.push(x)}if(o){const h=()=>Ce.update(()=>{o&&sz(e,o)});
vendor: 4,458 bytes, line 445
445u.length?Promise.all(u).then(h):h()}return u}function og(e,t,n={}){var l;const r=Io(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(vR(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=s;return lz(e,t,c,u,d,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>u())}else return Promise.all([i(),o(n.delay)])}function lz(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(og(l,t,{...o,delay:n+(typeof r=="function"?0:r)+fR(e.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function cz(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>og(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=og(e,t,n);else{const s=typeof t=="function"?Io(e,t,n.custom):t;r=Promise.all(vR(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const uz={test:e=>e==="auto",parse:e=>e},wR=e=>t=>t.test(e),xR=[xa,G,or,ts,M8,D8,uz],bb=e=>xR.find(wR(e));function dz(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||NP(e):!0}const fz=new Set(["brightness","contrast","saturate","opacity"]);function hz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(wv)||[];if(!r)return e;const s=n.replace(r,"");let i=fz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const pz=/\b([a-z-]*)\(.*?\)/gu,ag={...Ls,getAnimatableNone:e=>{const t=e.match(pz);return t?t.map(hz).join(" "):e}},_b={...xa,transform:Math.round},mz={rotate:ts,rotateX:ts,rotateY:ts,rotateZ:ts,scale:hu,scaleX:hu,scaleY:hu,scaleZ:hu,skew:ts,skewX:ts,skewY:ts,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:Ql,originX:lb,originY:lb,originZ:G},Ov={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,...mz,zIndex:_b,fillOpacity:Ql,strokeOpacity:Ql,numOctaves:_b},gz={...Ov,color:Ge,backgroundColor:Ge,outlineColor:Ge,fill:Ge,stroke:Ge,borderColor:Ge,borderTopColor:Ge,borderRightColor:Ge,borderBottomColor:Ge,borderLeftColor:Ge,filter:ag,WebkitFilter:ag},bR=e=>gz[e];function _R(e,t){let n=bR(e);return n!==ag&&(n=Ls),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const yz=new Set(["auto","none","0"]);function vz(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!yz.has(i)&&Jl(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=_R(n,s)}class wz extends Cv{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),vv(d))){const h=hR(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!mR.has(r)||t.length!==2)return;const[s,i]=t,o=bb(s),a=bb(i),l=ab(s),c=ab(i);if(l!==c&&vs[r]){this.needsMeasurement=!0;return}if(o!==a)if(gb(o)&&gb(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else vs[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||dz(t[s]))&&r.push(s);r.length&&vz(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];
vendor: 11,300 bytes, line 445
445s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=vs[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const xz=new Set(["opacity","clipPath","filter","transform"]);function jv(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const ER=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function bz(e){return IP(e)&&"offsetHeight"in e}const{schedule:Iv,cancel:hq}=KP(queueMicrotask,!1),Rn={x:!1,y:!1};function SR(){return Rn.x||Rn.y}function _z(e){return e==="x"||e==="y"?Rn[e]?null:(Rn[e]=!0,()=>{Rn[e]=!1}):Rn.x||Rn.y?null:(Rn.x=Rn.y=!0,()=>{Rn.x=Rn.y=!1})}function TR(e,t){const n=jv(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Ez(e){return!(e.pointerType==="touch"||SR())}function Sz(e,t,n={}){const[r,s,i]=TR(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",w)},d=b=>{c&&(c(b),c=void 0),u()},h=b=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(b))},p=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},w=b=>{if(b.pointerType!=="touch"){if(a){l=!0;return}d(b)}},v=b=>{if(!Ez(b))return;l=!1;const m=t(o,b);typeof m=="function"&&(c=m,o.addEventListener("pointerleave",w,s))};o.addEventListener("pointerenter",v,s),o.addEventListener("pointerdown",p,s)}),i}const CR=(e,t)=>t?e===t?!0:CR(e,t.parentElement):!1,Nv=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Tz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Cz(e){return Tz.has(e.tagName)||e.isContentEditable===!0}const kz=new Set(["INPUT","SELECT","TEXTAREA"]);function Pz(e){return kz.has(e.tagName)||e.isContentEditable===!0}const $u=new WeakSet;function Eb(e){return t=>{t.key==="Enter"&&e(t)}}function ep(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Rz=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Eb(()=>{if($u.has(n))return;ep(n,"down");const s=Eb(()=>{ep(n,"up")}),i=()=>ep(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Sb(e){return Nv(e)&&!SR()}const Tb=new WeakSet;function Az(e,t,n={}){const[r,s,i]=TR(e,n),o=a=>{const l=a.currentTarget;if(!Sb(a)||Tb.has(a))return;$u.add(l),n.stopPropagation&&Tb.add(a);const c=t(l,a),u=(p,w)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),$u.has(l)&&$u.delete(l),Sb(p)&&typeof c=="function"&&c(p,{success:w})},d=p=>{u(p,l===window||l===document||n.useGlobalTarget||CR(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),bz(a)&&(a.addEventListener("focus",c=>Rz(c,s)),!Cz(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Lv(e){return IP(e)&&"ownerSVGElement"in e}const Vu=new WeakMap;let ns;const kR=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Lv(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Oz=kR("inline","width","offsetWidth"),jz=kR("block","height","offsetHeight");function Iz({target:e,borderBoxSize:t}){var n;(n=Vu.get(e))==null||n.forEach(r=>{r(e,{get width(){return Oz(e,t)},get height(){return jz(e,t)}})})}function Nz(e){e.forEach(Iz)}function Lz(){typeof ResizeObserver>"u"||(ns=new ResizeObserver(Nz))}function Dz(e,t){ns||Lz();const n=jv(e);return n.forEach(r=>{let s=Vu.get(r);s||(s=new Set,Vu.set(r,s)),s.add(t),ns==null||ns.observe(r)}),()=>{n.forEach(r=>{const s=Vu.get(r);s==null||s.delete(t),s!=null&&s.size||ns==null||ns.unobserve(r)})}}const Fu=new Set;let go;function Mz(){go=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Fu.forEach(t=>t(e))},window.addEventListener("resize",go)}function $z(e){return Fu.add(e),go||Mz(),()=>{Fu.delete(e),!Fu.size&&typeof go=="function"&&(window.removeEventListener("resize",go),go=void 0)}}function Cb(e,t){return typeof e=="function"?$z(e):Dz(e,t)}function Vz(e){return Lv(e)&&e.tagName==="svg"}const Fz=[...xR,Ge,Ls],Bz=e=>Fz.find(wR(e)),kb=()=>({translate:0,scale:1,origin:0,originPoint:0}),yo=()=>({x:kb(),y:kb()}),Pb=()=>({min:0,max:0}),Ze=()=>({x:Pb(),y:Pb()}),Uz=new WeakMap;function If(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Xl(e){return typeof e=="string"||Array.isArray(e)}const Dv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mv=["initial",...Dv];function Nf(e){return If(e.animate)||Mv.some(t=>Xl(e[t]))}function PR(e){return!!(Nf(e)||e.variants)}function zz(e,t,n){for(const r in t){const s=t[r],i=n[r];if(wt(s))e.addValue(r,s);else if(wt(i))e.addValue(r,ra(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,ra(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const lg={current:null},RR={current:!1},Wz=typeof window<"u";function Hz(){if(RR.current=!0,!!Wz)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lg.current=e.matches;e.addEventListener("change",t),t()}else lg.current=!1}const Rb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vd={};function AR(e){Vd=e}function Kz(){return Vd}class qz{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Cv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=At.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Ce.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Nf(n),this.isVariantNode=PR(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const w=h[p];c[p]!==void 0&&wt(w)&&w.set(c[p])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,Uz.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(RR.current||Hz(),this.shouldReduceMotion=lg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Ns(this.notifyUpdate),Ns(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&xz.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new uR({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:yn(u)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const r=_a.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vd){const n=Vd[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Rb.length;r++){const s=Rb[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=zz(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 4,341 bytes, line 445
445addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ra(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(jP(r)||NP(r))?r=parseFloat(r):!Bz(r)&&Ls.test(n)&&(r=_R(t,n)),this.setBaseTarget(t,wt(r)?r.get():r)),wt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Rv(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!wt(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new mv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Iv.render(this.render)}}class OR extends qz{constructor(){super(...arguments),this.KeyframeResolver=wz}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;wt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class zs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function jR({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Gz({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Yz(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function tp(e){return e===void 0||e===1}function cg({scale:e,scaleX:t,scaleY:n}){return!tp(e)||!tp(t)||!tp(n)}function ii(e){return cg(e)||IR(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function IR(e){return Ab(e.x)||Ab(e.y)}function Ab(e){return e&&e!=="0%"}function Fd(e,t,n){const r=e-n,s=t*r;return n+s}function Ob(e,t,n,r,s){return s!==void 0&&(e=Fd(e,s,r)),Fd(e,n,r)+t}function ug(e,t=0,n=1,r,s){e.min=Ob(e.min,t,n,r,s),e.max=Ob(e.max,t,n,r,s)}function NR(e,{x:t,y:n}){ug(e.x,t.translate,t.scale,t.originPoint),ug(e.y,n.translate,n.scale,n.originPoint)}const jb=.999999999999,Ib=1.0000000000001;function Qz(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&wo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,NR(e,o)),r&&ii(i.latestValues)&&wo(e,i.latestValues))}t.x<Ib&&t.x>jb&&(t.x=1),t.y<Ib&&t.y>jb&&(t.y=1)}function vo(e,t){e.min=e.min+t,e.max=e.max+t}function Nb(e,t,n,r,s=.5){const i=Ve(e.min,e.max,s);ug(e,t,n,i,r)}function wo(e,t){Nb(e.x,t.x,t.scaleX,t.scale,t.originX),Nb(e.y,t.y,t.scaleY,t.scale,t.originY)}function LR(e,t){return jR(Yz(e.getBoundingClientRect(),t))}function Jz(e,t,n){const r=LR(e,n),{scroll:s}=t;return s&&(vo(r.x,s.offset.x),vo(r.y,s.offset.y)),r}const Xz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zz=ba.length;function eW(e,t,n){let r="",s=!0;for(let i=0;i<Zz;i++){const o=ba[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const c=parseFloat(a);l=o.startsWith("scale")?c===1:c===0}if(!l||n){const c=ER(a,Ov[o]);if(!l){s=!1;
vendor: 4,337 bytes, line 445
445const u=Xz[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function $v(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(_a.has(l)){o=!0;continue}else if(GP(l)){s[l]=c;continue}else{const u=ER(c,Ov[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=eW(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function DR(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function Lb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(G.test(e))e=parseFloat(e);else return e;const n=Lb(e,t.target.x),r=Lb(e,t.target.y);return`${n}% ${r}%`}},tW={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Ls.parse(e);if(s.length>5)return r;const i=Ls.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Ve(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},dg={borderRadius:{...Wa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wa,borderTopRightRadius:Wa,borderBottomLeftRadius:Wa,borderBottomRightRadius:Wa,boxShadow:tW};function MR(e,{layout:t,layoutId:n}){return _a.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dg[e]||e==="opacity")}function Vv(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(wt(r[a])||s&&wt(s[a])||MR(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function nW(e){return window.getComputedStyle(e)}class rW extends OR{constructor(){super(...arguments),this.type="html",this.renderInstance=DR}readValueFromInstance(t,n){var r;if(_a.has(n))return(r=this.projection)!=null&&r.isProjecting?Xm(n):x6(t,n);{const s=nW(t),i=(GP(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return LR(t,n)}build(t,n,r){$v(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vv(t,n,r)}}const sW={offset:"stroke-dashoffset",array:"stroke-dasharray"},iW={offset:"strokeDashoffset",array:"strokeDasharray"};function oW(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?sW:iW;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const aW=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function $R(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if($v(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const p of aW)d[p]!==void 0&&(h[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&oW(d,s,i,o,!1)}const VR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),FR=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lW(e,t,n,r){DR(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(VR.has(s)?s:Av(s),t.attrs[s])}function BR(e,t,n){const r=Vv(e,t,n);for(const s in e)if(wt(e[s])||wt(t[s])){const i=ba.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class cW extends OR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_a.has(n)){const r=bR(n);return r&&r.default||0}return n=VR.has(n)?n:Av(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return BR(t,n,r)}build(t,n,r){$R(t,n,this.isSVGTag,r.transformTemplate,r.style)}
vendor: 4,087 bytes, line 445
445renderInstance(t,n,r,s){lW(t,n,r,s)}mount(t){this.isSVGTag=FR(t.tagName),super.mount(t)}}const uW=Mv.length;function UR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?UR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uW;n++){const r=Mv[n],s=e.props[r];(Xl(s)||s===!1)&&(t[r]=s)}return t}function zR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const dW=[...Dv].reverse(),fW=Dv.length;function hW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cz(e,n,r)))}function pW(e){let t=hW(e),n=Db(),r=!0;const s=l=>(c,u)=>{var h;const d=Io(e,u,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:w,...v}=d;c={...c,...v,...w}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=UR(e.parent)||{},d=[],h=new Set;let p={},w=1/0;for(let b=0;b<fW;b++){const m=dW[b],g=n[m],x=c[m]!==void 0?c[m]:u[m],_=Xl(x),E=m===l?g.isActive:null;E===!1&&(w=b);let S=x===u[m]&&x!==c[m]&&_;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),g.protectedKeys={...p},!g.isActive&&E===null||!x&&!g.prevProp||If(x)||typeof x=="boolean")continue;if(m==="exit"&&g.isActive&&E!==!0){g.prevResolvedValues&&(p={...p,...g.prevResolvedValues});continue}const T=mW(g.prevProp,x);let C=T||m===l&&g.isActive&&!S&&_||b>w&&_,P=!1;const R=Array.isArray(x)?x:[x];let $=R.reduce(s(m),{});E===!1&&($={});const{prevResolvedValues:A={}}=g,B={...A,...$},D=F=>{C=!0,h.has(F)&&(P=!0,h.delete(F)),g.needsAnimating[F]=!0;const k=e.getValue(F);k&&(k.liveStyle=!1)};for(const F in B){const k=$[F],O=A[F];if(p.hasOwnProperty(F))continue;let U=!1;sg(k)&&sg(O)?U=!zR(k,O):U=k!==O,U?k!=null?D(F):h.add(F):k!==void 0&&h.has(F)?D(F):g.protectedKeys[F]=!0}g.prevProp=x,g.prevResolvedValues=$,g.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(C=!1);const W=S&&T;C&&(!W||P)&&d.push(...R.map(F=>{const k={type:m};if(typeof F=="string"&&r&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:O}=e,U=Io(O,F);if(O.enteringChildren&&U){const{delayChildren:X}=U.transition||{};k.delay=fR(O.enteringChildren,e,X)}}return{animation:F,options:k}}))}if(h.size){const b={};if(typeof c.initial!="boolean"){const m=Io(e,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(b.transition=m.transition)}h.forEach(m=>{const g=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),b[m]=g??null}),d.push({animation:b})}let v=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(l,c)}),n[l].isActive=c;const u=o(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Db()}}}function mW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zR(t,e):!1}function ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Db(){return{animate:ti(!0),whileInView:ti(),whileHover:ti(),whileTap:ti(),whileDrag:ti(),whileFocus:ti(),exit:ti()}}function Mb(e,t){e.min=t.min,e.max=t.max}function Cn(e,t){Mb(e.x,t.x),Mb(e.y,t.y)}function $b(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const WR=1e-4,gW=1-WR,yW=1+WR,HR=.01,vW=0-HR,wW=0+HR;function Ot(e){return e.max-e.min}function xW(e,t,n){return Math.abs(e-t)<=n}function Vb(e,t,n,r=.5){e.origin=r,e.originPoint=Ve(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=Ve(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gW&&e.scale<=yW||isNaN(e.scale))&&(e.scale=1),(e.translate>=vW&&e.translate<=wW||isNaN(e.translate))&&(e.translate=0)}function gl(e,t,n,r){Vb(e.x,t.x,n.x,r?r.originX:void 0),Vb(e.y,t.y,n.y,r?r.originY:void 0)}function Fb(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function bW(e,t,n){Fb(e.x,t.x,n.x),Fb(e.y,t.y,n.y)}function Bb(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}
445function Bd(e,t,n){Bb(e.x,t.x,n.x),Bb(e.y,t.y,n.y)}function Ub(e,t,n,r,s){return e-=t,e=Fd(e,1/n,r),s!==void 0&&(e=Fd(e,1/s,r)),e}function _W(e,t=0,n=1,r=.5,s,i=e,o=e){if(or.test(t)&&(t=parseFloat(t),t=Ve(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ve(i.min,i.max,r);e===i&&(a-=t),e.min=Ub(e.min,t,n,a,s),e.max=Ub(e.max,t,n,a,s)}function zb(e,t,[n,r,s],i,o){_W(e,t[n],t[r],t[s],t.scale,i,o)}const EW=["x","scaleX","originX"],SW=["y","scaleY","originY"];function Wb(e,t,n,r){zb(e.x,t,EW,n?n.x:void 0,r?r.x:void 0),zb(e.y,t,SW,n?n.y:void 0,r?r.y:void 0)}function Hb(e){return e.translate===0&&e.scale===1}function KR(e){return Hb(e.x)&&Hb(e.y)}function Kb(e,t){return e.min===t.min&&e.max===t.max}function TW(e,t){return Kb(e.x,t.x)&&Kb(e.y,t.y)}function qb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qR(e,t){return qb(e.x,t.x)&&qb(e.y,t.y)}function Gb(e){return Ot(e.x)/Ot(e.y)}function Yb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Yn(e){return[e("x"),e("y")]}function CW(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:p,skewY:w}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),w&&(r+=`skewY(${w}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const GR=["TopLeft","TopRight","BottomLeft","BottomRight"],kW=GR.length,Qb=e=>typeof e=="string"?parseFloat(e):e,Jb=e=>typeof e=="number"||G.test(e);function PW(e,t,n,r,s,i){s?(e.opacity=Ve(0,n.opacity??1,RW(r)),e.opacityExit=Ve(t.opacity??1,0,AW(r))):i&&(e.opacity=Ve(t.opacity??1,n.opacity??1,r));for(let o=0;o<kW;o++){const a=`border${GR[o]}Radius`;let l=Xb(t,a),c=Xb(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Jb(l)===Jb(c)?(e[a]=Math.max(Ve(Qb(l),Qb(c),r),0),(or.test(c)||or.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Ve(t.rotate||0,n.rotate||0,r))}function Xb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const RW=YR(0,.5,UP),AW=YR(.5,.95,gn);function YR(e,t,n){return r=>r<e?0:r>t?1:n(Yl(e,t,r))}function OW(e,t,n){const r=wt(e)?e:ra(e);return r.start(Pv("",r,t,n)),r.animation}function Zl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const jW=(e,t)=>e.depth-t.depth;class IW{constructor(){this.children=[],this.isDirty=!1}add(t){hv(this.children,t),this.isDirty=!0}remove(t){Ld(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(jW),this.isDirty=!1,this.children.forEach(t)}}function NW(e,t){const n=At.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Ns(r),e(i-t))};return Ce.setup(r,!0),()=>Ns(r)}function Bu(e){return wt(e)?e.get():e}class LW{constructor(){this.members=[]}add(t){hv(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;s&&s.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&Ld(this.members,r)}t.scheduleRender()}remove(t){if(Ld(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s],o=i.instance;if(i.isPresent!==!1&&(!o||o.isConnected!==!1)){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const s=r.options.layoutDependency,i=t.options.layoutDependency;if(!(s!==void 0&&i!==void 0&&s===i)){const l=r.instance;l&&l.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:a}
vendor: 12,350 bytes, line 445
445=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Uu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},np=["","X","Y","Z"],DW=1e3;let MW=0;function rp(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function QR(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=yR(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ce,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&QR(r)}function JR({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=MW++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(FW),this.nodes.forEach(WW),this.nodes.forEach(HW),this.nodes.forEach(BW)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new IW)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new mv),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Lv(o)&&!Vz(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;Ce.read(()=>{d=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=NW(h,250),Uu.hasAnimatedSinceResize&&(Uu.hasAnimatedSinceResize=!1,this.nodes.forEach(t1)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||QW,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=c.getProps(),m=!this.targetLayout||!qR(this.targetLayout,p),g=!d&&h;if(this.options.layoutRoot||this.resumeFrom||g||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...kv(w,"layout"),onPlay:v,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,g)}else d||t1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ns(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(KW),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&QR(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(e1);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zW),this.nodes.forEach($W),this.nodes.forEach(VW)):this.nodes.forEach(e1),this.clearAllSnapshots();const a=At.now();lt.delta=ur(0,1e3/60,a-lt.timestamp),lt.timestamp=a,lt.isProcessing=!0,Gh.update.process(lt),Gh.preRender.process(lt),Gh.render.process(lt),lt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Iv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UW),this.sharedNodes.forEach(qW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!KR(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||ii(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),JW(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Ze();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(XW))){const{scroll:u}=this.root;u&&(vo(a.x,u.offset.x),vo(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Ze();if(Cn(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Cn(a,o),vo(a.x,d.offset.x),vo(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=Ze();Cn(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&wo(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ii(u.latestValues)&&wo(l,u.latestValues)}return ii(this.latestValues)&&wo(l,this.latestValues),l}removeTransform(o){const a=Ze();Cn(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ii(c.latestValues))continue;cg(c.latestValues)&&c.updateSnapshot();const u=Ze(),d=c.measurePageBox();Cn(u,d),Wb(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ii(this.latestValues)&&Wb(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==lt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=lt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Cn(this.target,this.layout.layoutBox),NR(this.target,this.targetDelta)):Cn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||cg(this.parent.latestValues)||IR(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),Bd(this.relativeTargetOrigin,a,l),Cn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&
vendor: 5,271 bytes, line 445
445(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===lt.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Cn(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;Qz(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Ze());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($b(this.prevProjectionDelta.x,this.projectionDelta.x),$b(this.prevProjectionDelta.y,this.projectionDelta.y)),gl(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Yb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yo(),this.projectionDelta=yo(),this.projectionDeltaWithTransform=yo()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=yo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Ze(),p=l?l.source:void 0,w=this.layout?this.layout.source:void 0,v=p!==w,b=this.getStack(),m=!b||b.members.length<=1,g=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(YW));this.animationProgress=0;let x;this.mixTargetDelta=_=>{const E=_/1e3;n1(d.x,o.x,E),n1(d.y,o.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bd(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GW(this.relativeTarget,this.relativeTargetOrigin,h,E),x&&TW(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ze()),Cn(x,this.relativeTarget)),v&&(this.animationValues=u,PW(u,c,this.latestValues,E,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Ns(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ce.update(()=>{Uu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ra(0)),this.currentAnimation=OW(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(DW),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&XR(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ze();const d=Ot(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=Ot(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Cn(a,l),wo(a,u),gl(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new LW),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 8,574 bytes, line 445
445resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&rp("z",o,c,this.animationValues);for(let u=0;u<np.length;u++)rp(`rotate${np[u]}`,o,c,this.animationValues),rp(`skew${np[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Bu(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Bu(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ii(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=CW(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:h,y:p}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const w in dg){if(u[w]===void 0)continue;const{correct:v,applyTo:b,isCSSVariable:m}=dg[w],g=d==="none"?u[w]:v(u[w],c);if(b){const x=b.length;for(let _=0;_<x;_++)o[b[_]]=g}else m?this.options.visualElement.renderState.vars[w]=g:o[w]=g}this.options.layoutId&&(o.pointerEvents=c===this?Bu(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Zb),this.root.sharedNodes.clear()}}}function $W(e){e.updateLayout()}function VW(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Yn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],p=Ot(h);h.min=r[d].min,h.max=h.min+p}):XR(i,t.layoutBox,r)&&Yn(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],p=Ot(r[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=yo();gl(a,r,t.layoutBox);const l=yo();o?gl(l,e.applyTransform(s,!0),t.measuredBox):gl(l,r,t.layoutBox);const c=!KR(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const w=Ze();Bd(w,t.layoutBox,h.layoutBox);const v=Ze();Bd(v,r,p.layoutBox),qR(w,v)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=w,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function FW(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function UW(e){e.clearSnapshot()}function Zb(e){e.clearMeasurements()}function e1(e){e.isLayoutDirty=!1}function zW(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function t1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WW(e){e.resolveTargetDelta()}function HW(e){e.calcProjection()}function KW(e){e.resetSkewAndRotation()}function qW(e){e.removeLeadSnapshot()}function n1(e,t,n){e.translate=Ve(t.translate,0,n),e.scale=Ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function r1(e,t,n,r){e.min=Ve(t.min,n.min,r),e.max=Ve(t.max,n.max,r)}function GW(e,t,n,r){r1(e.x,t.x,n.x,r),r1(e.y,t.y,n.y,r)}function YW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const QW={duration:.45,ease:[.4,0,.1,1]},s1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),i1=s1("applewebkit/")&&!s1("chrome/")?Math.round:gn;function o1(e){e.min=i1(e.min),e.max=i1(e.max)}function JW(e){o1(e.x),o1(e.y)}function XR(e,t,n){return e==="position"||e==="preserve-aspect"&&!xW(Gb(t),Gb(n),.2)}function XW(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const ZW=JR({attachResizeListener:(e,t)=>Zl(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),sp={current:void 0},ZR=JR({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sp.current){const e=new ZW({});e.mount(window),e.setOptions({layoutScroll:!0}),sp.current=e}return sp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),eA=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function eH(e=!0){const t=y.useContext(fv);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{if(e)return s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const tA=y.createContext({strict:!1}),a1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let l1=!1;function tH(){if(l1)return;const e={};for(const t in a1)e[t]={isEnabled:n=>a1[t].some(r=>!!n[r])};AR(e),l1=!0}function nA(){return tH(),Kz()}function nH(e){const t=nA();for(const n in e)t[n]={...t[n],...e[n]};AR(t)}const rH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Ud(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rH.has(e)}let rA=e=>!Ud(e);function sH(e){typeof e=="function"&&(rA=t=>t.startsWith("on")?!Ud(t):e(t))}try{sH(require("@emotion/is-prop-valid").default)}catch{}function iH(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(rA(s)||n===!0&&Ud(s)||!t&&!Ud(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Lf=y.createContext({});function oH(e,t){if(Nf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Xl(n)?n:void 0,animate:Xl(r)?r:void 0}}return e.inherit!==!1?t:{}}function aH(e){const{initial:t,animate:n}=oH(e,y.useContext(Lf));return y.useMemo(()=>({initial:t,animate:n}),[c1(t),c1(n)])}function c1(e){return Array.isArray(e)?e.join(" "):e}const Fv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sA(e,t,n){for(const r in t)!wt(t[r])&&!MR(r,n)&&(e[r]=t[r])}function lH({transformTemplate:e},t){return y.useMemo(()=>{const n=Fv();return $v(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cH(e,t){const n=e.style||{},r={};return sA(r,n,e),Object.assign(r,lH(e,t)),r}function uH(e,t){const n={},r=cH(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
445`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const iA=()=>({...Fv(),attrs:{}});function dH(e,t,n,r){const s=y.useMemo(()=>{const i=iA();return $R(i,t,FR(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};sA(i,e.style,e),s.style={...i,...s.style}}return s}const fH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Bv(e){return typeof e!="string"||e.includes("-")?!1:!!(fH.indexOf(e)>-1||/[A-Z]/u.test(e))}function hH(e,t,n,{latestValues:r},s,i=!1,o){const l=(o??Bv(e)?dH:uH)(t,r,s,e),c=iH(t,typeof e=="string",i),u=e!==y.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=y.useMemo(()=>wt(d)?d.get():d,[d]);return y.createElement(e,{...u,children:h})}function pH({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:mH(n,r,s,e),renderState:t()}}function mH(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=Bu(i[h]);let{initial:o,animate:a}=e;const l=Nf(e),c=PR(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!If(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const w=Rv(e,h[p]);if(w){const{transitionEnd:v,transition:b,...m}=w;for(const g in m){let x=m[g];if(Array.isArray(x)){const _=u?x.length-1:0;x=x[_]}x!==null&&(s[g]=x)}for(const g in v)s[g]=v[g]}}}return s}const oA=e=>(t,n)=>{const r=y.useContext(Lf),s=y.useContext(fv),i=()=>pH(e,t,r,s);return n?i():y8(i)},gH=oA({scrapeMotionValuesFromProps:Vv,createRenderState:Fv}),yH=oA({scrapeMotionValuesFromProps:BR,createRenderState:iA}),vH=Symbol.for("motionComponentSymbol");function wH(e,t,n){const r=y.useRef(n);y.useInsertionEffect(()=>{r.current=n});const s=y.useRef(null);return y.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const aA=y.createContext({});function eo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xH(e,t,n,r,s,i){var x,_;const{visualElement:o}=y.useContext(Lf),a=y.useContext(tA),l=y.useContext(fv),c=y.useContext(eA),u=c.reducedMotion,d=c.skipAnimations,h=y.useRef(null),p=y.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const w=h.current,v=y.useContext(aA);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&bH(h.current,n,s,v);const b=y.useRef(!1);y.useInsertionEffect(()=>{w&&b.current&&w.update(n,l)});const m=n[gR],g=y.useRef(!!m&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,m))&&((_=window.MotionHasOptimisedAnimation)==null?void 0:_.call(window,m)));return v8(()=>{p.current=!0,w&&(b.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),g.current&&w.animationState&&w.animationState.animateChanges())}),y.useEffect(()=>{w&&(!g.current&&w.animationState&&w.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,m)}),g.current=!1),w.enteringChildren=void 0)}),w}function bH(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lA(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&eo(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function lA(e){if(e)return e.options.allowProjection!==!1?e.projection:lA(e.parent)}function ip(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&nH(r);const i=n?n==="svg":Bv(e),o=i?yH:gH;function a(c,u){let d;const h={...y.useContext(eA),...c,layoutId:_H(c)},{isStatic:p}=h,w=aH(c),v=o(c,p);if(!p&&OP){EH();const b=SH(h);d=b.MeasureLayout,w.visualElement=xH(e,v,h,s,b.ProjectionNode,i)}return f.jsxs(Lf.Provider,{value:w,children:[d&&w.visualElement?f.jsx(d,{visualElement:w.visualElement,...h}):null,hH(e,c,wH(v,w.visualElement,u),v,p,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=y.forwardRef(a);return l[vH]=e,l}function _H({layoutId:e}){const t=y.useContext(AP).id;return t&&e!==void 0?t+"-"+e:e}function EH(e,t){y.useContext(tA).strict}function SH(e){const t=nA(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
vendor: 4,472 bytes, line 445
445function TH(e,t){if(typeof Proxy>"u")return ip;const n=new Map,r=(i,o)=>ip(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,ip(o,void 0,e,t)),n.get(o))})}const CH=(e,t)=>t.isSVG??Bv(e)?new cW(t):new rW(t,{allowProjection:e!==y.Fragment});class kH extends zs{constructor(t){super(t),t.animationState||(t.animationState=pW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();If(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let PH=0;class RH extends zs{constructor(){super(...arguments),this.id=PH++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const AH={animation:{Feature:kH},exit:{Feature:RH}};function bc(e){return{point:{x:e.pageX,y:e.pageY}}}const OH=e=>t=>Nv(t)&&e(t,bc(t));function yl(e,t,n,r){return Zl(e,t,OH(n),r)}const cA=({current:e})=>e?e.ownerDocument.defaultView:null,u1=(e,t)=>Math.abs(e-t);function jH(e,t){const n=u1(e.x,t.x),r=u1(e.y,t.y);return Math.sqrt(n**2+r**2)}const d1=new Set(["auto","scroll"]);class uA{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=ap(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,v=jH(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!v)return;const{point:b}=p,{timestamp:m}=lt;this.history.push({...b,timestamp:m});const{onStart:g,onMove:x}=this.handlers;w||(g&&g(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,w)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=op(w,this.transformPagePoint),Ce.update(this.updatePoint,!0)},this.handlePointerUp=(p,w)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=ap(p.type==="pointercancel"?this.lastMoveEventInfo:op(w,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,g),b&&b(p,g)},!Nv(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=bc(t),c=op(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=lt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,ap(c,this.history)),this.removeListeners=vc(yl(this.contextWindow,"pointermove",this.handlePointerMove),yl(this.contextWindow,"pointerup",this.handlePointerUp),yl(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(d1.has(r.overflowX)||d1.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),
vendor: 13,367 bytes, line 445
445Ce.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ns(this.updatePoint)}}function op(e,t){return t?{point:t(e.point)}:e}function f1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ap({point:e},t){return{point:e,delta:f1(e,dA(t)),offset:f1(e,IH(t)),velocity:NH(t,.1)}}function IH(e){return e[0]}function dA(e){return e[e.length-1]}function NH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=dA(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>yn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>yn(t)*2&&(r=e[1]);const i=pn(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function LH(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ve(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ve(n,e,r.max):Math.min(e,n)),e}function h1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function DH(e,{top:t,left:n,bottom:r,right:s}){return{x:h1(e.x,n,s),y:h1(e.y,t,r)}}function p1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function MH(e,t){return{x:p1(e.x,t.x),y:p1(e.y,t.y)}}function $H(e,t){let n=.5;const r=Ot(e),s=Ot(t);return s>r?n=Yl(t.min,t.max-r,e.min):r>s&&(n=Yl(e.min,e.max-s,t.min)),ur(0,1,n)}function VH(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const fg=.35;function FH(e=fg){return e===!1?e=0:e===!0&&(e=fg),{x:m1(e,"left","right"),y:m1(e,"top","bottom")}}function m1(e,t,n){return{min:g1(e,t),max:g1(e,n)}}function g1(e,t){return typeof e=="number"?e:e[t]||0}const BH=new WeakMap;class UH{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n&&this.snapToCursor(bc(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:p,dragPropagation:w,onDragStart:v}=this.getProps();if(p&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_z(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yn(m=>{let g=this.getAxisMotionValue(m).get()||0;if(or.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const _=x.layout.layoutBox[m];_&&(g=Ot(_)*(parseFloat(g)/100))}}this.originPoint[m]=g}),v&&Ce.update(()=>v(d,h),!1,!0),ig(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:w,onDirectionLock:v,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:m}=h;if(w&&this.currentDirection===null){this.currentDirection=WH(m),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,m),this.updateAxis("y",h.point,m),this.visualElement.render(),b&&Ce.update(()=>b(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new uA(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:cA(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Ce.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!pu(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=LH(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&eo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=DH(r.layoutBox,t):this.constraints=!1,this.elastic=FH(n),s!==this.constraints&&!eo(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Yn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=VH(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!eo(t))return!1;const r=t.current;na(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=Jz(r,s.root,this.visualElement.getTransformPagePoint());let o=MH(s.layout.layoutBox,i);if(n){const a=n(Gz(o));this.hasMutatedConstraints=!!a,a&&(o=jR(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Yn(u=>{if(!pu(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const h=s?200:1e6,p=s?40:1e7,w={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,w)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ig(this.visualElement,t),r.start(Pv(t,r,0,n,this.visualElement,!1))}stopAnimation(){Yn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Yn(n=>{const{drag:r}=this.getProps();if(!pu(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-Ve(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!eo(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Yn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=$H({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Yn(o=>{if(!pu(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Ve(l,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;BH.set(this.visualElement,this);const t=this.visualElement.current,n=yl(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,p=h!==t&&Pz(h);u&&d&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();eo(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=zH(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ce.read(s);const a=Zl(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Yn(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=fg,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function y1(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function zH(e,t,n){const r=Cb(e,y1(n)),s=Cb(t,y1(n));return()=>{r(),s()}}function pu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function WH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class HH extends zs{constructor(t){super(t),this.removeGroupControls=gn,this.removeListeners=gn,this.controls=new UH(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const lp=e=>(t,n)=>{e&&Ce.update(()=>e(t,n),!1,!0)};class KH extends zs{constructor(){super(...arguments),this.removePointerDownListener=gn}onPointerDown(t){this.session=new uA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cA(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:lp(t),onStart:lp(n),onMove:lp(r),onEnd:(i,o)=>{delete this.session,s&&Ce.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=yl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let cp=!1;class qH extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),cp&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Uu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),cp=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ce.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Iv.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;cp=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function fA(e){const[t,n]=eH(),r=y.useContext(AP);return f.jsx(qH,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(aA),isPresent:t,safeToRemove:n})}const GH={pan:{Feature:KH},drag:{Feature:HH,ProjectionNode:ZR,MeasureLayout:fA}};function v1(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Ce.postRender(()=>i(t,bc(t)))}class YH extends zs{mount(){const{current:t}=this.node;t&&(this.unmount=Sz(t,(n,r)=>(v1(this.node,r,"Start"),s=>v1(this.node,s,"End"))))}unmount(){}}class QH extends zs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vc(Zl(this.node.current,"focus",()=>this.onFocus()),Zl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function w1(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Ce.postRender(()=>i(t,bc(t)))}class JH extends zs{mount(){const{current:t}=this.node;if(!t)return;
445const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=Az(t,(s,i)=>(w1(this.node,i,"Start"),(o,{success:a})=>w1(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const hg=new WeakMap,up=new WeakMap,XH=e=>{const t=hg.get(e.target);t&&t(e)},ZH=e=>{e.forEach(XH)};function e7({root:e,...t}){const n=e||document;up.has(n)||up.set(n,{});const r=up.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(ZH,{root:e,...t})),r[s]}function t7(e,t,n){const r=e7(t);return hg.set(e,n),r.observe(e),()=>{hg.delete(e),r.unobserve(e)}}const n7={some:0,all:1};class r7 extends zs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:n7[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return t7(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(s7(t,n))&&this.startObserver()}unmount(){}}function s7({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const i7={inView:{Feature:r7},tap:{Feature:JH},focus:{Feature:QH},hover:{Feature:YH}},o7={layout:{ProjectionNode:ZR,MeasureLayout:fA}},a7={...AH,...i7,...GH,...o7},pg=TH(a7,CH),l7={some:0,all:1};function c7(e,t,{root:n,margin:r,amount:s="some"}={}){const i=jv(e),o=new WeakMap,a=c=>{c.forEach(u=>{const d=o.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const h=t(u.target,u);typeof h=="function"?o.set(u.target,h):l.unobserve(u.target)}else typeof d=="function"&&(d(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof s=="number"?s:l7[s]});return i.forEach(c=>l.observe(c)),()=>l.disconnect()}function u7(e,{root:t,margin:n,amount:r,once:s=!1,initial:i=!1}={}){const[o,a]=y.useState(i);return y.useEffect(()=>{if(!e.current||s&&o)return;const l=()=>(a(!0),s?void 0:()=>a(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return c7(e.current,l,c)},[t,e,n,s,r]),o}function we({children:e,delay:t=0,className:n=""}){const r=y.useRef(null),s=u7(r,{once:!0,margin:"-40px"});return f.jsx(pg.div,{ref:r,initial:{opacity:0,y:30},animate:s?{opacity:1,y:0}:{},transition:{duration:.7,delay:t,ease:[.22,1,.36,1]},className:n,children:e})}const Ie="#0B1426",x1="#111C33",Ji="#1A2340",fe="#F5B829",dp="#F4EFE6",gt="#8A93A6";function mu({dark:e=!1}){return f.jsxs("span",{className:"text-[28px] md:text-[32px] font-black tracking-[-0.04em] leading-none",style:{color:e?Ie:"#fff"},children:["avah",f.jsx("span",{style:{color:fe},children:"."})]})}function Ha({index:e,label:t}){return f.jsxs("div",{className:"mb-8",children:[f.jsx("div",{className:"h-[3px] w-10 mb-4",style:{background:fe}}),f.jsxs("span",{className:"text-[11px] font-bold uppercase tracking-[0.18em]",style:{color:fe},children:[e," · ",t]})]})}const d7=[{n:"01",title:"Lead-to-Lease",desc:"Capture, qualify, and convert with unified communications."},{n:"02",title:"Tenant Management",desc:"Portal, documents, insurance, inspections, amenities."},{n:"03",title:"Service & Maintenance",desc:"Bookings, vendors, invoices, and on-demand fulfillment."},{n:"04",title:"Analytics & Portfolio",desc:"Visibility across every property, every team, every dollar."}],f7=[{title:"CAPTURE",items:["Public funnels & widgets","Embedded forms (RentSync, Zapier)","Webhook & email parsing","City-based auto-routing"]},{title:"QUALIFY",items:["AI screening interviews","Landlord reference calls","Credit, ID & income verification","Co-applicants & guarantors"]},{title:"CONVERT",items:["Tenant onboarding portal","PandaDoc e-signatures","Application scoring & approval","Lease & move-in automation"]},{title:"COMMUNICATE",items:["Unified SMS / MMS / email","Group MMS conversations","Templates & auto-responders","Dedicated phone numbers"]}],h7=[{title:"Tenant Portal",desc:"Self-serve access to documents, payments, requests, and amenity bookings."},{title:"Documents",desc:"Signed agreements, e-sign tracking, and document templates by unit & building."},{title:"Insurance",desc:"Policy intake with AI parsing â expiry tracking and automated reminders."},{title:"Inspections",desc:"Move-in / move-out / annual inspections with photos and timestamped reports."},{title:"Amenities",desc:"Bookable shared spaces â pools, gyms, party rooms â with availability rules."},{title:"Renewals",desc:"Renewal pipeline with 3-month visibility, urgency flags, and lease proposals."}],p7=[{title:"BOOKING",items:["Public service booking pages","Service catalog & pricing","Book now or pay later","Tax management built in"]},{title:"DISPATCH",items:["In-house maintenance team","External vendor directory","Team availability & calendars","Auto-assignment by service"]},{title:"PAYMENT",items:["Square invoicing & payments","Multi-currency supp
445ort","Auto-invoice on completion","Tip & rebooking flows"]},{title:"TICKETS",items:["Tenant-submitted requests","Status updates & SLAs","Photo & note attachments","Full audit history"]}],m7=[{head:"LEAD SOURCES",title:"ROI by channel",desc:"Marketing spend vs. signed leases"},{head:"CONVERSION",title:"Funnel analytics",desc:"Inquiry â tour â application â lease"},{head:"OCCUPANCY",title:"Leasing matrix",desc:"Live unit availability across portfolio"},{head:"TEAM",title:"Engagement reports",desc:"Activity, response times, follow-ups"}],g7=[{stat:"68%",label:"Faster lead response",sub:"AI auto-responder + unified inbox"},{stat:"9.2x",label:"Platform ROI",sub:"Vs. cost of stitched-together tools"},{stat:"40%",label:"Less admin time",sub:"Templates, automations, e-sign"},{stat:"4.7",label:"Tenant satisfaction",sub:"Self-serve portal + faster service"}],y7=[{title:"Developers",desc:"Lease up new buildings faster. Show investors live occupancy, lead-source ROI, and absorption velocity from day one."},{title:"Property Managers",desc:"Replace your patchwork of CRM, SMS, e-sign, and ticketing tools. One login, one source of truth, one bill."},{title:"Owner Operators",desc:"Run leasing, service, and tenant relations with a small team â and look like a national brand doing it."}],v7=[{title:"Leads lost",desc:"in inboxes, spreadsheets, voicemail."},{title:"Tenants frustrated",desc:"by slow responses and paper forms."},{title:"Owners blind",desc:"to portfolio-wide performance."},{title:"Staff burned out",desc:"manually chasing every workflow."}];function b1(){return f.jsxs(f.Fragment,{children:[f.jsxs(y2,{children:[f.jsx("title",{children:"Avah â The Property Operating System"}),f.jsx("meta",{name:"description",content:"Avah is the unified Property Operating System for developers and property managers. Lease faster, operate smarter, retain longer."}),f.jsx("link",{rel:"canonical",href:"https://www.avah.ai"}),f.jsx("meta",{property:"og:title",content:"Avah â Lease faster. Operate smarter. Retain longer."}),f.jsx("meta",{property:"og:description",content:"A unified platform to automate leasing, communications, service, and the entire tenant lifecycle."}),f.jsx("meta",{property:"og:url",content:"https://www.avah.ai"}),f.jsx("meta",{property:"og:type",content:"website"})]}),f.jsxs("div",{style:{background:Ie,color:"#fff"},className:"min-h-screen font-sans",children:[f.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 backdrop-blur-xl border-b",style:{background:"rgba(11,20,38,0.85)",borderColor:"rgba(255,255,255,0.06)"},children:f.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-14 flex items-center justify-between",children:[f.jsx(mu,{}),f.jsxs("div",{className:"hidden md:flex items-center gap-10 text-[12px] font-semibold uppercase tracking-[0.12em]",style:{color:gt},children:[f.jsx("a",{href:"#solution",className:"hover:text-white transition-colors",children:"Solution"}),f.jsx("a",{href:"#pillars",className:"hover:text-white transition-colors",children:"Pillars"}),f.jsx("a",{href:"#numbers",className:"hover:text-white transition-colors",children:"Results"}),f.jsx("a",{href:"#cta",className:"hover:text-white transition-colors",children:"Get Started"})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(hi,{variant:"ghost",size:"sm",className:"text-white/70 hover:text-white hover:bg-white/5 text-xs uppercase tracking-wider font-semibold",asChild:!0,children:f.jsx(Qr,{to:"/auth",children:"Sign In"})}),f.jsx(hi,{size:"sm",className:"text-xs uppercase tracking-wider font-bold rounded-none px-6",style:{background:fe,color:Ie},asChild:!0,children:f.jsx(Qr,{to:"/auth",children:"Get Started"})})]})]})}),f.jsxs("main",{children:[f.jsxs("section",{className:"relative min-h-screen flex items-center px-6 pt-24 pb-20",style:{background:Ie},children:[f.jsxs("div",{className:"max-w-7xl mx-auto w-full",children:[f.jsx(we,{children:f.jsxs("div",{className:"mb-10",children:[f.jsx("div",{className:"h-[3px] w-12 mb-3",style:{background:fe}}),f.jsx("span",{className:"text-[13px]",style:{color:gt},children:"Property Operating System"})]})}),f.jsx(we,{delay:.15,children:f.jsxs("h1",{className:"font-black tracking-[-0.04em] leading-[0.95]",style:{fontSize:"clamp(3rem, 9vw, 8rem)"},children:[f.jsx("span",{className:"block text-white",children:"Lease faster."}),f.jsx("span",{className:"block",style:{color:fe},children:"Operate smarter."}),f.jsx("span",{className:"block text-white",children:"Retain longer."})]})}),f.jsx(we,{delay:.3,children:f.jsx("p",{className:"mt-10 text-lg md:text-xl max-w-2xl leading-relaxed",style:{color:gt},children:"A unified platform for developers and property managers to automate leasing, communications, service, and the entire tenant lifecycle."})}),f.jsx(we,{delay:.4,children:f.jsx("div",{className:"mt-10 flex flex-wrap items-center gap-4",children:f.jsx(hi,{size:"lg",className:"h-14 px-10 text-sm font-bold uppercase tracking-wider rounded-none",style:{background:fe,color:Ie},asChild:!0,children:f.jsxs(Qr,{to:"/contact",children:["Book a demo ",f.jsx(ww,{className:"h-4 w-4 ml-2"})]})})})})]}),f.jsx(pg.div,{className:"absolute bottom-6 left-1/2 -translate-x-1/2",style:{color:"rgba(255,255,255,0.25)"},animate:{y:[0,8,0]},transition:{duration:2,repeat:1/0},children:f.jsx(Gr,{className:"h-5 w-5"})})]}),f.jsx("section",{className:"px-6 py-24 md:py-32",style:{background:Ie},children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(we,{children:[f.jsx(Ha,{index:"01",label:"The Problem"}),f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-16",style:{fontSize:"clamp(2.5rem, 6vw, 5rem)"},children:["Property teams run on",f.jsx("br",{}),f.jsx("span",{style:{color:fe},children:"10+ disconnected tools."})]})]}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-px",style:{background:"rgba(255,255,255,0.08)"},children:v7.map((e,t)=>f.jsx(we,{delay:t*.06,children:f.jsxs("div",{className:"p-8 h-full",style:{background:Ie},children:[f.jsx("div",{className:"h-[3px] w-8 mb-5",style:{background:fe}}),f.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:e.title}),f.jsx("p",{className:"text-sm",style:{color:gt},children:e.desc})]})}
445,e.title))}),f.jsx(we,{delay:.4,children:f.jsxs("div",{className:"mt-16 pt-10 border-t",style:{borderColor:"rgba(255,255,255,0.08)"},children:[f.jsx("p",{className:"text-xs uppercase tracking-[0.18em] mb-3",style:{color:gt},children:"The result"}),f.jsxs("p",{className:"text-2xl md:text-3xl font-bold leading-snug",children:["Longer vacancy. Higher churn."," ",f.jsx("span",{style:{color:fe},children:"Margin lost to busywork."})]})]})})]})}),f.jsx("section",{id:"solution",className:"px-6 py-24 md:py-32",style:{background:x1},children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(we,{children:[f.jsx(Ha,{index:"02",label:"The Solution"}),f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-16",style:{fontSize:"clamp(2.5rem, 6vw, 5rem)"},children:[f.jsx("span",{className:"text-white",children:"One platform."}),f.jsx("br",{}),f.jsx("span",{style:{color:fe},children:"Four operating pillars."})]})]}),f.jsx("div",{id:"pillars",className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:d7.map((e,t)=>f.jsx(we,{delay:t*.08,children:f.jsxs(pg.div,{whileHover:{y:-6},transition:{type:"spring",stiffness:300,damping:20},className:"rounded-xl p-8 h-full",style:{background:Ji,border:"1px solid rgba(255,255,255,0.06)"},children:[f.jsx("div",{className:"h-[3px] w-10 mb-6",style:{background:fe}}),f.jsx("div",{className:"text-5xl font-black mb-6",style:{color:fe},children:e.n}),f.jsx("h3",{className:"text-xl font-bold text-white mb-4",children:e.title}),f.jsx("p",{className:"text-sm leading-relaxed",style:{color:gt},children:e.desc})]})},e.n))})]})}),f.jsx("section",{className:"px-6 py-24 md:py-32",style:{background:Ie},children:f.jsx("div",{className:"max-w-7xl mx-auto",children:f.jsxs(we,{children:[f.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] mb-4",style:{color:fe},children:"Pillar 01"}),f.jsx("p",{className:"text-sm uppercase tracking-wider mb-6",style:{color:gt},children:"From inquiry to signed lease â automated end-to-end."}),f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-8 text-white",style:{fontSize:"clamp(2.5rem, 6vw, 5rem)"},children:["Lead-to-Lease",f.jsx("br",{}),f.jsx("span",{style:{color:fe},children:"Engine."})]}),f.jsx("p",{className:"text-lg max-w-2xl leading-relaxed",style:{color:gt},children:"Capture every inquiry, qualify with AI, and sign the lease â with unified SMS, email, and AI calling built in."})]})})}),f.jsx("section",{className:"px-6 py-24 md:py-32",style:{background:dp,color:Ie},children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(we,{children:[f.jsxs("div",{className:"mb-8",children:[f.jsx(mu,{dark:!0}),f.jsx("div",{className:"h-[3px] w-10 mt-3 mb-4",style:{background:fe}}),f.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.18em]",style:{color:fe},children:"01 · Lead-to-Lease Engine"})]}),f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-16",style:{fontSize:"clamp(2.25rem, 5vw, 4rem)",color:Ie},children:["Every channel. Every step.",f.jsx("br",{}),"One workflow."]})]}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:f7.map((e,t)=>f.jsx(we,{delay:t*.06,children:f.jsxs("div",{className:"bg-white rounded-xl p-8 h-full shadow-sm",children:[f.jsx("div",{className:"h-[3px] w-8 mb-6",style:{background:fe}}),f.jsx("h3",{className:"text-base font-black tracking-wider mb-6",style:{color:Ie},children:e.title}),f.jsx("ul",{className:"space-y-3",children:e.items.map(n=>f.jsxs("li",{className:"flex items-start gap-3 text-sm",style:{color:Ie},children:[f.jsx("span",{className:"mt-[7px] block h-1.5 w-1.5 rounded-full shrink-0",style:{background:fe}}),f.jsx("span",{children:n})]},n))})]})},e.title))})]})}),f.jsx("section",{className:"px-6 py-24 md:py-32",style:{background:Ie},children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(we,{children:[f.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] mb-4",style:{color:fe},children:"Pillar 02 · Tenant Management"}),f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-6 text-white",style:{fontSize:"clamp(2.25rem, 5vw, 4rem)"}
445,children:["From move-in to renewal â",f.jsx("br",{}),f.jsx("span",{style:{color:fe},children:"every interaction tracked."})]}),f.jsx("p",{className:"text-lg max-w-2xl leading-relaxed mb-16",style:{color:gt},children:"A self-serve tenant portal plus admin tools for documents, insurance, inspections, amenities, and renewals â every record in one place."})]}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:h7.map((e,t)=>f.jsx(we,{delay:t*.05,children:f.jsxs("div",{className:"rounded-xl p-8 h-full",style:{background:Ji,border:"1px solid rgba(255,255,255,0.06)"},children:[f.jsx("div",{className:"h-[3px] w-8 mb-5",style:{background:fe}}),f.jsx("h3",{className:"text-lg font-bold text-white mb-3",children:e.title}),f.jsx("p",{className:"text-sm leading-relaxed",style:{color:gt},children:e.desc})]})},e.title))})]})}),f.jsx("section",{className:"px-6 py-24 md:py-32",style:{background:dp,color:Ie},children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(we,{children:[f.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] mb-8",style:{color:fe},children:"Pillar 03 · Service & Maintenance"}),f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-16",style:{fontSize:"clamp(2.25rem, 5vw, 4rem)",color:Ie},children:["Book it. Dispatch it.",f.jsx("br",{}),f.jsx("span",{style:{color:"#B8860B"},children:"Get paid for it."})]})]}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:p7.map((e,t)=>f.jsx(we,{delay:t*.06,children:f.jsxs("div",{className:"bg-white rounded-xl p-8 h-full shadow-sm",children:[f.jsx("div",{className:"h-[3px] w-8 mb-6",style:{background:fe}}),f.jsx("h3",{className:"text-base font-black tracking-wider mb-6",style:{color:Ie},children:e.title}),f.jsx("ul",{className:"space-y-3",children:e.items.map(n=>f.jsxs("li",{className:"flex items-start gap-3 text-sm",style:{color:Ie},children:[f.jsx("span",{className:"mt-[7px] block h-1.5 w-1.5 rounded-full shrink-0",style:{background:fe}}),f.jsx("span",{children:n})]},n))})]})},e.title))})]})}),f.jsx("section",{className:"px-6 py-24 md:py-32",style:{background:Ie},children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(we,{children:[f.jsx(Ha,{index:"04",label:"Analytics & Portfolio"}),f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-16",style:{fontSize:"clamp(2.25rem, 5vw, 4rem)"},children:[f.jsx("span",{className:"text-white",children:"Know what's working."}),f.jsx("br",{}),f.jsx("span",{style:{color:fe},children:"Across every property."})]})]}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-16",children:m7.map((e,t)=>f.jsx(we,{delay:t*.06,children:f.jsxs("div",{className:"rounded-xl p-8 h-full",style:{background:Ji,border:"1px solid rgba(255,255,255,0.06)"},children:[f.jsx("p",{className:"text-[11px] font-black tracking-[0.18em] mb-6",style:{color:fe},children:e.head}),f.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:e.title}),f.jsx("p",{className:"text-sm leading-relaxed",style:{color:gt},children:e.desc})]})},e.head))}),f.jsx(we,{children:f.jsxs("div",{className:"rounded-xl p-10 text-center",style:{background:Ji,border:"1px solid rgba(245,184,41,0.2)"},children:[f.jsx("p",{className:"text-2xl md:text-3xl font-bold mb-3",style:{color:fe},children:"Multi-tenant by design."}),f.jsx("p",{className:"text-base md:text-lg",style:{color:gt},children:"View any client account, any building, any team â without leaving the platform."})]})})]})}),f.jsx("section",{id:"numbers",className:"px-6 py-24 md:py-32",style:{background:x1},children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(we,{children:[f.jsx(Ha,{index:"05",label:"The Numbers"}),f.jsx("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-16 text-white",style:{fontSize:"clamp(2.5rem, 6vw, 5rem)"},children:"What automation unlocks."})]}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-16",children:g7.map((e,t)=>f.jsx(we,{delay:t*.08,children:f.jsxs("div",{className:"rounded-xl p-10 h-full text-center",style:{background:Ji,border:"1px solid rgba(255,255,255,0.06)"},children:[f.jsx("div",{className:"text-6xl md:text-7xl font-black mb-4 leading-none tracking-tight",style:{color:fe},children:e.stat}),f.jsx("p",{className:"text-lg font-bold text-white mb-2",children:e.label}),f.jsx("p",{className:"text-xs",style:{color:gt},children:e.sub})]})},e.label))}),f.jsx(we,{delay:.3,children:f.jsx("p",{className:"text-center text-xl md:text-2xl font-bold",style:{color:fe},children:"One subscription replaces 10+ point solutions."})})]})}),f.jsx("section",{className:"px-6 py-24 md:py-32",style:{background:Ie},children:f.jsxs("div",{className:"max-w-7xl mx-auto",children:[f.jsxs(we,{children:[f.jsx(Ha,{index:"06",label:"Built For"}),f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-16 text-white",style:{fontSize:"clamp(2.25rem, 5vw, 4rem)"},children:["Developers and property managers",f.jsx("br",{}),f.jsx("span",{style:{color:fe},children:"running 50 to 5,000 units."})]})]}),f.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:y7.map((e,t)=>f.jsx(we,{delay:t*.08,children:f.jsxs("div",{className:"rounded-xl p-8 h-full",style:{background:Ji,border:"1px solid rgba(255,255,255,0.06)"},children:[f.jsx("div",{className:"h-[3px] w-10 mb-6",style:{background:fe}}),f.jsx("h3",{className:"text-2xl font-bold text-white mb-4",children:e.title}),f.jsx("p",{className:"text-sm leading-relaxed",style:{color:gt},children:e.desc})]})}
445,e.title))})]})}),f.jsx("section",{id:"cta",className:"px-6 py-28 md:py-40",style:{background:dp,color:Ie},children:f.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[f.jsx(we,{children:f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx(mu,{dark:!0}),f.jsx("div",{className:"h-[3px] w-12 mt-4 mb-6",style:{background:fe}}),f.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] mb-8",style:{color:fe},children:"Get Started"})]})}),f.jsx(we,{delay:.1,children:f.jsxs("h2",{className:"font-black tracking-[-0.03em] leading-[0.95] mb-8",style:{fontSize:"clamp(2.5rem, 6vw, 5rem)",color:Ie},children:["See Avah in",f.jsx("br",{}),"your portfolio."]})}),f.jsx(we,{delay:.2,children:f.jsx("p",{className:"text-lg md:text-xl mb-12 max-w-xl mx-auto",style:{color:"#5A6378"},children:"Book a 30-minute walkthrough. We'll map your workflow to Avah live."})}),f.jsx(we,{delay:.3,children:f.jsx("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:f.jsx(hi,{size:"lg",className:"h-14 px-12 text-sm font-bold uppercase tracking-wider rounded-none",style:{background:Ie,color:"#fff"},asChild:!0,children:f.jsxs(Qr,{to:"/contact",children:["Book a demo ",f.jsx(ww,{className:"h-4 w-4 ml-2"})]})})})}),f.jsx(we,{delay:.4,children:f.jsx("div",{className:"mt-12 flex flex-wrap items-center justify-center gap-x-8 gap-y-3 text-xs uppercase tracking-wider font-semibold",style:{color:"#5A6378"},children:["No credit card","14-day trial","Cancel anytime"].map(e=>f.jsxs("span",{className:"flex items-center gap-2",children:[f.jsx(iN,{className:"h-3.5 w-3.5",style:{color:fe}}),e]},e))})}),f.jsx(we,{delay:.5,children:f.jsxs("div",{className:"mt-16 pt-8 border-t flex flex-col sm:flex-row items-center justify-center gap-2 text-sm font-semibold",style:{borderColor:"rgba(11,20,38,0.1)",color:Ie},children:[f.jsx("span",{children:"avah.ai"}),f.jsx("span",{className:"hidden sm:inline",style:{color:fe},children:"·"}),f.jsx("a",{href:"mailto:[email protected]",className:"hover:underline",children:"[email protected]"})]})})]})})]}),f.jsx("footer",{className:"px-6 py-10 border-t",style:{background:Ie,borderColor:"rgba(255,255,255,0.06)"},children:f.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4",children:[f.jsx(mu,{}),f.jsxs("div",{className:"flex items-center gap-8 text-[11px] uppercase tracking-[0.15em] font-semibold",style:{color:gt},children:[f.jsx(Qr,{to:"/privacy-policy",className:"hover:text-white transition-colors",children:"Privacy"}),f.jsx(Qr,{to:"/terms",className:"hover:text-white transition-colors",children:"Terms"}),f.jsx(Qr,{to:"/contact",className:"hover:text-white transition-colors",children:"Contact"})]}),f.jsxs("p",{className:"text-[11px]",style:{color:gt},children:["© ",new Date().getFullYear()," Avah · The Operating System for Modern Property Teams"]})]})})]})]})}const w7=L(()=>N(()=>import("./Index-DLnjh6B4.js"),__vite__mapDeps([0,1]))),x7=L(()=>N(()=>import("./DallasIndex-zUah2D3F.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,1]))),b7=L(()=>N(()=>import("./Properties-Bjiztxa5.js"),__vite__mapDeps([14,3,4,5,6,7,8,9,10,11,12,15,16,17,18,19,20,21,22,23,24,25]))),_7=L(()=>N(()=>import("./Buildings-CXePYaXf.js"),__vite__mapDeps([26,27,4,28,29,30,31]))),E7=L(()=>N(()=>import("./Units-r95lWy4z.js"),__vite__mapDeps([32,4,33,24,23,34,35,36,27,15,37,38,17,16,39,40,8,41,42,43,44,29,45,28,46,7,47,48]))),S7=L(()=>N(()=>import("./LeasingMatrix-CQwoyagV.js"),__vite__mapDeps([49,4,33,24,23,34,35,36,50,38,6,51,15,17,29,7,52,47,48,16,53,54,55,56,57]))),T7=L(()=>N(()=>import("./PropertyDetail-CZspnScS.js"),__vite__mapDeps([58,16,17,4,59,60,47,48,61,62,63,64,65,66,5,6,22,23,24,21,25,13,67,68,69,9,10,11]))),C7=L(()=>N(()=>import("./NotFound-BJ6XWZQa.js"),[])),k7=L(()=>N(()=>import("./Auth-SNfCkqi1.js"),__vite__mapDeps([70,16,4,20]))),P7=L(()=>N(()=>import("./SignDocument-SVzFJdwP.js"),__vite__mapDeps([71,72,73,74,75,76,16,37,38,23,15,77]))),R7=L(()=>N(()=>import("./Dashboard-BUyO7elV.js"),__vite__mapDeps([78,4,79,80,73,76,81,82,65,48,63,47,83,84,85,51,6]))),A7=L(()=>N(()=>import("./AskAvah-BZo4PLom.js"),__vite__mapDeps([86,4,87,88,9,89,90,1,25,36,91,29,92,93,48,66,94,64,95,52]))),O7=L(()=>N(()=>
445import("./SettingsAskAvah-SXkBfXrI.js"),__vite__mapDeps([96,17,4,43,34,16]))),j7=L(()=>N(()=>import("./SettingsLeadFields-8Xjg6sOF.js"),__vite__mapDeps([97,4,16,33,24,23,34,35,36,15,68,98,29,99,100,77,7,52]))),I7=L(()=>N(()=>import("./SettingsApiKeys-BmMBMTyW.js"),__vite__mapDeps([101,4,16,15,102,27,68,103,29,8,104,52]))),N7=L(()=>N(()=>import("./Admin-Z8lui_dr.js"),__vite__mapDeps([105,4,27,15,17,106,8,31,102,52,47,48]))),L7=L(()=>N(()=>import("./AdminSettings-C9k9_jtd.js"),__vite__mapDeps([107,4,87,108,109,110,111]))),D7=L(()=>N(()=>import("./AdminTwilioErrors-BXNrF6F2.js"),__vite__mapDeps([112,113,4,16,43,34,17,27,15,102,68,29,7,52]))),M7=L(()=>N(()=>import("./AdminAiStrategy-D4KdsAIl.js"),__vite__mapDeps([114,4,115,38,23,34,51,16,68]))),$7=L(()=>N(()=>import("./AdminElAgent-ckBRdxiP.js"),__vite__mapDeps([116,4,17,16,68]))),V7=L(()=>N(()=>import("./AdminTemplates-BXwecT97.js"),__vite__mapDeps([117,4,37,38,23,27,43,34,102,68,29,118,8,52]))),_1=L(()=>N(()=>import("./AdminTemplateEdit-6V_mX0hS.js"),__vite__mapDeps([119,4,16,17,43,34,68,29,8]))),F7=L(()=>N(()=>import("./AdminTemplateMappings-DZaPl6ka.js"),__vite__mapDeps([120,4,16,17,27,15,33,24,23,34,35,36,102,68,29,7,52]))),B7=L(()=>N(()=>import("./AdminFinixKyb-BfuEMrL0.js"),__vite__mapDeps([121,4,17,37,38,23,27,15,122,111,123,124]))),U7=L(()=>N(()=>import("./AdminFinixKybAudit-DZa4_O5F.js"),__vite__mapDeps([125,4,33,24,23,34,35,36,15,122,110,126]))),z7=L(()=>N(()=>import("./AdminMasterAdmins-BZxxABGY.js"),__vite__mapDeps([127,16,4,15,102,68,110,29,52,47,48]))),W7=L(()=>N(()=>
445import("./AdminCrmProspects-Fo6bBWac.js"),__vite__mapDeps([128,4,33,24,23,34,35,36,15,16,68,29,28]))),H7=L(()=>N(()=>import("./AdminCrmProspectDetail-DKJ0syEa.js"),__vite__mapDeps([129,17,4,33,24,23,34,35,36,37,38,15,16,68,45,52,130,29,51]))),K7=L(()=>N(()=>import("./AdminCrmTasks-CA0u2bLX.js"),__vite__mapDeps([131,4,132,34,36,37,38,23,68,51])));L(()=>N(()=>import("./TeamMembers-DpAjoVPY.js"),__vite__mapDeps([133,4,43,34,134,15,135,7,52,16,136,41,132,36,33,24,23,35,102,29,137])));const q7=L(()=>N(()=>import("./Calendar-NZevQ-Y7.js"),__vite__mapDeps([138,139,113,4,59,60,47,48,61,62,63,64,65,66,5,6,22,23,24,140,141,15,41,28,36,123,102,89,69,142,143,16,17,33,34,35,44,45,29,43,144,135,134,31,109,94]))),G7=L(()=>N(()=>import("./PublicOwnerProperties-Cwgnvgah.js"),__vite__mapDeps([145,113,3,4,5,6,7,8,9,10,11,12,21,22,23,24,25]))),Y7=L(()=>N(()=>import("./PublicUnit-B4ZfYw71.js"),__vite__mapDeps([146,4,46,69,9,10,147,36]))),Q7=L(()=>N(()=>import("./PublicBuilding-C63n1965.js"),__vite__mapDeps([148,4,69,9,10,147,36]))),E1=L(()=>N(()=>import("./Inquiries-RObaydiW.js"),__vite__mapDeps([149,150,15,16,29,36,52,4,151,50,23,38,6,51,17,59,60,47,48,61,62,63,64,65,66,5,41,33,24,34,35,12,124,142,102,56,79,152,132,153,72,73,74,154,31,91,155,27,22,89,156,157,158,83,159,160,87,55,95,161,57,37,143,44,45,162,163,164,165,25,166,167,144,28,168,169,170,75,84,171,82,43,42,8,99,19,109,126,172,7,173,122,130,46,98,174]))),J7=L(()=>N(()=>import("./Settings-DqLrlFOs.js"),__vite__mapDeps([175,4,69,176,177,135,98,103])));L(()=>N(()=>import("./KnowledgeBase-BdidUX_R.js"),__vite__mapDeps([178,4,16,17,43,34,15,41,144,28,136,132,36,53,19,177,29,168,7,52])));const X7=L(()=>N(()=>import("./ContactUs-YqEecMwY.js"),__vite__mapDeps([179,13]))),Z7=L(()=>N(()=>import("./Clients-m7mgHJYL.js"),__vite__mapDeps([180,15,16,20,33,24,23,34,35,36,29,8,12,87,52,69,27,102,89,84,181])));L(()=>N(()=>import("./ContactInquiries-BqEpxXvm.js"),__vite__mapDeps([182,33,24,23,34,35,36,27,4,89,47,48])));const e9=L(()=>N(()=>import("./CitySuites-BQxpC66j.js"),__vite__mapDeps([183,4,16,17,33,24,23,34,35,36,67,68,15,5,6,132,79,59,60,47,48,61,62,63,64,65,66,41,44,28,21,22,25,184,164,177,185,89]))),t9=L(()=>N(()=>import("./PlatformPitch-BUw0eu7H.js"),__vite__mapDeps([186,4,13,157,164,135,84,171]))),n9=L(()=>N(()=>import("./PropertyFinder-DS2DHTm_.js"),__vite__mapDeps([187,4,79,16,28,12,69,9,44,13]))),r9=L(()=>N(()=>import("./PublicOnboarding-UXnsajMM.js"),__vite__mapDeps([188,4,17,16,79,132,34,36,153,72,73,74,15,154,31,91,5,6,155,189,29,19,52,161,157]))),s9=L(()=>N(()=>import("./PublicSubApplication-JYt5Wb8i.js"),__vite__mapDeps([190,4,16,17,79,110,51,29,31,19]))),i9=L(()=>N(()=>import("./PublicDepositUpload-DH0aXYRu.js"),__vite__mapDeps([191,4,16,123,19]))),o9=L(()=>N(()=>import("./PublicTenantPay-Cga94hZR.js"),__vite__mapDeps([192,4,16,33,24,23,34,35,36,43,132,12,83]))),a9=L(()=>N(()=>import("./BrowseProperties-CzVfwK6m.js"),__vite__mapDeps([193,3,4,5,6,7,8,9,10,11,12,13]))),l9=L(()=>N(()=>import("./Analytics-CkusAI9p.js"),__vite__mapDeps([194,4,27,59,60,47,48,61,62,63,64,65,66,5,6,41,102,33,24,23,34,35,36,15,22,16,17,84,80,73,76,81,85,69,83,9,142,45,7,52,94])));L(()=>N(()=>import("./Integrations-C_lTRTJa.js"),__vite__mapDeps([195,4,15,16,31,18,87,33,24,23,34,35,36,8,122,17,102,29,52,130,12,110,106,89,196,115,38,51,176])));const c9=L(()=>N(()=>import("./AIConversations-BMAc7Dli.js"),__vite__mapDeps([197,4,22,23,24,157,142,47,48]))),u9=L(()=>N(()=>import("./TextMessages-BHpHFzfr.js"),__vite__mapDeps([198,17,22,23,24,33,34,35,36,102,199,132,41,37,38,200,201,39,202,166,167,164,165,108,29,28,53,99,52,203,31,8,91,204,205,163,15,16,89,206,43,207,45,140,139,113,141,48,47,59,60,61,62,63,64,65,66,5,6,123,69,196,174,142,68,208,87,25])));L(()=>N(()=>import("./Funnels-BT7sr-Po.js"),__vite__mapDeps([209,4,15,16,17,37,38,23,43,34,33,24,35,36,210,211,52,29,99,122,8,31,102,40,118])));const d9=L(()=>N(()=>import("./FunnelWidget-D4RSzA9N.js"),__vite__mapDeps([212,16,79,4,132,34,36,115,38,23,51,33,24,35,211]))),f9=L(()=>N(()=>import("./Applications-DLZhRQvQ.js"),__vite__mapDeps([213,37,38,23,102,27,4,109,8,142,12,214,215,89,47,48]))),h9=L(()=>N(()=>import("./SettingsApplications-DeLcdqRR.js"),__vite__mapDeps([216,43,34,16,132,36,17,4,33,24,23,35,15,29,100,77,7,52,184,56,68,19]))),p9=L(()=>N(()=>import("./EngagementReport-Cq7N8s0j.js"),__vite__mapDeps([217,59,60,47,48,61,62,63,64,65,66,5,6,41,33,24,23,34,35,36,15,16,132,122,218,94]))),m9=L(()=>N(()=>import("./ApplicationDetail-Smzjfn8b.js"),__vite__mapDeps([219,17,22,23,24,199,132,34,36,41,37,38,200,201,39,202,166,167,164,165,108,29,28,53,99,52,203,31,8,91,163,89,25,47,48,16,153,72,73,74,15,154,5,6,155,173,122,158,130,46,7,220,4,102,109,221,83,56,35,110,142,189,19,68,12,215,214,124,159,196,55,95]))),g9=L(()=>N(()=>import("./PublicApplication-BLQy_iR1.js"),__vite__mapDeps([222,4,223]))),y9=L(()=>N(()=>import("./LeadProfile-Dv-GdDii.js"),__vite__mapDeps([224,46,150,15,16,29,36,52,4,151,50,23,38,6,51,17,59,60,47,48,61,62,63,64,65,66,5,41,33,24,34,35,12,124,142,102,56,79,152,132,153,72,73,74,154,31,91,155,27,22,89,156,157,158,83,159,160,87,55,95,161,163,204,205,115,130,110,19,225,199,37,200,201,39,202,166,167,164,165,108,28,53,99,203,8,220,122,25,109,221,144,44,168,162,173,7,140,139,113,141,123,68,174,69,184,185,207,226,208,45,135]))),v9=L(()=>N(()=>import("./Tasks-B3-4Ctbo.js"),__vite__mapDeps([227,4,37,38,23,17,16,33,24,34,35,36,15,132,93,48,60,47,29,142,87,12,7,62,225,218]))),w9=L(()=>N(()=>import("./Campaigns-C3jG1GZD.js"),__vite__mapDeps([228,4,17,16,43,34,33,24,23,35,36,15,29,7,55,95,25,52,47,48]))),x9=L(()=>N(()=>import("./Realtors-Ck0aWWF3.js"),__vite__mapDeps([229,4,15,42,16,43,34,33,24,23,35,36,44,29,13,45,28,89,52])));L(()=>N(()=>import("./AgreementTemplates-BIwGuNvA.js"),__vite__mapDeps([230,4,16,17,43,34,33,24,23,35,36,15,18,102,154,29,231,7,91,52,19,123,47,48])));const b9=L(()=>N(()=>import("./Documents-BBKu0LnS.js"),__vite__mapDeps([232,4,27,37,38,23,173,15,16,17,132,34,36,153,72,73,74,154,31,91,5,6,155,22,24,122,158,130,163,46,25,7,29,102,28,52,47,48]))),_9=L(()=>N(()=>import("./Tenants-CXKJnXqZ.js"),__vite__mapDeps([233,4,27,33,24,23,34,35,36,143,15,16,17,44,45,29,43,19,52,28,89,223,100,77,47,48]))),E9
445=L(()=>N(()=>import("./Feedback-C0_tqb7U.js"),__vite__mapDeps([234,4,122]))),S9=L(()=>N(()=>import("./Inspections-BBDhEwSA.js"),__vite__mapDeps([235,17,4,27,15,16,37,38,23,33,24,34,35,36,28,29,7,52,47,48]))),T9=L(()=>N(()=>import("./Tickets-CgqChq4x.js"),__vite__mapDeps([236,16,17,4,15,33,24,23,34,35,36,27,29,28,87,142,47,48]))),C9=L(()=>N(()=>import("./TicketDetail-DNHkmQCK.js"),__vite__mapDeps([237,16,17,4,33,24,23,34,35,36,37,38,238,52,166,54,47,48,239,15,102,43,226,25,68,87,142]))),k9=L(()=>N(()=>import("./Insurance-B6Fsey5V.js"),__vite__mapDeps([240,4,27,15,16,110,29,123,28,19,52,225,48,62,47]))),P9=L(()=>N(()=>import("./Vendors-CoPV1o-6.js"),__vite__mapDeps([241,4,27,15,16,44,162,163,17,22,23,24,164,165,25,166,167,29,28,89,52]))),R9=L(()=>N(()=>import("./VendorDetail-DivPsasw.js"),__vite__mapDeps([242,17,16,4,37,38,23,27,15,43,34,33,24,35,36,44,162,163,22,164,165,25,166,167,239,102,52,226,68,89,130,29,7,123,31,19]))),A9=L(()=>N(()=>import("./WorkOrders-CI_CVyft.js"),__vite__mapDeps([243,4,27,33,24,23,34,35,36,239,15,102,17,16,37,38,43,52,226,25,200,244,202,29,6,28]))
445),O9=L(()=>N(()=>import("./Amenities-kreKpmP5.js"),__vite__mapDeps([245,17,4,27,15,16,37,38,23,43,34,33,24,35,36,132,59,60,47,48,61,62,63,64,65,66,5,6,246,247,29,52,28,7,208]))),j9=L(()=>N(()=>import("./TemplateEditorPage-B_fLxlgi.js"),__vite__mapDeps([248,72,73,74,4,16,37,38,23,43,34,33,24,35,36,210,154,68,155,147,130,99,8,52,29,6,12]))),S1=L(()=>N(()=>import("./BuildingEdit-DR16_Mis.js"),__vite__mapDeps([249,205,4,102,250,231,52,16,33,24,23,34,35,36,12,87,27,239,15,17,37,38,43,226,25,29,132,115,51,68,19,130]))),I9=L(()=>N(()=>import("./RentRoll-CuIZWLr2.js"),__vite__mapDeps([251,4,27,68,30,252,91]))),T1=L(()=>N(()=>import("./UnitEdit-JfmrMax9.js"),__vite__mapDeps([253,46,16,43,34,59,60,47,48,61,62,63,64,65,66,5,6,41,4,27,37,38,23,33,24,35,36,42,44,15,29,205,102,250,231,52,214,17,123,111,7,31,19,218,206,163,22,132,164,207,45,28,89,144,68,130,83]))),N9=L(()=>N(()=>import("./FloorPlans-BhZO9dyo.js"),__vite__mapDeps([254,4,16,17,152,24,23,34,15,27,37,38,43,40,36,8,31,29,19,52]))),L9=L(()=>N(()=>import("./PublicFloorPlans-BKlba_0o.js"),__vite__mapDeps([255,4,15,202,9,10,147]))),D9=L(()=>N(()=>import("./PublicFloorPlan-mVJhOPRK.js"),__vite__mapDeps([256,15,202,9,10,147])));L(()=>N(()=>import("./EmailTemplates-DvL1a-RD.js"),__vite__mapDeps([257,4,258,15,16,25,17,102,29,54,118,8,52])));const M9=L(()=>N(()=>import("./EmailTemplateEdit-LPkYPdYO.js"),__vite__mapDeps([259,16,17,43,34,4,260,81,151,50,23,38,6,36,51,244,40,53,166,19,33,24,35,258,15,25,68,54,130,29,207]))),$9=L(()=>N(()=>import("./SettingsProfile-CgoVvnFP.js"),__vite__mapDeps([261,139,4,16,33,24,23,34,35,36,137,134,15,25]))),V9=L(()=>N(()=>import("./SettingsTeam-BQw2fK_e.js"),__vite__mapDeps([262,133,4,43,34,134,15,135,7,52,16,136,41,132,36,33,24,23,35,102,29,137]))),F9=L(()=>N(()=>import("./SettingsIntegrations-DEkkOcs9.js"),__vite__mapDeps([263,195,4,15,16,31,18,87,33,24,23,34,35,36,8,122,17,102,29,52,130,12,110,106,89,196,115,38,51,176]))),B9=L(()=>N(()=>import("./SettingsKnowledgeBase-ei631Bci.js"),__vite__mapDeps([264,178,4,16,17,43,34,15,41,144,28,136,132,36,53,19,177,29,168,7,52]))),U9=L(()=>N(()=>import("./SettingsEmailTemplates-ByDUQ9Zx.js"),__vite__mapDeps([265,257,4,258,15,16,25,17,102,29,54,118,8,52]))),C1=L(()=>N(()=>import("./SettingsAgreementTemplates-BSObCxM-.js"),__vite__mapDeps([266,230,4,16,17,43,34,33,24,23,35,36,15,18,102,154,29,231,7,91,52,19,123,47,48]))),z9=L(()=>N(()=>import("./SettingsFunnels-7IssKWD9.js"),__vite__mapDeps([267,209,4,15,16,17,37,38,23,43,34,33,24,35,36,210,211,52,29,99,122,8,31,102,40,118]))),W9=L(()=>N(()=>import("./SettingsServiceAreas-DlMNCtXE.js"),__vite__mapDeps([268,4,43,34,102,200,201,68,29,99,6,36,7,52,19]))),H9=L(()=>N(()=>import("./SettingsSmsTemplates-504JV9Sg.js"),__vite__mapDeps([269,17,16,4,22,23,24,33,34,35,36,99,132,43,79,15,19,203,52,136,41,68,29,166,167,130]))),K9=L(()=>N(()=>import("./SettingsSubscription-DeXk1uiV.js"),__vite__mapDeps([270,4,68,181,164,36]))),q9=L(()=>N(()=>import("./SettingsAdwords-CbvC_Pkz.js"),__vite__mapDeps([271,4,16,27,7,29,52,47,48,63]))),G9=L(()=>N(()=>import("./SettingsReminders-BjLrx9z0.js"),__vite__mapDeps([272,4,43,34,16,17,33,24,23,35,36,135,130]))),Y9=L(()=>N(()=>import("./SettingsTextUsage-BnQJf0uc.js"),__vite__mapDeps([273,4,16,79,166,130]))),Q9=L(()=>N(()=>import("./PrivacyPolicy-BTYOSSHw.js"),__vite__mapDeps([274,68]))),J9=L(()=>N(()=>import("./Terms-DATBuaVp.js"),__vite__mapDeps([275,68]))),X9=L(()=>N(()=>import("./ExtensionPrivacyPolicy-D7M72oUE.js"),__vite__mapDeps([276,68]))),Z9=L(()=>N(()=>import("./OAuthCallback-BwjQP7Ak.js"),[])),eK=L(()=>N(()=>import("./GoogleOAuthCallback-DnhqLYU5.js"),[])),tK=L(()=>N(()=>import("./FacebookOAuthCallback-DK_h2FXT.js"),[])),nK=L(()=>N(()=>import("./FacebookAds-Xz_9D_LB.js"),__vite__mapDeps([277,4,16,17,106,29]))),rK=L(()=>N(()=>import("./MessengerOAuthCallback-FGs4ogNI.js"),[])),sK=L(()=>N(()=>import("./MessengerInbox-CgVQboJ5.js"),__vite__mapDeps([278,4,260,68,108,31,123,25,92,93,48,66,94,64]))),iK=L(()=>N(()=>import("./PublicBooking-DdqIaTZi.js"),__vite__mapDeps([279,59,60,47,48,61,62,63,64,65,66,5,6,4,141,36,142,160]))),oK=L(()=>N(()=>import("./PublicShowingBooking-CvHiRNd3.js"),__vite__mapDeps([280,59,60,47,48,61,62,63,64,65,66,5,6,4,16,17,141,36,160,69,207,28,142,68]))),aK=L(()=>N(()=>import("./UnitsWidget-DZn8nM-r.js"),__vite__mapDeps([281,4,46,9,147]))),lK=L(()=>N(()=>import("./FloorPlansWidget-CttKBy6y.js"),__vite__mapDeps([282,202]))),cK=L(()=>N(()=>import("./ExternalLeadSubmission-CSyRjFRp.js"),__vite__mapDeps([283,17,16,4,33,24,23,34,35,36,124,12])));L(()=>N(()=>import("./ComingSoon-mBWSkkdd.js"),[]));const k1=L(()=>N(()=>import("./Accounting-CgszZr0I.js"),__vite__mapDeps([284,37,38,23,4,16,17,15,33,24,34,35,36,27,29]))),uK=L(()=>N(()=>import("./FinancialsRentRoll-BMmOtMhP.js"),__vite__mapDeps([285,4,27,286,16,33,24,23,34,35,36,252,91,30]))),dK=L(()=>N(()=>import("./FinancialsAR-wI3qECSj.js"),__vite__mapDeps([287,4,27,286,16,33,24,23,34,35,36,252,91,288,17,15,289,29]))),fK=L(()=>N(()=>import("./FinancialsScheduled-DsAvjxRP.js"),__vite__mapDeps([290,4,27,286,16,33,24,23,34,35,36,252,91,289,88]))),hK=L(()=>N(()=>
445import("./FinancialsEpay-DRFMof-S.js"),__vite__mapDeps([291,4,27,286,16,33,24,23,34,35,36,252,91,289]))),pK=L(()=>N(()=>import("./FinancialsStatements-fRy9eMXK.js"),__vite__mapDeps([292,4,16,33,24,23,34,35,36,27,286,252,91,289]))),mK=L(()=>N(()=>import("./FinancialsIncome-C8kO16cb.js"),__vite__mapDeps([293,4,27,286,16,33,24,23,34,35,36,252,91,289]))),gK=L(()=>N(()=>import("./FinancialsTransactions-Bri4JD0W.js"),__vite__mapDeps([294,4,27,102,286,16,33,24,23,34,35,36,252,91,288,17,15,289,29,7,104]))),yK=L(()=>N(()=>import("./VendorLogin-mNsZJaUI.js"),__vite__mapDeps([295,4,16]))),vK=L(()=>N(()=>import("./VendorVerify-B7j19hLO.js"),[])),wK=L(()=>N(()=>import("./VendorPortal-AO81-wwo.js"),__vite__mapDeps([296,4,16,17,37,38,23,15]))),xK=L(()=>N(()=>import("./TenantLogin-BGbs-ijB.js"),__vite__mapDeps([297,4,16]))),bK=L(()=>N(()=>import("./TenantVerify-DEGTk1uj.js"),[])),_K=L(()=>N(()=>import("./TenantPortal-U-LLYRXZ.js"),__vite__mapDeps([298,4,37,38,23,16,43,34,91,17,33,24,35,36,29,123,238,25,110,19,208,1,299,90,108]))),EK=L(()=>N(()=>import("./Leases-CGhP9H5a.js"),__vite__mapDeps([300,4,27,301,122,65,48,29,28,89,47]))),P1=L(()=>N(()=>import("./LeaseProposals-BngLc83g.js"),__vite__mapDeps([302,4,27,301,122,65,48,33,24,23,34,35,36,28,89,25,47]))),SK=L(()=>N(()=>import("./RenewalPipelines-CTrf6Kgg.js"),__vite__mapDeps([303,4,27,301,122,65,48,28,89,47,123]))),TK=L(()=>N(()=>import("./ResetPassword-CgiDe6e9.js"),__vite__mapDeps([304,16,4]))),CK=L(()=>N(()=>import("./RentPayments-DnAudN2_.js"),__vite__mapDeps([305,4,16,33,24,23,34,35,36,15,29,109,8,83,142,123,25,158,12,124]))),kK=L(()=>N(()=>import("./PaymentVerification-Cq8kIT9Q.js"),__vite__mapDeps([306,16,17,4,18,115,38,23,34,51,33,24,35,36,87,5,6,68]))),PK=L(()=>N(()=>import("./Help-B5UMUDID.js"),__vite__mapDeps([307,17,4,22,23,24,156,157,90,25]))),RK=L(()=>N(()=>import("./MaintenanceServices-Ditk-IWe.js"),__vite__mapDeps([308,4,15,16,17,43,34,33,24,23,35,36,85,29,7,52,37,38,39,109,142,83]))),AK=L(()=>N(()=>import("./MaintenanceTeam-DNjcf4YZ.js"),__vite__mapDeps([309,4,15,16,33,24,23,34,35,36,132,43,59,60,47,48,61,62,63,64,65,66,5,6,41,142,29,7,52,310]))),OK=L(()=>N(()=>import("./MaintenanceBookings-Bdyeypj4.js"),__vite__mapDeps([311,4,15,16,17,33,24,23,34,35,36,144,28,41,37,38,102,162,163,22,164,165,25,166,167,312,39,172,29,5,6,142,69,7,52,19,168,45,61,62,48,63,64,246,247,47,60,82,65]))),jK=L(()=>N(()=>import("./MaintenanceInvoices-_fjJ80bA.js"),__vite__mapDeps([313,4,15,16,17,43,34,33,24,23,35,36,27,144,28,41,162,163,22,164,165,25,166,167,312,122,109,29,83,310,31,55,95,7,52,168,45,47,48]))),IK=L(()=>N(()=>import("./PublicServiceBooking-C0W6JQDM.js"),__vite__mapDeps([314,4,16,17,59,60,47,48,61,62,63,64,65,66,5,6,142,83,68,87,247]))),NK=L(()=>N(()=>import("./Pricing-O7NZn3wx.js"),__vite__mapDeps([315,17,164]))),LK=L(()=>N(()=>import("./GoogleAdsLanding-341X-cT2.js"),__vite__mapDeps([316,17,89,84,164,124,157]))),DK=L(()=>N(()=>import("./Sites-BhJ3wumc.js"),__vite__mapDeps([317,4,15,102,28,29,31,52,111,92,93,48,66,94,64]))),MK=L(()=>N(()=>import("./SiteEditor-PhEYfwJ9.js"),__vite__mapDeps([318,17,4,102,151,50,23,38,6,36,51,15,68,123,8,158,77,238,11,25,57,106,299,221]))),$K=L(()=>N(()=>import("./WebsiteAnalyzer-CiWW9Pa8.js"),__vite__mapDeps([319,4,68,28,123,124]))),VK=L(()=>N(()=>import("./SiteSettings-DHzI1amC.js"),__vite__mapDeps([320,17,4,43,34,16,18,15,102,12,8,207,122,52,132,36,144,28,41,68,29]))),FK=L(()=>N(()=>import("./SitePreview-CXBfsvs6.js"),[])),BK=L(()=>N(()=>import("./PublicSite-EWBSUy7Z.js"),[])),UK=new AM({defaultOptions:{queries:{staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,retry:1,refetchIntervalInBackground:!1}}});eI();function zK({children:e}){const n=Dr().pathname.replace(/\/+/g,"/");if(typeof window<"u"){const i=window.location.hostname;if(/\.sites\.avah\.ai$/i.test(i))return f.jsx(y.Suspense,{fallback:f.jsx(Xk,{}),children:f.jsx(BK,{})})}return["/","/dallas","/auth","/reset-password","/contact","/citysuites","/platform","/find-property","/browse","/privacy-policy","/terms","/extension-privacy-policy","/oauth/callback","/oauth/google/callback","/oauth/facebook/callback","/oauth/messenger/callback","/avah","/old-index","/pricing","/get-started"].includes(n)||n.startsWith("/owner/")||n.startsWith("/property/")||n.startsWith("/building/")||n.startsWith("/u/")||n.startsWith("/funnel/")||n.startsWith("/floorplans/")||n.startsWith("/floorplan/")||n.startsWith("/application/")||n.startsWith("/view-application/")||n.startsWith("/sub-application/")||n.startsWith("/book/")||n.startsWith("/book-showing/")||n.startsWith("/units-widget/")||n.startsWith("/floorplans-widget/")||n.startsWith("/submit-lead/")||n.startsWith("/deposit/")||n.startsWith("/pay-rent/")||n.startsWith("/book-service/")||n.startsWith("/sign/")||n.startsWith("/vendor/")||n.startsWith("/tenant/")||n.startsWith("/preview/")?f.jsx(f.Fragment,{children:e}
445):f.jsx(Wk,{children:f.jsxs("div",{className:"min-h-screen flex w-full",children:[f.jsx(X3,{}),f.jsx(Jk,{}),f.jsx(g8,{}),f.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[f.jsx("header",{className:"h-12 flex items-center border-b px-4",children:f.jsx(Kk,{})}),f.jsx("main",{className:"flex-1 overflow-auto min-w-0",children:e})]})]})})}function WK(){return Dr().pathname.startsWith("/preview/")?null:f.jsxs(f.Fragment,{children:[f.jsx(oL,{}),f.jsx(mL,{})]})}const HK=()=>f.jsx(OM,{client:UK,children:f.jsx(uL,{attribute:"class",defaultTheme:"light",enableSystem:!0,children:f.jsx(LT,{children:f.jsx(dy,{children:f.jsxs(P$,{children:[f.jsx(WK,{}),f.jsx(r4,{children:f.jsx(zK,{children:f.jsx(y.Suspense,{fallback:f.jsx(Xk,{}),children:f.jsxs(w$,{children:[f.jsx(I,{path:"/",element:f.jsx(b1,{})}),f.jsx(I,{path:"/dallas",element:f.jsx(x7,{})}),f.jsx(I,{path:"/contact",element:f.jsx(X7,{})}),f.jsx(I,{path:"/citysuites",element:f.jsx(e9,{})}),f.jsx(I,{path:"/platform",element:f.jsx(t9,{})}),f.jsx(I,{path:"/pricing",element:f.jsx(NK,{})}),f.jsx(I,{path:"/get-started",element:f.jsx(LK,{})}),f.jsx(I,{path:"/find-property",element:f.jsx(n9,{})}),f.jsx(I,{path:"/browse",element:f.jsx(a9,{})}),f.jsx(I,{path:"/property/:id",element:f.jsx(T7,{})}),f.jsx(I,{path:"/u/:unitId",element:f.jsx(Y7,{})}),f.jsx(I,{path:"/building/:buildingId",element:f.jsx(Q7,{})}),f.jsx(I,{path:"/auth",element:f.jsx(k7,{})}),f.jsx(I,{path:"/reset-password",element:f.jsx(TK,{})}),f.jsx(I,{path:"/dashboard",element:f.jsx(R7,{})}),f.jsx(I,{path:"/ask-avah",element:f.jsx(A7,{})}),f.jsx(I,{path:"/settings/ask-avah",element:f.jsx(O7,{})}),f.jsx(I,{path:"/admin",element:f.jsx(N7,{})}),f.jsx(I,{path:"/admin/settings",element:f.jsx(L7,{})}),f.jsx(I,{path:"/admin/settings/twilio-errors",element:f.jsx(D7,{})}),f.jsx(I,{path:"/admin/settings/ai-strategy",element:f.jsx(M7,{})}),f.jsx(I,{path:"/admin/settings/el-agent",element:f.jsx($7,{})}),f.jsx(I,{path:"/admin/settings/templates",element:f.jsx(V7,{})}),f.jsx(I,{path:"/admin/settings/templates/new",element:f.jsx(_1,{})}),f.jsx(I,{path:"/admin/settings/templates/:id",element:f.jsx(_1,{})}),f.jsx(I,{path:"/admin/settings/template-mappings",element:f.jsx(F7,{})}),f.jsx(I,{path:"/admin/finix-kyb",element:f.jsx(B7,{})}),f.jsx(I,{path:"/admin/finix-kyb/audit",element:f.jsx(U7,{})}),f.jsx(I,{path:"/admin/settings/master-admins",element:f.jsx(z7,{})}),f.jsx(I,{path:"/admin/crm",element:f.jsx(W7,{})}),f.jsx(I,{path:"/admin/crm/tasks",element:f.jsx(K7,{})}),f.jsx(I,{path:"/admin/crm/:id",element:f.jsx(H7,{})}),f.jsx(I,{path:"/clients",element:f.jsx(Z7,{})}),f.jsx(I,{path:"/analytics",element:f.jsx(l9,{})}),f.jsx(I,{path:"/inquiries",element:f.jsx(E1,{})}),f.jsx(I,{path:"/properties",element:f.jsx(b7,{})}),f.jsx(I,{path:"/buildings",element:f.jsx(_7,{})}),f.jsx(I,{path:"/buildings/new",element:f.jsx(S1,{})}),f.jsx(I,{path:"/buildings/:id/edit",element:f.jsx(S1,{})}),f.jsx(I,{path:"/buildings/:id/rent-roll",element:f.jsx(I9,{})}),f.jsx(I,{path:"/units",element:f.jsx(E7,{})}),f.jsx(I,{path:"/leasing-matrix",element:f.jsx(S7,{})}),f.jsx(I,{path:"/units/new",element:f.jsx(T1,{})}),f.jsx(I,{path:"/units/:id/edit",element:f.jsx(T1,{})}),f.jsx(I,{path:"/floor-plans",element:f.jsx(N9,{})}),f.jsx(I,{path:"/calendar",element:f.jsx(q7,{})}),f.jsx(I,{path:"/ai-conversations",element:f.jsx(c9,{})}),f.jsx(I,{path:"/text-messages",element:f.jsx(u9,{})}),f.jsx(I,{path:"/leads",element:f.jsx(E1,{})}),f.jsx(I,{path:"/lead/:id",element:f.jsx(y9,{})}),f.jsx(I,{path:"/tasks",element:f.jsx(v9,{})}),f.jsx(I,{path:"/campaigns",element:f.jsx(w9,{})}),f.jsx(I,{path:"/realtors",element:f.jsx(x9,{})}),f.jsx(I,{path:"/tenants",element:f.jsx(_9,{})}),f.jsx(I,{path:"/feedback",element:f.jsx(E9,{})}),f.jsx(I,{path:"/documents",element:f.jsx(b9,{})}),f.jsx(I,{path:"/inspections",element:f.jsx(S9,{})}),f.jsx(I,{path:"/tickets",element:f.jsx(T9,{})}),f.jsx(I,{path:"/tickets/:id",element:f.jsx(C9,{})}),f.jsx(I,{path:"/leases",element:f.jsx(P1,{})}),f.jsx(I,{path:"/leases/active",element:f.jsx(EK,{})}),f.jsx(I,{path:"/lease-proposals",element:f.jsx(P1,{})}),f.jsx(I,{path:"/renewal-pipelines",element:f.jsx(SK,{})}),f.jsx(I,{path:"/insurance",element:f.jsx(k9,{})}),f.jsx(I,{path:"/vendors",element:f.jsx(P9,{})}),f.jsx(I,{path:"/vendors/:id",element:f.jsx(R9,{})}),f.jsx(I,{path:"/work-orders",element:f.jsx(A9,{})}),f.jsx(I,{path:"/amenities",element:f.jsx(O9,{})}),f.jsx(I,{path:"/accounting",element:f.jsx(k1,{})}),f.jsx(I,{path:"/financials",element:f.jsx(k1,{})}),f.jsx(I,{path:"/financials/rent-roll",element:f.jsx(uK,{})}),f.jsx(I,{path:"/financials/receivables",element:f.jsx(dK,{})}),f.jsx(I,{path:"/financials/scheduled-payments",element:f.jsx(fK,{})}),f.jsx(I,{path:"/financials/epay-activity",element:f.jsx(hK,{})}),f.jsx(I,{path:"/financials/statements",element:f.jsx(pK,{})}),f.jsx(I,{path:"/financials/income-statement",element:f.jsx(mK,{})}),f.jsx(I,{path:"/financials/transactions",element:f.jsx(gK,{})}),f.jsx(I,{path:"/vendor/login",element:f.jsx(yK,{})}),f.jsx(I,{path:"/vendor/verify",element:f.jsx(vK,{})}),f.jsx(I,{path:"/vendor/portal",element:f.jsx(wK,{})}),f.jsx(I,{path:"/tenant/login",element:f.jsx(xK,{})}),f.jsx(I,{path:"/tenant/verify",element:f.jsx(bK,{})}),f.jsx(I,{path:"/tenant/portal",element:f.jsx(_K,{})}),f.jsx(I,{path:"/rent-payments",element:f.jsx(CK,{})}),f.jsx(I,{path:"/settings/payouts/verify",element:f.jsx(kK,{})}),f.jsx(I,{path:"/settings",element:f.jsx(J7,{})}),f.jsx(I,{path:"/settings/profile",element:f.jsx($9,{})}),f.jsx(I,{path:"/settings/team",element:f.jsx(V9,{})}),f.jsx(I,{path:"/settings/integrations",element:f.jsx(F9,{})}),f.jsx(I,{path:"/settings/knowledge-base",element:f.jsx(B9,{})}),f.jsx(I,{path:"/settings/email-templates",element:f.jsx(U9,{})}),f.jsx(I,{path:"/settings/agreement-templates",element:f.jsx(C1,{})}),f.jsx(I,{path:"/settings/document-templates",element:f.jsx(C1,{})}),f.jsx(I,{path:"/settings/funnels",element:f.jsx(z9,{})}),f.jsx(I,{path:"/settings/service-areas",element:f.jsx(W9,{})}),f.jsx(I,{path:"/settings/sms-templates",element:f.jsx(H9,{})}),f.jsx(I,{path:"/settings/subscription",element:f.jsx(K9,{})}),f.jsx(I,{path:"/settings/adwords",element:f.jsx(q9,{})}),f.jsx(I,{path:"/settings/reminders",element:f.jsx(G9,{})}),f.jsx(I,{path:"/settings/text-usage",element:f.jsx(Y9,{})}),f.jsx(I,{path:"/settings/lead-fields",element:f.jsx(j7,{})}),f.jsx(I,{path:"/settings/api-keys",element:f.jsx(I7,{})}),f.jsx(I,{path:"/email-templates/:id",element:f.jsx(M9,{})}),f.jsx(I,{path:"/funnel/:funnelId",element:f.jsx(d9,{})}),f.jsx(I,{path:"/agreement-templates/:id/edit",element:f.jsx(j9,{})}),f.jsx(I,{path:"/applications",element:f.jsx(f9,{})}),f.jsx(I,{path:"/settings/applications",element:f.jsx(h9,{})}),f.jsx(I,{path:"/engagement/report",element:f.jsx(p9,{})}),f.jsx(I,{path:"/applications/:id",element:f.jsx(m9,{})}),f.jsx(I,{path:"/owner/:ownerId",element:f.jsx(G7,{})}),f.jsx(I,{path:"/floorplans/:ownerId",element:f.jsx(L9,{})}),f.jsx(I,{path:"/floorplan/:planId",element:f.jsx(D9,{})}),f.jsx(I,{path:"/application/:token",element:f.jsx(r9,{})}),f.jsx(I,{path:"/view-application/:token",element:f.jsx(g9,{})}),f.jsx(I,{path:"/sub-application/:token",element:f.jsx(s9,{})}),f.jsx(I,{path:"/book/:bookingToken",element:f.jsx(iK,{})}),f.jsx(I,{path:"/book-showing/:ownerId",element:f.jsx(oK,{})}),f.jsx(I,{path:"/units-widget/:ownerId",element:f.jsx(aK,{})}),f.jsx(I,{path:"/floorplans-widget/:ownerId",element:f.jsx(lK,{})}),f.jsx(I,{path:"/submit-lead/:token",element:f.jsx(cK,{})}),f.jsx(I,{path:"/avah",element:f.jsx(b1,{})}),f.jsx(I,{path:"/old-index",element:f.jsx(w7,{})}),f.jsx(I,{path:"/privacy-policy",element:f.jsx(Q9,{})}),f.jsx(I,{path:"/terms",element:f.jsx(J9,{})}),f.jsx(I,{path:"/extension-privacy-policy",element:f.jsx(X9,{})}),f.jsx(I,{path:"/oauth/callback",element:f.jsx(Z9,{})}),f.jsx(I,{path:"/oauth/google/callback",element:f.jsx(eK,{})}),f.jsx(I,{path:"/oauth/facebook/callback",element:f.jsx(tK,{})}),f.jsx(I,{path:"/oauth/messenger/callback",element:f.jsx(rK,{})}),f.jsx(I,{path:"/messenger-inbox",element:f.jsx(sK,{})}),f.jsx(I,{path:"/facebook-ads",element:f.jsx(nK,{})}),f.jsx(I,{path:"/help",element:f.jsx(PK,{})}),f.jsx(I,{path:"/sites",element:f.jsx(DK,{})}),f.jsx(I,{path:"/sites/:id/edit",element:f.jsx(MK,{})}
445),f.jsx(I,{path:"/sites/:id/settings",element:f.jsx(VK,{})}),f.jsx(I,{path:"/preview/:siteId/:slug?",element:f.jsx(FK,{})}),f.jsx(I,{path:"/sites/analyzer",element:f.jsx($K,{})}),f.jsx(I,{path:"/maintenance/services",element:f.jsx(RK,{})}),f.jsx(I,{path:"/maintenance/team",element:f.jsx(AK,{})}),f.jsx(I,{path:"/maintenance/bookings",element:f.jsx(OK,{})}),f.jsx(I,{path:"/maintenance/invoices",element:f.jsx(jK,{})}),f.jsx(I,{path:"/book-service/:ownerId",element:f.jsx(IK,{})}),f.jsx(I,{path:"/deposit/:token",element:f.jsx(i9,{})}),f.jsx(I,{path:"/pay-rent/:token",element:f.jsx(o9,{})}),f.jsx(I,{path:"/sign/:token",element:f.jsx(P7,{})}),f.jsx(I,{path:"*",element:f.jsx(C7,{})})]})})})})]})})})})});JE(document.getElementById("root")).render(f.jsx(dy,{children:f.jsx(HK,{})}));export{xN as $,iN as A,hi as B,sN as C,cN as D,ww as E,hN as F,ne as G,US as H,ak as I,jS as J,xw as K,Qr as L,LS as M,_N as N,oN as O,Le as P,vN as Q,j as R,m3 as S,KS as T,hd as U,EN as V,gN as W,vy as X,NS as Y,v3 as Z,w3 as _,lq as a,hM as a$,FS as a0,rN as a1,yf as a2,QK as a3,Vl as a4,kM as a5,Pt as a6,XK as a7,On as a8,JK as a9,dk as aA,af as aB,VD as aC,dl as aD,FD as aE,OI as aF,lf as aG,MD as aH,fy as aI,Ll as aJ,Gr as aK,AD as aL,oS as aM,lS as aN,i4 as aO,N as aP,oq as aQ,aq as aR,cI as aS,vM as aT,dM as aU,bm as aV,vf as aW,cM as aX,uM as aY,VT as aZ,EM as a_,sS as aa,iI as ab,GS as ac,LT as ad,oM as ae,aM as af,DT as ag,d3 as ah,f3 as ai,Mk as aj,$k as ak,p3 as al,Vk as am,Fk as an,h3 as ao,_t as ap,$i as aq,lr as ar,lc as as,hI as at,vT as au,$D as av,Mi as aw,t3 as ax,g4 as ay,wk as az,Uk as b,qS as b0,pN as b1,DS as b2,dN as b3,aN as b4,VS as b5,Gw as b6,qw as b7,F$ as b8,fN as b9,BS as ba,Js as bb,Xs as bc,Zs as bd,la as be,uN as bf,wN as bg,cq as bh,U3 as bi,uq as bj,dq as bk,yN as bl,QE as bm,wg as bn,s4 as bo,WS as bp,MS as bq,fq as br,pg as bs,Ox as c,iS as d,Hy as e,bN as f,mN as g,zS as h,Ua as i,f as j,gy as k,jx as l,uk as m,eq as n,aa as o,Re as p,ar as q,y as r,xe as s,ie as t,Ny as u,ZK as v,Dr as w,y2 as x,mA as y,Nr 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.